:root {
  --ink: #0e1715;
  --ink-soft: #17241f;
  --cream: #f4f0e7;
  --paper: #fffcf5;
  --gold: #d8a93b;
  --gold-light: #f2d98a;
  --green: #2f6b53;
  --green-bright: #76b58b;
  --line: rgba(244, 240, 231, 0.16);
  --muted: #aab7b1;
  --shadow: 0 24px 60px rgba(3, 10, 8, 0.24);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--cream);
  background: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
button, a, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 50;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--gold-light);
  border-radius: 999px;
}
.skip-link:focus { top: 16px; }

.site-shell {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 6%, rgba(216, 169, 59, 0.15), transparent 25rem),
    radial-gradient(circle at 4% 48%, rgba(58, 129, 96, 0.13), transparent 30rem),
    var(--ink);
}

.site-header {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 10;
}
.brand { text-decoration: none; display: inline-grid; line-height: .9; }
.brand strong { letter-spacing: -.055em; font-size: 1.25rem; }
.brand span { color: var(--gold-light); font-size: .71rem; letter-spacing: .18em; margin-top: 6px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { text-decoration: none; color: #d6dfda; font-size: .92rem; }
.nav-links a:hover { color: white; }
.nav-cta { border: 1px solid rgba(242, 217, 138, .55); border-radius: 999px; padding: 10px 16px; }
.menu-button { display: none; border: 0; background: transparent; color: white; padding: 8px; }
.menu-button span { display: block; width: 22px; height: 2px; margin: 5px; background: currentColor; }

.hero {
  width: min(1160px, calc(100% - 40px));
  min-height: 680px;
  margin: 0 auto;
  padding: 88px 0 100px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 64px;
}
.eyebrow {
  margin: 0 0 18px;
  color: var(--gold-light);
  font-weight: 750;
  font-size: .76rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 24px;
  max-width: 780px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 7.4vw, 6.8rem);
  line-height: .89;
  letter-spacing: -.065em;
  font-weight: 500;
}
h1 span { color: var(--gold-light); }
.hero-copy > p:not(.eyebrow) { max-width: 620px; color: #c1cdc7; font-size: clamp(1rem, 1.8vw, 1.16rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 28px; }
.primary-button, .secondary-button, .text-button, .save-button, .watch-button {
  border-radius: 999px;
  padding: 13px 19px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.primary-button { color: #111b18; background: var(--gold-light); font-weight: 800; box-shadow: 0 12px 30px rgba(216, 169, 59, .17); }
.primary-button:hover { transform: translateY(-2px); background: #f7e19b; }
.secondary-button { color: white; background: transparent; border-color: rgba(255,255,255,.25); }
.secondary-button:hover { border-color: rgba(255,255,255,.55); }
.hero-proof { display: flex; align-items: center; gap: 12px; color: #9fafa7; font-size: .88rem; }
.proof-line { width: 36px; height: 1px; background: var(--gold); }

.hero-visual { position: relative; min-height: 480px; }
.rise-lines { position: absolute; inset: 20px 0 0; opacity: .5; }
.rise-lines span { position: absolute; width: 72%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); transform: rotate(-28deg); transform-origin: right; right: 0; }
.rise-lines span:nth-child(1) { top: 28%; }
.rise-lines span:nth-child(2) { top: 49%; width: 90%; opacity: .6; }
.rise-lines span:nth-child(3) { top: 70%; width: 63%; opacity: .34; }
.compass-card {
  position: absolute;
  inset: 54px 38px 44px 32px;
  border: 1px solid rgba(242, 217, 138, .28);
  border-radius: 42px;
  background: linear-gradient(150deg, rgba(255,255,255,.09), rgba(255,255,255,.025));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  display: grid;
  place-items: center;
  transform: rotate(2deg);
}
.compass-ring {
  width: min(270px, 70%);
  aspect-ratio: 1;
  border: 1px solid rgba(242, 217, 138, .35);
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  text-align: center;
}
.compass-ring::before, .compass-ring::after { content: ""; position: absolute; background: rgba(242, 217, 138, .22); }
.compass-ring::before { width: 120%; height: 1px; }
.compass-ring::after { height: 120%; width: 1px; }
.compass-center { position: relative; z-index: 1; width: 64%; padding: 18px; border-radius: 50%; background: var(--ink-soft); }
.compass-center span { color: var(--gold-light); font-size: .73rem; letter-spacing: .14em; text-transform: uppercase; }
.compass-center strong { display: block; font-family: Georgia, serif; font-size: 1.55rem; margin-top: 7px; }
.compass-note { position: absolute; right: -12px; bottom: 24px; padding: 12px 16px; color: var(--ink); background: var(--cream); border-radius: 16px; font-weight: 800; box-shadow: var(--shadow); }

.section { padding: 112px 0; }
.section-inner { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.section-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; margin-bottom: 48px; }
.section-heading h2 { margin-bottom: 0; font-family: Georgia, serif; font-weight: 500; font-size: clamp(2.35rem, 5vw, 4.6rem); line-height: .98; letter-spacing: -.045em; }
.section-heading > p { margin-bottom: 5px; color: var(--muted); max-width: 500px; }

.themes-section { background: #14211d; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.filter-row { display: flex; gap: 9px; overflow-x: auto; padding: 2px 2px 18px; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-button { flex: 0 0 auto; padding: 9px 14px; color: #c5d1cb; background: transparent; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; cursor: pointer; }
.filter-button[aria-pressed="true"] { color: #172019; background: var(--green-bright); border-color: var(--green-bright); font-weight: 800; }
.episode-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.episode-card {
  min-height: 300px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  display: flex;
  flex-direction: column;
  outline: none;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.episode-card:hover { transform: translateY(-4px); border-color: rgba(242, 217, 138, .3); }
.episode-card.is-recommended { border-color: var(--gold-light); box-shadow: 0 0 0 3px rgba(242, 217, 138, .12), var(--shadow); }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--gold-light); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.sample-badge { color: #a9bbb2; border: 1px solid rgba(255,255,255,.13); border-radius: 999px; padding: 4px 8px; letter-spacing: .05em; text-transform: none; }
.episode-card h3 { margin: 54px 0 12px; font-family: Georgia, serif; font-size: 1.7rem; line-height: 1.08; font-weight: 500; }
.episode-card p { color: #aebdb5; font-size: .93rem; }
.card-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.watch-button { padding: 8px 12px; color: #172019; background: var(--green-bright); border-color: var(--green-bright); font-size: .86rem; font-weight: 800; }
.watch-button:hover { transform: translateY(-2px); background: #8fc7a0; }
.save-button { padding: 8px 12px; color: var(--cream); background: transparent; border-color: rgba(255,255,255,.16); font-size: .86rem; }
.save-button::before { content: "+"; margin-right: 7px; color: var(--gold-light); }
.save-button.is-saved::before { content: "✓"; }
.saved-summary { margin: 22px 0 0; color: #8fa198; font-size: .86rem; }

.route-section { position: relative; }
.route-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 80px; align-items: start; }
.route-intro { position: sticky; top: 34px; }
.route-intro h2 { font-family: Georgia, serif; font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 500; line-height: .98; letter-spacing: -.05em; }
.route-intro > p:not(.eyebrow) { color: var(--muted); max-width: 430px; }
.principle-note { display: flex; gap: 14px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); color: #cdd7d2; }
.principle-note strong { color: var(--gold-light); font-size: 1.35rem; }
.principle-note p { margin: 0; font-size: .9rem; }

.wizard-card, .result-card { padding: clamp(24px, 5vw, 48px); border: 1px solid rgba(242, 217, 138, .2); border-radius: 32px; background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.progress-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 38px; }
.progress-step { height: 4px; border-radius: 999px; background: #dad8d1; }
.progress-step.is-active { background: var(--green); }
.wizard-step h3 { font-family: Georgia, serif; font-size: clamp(1.85rem, 3.4vw, 2.7rem); line-height: 1.05; font-weight: 500; outline: none; }
.wizard-help { color: #62716b; margin-bottom: 24px; }
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.choice-card { display: flex; gap: 12px; padding: 16px; border: 1px solid #d9ddd9; border-radius: 15px; cursor: pointer; transition: border .2s, background .2s; }
.choice-card:hover, .choice-card.is-selected { border-color: var(--green); background: #edf5f0; }
.choice-card input { accent-color: var(--green); margin-top: 4px; }
.choice-card strong { display: block; }
.choice-card small { color: #6b7772; }
.wizard-actions { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 28px; }
.wizard-actions .primary-button { border: 0; background: var(--green); color: white; box-shadow: none; }
.text-button { padding-left: 0; color: #4d5e56; background: transparent; border: 0; }
.wizard-error { min-height: 24px; margin-top: 15px; color: #a63424; font-size: .88rem; outline: none; }

.result-card { background: linear-gradient(145deg, #fffdf8, #eee9dd); }
.result-card h3 { font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1; font-weight: 500; outline: none; }
.result-card > p { color: #55645e; font-size: 1.04rem; }
.route-recommendations { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 28px 0; }
.recommendation { padding: 18px; border-radius: 16px; background: rgba(47,107,83,.08); }
.recommendation span { display: block; color: var(--green); text-transform: uppercase; font-size: .69rem; letter-spacing: .12em; font-weight: 800; }
.recommendation strong { display: block; margin: 7px 0 3px; }
.recommendation small { color: #617169; }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.result-actions .primary-button { background: var(--green); color: white; box-shadow: none; }
.result-actions .secondary-button { color: var(--ink); border-color: #b5bcb7; }
.resource-paths { margin-top: 38px; padding-top: 28px; border-top: 1px solid #d8d7d1; }
.resource-paths > span { display: block; margin-bottom: 13px; color: #65736d; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; }
.resource-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.resource-link { padding: 16px; border: 1px solid #d5d8d4; border-radius: 15px; text-decoration: none; background: rgba(255,255,255,.52); }
.resource-link strong { display: block; }
.resource-link small { color: #66736d; }
.resource-link:hover { border-color: var(--green); }

.site-footer { width: min(1160px, calc(100% - 40px)); margin: 0 auto; padding: 38px 0 52px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 24px; color: #8e9d96; font-size: .84rem; }
.footer-mark { color: var(--gold-light); font-weight: 800; letter-spacing: -.02em; }

:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 64px; gap: 28px; }
  .hero-visual { min-height: 400px; }
  .section-heading, .route-layout { grid-template-columns: 1fr; gap: 34px; }
  .route-intro { position: static; }
  .episode-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .site-header { width: min(100% - 28px, 1160px); }
  .menu-button { display: block; }
  .nav-links { display: none; position: absolute; top: 68px; right: 0; width: min(290px, 92vw); padding: 20px; background: #1a2924; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); align-items: stretch; flex-direction: column; gap: 14px; }
  .nav-links.is-open { display: flex; }
  .hero, .section-inner, .site-footer { width: min(100% - 28px, 1160px); }
  .hero { min-height: auto; padding: 58px 0 72px; }
  h1 { font-size: clamp(3.35rem, 18vw, 5.1rem); }
  .hero-visual { min-height: 350px; }
  .compass-card { inset: 32px 8px 28px 8px; }
  .compass-note { right: 4px; }
  .section { padding: 78px 0; }
  .episode-grid, .choice-grid, .route-recommendations, .resource-links { grid-template-columns: 1fr; }
  .episode-card { min-height: 270px; }
  .episode-card h3 { margin-top: 42px; }
  .wizard-card, .result-card { border-radius: 24px; }
  .wizard-actions { align-items: stretch; flex-direction: column-reverse; }
  .wizard-actions button { width: 100%; }
  .result-actions { display: grid; }
  .site-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
