:root {
  --forest: #132c20;
  --forest-light: #1c3c2b;
  --panel: #273f33;
  --gold: #c8a45d;
  --cream: #fffaf1;
  --sage: #d9e0d9;
  --community-surface: rgba(217, 224, 217, .52);
  --ink-muted: var(--forest-light);
  --line: var(--sage);
  --display: Georgia, "Times New Roman", serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --space-1: .5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 6rem;
  --space-8: 8rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--forest); font-family: var(--body); font-size: 1rem; line-height: 1.6; font-kerning: normal; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.skip-link { position: fixed; top: -5rem; left: var(--space-2); z-index: 10; background: var(--cream); color: var(--forest); padding: .75rem 1rem; font-weight: 700; }
.skip-link:focus { top: var(--space-2); }

.site-header, .hero, .multiplication, .routes, .boundary, .site-footer { padding-inline: max(1.5rem, calc((100vw - 76rem) / 2)); }
.site-header { min-height: 5.25rem; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.wordmark { color: var(--forest); font-size: .82rem; font-weight: 800; letter-spacing: .13em; text-decoration: none; }
.wordmark span { color: var(--gold); }
.header-link, .text-link { min-height: 44px; display: inline-flex; align-items: center; gap: .55rem; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.header-link:hover, .text-link:hover { color: var(--forest-light); }

.hero { min-height: 43rem; padding-top: clamp(4rem, 11vw, 10rem); padding-bottom: var(--space-7); display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(19rem, .78fr); gap: clamp(3rem, 9vw, 9rem); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; left: max(1.5rem, calc((100vw - 76rem) / 2)); top: 18%; bottom: 0; width: 1px; background: var(--gold); }
.hero::after { content: ""; width: .7rem; height: .7rem; border-radius: 50%; background: var(--gold); position: absolute; left: calc(max(1.5rem, (100vw - 76rem) / 2) - .3rem); top: 18%; }
.hero-copy { padding-left: clamp(1.5rem, 4vw, 4rem); position: relative; z-index: 1; }
.eyebrow, .standard-label, .route-label { margin: 0 0 var(--space-3); font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow { color: var(--forest-light); }
.eyebrow--gold { color: var(--gold); }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; letter-spacing: -.055em; line-height: .94; text-wrap: balance; }
h1 { max-width: 8ch; font-size: clamp(4rem, 10vw, 8.8rem); }
h1 em { color: var(--gold); font-style: italic; }
.lede { max-width: 40rem; margin: var(--space-4) 0 var(--space-3); color: var(--forest-light); font-size: clamp(1.06rem, 1.6vw, 1.25rem); line-height: 1.65; text-wrap: pretty; }
.elite-standard { align-self: end; border: 1px solid var(--gold); background: var(--forest); color: var(--cream); padding: var(--space-4); position: relative; }
.elite-standard::before { content: ""; height: .35rem; width: 4.6rem; background: var(--gold); position: absolute; top: 0; right: 1.5rem; }
.standard-label { color: var(--gold); }
.elite-standard ol { list-style: none; padding: 0; margin: 0; }
.elite-standard li { display: grid; grid-template-columns: 2.2rem 1fr; gap: .6rem; align-items: center; border-top: 1px solid rgba(217, 224, 217, .26); padding: .68rem 0; }
.elite-standard strong { color: var(--gold); font-family: var(--display); font-size: 1.8rem; font-weight: 400; line-height: 1; }
.elite-standard span { color: var(--sage); font-size: .86rem; font-weight: 600; line-height: 1.35; }

.multiplication { background: var(--forest); color: var(--cream); padding-top: var(--space-7); padding-bottom: var(--space-7); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, .8fr); gap: var(--space-6); position: relative; overflow: hidden; }
.multiplication h2, .routes h2 { font-size: clamp(2.8rem, 5.5vw, 5rem); }
.movement-copy { max-width: 32rem; padding-top: 2.6rem; }
.movement-copy p { margin: 0 0 var(--space-3); color: var(--sage); font-size: 1.08rem; letter-spacing: .01em; }
.text-link--cream { color: var(--cream); }
.text-link--cream:hover { color: var(--gold); }
.number-line { grid-column: 1 / -1; display: flex; align-items: center; color: var(--gold); font-family: var(--display); font-size: clamp(1.35rem, 2.5vw, 2rem); }
.number-line span { min-width: 4.5rem; height: 2.8rem; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; padding-inline: .75rem; font-size: .72em; }
.number-line i { width: min(12vw, 10rem); height: 1px; background: var(--gold); position: relative; }
.number-line i::after { content: "→"; position: absolute; right: -.18rem; top: 50%; translate: 0 -58%; background: var(--forest); padding-left: .2rem; font-family: var(--body); font-size: .85rem; }

.routes { padding-top: var(--space-8); padding-bottom: var(--space-8); }
.routes-intro { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(18rem, .8fr); gap: var(--space-5); padding-bottom: var(--space-6); border-bottom: 1px solid var(--line); }
.routes-intro .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.routes-intro p:last-child { max-width: 30rem; color: var(--ink-muted); margin: 0; font-size: 1.08rem; }
.fit-guide { margin: var(--space-5) 0 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.fit-guide li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: var(--space-3); padding: var(--space-4) 0; border-bottom: 1px solid var(--line); }
.fit-guide__not-yet { color: var(--forest); margin-top: var(--space-2); padding-inline: var(--space-3) !important; background: var(--community-surface); border: 1px solid var(--line) !important; }
.fit-number { color: var(--gold); font-family: var(--display); font-size: 1.8rem; line-height: 1; }
.fit-guide h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.fit-guide p { max-width: 44rem; margin: var(--space-1) 0 0; color: var(--ink-muted); }
.community-kicker { margin: 0 0 var(--space-1) !important; color: var(--forest-light) !important; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.community-link { min-height: 44px; width: fit-content; display: inline-flex; align-items: center; gap: .55rem; margin-top: var(--space-3); padding: .75rem 1rem; border: 1px solid var(--forest); color: var(--forest); font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.community-link:hover { background: var(--forest); color: var(--cream); }
.community-boundary { font-size: .82rem; line-height: 1.5; color: var(--forest) !important; }
.route-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: var(--space-5); background: var(--cream); }
.route { min-height: 36rem; padding: clamp(1.75rem, 4vw, 3.5rem); display: flex; flex-direction: column; position: relative; }
.route--authority { background: var(--panel); color: var(--cream); }
.route--academy { background: var(--forest-light); color: var(--cream); }
.route-number { color: var(--gold); font-family: var(--display); font-size: 1.4rem; line-height: 1; margin-bottom: var(--space-6); }
.route-label { color: var(--gold); }
.route h3 { font-size: clamp(2.15rem, 3.7vw, 3.6rem); max-width: 12ch; }
.route > p:not(.route-label) { color: var(--sage); max-width: 35rem; margin: var(--space-4) 0 var(--space-3); }
.route ul { padding: 0; margin: 0 0 var(--space-5); list-style: none; color: var(--sage); font-size: .9rem; }
.route li { padding: .65rem 0 .65rem 1.15rem; border-top: 1px solid rgba(217, 224, 217, .3); position: relative; }
.route li::before { content: ""; width: .4rem; height: .4rem; position: absolute; left: 0; top: 1.2rem; background: var(--gold); border-radius: 50%; }
.button { min-height: 3rem; width: fit-content; margin-top: auto; display: inline-flex; align-items: center; gap: .75rem; padding: .8rem 1rem; font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.button--gold { background: var(--gold); color: var(--forest); }
.button--cream { background: var(--cream); color: var(--forest); }
.button:hover { box-shadow: inset 0 0 0 1px var(--forest); }
.route-handoff { max-width: 30rem; margin: var(--space-2) 0 0; color: var(--sage); font-size: .78rem; line-height: 1.45; }

.boundary { border-top: 1px solid var(--line); padding-top: var(--space-6); padding-bottom: var(--space-7); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(19rem, .95fr); gap: var(--space-5); }
.boundary .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.boundary h2 { max-width: 15ch; font-size: clamp(2.2rem, 4vw, 3.8rem); }
.boundary p:last-child { max-width: 32rem; margin: .8rem 0 0; color: var(--ink-muted); }

.site-footer { min-height: 5.5rem; display: flex; justify-content: space-between; align-items: center; background: var(--forest); color: var(--cream); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--gold); text-decoration: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (hover: hover) {
  .route { transition: transform .2s ease, background .2s ease; }
  .route:hover { transform: translateY(-.4rem); }
}

@media (max-width: 760px) {
  .site-header { min-height: 4.75rem; }
  .header-link { font-size: .68rem; }
  .hero { min-height: 0; grid-template-columns: 1fr; gap: var(--space-6); padding-top: var(--space-6); padding-bottom: var(--space-6); }
  .hero::before { top: 11%; }
  .hero::after { top: 11%; }
  .hero-copy { padding-left: 1.25rem; }
  h1 { font-size: clamp(3.6rem, 18vw, 5.5rem); }
  .elite-standard { margin-left: 1.25rem; }
  .multiplication, .routes-intro, .boundary { grid-template-columns: 1fr; gap: var(--space-4); }
  .movement-copy { padding-top: 0; }
  .number-line { width: 100%; justify-content: space-between; }
  .number-line span { min-width: 0; height: 2.35rem; flex: 0 1 auto; padding-inline: .45rem; font-size: .58em; }
  .number-line i { min-width: .45rem; width: auto; flex: 1 1 auto; }
  .routes { padding-top: var(--space-7); padding-bottom: var(--space-7); }
  .routes-intro .eyebrow, .boundary .eyebrow { grid-column: auto; }
  .fit-guide li { grid-template-columns: 3.5rem minmax(0, 1fr); gap: var(--space-2); }
  .fit-guide__not-yet { padding-inline: var(--space-2) !important; }
  .route-grid { grid-template-columns: 1fr; gap: var(--space-2); background: transparent; }
  .route { min-height: 0; }
  .route-number { margin-bottom: var(--space-5); }
  .route h3 { font-size: clamp(2.25rem, 12vw, 3.5rem); }
  .button { width: 100%; justify-content: space-between; }
  .site-footer { min-height: 7.5rem; align-items: flex-start; flex-direction: column; justify-content: center; gap: .5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .route { transition: none; }
}
