@charset "utf-8";

/* Still the Ocean — landing. EB Garamond only. Navy/ivory/teal.
   Rules: full-width or 7rem hero (people rule 4rem). Weight 600 only on .layers__name. */

@font-face {
  font-family: "EB Garamond";
  src: url("/fonts/EBGaramond-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("/fonts/EBGaramond-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --navy: #142634;
  --navy-deep: #0E1C28;
  --ivory: #F5F0E6;
  --teal: #7EAFBA;
  --teal-deep: #2C6E7F;
  --space-1: 0.75rem;
  --space-2: 1.25rem;
  --space-3: 2rem;
  --space-4: 3rem;
  --space-5: 4.5rem;
  --space-6: 7rem;
  --measure-narrow: 34rem;
  --measure-wide: 46rem;
  --gutter: 1.5rem;

  --ink: #1B2A36;
  --ink-on-navy: #EFE7D7;
  --sea: var(--teal-deep);
  --rule: var(--teal);
  --cream: var(--ivory);

  --font: "EB Garamond", "Iowan Old Style", "Palatino Linotype", Palatino,
    "Times New Roman", Times, serif;
  --text-body: 1.1875rem;
  --leading: 1.7;
  --topbar-h: 52px;
  --focus: var(--teal);
  --band-rule: color-mix(in srgb, var(--teal-deep) 45%, transparent);
  --layer-3: color-mix(in srgb, var(--teal-deep) 72%, var(--ivory));
  --layer-4: color-mix(in srgb, var(--teal-deep) 52%, var(--ivory));
  --layer-5: color-mix(in srgb, var(--teal-deep) 32%, var(--ivory));
  --track: 0.16em;
  --track-pull: -0.18em;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--topbar-h);
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: var(--leading);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, figure, blockquote, ul, ol { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

:where(a, button, input, [tabindex]):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

p, li { text-wrap: pretty; }
.display, .hook, .quote, .standfirst,
.hero__hook, .hero__title, .testament-lead, .problem__turn, .coda {
  text-wrap: balance;
}

.tracked,
.btn,
.topbar__title, .topbar__nav a,
.hero__kicker, .hero__byline, .hero__meta,
.section-heading, .section-label, .column__heading,
.person__name, .map-band__label, .map-annot-sound, .write-form__label {
  letter-spacing: var(--track);
  margin-right: var(--track-pull);
  text-transform: uppercase;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: 0; left: 0; z-index: 30;
  transform: translateY(-120%);
  padding: var(--space-1) var(--space-2);
  background: var(--ivory); color: var(--navy);
  font-size: 0.85rem; text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

.wrap { width: 100%; max-width: var(--measure-wide); margin-inline: auto; }
.measure { max-width: var(--measure-narrow); margin-inline: auto; }

.band { padding: var(--space-5) var(--gutter); }
.band--navy {
  background-color: var(--navy);
  background-image: radial-gradient(ellipse 118% 96% at 50% 44%,
    #1a3344 0%, var(--navy) 70%, var(--navy-deep) 100%);
  color: var(--ink-on-navy);
  --band-rule: color-mix(in srgb, var(--teal) 45%, transparent);
  --focus: var(--teal);
}
.band--ivory, .band--cream {
  background: var(--ivory); color: var(--ink);
  --band-rule: color-mix(in srgb, var(--teal-deep) 45%, transparent);
  --focus: var(--teal-deep);
}
.band--ruled { border-top: 1px solid var(--band-rule); }

.rule {
  display: block; width: 100%; max-width: var(--measure-narrow);
  margin: 0 auto; border: 0; border-top: 1px solid var(--teal); height: 0;
}
.rule--hero {
  width: 7rem; max-width: 7rem;
  border-top-color: color-mix(in srgb, var(--teal) 45%, transparent);
}
.mark { display: none !important; }

/* Buttons */
.actions {
  display: flex; flex-direction: column; align-items: center; gap: var(--space-2);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 14rem; min-height: 3.25rem; padding: 0.85rem 1.75rem;
  border: 1px solid transparent; background: transparent;
  font-family: inherit; font-size: 0.8rem; font-weight: 400; line-height: 1;
  text-align: center; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.btn--solid {
  background: var(--ivory); border-color: var(--ivory);
  color: var(--navy); font-weight: 500;
}
.btn--solid:hover { background: var(--teal); border-color: var(--teal); color: var(--navy); }
.btn--ghost {
  border-color: rgba(245, 240, 230, 0.5);
  color: rgba(245, 240, 230, 0.9);
}
.btn--ghost:hover { background: var(--ivory); border-color: var(--ivory); color: var(--navy); }
.btn--dark { border-color: var(--navy); color: var(--navy); }
.btn--dark.btn--solid { background: var(--navy); color: var(--ivory); }
.btn--dark.btn--solid:hover {
  background: var(--teal-deep); border-color: var(--teal-deep); color: var(--ivory);
}
.btn--dark.btn--ghost:hover { background: var(--navy); color: var(--ivory); }
.btn--quiet {
  min-width: 0; width: 100%;
  border-color: rgba(245, 240, 230, 0.35);
  color: rgba(239, 231, 215, 0.85);
}
.btn--quiet:hover { background: var(--ivory); border-color: var(--ivory); color: var(--navy); }

.actions__pdf { display: none; }
.actions__pdf-link {
  display: block; width: 100%;
  color: rgba(239, 231, 215, 0.88); font-size: 0.875rem; letter-spacing: 0.04em;
  text-align: center; text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}
.actions__pdf-link:hover, .actions__pdf-link:focus-visible { color: var(--ink-on-navy); }
.hero .btn--solid, .get .btn--solid { width: 100%; max-width: 100%; }

/* Topbar */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  height: var(--topbar-h);
  background: color-mix(in srgb, var(--navy) 88%, transparent);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  backdrop-filter: blur(10px) saturate(1.1);
  border-bottom: 1px solid color-mix(in srgb, var(--teal) 40%, transparent);
  opacity: 0; visibility: hidden;
  transition: opacity 200ms ease, visibility 0s linear 200ms;
  --focus: var(--ink-on-navy);
}
.topbar.is-visible {
  opacity: 1; visibility: visible;
  transition: opacity 200ms ease, visibility 0s linear 0s;
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-2); height: 100%; padding-inline: var(--gutter);
}
.topbar__title, .topbar__nav a {
  color: rgba(239, 231, 215, 0.72); font-size: 0.7rem;
  white-space: nowrap; text-decoration: none;
}
a.topbar__title:hover, .topbar__nav a:hover { color: var(--ink-on-navy); }
.topbar__nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 1.75rem); }
.topbar__nav a {
  display: inline-flex; align-items: center;
  height: var(--topbar-h); padding-inline: 0.4rem;
  transition: color 160ms ease;
}

/* Hero — order: kicker, title, subtitle, byline, rule, hook, actions, trust */
.hero {
  position: relative; isolation: isolate;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding-block: var(--space-5); padding-inline: var(--gutter);
  padding-bottom: calc(var(--space-5) + var(--space-3) + 32px);
  overflow: hidden; background: var(--navy); color: var(--ink-on-navy);
  --focus: var(--ink-on-navy);
}
.hero__media {
  position: absolute; inset: 0; z-index: -2;
  background-color: var(--navy);
  background-image: url("/img/hero-placeholder.webp");
  background-size: cover; background-position: center bottom;
}
.hero__image {
  width: 100%; height: 100%; object-fit: cover; object-position: center bottom;
  transform-origin: center bottom; will-change: transform;
}
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom,
    transparent 0%, transparent 42%,
    rgba(20, 38, 52, 0.55) 62%, var(--navy) 88%);
}
.hero__inner { width: 100%; max-width: var(--measure-wide); text-align: center; }

.hero__kicker {
  margin: 0 0 var(--space-2); margin-right: var(--track-pull);
  color: var(--teal); font-size: clamp(0.875rem, 0.7rem + 0.5vw, 0.95rem);
}
.hero__title {
  margin: 0 0 var(--space-1);
  color: var(--ivory); font-size: clamp(2.25rem, 9.5vw, 6rem);
  font-weight: 400; letter-spacing: -0.01em; line-height: 1.02;
}
.hero__subtitle {
  margin: 0 0 var(--space-2);
  color: rgba(245, 240, 230, 0.92);
  font-size: clamp(1.0625rem, 4vw, 1.75rem);
  font-style: normal; line-height: 1.35;
}
.hero__byline {
  margin: 0 0 var(--space-3); margin-right: var(--track-pull);
  color: rgba(126, 175, 186, 0.85);
  font-size: clamp(0.875rem, 0.7rem + 0.5vw, 0.95rem);
}
.hero__inner .rule--hero { margin: 0 auto var(--space-3); }
.hero__hook {
  max-width: var(--measure-narrow); margin: 0 auto var(--space-3);
  color: rgba(245, 240, 230, 0.95);
  font-size: clamp(1.3125rem, 5vw, 1.9rem);
  font-style: italic; line-height: 1.4;
}
.hero .actions { margin: 0 0 var(--space-2); }
.hero__meta {
  margin: 0; margin-right: var(--track-pull);
  color: rgba(245, 240, 230, 0.88);
  font-size: clamp(0.875rem, 0.7rem + 0.4vw, 0.9rem);
  line-height: 1.2;
}
.hero__meta span { display: inline; }

.scroll-cue {
  position: absolute; left: 50%; bottom: var(--space-2);
  transform: translateX(-50%);
  display: flex; align-items: flex-end; justify-content: center;
  width: 2rem; height: 32px; text-decoration: none;
}
.scroll-cue::before { content: ""; width: 1px; height: 32px; background: var(--teal); }
.scroll-cue:hover::before, .scroll-cue:focus-visible::before { background: var(--ink-on-navy); }

/* Labels */
.section-intro { margin: 0 auto var(--space-4); text-align: center; }
.section-heading, .section-label {
  margin: 0; margin-right: var(--track-pull);
  font-size: 0.85rem; font-weight: 400; line-height: 1.4;
}
.section-label--people, .people__heading.section-label--people {
  color: var(--ivory); font-size: clamp(0.95rem, 3.4vw, 1.1rem);
}
.people__rule {
  display: block; width: 4rem; max-width: 4rem; height: 0;
  margin: var(--space-2) auto 0;
  border: 0; border-top: 1px solid color-mix(in srgb, var(--teal) 55%, transparent);
}

/* Problem / what — type ladder */
.problem { padding-bottom: 0; }
.problem .measure { text-align: left; }
.problem__lede {
  margin: 0;
  color: var(--ivory); font-size: 1.1875rem; line-height: 1.7;
  text-align: center;
  text-wrap: balance;
}
.problem__body {
  margin-top: var(--space-5);
  color: rgba(245, 240, 230, 0.78); font-size: 1.0625rem; line-height: 1.7;
}
.problem .opening { font-variant: small-caps; letter-spacing: 0.07em; }
.problem__turn {
  max-width: var(--measure-narrow); margin: var(--space-4) 0;
  color: var(--ivory); font-size: 1.25rem; font-style: italic; line-height: 1.55;
  text-align: left;
}
.what { padding-top: var(--space-5); }
.columns { display: grid; gap: var(--space-4); }
.column__heading {
  margin-bottom: var(--space-2); padding-bottom: var(--space-1);
  border-bottom: 1px solid color-mix(in srgb, var(--teal) 40%, transparent);
  color: var(--teal); font-size: 0.8rem; font-weight: 400; line-height: 1.4;
}
.column p {
  color: rgba(245, 240, 230, 0.78); font-size: 1rem; line-height: var(--leading);
}
.coda {
  margin: var(--space-5) 0 0;
  color: var(--ivory); font-size: 1.25rem; font-style: italic;
  line-height: 1.55; text-align: center;
}

/* Testament */
.testament-band { padding-block: var(--space-6); }
.testament {
  max-width: var(--measure-narrow); margin-inline: auto; text-align: center;
}
.testament__rule {
  display: block; width: 4rem; max-width: 4rem; height: 0;
  margin: 0 auto var(--space-3);
  border: 0; border-top: 1px solid color-mix(in srgb, var(--teal) 55%, transparent);
}
.testament-lead {
  margin: 0;
  color: var(--ivory); font-size: clamp(1.3125rem, 5vw, 1.75rem);
  font-style: italic; line-height: 1.5;
}
.testament-close {
  margin: var(--space-3) 0 0;
  color: rgba(245, 240, 230, 0.72);
  font-size: clamp(1rem, 3.6vw, 1.0625rem); line-height: 1.55;
}

/* Map — contiguous ramp */
:root { --map-rail: 0; }
.map__caption {
  max-width: var(--measure-narrow); margin: 0 auto var(--space-4);
  color: var(--ink); font-size: 1.25rem; line-height: 1.55; text-align: center;
}
.map-layout {
  display: grid;
  grid-template-columns: var(--map-rail) 1fr;
  column-gap: 0;
  width: 100%; max-width: var(--measure-wide); margin-inline: auto;
  position: relative; overflow: visible;
}
.map-rail { display: none; }
.map-stack {
  grid-column: 2; display: flex; flex-direction: column; gap: 0;
  min-width: 0;
  position: relative;
}
.map-band {
  position: relative; margin: 0; width: 100%;
  padding: var(--space-3);
  display: flex; flex-direction: column;
  box-sizing: border-box;
}
.map-band__label {
  margin: 0 0 var(--space-1);
  font-size: 0.75rem; line-height: 1.3; opacity: 0.7;
}
.map-band__name {
  margin: 0 0 0.5rem;
  font-size: 1.125rem; font-weight: 600; line-height: 1.25;
  letter-spacing: 0; margin-right: 0; text-transform: none;
}
.map-band__def {
  margin: 0 0 0.375rem;
  font-size: 0.9375rem; line-height: 1.4; font-weight: 400;
}
.map-band__inyou {
  margin: 0;
  font-size: 0.9375rem; font-style: italic; line-height: 1.4; opacity: 0.85;
}
/* Wave strip: sibling above Surface (not wrapping the rail label).
   Source six-layers.png: crest-to-trough 38px; main period (trough–trough) 385px.
   Scale → 18px amp, wavelength 182px (ratio ≈10.1; was 160 at 8.9). */
.map-wave {
  display: block;
  flex: 0 0 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  border: 0;
  line-height: 0;
  font-size: 0;
  position: relative;
  z-index: 1;
  pointer-events: none;
  background-color: transparent;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxODIgMTgiIHdpZHRoPSIxODIiIGhlaWdodD0iMTgiPjxwYXRoIGZpbGw9IiMwRjIyMzEiIGQ9Ik0wIDE4QzIwIDE4IDI1IDE3IDQwIDE2QzUwIDE1IDU1IDEwIDYzLjcgOC41M0M3Mi44IDMuNzkgODEuOSAuNDcgOTEgMEMxMDAuMSAzLjc5IDEwOS4yIDkgMTE4LjMgMTMuNzRDMTMwIDE3IDE0NSAxOCAxNjIgMThDMTcyIDE4IDE3OCAxOCAxODIgMThMMTgyIDE4LjVIMFoiLz48L3N2Zz4=");
  background-repeat: repeat-x;
  background-size: 182px 18px;
  background-position: 0 0;
}
.map-band--surface {
  background: #0F2231;
  color: var(--ivory);
  /* Paint 1px above the band edge to cover the strip/band AA seam (no layout shift). */
  box-shadow: 0 -1px 0 0 #0F2231;
}
.map-band--luminous { background: #2C6E7F; color: var(--ivory); }
.map-band--blueprint { background: #5E97A4; color: var(--navy); }
.map-band--balance {
  background: #8FBAC2; color: var(--navy);
  border-top: 1px dashed var(--teal-deep);
}
.map-band--puresound { background: #BBD6D9; color: var(--navy); }
.map-band--nameless { background: #DDE8E7; color: var(--navy); }

.map-band__gate {
  position: static; margin: 0 0 var(--space-1);
  color: rgba(20, 38, 52, 0.65); font-size: 0.75rem; font-style: italic;
  line-height: 1.3; text-align: right;
  letter-spacing: 0; text-transform: none; margin-right: 0;
}
.map-band__label--mobile { display: block; }
.map-sound-block { position: relative; display: flex; flex-direction: column; gap: 0; }
.map-annot-sound { display: none; }
.map-rail__heading { display: none; }
.map-home-mobile {
  margin: var(--space-2) 0 0;
  color: rgba(20, 38, 52, 0.55); font-size: 0.8125rem; font-style: italic;
  text-align: center;
}

/* People */
.people__intro { max-width: var(--measure-wide); margin: 0 auto; text-align: center; }
.people-standfirst {
  max-width: 24rem; margin: var(--space-2) auto var(--space-5);
  color: rgba(245, 240, 230, 0.88);
  font-size: clamp(1.125rem, 4.2vw, 1.25rem); font-style: italic; line-height: 1.5;
  text-wrap: balance;
}
.person {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: var(--space-3); max-width: var(--measure-wide); margin-inline: auto;
}
.person + .person {
  margin-top: var(--space-5); padding-top: var(--space-4);
  border-top: 1px solid color-mix(in srgb, var(--teal) 30%, transparent);
}
.person.person--mehi {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
}

.portrait, .person__portrait {
  flex: 0 0 auto; width: min(200px, 100%); aspect-ratio: 4 / 5; height: auto;
  object-fit: cover; border: none; filter: saturate(0.88) contrast(1.03);
}
.portrait--balmiki, .person__portrait--balmiki {
  width: min(200px, 100%); aspect-ratio: 1 / 1; object-fit: cover; object-position: center;
}
.portrait--mehi, .person__portrait--mehi {
  width: min(260px, 100%); object-position: center 20%;
}
.person__body { flex: 1 1 auto; min-width: 0; }
.person__name { margin: 0 0 var(--space-2); font-weight: 400; line-height: 1.35; }
.person__name--1 { font-size: 0.8rem; }
.person__name--2 { font-size: 0.875rem; }
.person__name--3 { margin-bottom: 0; font-size: 0.95rem; }
.person__dates {
  display: block; margin: 0.25rem 0 var(--space-2); margin-right: 0;
  color: rgba(245, 240, 230, 0.7); font-size: 0.8125rem;
  font-style: normal; letter-spacing: 0; text-transform: none;
}
.person__body p + p { margin-top: var(--space-2); }
.people__coda {
  max-width: var(--measure-wide); margin: var(--space-3) auto 0;
  color: rgba(245, 240, 230, 0.78);
  font-size: 1.0625rem; font-style: italic; line-height: 1.5; text-align: center;
}

/* Get the book */
.get .actions { margin-bottom: 0; }
.hp {
  position: absolute; left: -10000px; top: auto; width: 1px; height: 1px;
  overflow: hidden;
}

/* Further / footer */
.further { padding-block: var(--space-5); }
.further .section-heading { color: var(--ink); }
.further .measure p + p { margin-top: var(--space-3); }
.further__action { margin-top: var(--space-4); text-align: center; }

.site-footer {
  padding-block: var(--space-5); text-align: center;
  border-top: 1px solid color-mix(in srgb, var(--teal) 35%, transparent);
}
.site-footer__title { margin-bottom: var(--space-1); font-size: 0.95rem; line-height: 1.45; }
.site-footer__title em { font-style: italic; }
.site-footer__legal, .site-footer__colophon, .site-footer__contact {
  color: rgba(239, 231, 215, 0.72); font-size: 0.8125rem; line-height: 1.55;
}
.site-footer__legal, .site-footer__colophon { margin-bottom: var(--space-1); }
.site-footer__contact a { color: inherit; text-decoration: underline; text-underline-offset: 0.15em; }

/* Write / privacy pages */
.page-prose {
  max-width: var(--measure-narrow); margin: 0 auto;
  padding: var(--space-6) var(--gutter) var(--space-5);
  color: var(--ink-on-navy);
}
.page--sub .page-prose {
  padding-top: calc(var(--topbar-h) + var(--space-5));
}
.page-prose__kicker {
  display: inline-block; margin: 0 0 var(--space-3);
  color: var(--teal); font-size: 0.75rem; text-decoration: none;
}
.page-prose__kicker:hover { color: var(--ivory); }
.page-prose h1 {
  margin: 0 0 var(--space-3);
  font-size: clamp(1.5rem, 5vw, 2rem); font-weight: 400; line-height: 1.2;
}
.page-prose p + p, .page-prose p + ul { margin-top: var(--space-3); }
.page-prose ul { padding-left: 1.25rem; }
.page-prose a { color: var(--teal); }
.page-prose__standfirst {
  margin: 0 0 var(--space-3);
  color: rgba(245, 240, 230, 0.88);
  font-size: clamp(1.0625rem, 3.5vw, 1.1875rem); font-style: italic; line-height: 1.5;
}
.page-prose__body { color: rgba(245, 240, 230, 0.78); font-size: 1.0625rem; line-height: 1.6; }
.page-prose__meta {
  margin: var(--space-4) 0 var(--space-3);
  color: rgba(245, 240, 230, 0.65); font-size: 0.875rem; line-height: 1.5;
}
.write-portrait {
  display: block; width: 96px; aspect-ratio: 1 / 1; height: auto;
  margin: 0 0 var(--space-3); object-fit: cover; object-position: center;
  border: none; filter: saturate(0.88) contrast(1.03);
}
@media (min-width: 600px) {
  .write-portrait { width: 120px; }
}
.write-form {
  display: flex; flex-direction: column; gap: 0; margin-top: 0;
}
.write-form__field { margin-bottom: var(--space-3); }
.write-form__label {
  display: block; margin: 0 0 var(--space-1);
  color: var(--teal); font-size: 0.75rem;
}
.write-form__label .req {
  color: var(--teal); letter-spacing: 0; margin-right: 0; text-transform: none;
}
.write-form input, .write-form textarea {
  width: 100%; min-height: 3rem; padding: 0.65rem 0.85rem;
  border: 1px solid rgba(245, 240, 230, 0.35); border-radius: 0;
  background: transparent; color: var(--ink-on-navy);
  font-family: inherit; font-size: 1rem;
  transition: border-color 160ms ease;
}
.write-form textarea { min-height: 9rem; resize: vertical; }
.write-form input:focus, .write-form textarea:focus {
  outline: none; border-color: var(--teal);
}
.write-form input.is-invalid, .write-form textarea.is-invalid {
  border-color: color-mix(in srgb, var(--teal) 70%, var(--ivory));
}
.write-form__hint {
  margin: var(--space-1) 0 0;
  color: rgba(245, 240, 230, 0.6); font-size: 0.8125rem; line-height: 1.4;
}
.write-form__error {
  margin: var(--space-1) 0 0;
  color: var(--teal); font-size: 0.8125rem; line-height: 1.4;
}
.write-form__actions { margin-top: var(--space-2); }
.write-form__actions .btn { width: 100%; }
@media (min-width: 480px) {
  .write-form__actions .btn { width: auto; }
}
.write-form__status {
  margin-top: var(--space-3); font-size: 0.9375rem; line-height: 1.5;
  color: rgba(245, 240, 230, 0.88);
}
.write-closing {
  margin-top: var(--space-4);
  color: rgba(245, 240, 230, 0.72); font-size: 0.875rem;
}
.write-closing a { color: var(--teal); }

/* ≥480px */
@media (min-width: 480px) {
  .actions { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .actions__pdf { display: inline-flex; }
  .actions__pdf-link { display: none; }
  .hero .btn--solid, .get .btn--solid { width: auto; }
  .btn--quiet { width: auto; min-width: 8rem; }
}

/* ≥600px */
@media (min-width: 600px) {
  :root { --track: 0.2em; --track-pull: -0.22em; }

  .hero {
    justify-content: center;
    padding-top: var(--space-5);
  }
  .hero__kicker { margin-bottom: var(--space-3); }
  .hero__title { margin-bottom: var(--space-2); }
  .hero__subtitle { margin-bottom: var(--space-3); }
  .hero__byline { margin-bottom: var(--space-4); }
  .hero__inner .rule--hero { margin-bottom: var(--space-4); }
  .hero__hook { margin-bottom: var(--space-4); }
  .hero .actions { margin-bottom: var(--space-3); }

  .problem__lede { font-size: 1.375rem; }
  .problem__body { font-size: 1.125rem; }
  .problem__turn { font-size: 1.5rem; }
  .column__heading { font-size: 0.85rem; }
  .column p { font-size: 1.0625rem; }
  .coda { font-size: 1.5rem; }

  .map-layout {
    /* Three rail lanes L→R: wayhome | line | labels, 0.75rem clear between each.
       Label lane: 9rem text + 0.75rem pad before bracket stems. */
    --map-lane-gap: 0.75rem;
    --map-wayhome-lane: 1.25rem;
    --map-label-lane: 9.75rem;
    --map-label-gutter: 0.75rem;
    --map-label-bracket-gap: 0.75rem;
    --map-rail: calc(
      var(--map-wayhome-lane) + var(--map-lane-gap) + 1px +
      var(--map-lane-gap) + var(--map-label-lane) + var(--map-label-gutter)
    );
    --map-bracket: color-mix(in srgb, var(--teal-deep) 55%, transparent);
    --map-line: color-mix(in srgb, var(--teal-deep) 45%, transparent);
    grid-template-columns: var(--map-rail) 1fr;
    column-gap: 0;
  }
  .map-rail {
    display: flex; grid-column: 1;
    align-items: stretch; justify-content: flex-start;
    align-self: stretch;
  }
  .map-rail__descent {
    position: relative;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    z-index: 2;
    /* Keep line out of the label lane: reserve gap + labels + gutter after the line */
    padding-right: calc(var(--map-lane-gap) + var(--map-label-lane) + var(--map-label-gutter));
  }
  .map-rail__line {
    position: absolute;
    left: calc(var(--map-wayhome-lane) + var(--map-lane-gap));
    top: 0; bottom: 0;
    width: 1px;
    background: var(--map-line);
  }
  .map-rail__line::after {
    content: "";
    position: absolute; left: 50%; bottom: 0;
    transform: translateX(-50%);
    width: 0; height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 10px solid var(--map-line);
  }
  .map-rail__wayhome {
    position: absolute;
    left: 0;
    width: var(--map-wayhome-lane);
    top: 50%;
    writing-mode: vertical-rl;
    transform: translateY(-50%) rotate(180deg);
    margin: 0; color: var(--map-line);
    font-size: 0.75rem; font-style: italic; line-height: 1.2;
    letter-spacing: 0.04em;
    text-align: center;
    box-sizing: border-box;
  }
  .map-home-mobile { display: none; }
  .map-stack { grid-column: 2; overflow: visible; }

  /* Column heading: left of ivory above Surface, above first bracket */
  .map-rail__heading {
    display: block;
    position: absolute;
    right: calc(100% + var(--map-label-gutter));
    width: var(--map-label-lane);
    top: 0;
    margin: 0;
    padding: 0 var(--map-label-bracket-gap) 0 0;
    font-size: 1.0625rem; font-weight: 700; font-style: normal;
    line-height: 1.25; letter-spacing: 0; text-transform: none;
    text-align: left;
    /* Only Regular is shipped; thicken so it reads heavier than band names (600). */
    text-shadow: 0.04em 0 0 currentColor, -0.02em 0 0 currentColor;
    color: rgba(20, 38, 52, 0.7);
    box-sizing: border-box;
    pointer-events: none;
    z-index: 2;
  }

  .map-band {
    display: flex; flex-direction: column;
    padding: var(--space-3) var(--space-4);
    overflow: visible;
  }
  .map-band__label {
    position: absolute;
    right: calc(100% + var(--map-label-gutter));
    top: 0; bottom: 0;
    width: var(--map-label-lane);
    margin: 0;
    padding: 0 var(--map-label-bracket-gap) 0 0;
    display: flex; align-items: center; justify-content: flex-end;
    text-align: right;
    box-sizing: border-box;
    z-index: 2;
    pointer-events: none;
    color: rgba(20, 38, 52, 0.7);
    opacity: 1;
  }
  .map-band__name, .map-band__def, .map-band__inyou { grid-column: auto; }

  /* Brackets: vertical 0.75rem left of bands; 0.5rem returns toward bands.
     Surface / Luminous / Nameless: one band each. Sound: Blueprint→Pure Sound. */
  .map-band--surface::before,
  .map-band--luminous::before,
  .map-band--nameless::before,
  .map-sound-block::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    right: calc(100% + 0.25rem);
    width: 0.5rem;
    box-sizing: border-box;
    border-left: 1px solid var(--map-bracket);
    border-top: 1px solid var(--map-bracket);
    border-bottom: 1px solid var(--map-bracket);
    pointer-events: none;
    z-index: 1;
  }

  .map-annot-sound {
    display: flex; align-items: center; justify-content: flex-end;
    position: absolute; z-index: 1;
    right: calc(100% + var(--map-label-gutter));
    top: 0; bottom: 0;
    width: var(--map-label-lane);
    margin: 0;
    padding: 0 var(--map-label-bracket-gap) 0 0;
    font-size: 0.75rem; line-height: 1.3;
    color: rgba(20, 38, 52, 0.7); opacity: 1; text-align: right;
    box-sizing: border-box;
    pointer-events: none;
  }
  .map-band__label--mobile { display: none; }
  .map-band__gate {
    position: absolute; right: var(--space-4); top: 0.5rem;
    margin: 0; max-width: 55%;
  }

  .person { flex-direction: row; align-items: flex-start; gap: var(--space-4); }
  .person--no-portrait { flex-direction: column; }
  .person__name--1 { font-size: 0.85rem; }
  .person__name--2 { font-size: 0.95rem; }
  .person__name--3 { font-size: 1.05rem; }
}

/* ≥48em columns */
@media (min-width: 48em) {
  .columns { grid-template-columns: repeat(3, 1fr); gap: var(--space-4) var(--space-3); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__image { animation: hero-drift 48s ease-in-out infinite alternate; }
}
@keyframes hero-drift {
  from { transform: scale(1); }
  to { transform: scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__image, .btn, .topbar, .topbar__nav a {
    animation: none !important; transition: none !important;
  }
}

@media print {
  .topbar, .scroll-cue, .skip-link { display: none !important; }
  body { background: white; color: black; }
  .band--navy, .hero { background: white !important; color: black !important; }
  .hero__media, .hero__scrim { display: none; }
  a { text-decoration: underline; }
}
