/* =========================================================================
   Whisper — version two, in the Interface Craft manner.

   The same words as index.html, arranged the opposite way. Where v1 is a wide
   page that changes colour under you and holds its objects in pills, this one
   is a single narrow column on one warm near-black ground the whole way down.
   Its rules are:

   · one measure, centred, about 62 characters — nothing runs wider except the
     artefact rows, which are the only things allowed to breach it
   · a serif for anything that is a statement (headings, quotes, figures) and
     the sans only for reading text and labels
   · type stays small: the largest thing on the page is 50px, not 90
   · sections are separated by a short centred hairline, not by a colour change
   · no ground system, no floating bar, no parallax — the restraint is the
     design
   ========================================================================= */

@font-face {
  font-family: "TeX Gyre Heros";
  src: url("fonts/texgyreheros-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --bg:      #0C0A09;   /* warm near-black, constant for the whole page */
  --fg:      #E7E5E4;   /* warm off-white — never pure #FFF */
  --fg-mid:  #A8A29E;   /* reading text and anything secondary */
  --fg-dim:  #78716C;   /* sources, labels, the quietest tier */
  --rule:    rgba(231, 229, 228, .12);
  --raised:  rgba(231, 229, 228, .04);

  --sans:  "TeX Gyre Heros", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "EB Garamond", Georgia, "Times New Roman", serif;

  --measure: 62ch;
  --wide: 1100px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, blockquote, figure, ol, ul { margin: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 12px 16px;
  background: var(--fg);
  color: var(--bg);
}
.skip:focus { left: 8px; top: 8px; z-index: 10; }

.vh {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

:focus-visible { outline: 2px solid #00D9FF; outline-offset: 3px; border-radius: 4px; }

/* ── Header ─────────────────────────────────────────────────────────────
   No nav: this page is one column read top to bottom, so a section stepper
   would be pointing at a place the reader is already going. The mark and the
   one action are the whole header. */
.head {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: linear-gradient(to bottom, var(--bg) 55%, rgba(12, 10, 9, 0));
}
.head__mark { display: inline-flex; }
.logo { height: 22px; width: calc(22px * 351.4 / 92.3); fill: currentColor; }

/* ── The column ─────────────────────────────────────────────────────────── */

.band {
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: 24px;
  padding-block: 72px;
}
.band--open { padding-top: 40px; text-align: center; }
/* the only things that may run wider than the measure are the artefact rows */
.band--wide { max-width: var(--wide); text-align: center; }

/* the hairline that separates one movement from the next — short and centred,
   so it reads as punctuation rather than as a border */
.mark {
  width: 40px;
  height: 1px;
  margin: 0 auto 56px;
  border: 0;
  background: var(--rule);
}

/* ── Type ───────────────────────────────────────────────────────────────── */

.display {
  font-family: var(--serif);
  font-size: clamp(34px, 5.4vw, 50px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  font-weight: 400;
  margin-bottom: 20px;
}
.display .arrow { font-family: var(--sans); font-size: .8em; }

.h {
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.005em;
  font-weight: 400;
  margin-bottom: 24px;
}
.h3 {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 400;
  margin-bottom: 12px;
}
.h--mid { text-align: center; }
.tm { font-size: .42em; vertical-align: .95em; }

.lede { color: var(--fg-mid); max-width: 46ch; margin-inline: auto; }
.band p { color: var(--fg-mid); }
.band p + p { margin-top: 20px; }
.mid { text-align: center; max-width: 54ch; margin-inline: auto; }

/* the one line in the Bartow story that turns it */
.turn { color: var(--fg) !important; font-family: var(--serif); font-size: 21px; line-height: 1.35; }

.kicker {
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 20px;
}
.kicker--mid { text-align: center; }
.src { font-size: 13px; line-height: 1.5; color: var(--fg-dim) !important; margin-top: 12px; }
.meta { margin-top: 28px; font-size: 13px; color: var(--fg-dim) !important; }

/* ── Controls ───────────────────────────────────────────────────────────── */

.row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.band--open .row { justify-content: center; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 14px;
  line-height: 20px;
  color: var(--fg);
  background: var(--raised);
  box-shadow: inset 0 0 0 1px var(--rule);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.pill:hover { background: rgba(231, 229, 228, .09); }
.pill--solid {
  background: var(--fg);
  color: var(--bg);
  box-shadow: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
}
.pill--solid:hover { background: #FFFFFF; }

.under { color: var(--fg); border-bottom: 1px solid var(--rule); padding-bottom: 2px; }
.under:hover { border-color: var(--fg); }

/* ── Artefact rows ──────────────────────────────────────────────────────
   The one place the page gets loose: photographs and cards laid out as objects
   with a slight hand-set angle, the way a library lays out its holdings. */

.spread {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.spread img {
  width: min(190px, 40vw);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px var(--rule), 0 18px 40px -22px rgba(0, 0, 0, .8);
  transform: rotate(var(--r, 0deg)) translateY(var(--lift, 0));
  transition: transform .4s var(--ease);
}
.spread img:hover { transform: rotate(0deg) translateY(-6px); }

.boxshot { margin-top: 32px; }
.boxshot img {
  width: min(420px, 80vw);
  margin-inline: auto;
  border-radius: 12px;
}

.deck {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}
.deck::-webkit-scrollbar { display: none; }
.deck img {
  flex: 0 0 168px;
  border-radius: 8px;
  scroll-snap-align: center;
}

.slot {
  margin-top: 32px;
  aspect-ratio: 3 / 2;
  border-radius: 12px;
  background: var(--raised);
  box-shadow: inset 0 0 0 1px var(--rule);
  display: grid;
  place-items: center;
  font-size: 13px;
  color: var(--fg-dim);
}

/* ── Figures ────────────────────────────────────────────────────────────── */

.figs { margin-top: 40px; display: grid; gap: 32px; }
@media (min-width: 640px) { .figs { grid-template-columns: 1fr 1fr; } }
.fig {
  font-family: var(--serif);
  font-size: 54px;
  line-height: 1;
  color: var(--fg) !important;
}
.figlabel { margin-top: 8px; }

/* ── Quotes ─────────────────────────────────────────────────────────────
   Centred and set in the serif, with the attribution small and sans beneath —
   the page's one recurring shape. */
.said { margin-top: 48px; text-align: center; }
.said--tight { margin-top: 32px; }
.said blockquote {
  font-family: var(--serif);
  font-size: clamp(19px, 2.2vw, 23px);
  line-height: 1.38;
  color: var(--fg);
  max-width: 46ch;
  margin-inline: auto;
}
.said figcaption {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--fg-dim);
}
.av { width: 22px; height: 22px; border-radius: 999px; background: var(--av, var(--fg-dim)); }

/* the surgeon general's line: a statement, but a cited one, so it sits in a
   panel rather than floating like the student quotes */
.note {
  margin-top: 40px;
  padding: 28px;
  border-radius: 12px;
  background: var(--raised);
  box-shadow: inset 0 0 0 1px var(--rule);
}
.note blockquote { font-family: var(--serif); font-size: 21px; line-height: 1.36; }
.note figcaption { margin-top: 14px; font-size: 13px; color: var(--fg-dim); }

/* ── Lists ──────────────────────────────────────────────────────────────── */

.names {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 14px;
  color: var(--fg-dim);
}

.steps { list-style: none; padding: 0; margin-top: 32px; display: grid; gap: 32px; }
.steps--tight { gap: 24px; }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; }
.steps__no {
  font-size: 12px;
  line-height: 1.9;
  letter-spacing: .1em;
  color: var(--fg-dim);
  font-variant-numeric: tabular-nums;
}
.steps h3 { font-family: var(--serif); font-size: 20px; font-weight: 400; line-height: 1.25; margin-bottom: 6px; }

.pair { margin-top: 40px; display: grid; gap: 28px; }
@media (min-width: 640px) { .pair { grid-template-columns: 1fr 1fr; gap: 32px; } }
.pair h3 { font-family: var(--serif); font-size: 20px; font-weight: 400; margin-bottom: 8px; }
.pair a { display: inline-block; margin-top: 12px; font-size: 14px; }

.offer {
  display: block;
  padding: 28px;
  border-radius: 12px;
  background: var(--raised);
  box-shadow: inset 0 0 0 1px var(--rule);
  transition: background-color .25s var(--ease);
}
.offer:hover { background: rgba(231, 229, 228, .07); }
.offer .kicker { margin-bottom: 12px; }
.offer__line { font-family: var(--serif); font-size: 21px; line-height: 1.35; color: var(--fg) !important; }

/* ── FAQ ────────────────────────────────────────────────────────────────── */

.qas { margin-top: 32px; border-top: 1px solid var(--rule); }
.qas details { border-bottom: 1px solid var(--rule); }
.qas summary {
  list-style: none;
  cursor: pointer;
  padding-block: 18px;
  font-size: 17px;
  line-height: 1.4;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  transition: color .2s var(--ease);
}
.qas summary::-webkit-details-marker { display: none; }
.qas summary::after { content: "+"; color: var(--fg-dim); }
.qas details[open] summary::after { content: "–"; }
.qas summary:hover { color: #FFFFFF; }
.qas p { padding-bottom: 22px; max-width: 58ch; }

/* ── Forms ──────────────────────────────────────────────────────────────── */

.form { margin-top: 32px; display: grid; gap: 18px; }
@media (min-width: 640px) { .form { grid-template-columns: 1fr 1fr; } }
.form label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: var(--fg-dim);
}
.form__wide { grid-column: 1 / -1; }
.form button { grid-column: 1 / -1; justify-self: start; }
.form input, .form textarea, .signup input {
  font: inherit;
  font-size: 15px;
  color: var(--fg);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  padding: 10px 0;
  border-radius: 0;
  transition: border-color .25s var(--ease);
}
.form input:focus, .form textarea:focus { border-color: var(--fg); }
.form textarea { resize: vertical; }

.signup { margin-top: 28px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.signup input { flex: 1 1 240px; }

/* ── Footer ─────────────────────────────────────────────────────────────── */

.foot {
  max-width: var(--measure);
  margin-inline: auto;
  padding: 72px 24px 96px;
  text-align: center;
}
.foot .head__mark { justify-content: center; }
.foot .logo { height: 26px; width: calc(26px * 351.4 / 92.3); margin-inline: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .spread img, .pill, .offer { transition: none; }
}
