:root {
  --warm-white: #f2efed;
  --swirl: #d4cac3;
  --khaki: #c39f82;
  --olive: #4b5332;
  --fawn: #6e4e34;
  --muesli: #a87f60;
  --zeus: #26201c;
  --pharlap: #9b857b;
  --saddle: #533226;
  --nevada: #65686a;
  --leather: #8b6450;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--warm-white);
  color: var(--zeus);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.site-header {
  padding: 28px 6vw 20px;
  border-bottom: 1px solid var(--swirl);
}

.wordmark { display: flex; flex-direction: column; gap: 4px; }

.wordmark-main {
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 18px;
  color: var(--zeus);
}

.wordmark-sub {
  font-family: 'Inter', sans-serif;
  font-style: italic;
  font-size: 13px;
  color: var(--nevada);
}

.hero {
  padding: 48px 6vw 28px;
  max-width: 720px;
}

.hero h1 {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 5vw, 52px);
  margin: 0 0 12px;
  color: var(--zeus);
}

.hero p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--saddle);
  margin: 0;
}

.filter-bar {
  padding: 0 6vw 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-end;
}

.filter-group { display: flex; flex-direction: column; gap: 8px; }

.filter-label {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nevada);
}

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

.chip-row-nested {
  margin-top: 8px;
  padding-left: 16px;
  border-left: 2px solid var(--swirl);
}

.chip-row-nested .chip { font-size: 12px; padding: 5px 13px; }

.chip {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--swirl);
  background: #fff;
  color: var(--saddle);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.chip:hover { border-color: var(--muesli); }

.chip.active {
  background: var(--olive);
  border-color: var(--olive);
  color: var(--warm-white);
}

.chip-reset {
  background: transparent;
  border: none;
  text-decoration: underline;
  color: var(--nevada);
  align-self: center;
}

main { padding: 0 6vw 80px; }

.callout {
  background: var(--olive);
  color: var(--warm-white);
  border-radius: 18px;
  padding: 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 36px;
  max-width: 480px;
}

.callout-eyebrow {
  font-family: 'Raleway', sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.75;
}

.callout-title {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.card {
  background: #fff;
  border: 1px solid var(--swirl);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(38, 32, 28, 0.1);
}

.card-thumb {
  height: 150px;
  background: linear-gradient(135deg, var(--khaki), var(--muesli));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.card-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.card-thumb::after {
  content: '';
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(242, 239, 237, 0.92);
  display: flex;
  position: relative;
  z-index: 1;
  box-shadow: 0 2px 10px rgba(38,32,28,0.25);
}

.play-triangle {
  position: absolute;
  z-index: 2;
  width: 0; height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid var(--olive);
  left: calc(50% - 4px);
  top: calc(50% - 9px);
}

.card-format {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  background: rgba(38, 32, 28, 0.55);
  color: #fff;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
}

.card-start-here {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  background: var(--olive);
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
}

.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }

.card-theme {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muesli);
  font-weight: 600;
}

.card-title {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.3;
  margin: 0;
  color: var(--zeus);
}

.card-experience {
  font-size: 13.5px;
  color: var(--nevada);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }

.tag {
  font-size: 11px;
  background: var(--warm-white);
  border: 1px solid var(--swirl);
  color: var(--saddle);
  padding: 3px 10px;
  border-radius: 999px;
}

.empty-state {
  text-align: center;
  color: var(--nevada);
  padding: 60px 0;
  font-size: 15px;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 24px;
}

.modal.open { display: flex; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(38, 32, 28, 0.72);
}

.modal-card {
  position: relative;
  background: var(--warm-white);
  border-radius: 18px;
  max-width: 780px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: rgba(38,32,28,0.5);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 32px; height: 32px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.modal-video {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--zeus);
}

.modal-video iframe { width: 100%; height: 100%; border: none; }

.modal-video-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--swirl);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  text-align: center;
  padding: 20px;
}

.modal-meta { padding: 22px 26px 28px; }

.modal-theme {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muesli);
  font-weight: 600;
}

.modal-meta h2 {
  font-family: 'Raleway', sans-serif;
  margin: 6px 0 10px;
  font-size: 24px;
}

.modal-meta p { color: var(--saddle); line-height: 1.6; margin: 0 0 12px; }

.site-footer {
  padding: 24px 6vw 40px;
  border-top: 1px solid var(--swirl);
  margin-top: 20px;
}

.site-footer a {
  font-size: 12px;
  color: var(--nevada);
  text-decoration: none;
}

.site-footer a:hover { color: var(--saddle); }

@media (max-width: 640px) {
  .site-header, .hero, .filter-bar, main { padding-left: 5vw; padding-right: 5vw; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card-title { font-size: 14px; }
}
