/* ==========================================================================
   ThomasSpetter.com: shared stylesheet
   Sections: tokens, base, layout, components, page-specific.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Ink and paper: deep ink blue, warm paper, pencil for strong actions, red pen for notes */
  --blue: #1F4A7A;
  --blue-ink: #1F4A7A;
  --navy: #0B3558;
  /* Hover: buttons fill brick red; links turn brick (light backgrounds) or lamplight (dark) */
  --brick: #A3452F;
  --link-hover: var(--brick);
  --link: #2563C9; /* fresh fountain-pen ink: in-text links (5.3:1 on paper) */
  --lamp: #F2D9A0; /* link hover on dark panels: warm lamplight */
  --slate: #476788;
  --slate-2: #526B86;
  /* Accent: the pencil from the logo. Reserved for strong actions (Buy now). */
  --pencil: #F8A720;
  --pencil-ink: #D98700;
  --red-pen: #E5484D; /* editor's red pen: margin notes and proof marks */
  --ink-hand: #1E3A6E;
  --body-ink: #1D3F5E;
  --label-ink: #3A5A7A;
  --placeholder: #6B7280;
  --mist: #F3F6FB;
  --footer-text: #F4F7FF;
  --footer-muted: #A9B8D0;

  --tint-blue: #E3ECFF;

  /* Grey-blue ink tints for colour fields and washes */
  --tint-400: #7D97B5;
  --tint-300: #A9BCD2;
  --tint-200: #CCD7E4;
  --tint-100: #E4EAF1;
  --paper: #FAF7F1; /* warm off-white base under the colour fields */

  --wash-soft: linear-gradient(180deg, #FAF7F1 0%, #F5F0E6 100%);
  --wash: linear-gradient(160deg, #F5F0E6 0%, #EEF1F5 100%);
  --band: radial-gradient(ellipse 50% 90% at 100% 0%, rgba(169,188,210,.16), rgba(169,188,210,0) 70%),
          linear-gradient(120deg, #0B2540 0%, #12355C 60%, #1F4A7A 100%);

  --card-shadow: 0 0 0 1px rgba(11,53,88,.06), 0 12px 32px rgba(11,53,88,.06);
  --card-shadow-lg: 0 0 0 1px rgba(11,53,88,.05), 0 20px 48px rgba(11,53,88,.10);
  --card-shadow-xl: 0 0 0 1px rgba(11,53,88,.05), 0 24px 56px rgba(11,53,88,.12);
  --float-shadow: 0 0 0 1px rgba(11,53,88,.06), 0 18px 40px rgba(11,53,88,.16);

  --font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-serif: 'Fraunces', Georgia, serif; /* headings and subheads only; body copy stays sans */
  --font-hand: 'Caveat', cursive;

  --r-panel: 32px;
  --r-card: 24px;
  --r-control: 12px;
  --r-pill: 999px;

  --max: 1240px;
  --gutter: 40px;
  --header-offset: 96px;
}

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

html { scroll-padding-top: var(--header-offset); }

body {
  margin: 0;
  background: #FFFFFF;
  color: var(--navy);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
/* Placeholder links (no href yet) are not interactive; give them a real URL to switch them on */
a:not([href]) { cursor: default; pointer-events: none; }
img { max-width: 100%; }
button, input, textarea { font: inherit; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
/* On dark panels the ink ring disappears, so use a light one; white cards inside keep ink */
:is(.night-hero, .band, .strip) :focus-visible { outline-color: var(--footer-text); }
:is(.night-hero, .band) .flip__face :focus-visible { outline-color: var(--blue); }
[tabindex="-1"]:focus { outline: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 50;
  background: var(--navy);
  color: #FFFFFF;
  padding: 12px 18px;
  border-radius: var(--r-control);
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { padding-bottom: 128px; }
/* A section after a tinted band needs its own top space, or it butts against the colour */
:is(.story--tint, .books) + .section { padding-top: 128px; }

/* ---------- Header (partial) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(11,53,88,.06), 0 8px 24px rgba(11,53,88,.07);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 20px;
  padding-bottom: 20px;
  transition: padding .3s;
}

.site-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
/* The p descender pads the bottom of the artwork, so nudge it down to centre the lettering optically */
.site-logo__img { display: block; height: 44px; width: auto; position: relative; top: 3px; }

.nav-actions { display: flex; align-items: center; gap: 32px; }

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 16px;
  font-weight: 500;
}

.nav-link { opacity: .8; transition: opacity .2s, color .2s; }
.nav-link:hover { opacity: 1; color: var(--link-hover); }
.nav-link[aria-current] {
  opacity: 1;
  box-shadow: inset 0 -2px 0 var(--blue);
  padding-bottom: 4px;
}

/* Home only: header tightens and drops its links once scrolled (header-scroll.js) */
.site-header.is-scrolled .site-nav { padding-top: 12px; padding-bottom: 12px; }
/* Six links plus the CTA get tight just above the mobile breakpoint */
@media (min-width: 901px) and (max-width: 1100px) {
  .nav-actions { gap: 20px; }
  .nav-links { gap: 16px; font-size: 15px; }
}

.menu-btn {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(11,53,88,.18);
  border-radius: 10px;
  color: var(--navy);
  cursor: pointer;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 16px 24px;
  background: #FFFFFF;
}
.mobile-menu[hidden] { display: none; }
/* Browsers don’t hide <svg hidden> by default; the audio players swap play/pause icons with it */
svg[hidden] { display: none; }

.mobile-menu__link {
  display: block;
  background: var(--mist);
  padding: 16px 20px;
  border-radius: 14px;
  font-size: 20px;
  font-weight: 500;
}
.mobile-menu__link[aria-current] { background: var(--tint-blue); }
.mobile-menu__link:hover { background: #F6E6E0; color: var(--link-hover); }

.mobile-menu__cta {
  display: block;
  margin-top: 6px;
  background: var(--blue);
  color: #FFFFFF;
  padding: 16px 20px;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  transition: background-color .2s;
}
.mobile-menu__cta:hover { background: var(--brick); }

/* ---------- Footer (partial) ---------- */
.site-footer {
  background: var(--navy);
  color: var(--footer-muted);
  padding: 72px 0 48px;
  margin: 0 24px 24px;
  border-radius: var(--r-panel);
}
.site-footer :focus-visible { outline-color: var(--footer-text); }

.site-footer__inner { display: flex; flex-direction: column; gap: 40px; }

.site-footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}

.site-footer__brand { display: flex; flex-direction: column; gap: 8px; }
.site-footer__logo { font-size: 26px; color: var(--footer-text); }
.site-footer__tagline { margin: 0; font-size: 18px; }
.site-footer__art { margin: 0; font-size: 16px; }
.site-footer__art a {
  color: var(--footer-text);
  border-bottom: 1px solid rgba(244,247,255,.3);
  padding-bottom: 1px;
  transition: color .2s, border-color .2s;
}
.site-footer__art a:hover { color: var(--lamp); border-bottom-color: var(--lamp); }

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid rgba(244,247,255,.14);
  font-size: 15px;
  font-weight: 500;
}

.site-footer__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer__list .nav-link { color: var(--footer-text); }
.site-footer__list .nav-link:hover { color: var(--lamp); }

.site-footer__legal { margin: 0; font-size: 13px; }
.site-footer__year { cursor: default; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 16px 26px;
  border: 0;
  border-radius: var(--r-control);
  background: var(--blue);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s, background-color .2s;
}
.btn:hover { transform: translateY(-2px); background-color: var(--brick); color: #FFFFFF; }
.btn--navy { background: var(--navy); }

.btn--sm {
  min-height: 44px;
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 15px;
}

/* Secondary button on light backgrounds: solid white with an ink outline */
.btn--ghost {
  background: #FFFFFF;
  color: var(--navy);
  box-shadow: inset 0 0 0 1.5px rgba(11,53,88,.3);
  padding: 16px 22px;
}
.btn--ghost:hover { box-shadow: none; }

.btn--outline {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  background: transparent;
  color: var(--navy);
  border: 1px solid rgba(11,53,88,.18);
  font-size: 15px;
}
.btn--outline:hover { transform: none; border-color: var(--brick); }

.text-link { font-size: 16px; font-weight: 600; color: var(--blue-ink); transition: color .2s, text-decoration-color .2s; }
.text-link:hover { color: var(--link-hover); text-decoration-color: var(--link-hover); }

/* ---------- Pills, chips, dots ---------- */
.pill-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 8px;
  border-radius: var(--r-pill);
  background: #FFFFFF;
  box-shadow: 0 0 0 1px rgba(11,53,88,.08), 0 6px 16px rgba(11,53,88,.06);
  font-size: 14px;
  font-weight: 500;
  transition: background-color .2s, color .2s;
}
.pill-link:hover { background: #F3EEE3; color: var(--link-hover); }

.pill {
  background: var(--blue);
  color: #FFFFFF;
  border-radius: var(--r-pill);
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
}

.chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #FFFFFF;
  border-radius: var(--r-pill);
  padding: 10px 16px 10px 12px;
  box-shadow: 0 0 0 1px rgba(11,53,88,.06), 0 14px 32px rgba(11,53,88,.14);
  font-size: 14px;
  font-weight: 600;
}

.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--blue); flex: none; }
.dot--sm { width: 8px; height: 8px; }

/* ---------- Type helpers ---------- */
.eyebrow {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue-ink);
}

.hand { font-family: var(--font-hand); font-weight: 500; }
.hand-note {
  margin: 0;
  font-family: var(--font-hand);
  font-weight: 500;
  color: var(--blue-ink);
  transform: rotate(-3deg);
}

.section-title {
  margin: 0;
  font-size: 52px;
  line-height: 1.05;
}

.muted { margin: 0; font-size: 18px; color: var(--slate); }

/* ---------- Panels ---------- */
.panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-panel);
  padding: 72px;
}


/* ---------- Cards ---------- */
.card {
  background: #FFFFFF;
  border-radius: var(--r-card);
  padding: 32px;
  box-shadow: var(--card-shadow);
}
.card--lg { box-shadow: var(--card-shadow-lg); }

.card__label { margin: 0; font-size: 14px; font-weight: 600; color: var(--slate); }

/* ---------- Progress bars ---------- */
.progress { display: flex; flex-direction: column; gap: 8px; }
.progress__head {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 600;
}
.progress__name { display: inline-flex; align-items: center; gap: 8px; }
.progress__pct { font-weight: 500; }
.progress__bar { height: 10px; border-radius: var(--r-pill); background: var(--navy); }
.progress__bar--empty { position: relative; overflow: hidden; }
.progress__tick {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 6px;
  border-radius: var(--r-pill);
  background: var(--blue);
}

/* ---------- Inputs ---------- */
.label { font-size: 14px; font-weight: 600; color: var(--label-ink); }

.field {
  border: 1.5px solid rgba(11,53,88,.55);
  border-radius: var(--r-control);
  padding: 0 16px;
  transition: border-color .2s, box-shadow .2s;
}
.field:focus-within { border-color: var(--blue); }

.field__input {
  width: 100%;
  min-height: 56px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  font-family: var(--font-hand);
  font-size: 30px;
  line-height: 1.2;
  color: var(--ink-hand);
}
.field__input:focus { outline: none; }
.field__input::placeholder { font-family: var(--font-sans); font-size: 17px; color: var(--placeholder); }

.fineprint { margin: 0; font-size: 14px; color: var(--slate-2); }

/* ---------- Flip cards ---------- */
.flip-box { width: 100%; perspective: 1400px; }

.flip-box { display: grid; }
.flip {
  position: relative;
  display: grid;
  width: 100%;
  transform-style: preserve-3d;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.flip.is-flipped { transform: rotateY(180deg); }

/* Both faces share one grid cell: the card is as tall as its taller face, so
   enlarged text grows the card instead of spilling out of it. */
.flip__face {
  position: relative;
  grid-area: 1 / 1;
  min-width: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
  background: #FFFFFF;
  border-radius: var(--r-card);
  box-shadow: var(--card-shadow-xl);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.flip__face--back { transform: rotateY(180deg); }

/* ---------- Signup band (partial) ---------- */
.band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 56px;
  align-items: center;
  padding: 80px 72px;
  background: var(--band);
}

.band__copy { display: flex; flex-direction: column; gap: 18px; }

.band__title {
  margin: 0;
  font-size: 56px;
  line-height: 1.04;
  color: #FFFFFF;
}

.band__text { margin: 0; font-size: 19px; line-height: 1.6; color: #E6ECFF; max-width: 30em; }

.signup { min-height: 260px; }
.signup__form { gap: 16px; }
.signup__row { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.signup__submit { flex: none; white-space: nowrap; font-size: 16px; padding: 0 24px; }
.signup__thanks { gap: 12px; }
.signup__thanks-title { margin: 0; font-size: 32px; line-height: 1.2; }
.signup__thanks-text { margin: 0; font-size: 17px; color: var(--slate); }
.signup__sig { margin: 0; font-size: 28px; color: var(--ink-hand); }

/* ==========================================================================
   Home
   ========================================================================== */
.hero { position: relative; overflow: hidden; isolation: isolate; }

/* ---------- Colour fields: blurred, drifting blobs with a light grain ---------- */
.art {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: inherit;
  isolation: isolate;
  pointer-events: none;
}
.art::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/grain.svg");
  opacity: .22;
  mix-blend-mode: soft-light;
}
.blob {
  position: absolute;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
  animation: drift-a 34s ease-in-out 2 alternate both; /* out and back once, then rest (WCAG 2.2.2) */
}
/* Each blob gets its own path and tempo so the colours keep re-mixing. */
.blob--2 { animation-name: drift-b; animation-duration: 40s; animation-delay: -16s; }
.blob--3 { animation-name: drift-c; animation-duration: 30s; animation-delay: -24s; }
.blob--4 { animation-name: drift-b; animation-duration: 46s; animation-delay: -8s; animation-direction: alternate-reverse; }
.blob--5 { animation-name: drift-a; animation-duration: 38s; animation-delay: -20s; animation-direction: alternate-reverse; }

.has-art { isolation: isolate; }
.has-art > :not(.art) { position: relative; z-index: 1; }

/* Hero: warm paper base, a quiet wash of blue gathered behind the cover */
.hero { background: var(--paper); }
.art--hero .blob--1 { width: 50%; right: -10%; top: -16%; background: var(--tint-300); opacity: .4; }
.art--hero .blob--2 { width: 32%; right: 22%; top: 30%; background: var(--tint-200); opacity: .45; }
.art--hero .blob--3 { width: 30%; right: -6%; bottom: -20%; background: var(--tint-400); opacity: .2; }
.art--hero .blob--4 { width: 34%; left: -12%; bottom: -28%; background: var(--tint-200); opacity: .35; }
.art--hero .blob--5 { width: 18%; left: 36%; top: -10%; background: var(--tint-100); opacity: .6; }

/* Now writing */
.now-panel { background: var(--paper); }
.art--now .blob--1 { width: 46%; right: -12%; top: -28%; background: var(--tint-300); opacity: .3; }
.art--now .blob--2 { width: 32%; right: 4%; bottom: -30%; background: var(--tint-200); opacity: .4; }
.art--now .blob--3 { width: 28%; left: -10%; bottom: -24%; background: var(--tint-200); opacity: .35; }
.art--now .blob--4 { width: 22%; left: 30%; top: -22%; background: var(--tint-100); opacity: .5; }

/* How’s your memory? (Mandela effect test, memory-quiz.js) */
.quiz-panel { background: var(--paper); }
.art--quiz .blob--1 { width: 38%; left: -12%; top: -26%; background: var(--tint-200); opacity: .4; }
.art--quiz .blob--2 { width: 30%; right: -6%; top: -16%; background: var(--tint-300); opacity: .3; }
.art--quiz .blob--3 { width: 34%; right: 10%; bottom: -36%; background: var(--tint-200); opacity: .35; }
.art--quiz .blob--4 { width: 22%; left: 18%; bottom: -26%; background: var(--tint-100); opacity: .5; }

/* Signup band: a soft lift of lighter blue over the deep blue gradient */
.art--band .blob--1 { width: 44%; right: -10%; top: -34%; background: var(--tint-400); opacity: .3; }
.art--band .blob--2 { width: 34%; left: -10%; bottom: -40%; background: var(--navy); opacity: .35; }
.art--band .blob--3 { width: 16%; right: 30%; bottom: -14%; background: var(--tint-300); opacity: .15; }

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 72px;
  align-items: start; /* cover stays put while the title types in */
  padding-top: 104px;
  padding-bottom: 120px;
}

.hero__copy { display: flex; flex-direction: column; gap: 26px; }

.hero__title {
  display: grid;
  margin: 0;
  font-size: 64px;
}

.hero__title > [data-typing] { grid-area: 1 / 1; }
/* Glitch on one word: it tears into slices and flashes data-alt ("right") in
   red-pen and ink layers a few times, then settles. Built by typing.js. */
.glitch { position: relative; display: inline-block; white-space: nowrap; }
.glitch::before,
.glitch::after {
  content: attr(data-alt);
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  pointer-events: none;
}
.glitch::before { color: var(--red-pen); }
.glitch__word { display: inline-block; }
/* Animate the inner word, not .glitch itself, or its opacity would hide the 'right' layers too */
.glitch.is-glitching .glitch__word { animation: glitch-word 1.4s steps(1, end) both; }
.glitch.is-glitching::before { animation: glitch-red 1.4s steps(1, end) both; }
.glitch.is-glitching::after { animation: glitch-ink 1.4s steps(1, end) both; }

/* Invisible full copy of the title reserves its final height, so nothing below shifts while it types */
.hero__title::after { content: attr(data-full); grid-area: 1 / 1; visibility: hidden; }

.hero__tagline { margin: 0; font-size: 26px; line-height: 1.3; }
.hero__intro { margin: 0; font-size: 18px; line-height: 1.65; color: var(--slate); max-width: 32em; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 6px; }

.caret {
  display: inline-block;
  width: 3px;
  height: .85em;
  margin-left: 4px;
  vertical-align: -.06em;
  animation: blink 1s steps(1) infinite;
}

/* Cover with floating status chips */
.cover { position: relative; }

.cover__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  background: linear-gradient(150deg, #0050C2 0%, #006BFF 55%, #80B5FF 100%);
}

.cover__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 19% 50%;
}

.draft-card {
  position: absolute;
  left: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 220px;
  padding: 14px 18px;
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: var(--float-shadow);
}
.draft-card__label { font-size: 13px; font-weight: 600; color: var(--slate); }
.draft-card__row { display: flex; align-items: center; gap: 10px; }
.draft-card__bar { flex: 1; height: 8px; border-radius: var(--r-pill); background: var(--navy); }
.draft-card__pct { font-size: 14px; font-weight: 500; }
.draft-card__meta { font-size: 12px; color: var(--slate-2); }

.cover__chip { position: absolute; right: -24px; top: 48px; }

/* Now writing */
.section--now { padding-top: 40px; padding-bottom: 120px; }

.now-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}

.now__title {
  margin: 14px 0 0;
  font-size: 68px;
  line-height: 1.02;
}
.now__genre { margin: 12px 0 0; font-size: 22px; color: var(--slate); }
.now__hook {
  margin: 32px 0 0;
  font-size: 32px;
}
.now__pitch {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 20px;
  line-height: 1.6;
  color: var(--body-ink);
}
.now__pitch p { margin: 0; }

.now__aside { display: flex; flex-direction: column; gap: 20px; }
/* Progress card follows the reader down the pitch (desktop only). The panel clips its
   background art with overflow: clip, not hidden, because hidden would stop sticky working. */
.now-panel { overflow: clip; }
.now__aside { position: sticky; top: 120px; }
.progress-card { display: flex; flex-direction: column; gap: 22px; }
.progress-card .btn { margin-top: 6px; min-height: 50px; padding: 0 20px; font-size: 16px; }

.now__note { color: var(--red-pen); margin: 4px 0 0 12px; font-size: 26px; line-height: 1.1; }

/* Three doors */
.doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }

.door {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 36px;
  transition: transform .25s ease, box-shadow .25s;
}
.door:hover {
  transform: translateY(-6px);
  box-shadow: 0 1px 0 rgba(11,53,88,.04), 0 28px 60px rgba(11,53,88,.14);
}

.door__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
}
.door__icon { background: var(--tint-100); color: var(--blue-ink); }

.door__title { margin: 10px 0 0; font-size: 30px; line-height: 1.1; }
.door__text { margin: 0; flex-grow: 1; font-size: 17px; line-height: 1.55; color: var(--slate); }
.door__more { font-size: 16px; font-weight: 600; color: var(--blue-ink); transition: color .2s; }
.door:hover .door__more { color: var(--link-hover); }

/* How’s your memory? (Mandela effect test, memory-quiz.js) */
.quiz-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  padding: 88px 24px;
  text-align: center;
}

.quiz__head { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.quiz__book { margin: 0; font-size: 18px; color: var(--slate); }

.quiz__num { margin: 0; font-size: 13px; letter-spacing: .08em; color: var(--slate-2); }
.quiz__question { margin: 0; font-size: 32px; line-height: 1.25; max-width: 16em; }
.quiz__choices { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.quiz__choices .btn { min-width: 140px; }
.quiz__answer { margin: 0; font-size: 30px; line-height: 1.25; max-width: 16em; }

.mq { display: flex; flex-direction: column; width: 100%; max-width: 680px; padding: 40px 36px; } /* min-height set by memory-quiz.js */
.mq__screen { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.mq__screen[data-mq-intro], .mq__screen[data-mq-end] { justify-content: center; }
.mq__screen[hidden] { display: none; }
.mq__top { align-self: stretch; display: flex; justify-content: space-between; gap: 16px; }
.mq__progress { align-self: stretch; height: 4px; margin-top: -12px; border-radius: 2px; background: var(--tint-100); overflow: hidden; }
.mq__progress span { display: block; width: 0; height: 100%; background: var(--blue); transition: width .4s ease; }
.mq [tabindex="-1"]:focus { outline: none; }
.mq__choices .btn { min-width: 0; flex: 1 1 220px; max-width: 300px; }
.mq__choice:disabled { pointer-events: none; opacity: 1; transform: none; }
.mq__choice.is-right { background: var(--blue); box-shadow: 0 0 0 3px var(--tint-200); }
.mq__choice.is-right::before { content: "✓ "; }
.mq__choice.is-wrong { background: var(--brick); }
.mq__choice.is-wrong::before { content: "✗ "; }
.mq__choice.is-dim { opacity: .45; }
.mq__feedback { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 22px; border-top: 1px dashed rgba(11,53,88,.2); }
.mq__feedback[hidden] { display: none; }
.mq__verdict { margin: 0; font-family: var(--font-hand); font-size: 32px; line-height: 1; color: var(--blue-ink); }
.mq--wrong .mq__verdict { color: var(--brick); }
.mq__explain { margin: 0; max-width: 34em; font-size: 17px; line-height: 1.6; color: var(--body-ink); }
.mq__final { margin: 0; font-family: var(--font-serif); font-size: 72px; line-height: 1; color: var(--navy); }
.mq__end-actions { justify-content: center; }

/* ---------- More shared pieces ---------- */
.wrap--md { max-width: 1040px; }
.wrap--sm { max-width: 1000px; }
.wrap--read { max-width: 760px; }

.kicker {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.kicker--blue { color: var(--blue-ink); }
.kicker--slate { color: var(--slate); }

.ulink { border-bottom: 2px solid var(--blue); padding-bottom: 2px; transition: border-color .2s, color .2s; }
.ulink:hover { color: var(--link-hover); border-bottom-color: currentColor; }
.ulink--thin { border-bottom-width: 1px; }



.tag {
  align-self: flex-start;
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
}

.placeholder-note { margin: 0; font-size: 13px; color: #8597AD; }

.icon-tile {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
}

.btn--white { background: #FFFFFF; color: var(--navy); font-size: 16px; font-weight: 700; padding: 0 24px; }
/* Outline button for dark panels (the light-background version is .btn--ghost) */
.btn--on-dark { background: transparent; color: var(--footer-text); box-shadow: inset 0 0 0 1.5px rgba(243,238,227,.4); }
.btn--on-dark:hover { box-shadow: none; }

/* Compact input (post, newsletter, contact) */
.field--sm { padding: 0 14px; }
.field--sm .field__input { font-size: 28px; min-height: 52px; padding: 6px 0; }
.field--sm .field__input::placeholder { font-size: 16px; color: #7D90A6; }

.field--area { display: flex; flex-grow: 1; padding: 10px 14px; }
.field--area .field__input {
  flex-grow: 1;
  min-height: 160px;
  padding: 0;
  font-size: 26px;
  line-height: 1.4;
  resize: none;
}

.field-row { display: flex; gap: 12px; align-items: center; }
.field-row .field { flex: 1; }
.field-row .btn { min-height: 56px; padding: 0 22px; font-size: 16px; }

/* ---------- Night hero: dark inset panel used at the top of inner pages ---------- */
.night-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin: 16px 24px 0;
  padding: 120px 0 96px;
  border-radius: var(--r-panel);
  background: #161A24;
  color: var(--footer-text);
}
.night-hero__inner { display: flex; flex-direction: column; gap: 24px; }
.night-hero__title {
  margin: 0;
  font-family: var(--font-serif, inherit);
  font-weight: 500;
  font-size: 104px;
  line-height: .95;
  letter-spacing: -.02em;
  font-variation-settings: "SOFT" 30, "WONK" 0;
}
.night-hero__lede {
  margin: 8px 0 0;
  max-width: 30em;
  font-family: var(--font-serif, inherit);
  font-size: 24px;
  line-height: 1.5;
  color: #D5D8DE;
}
.night-hero__aside {
  margin: 0;
  font-family: var(--font-serif, inherit);
  font-style: italic;
  font-size: 21px;
  color: rgba(213,216,222,.7);
  font-variation-settings: "SOFT" 50, "WONK" 0;
}
/* Deep blue and lamplight drifting on the dark panel */
.art--night .blob { filter: blur(80px); }
.art--night .blob--1 { width: 44%; right: -6%; top: -30%; background: #2C5A8C; opacity: .55; }
.art--night .blob--2 { width: 30%; left: 8%; bottom: -40%; background: #E2B85C; opacity: .14; }
.art--night .blob--3 { width: 26%; right: 30%; bottom: -30%; background: #1F4A7A; opacity: .5; }
.art--night .blob--4 { width: 20%; left: 45%; top: -20%; background: #A9BCD2; opacity: .12; }

/* Split version: copy on the left, an object on the right (Newsletter) */
.night-hero--split { padding: 96px 0 80px; }

/* 404 page: a cut chapter, with the editor's red pen on a manuscript card */
:is(.notfound, .thanks-page) { margin-bottom: 112px; }
:is(.notfound__grid, .thanks-page__grid) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 64px; align-items: center; }
:is(.notfound__copy, .thanks-page__copy) { display: flex; flex-direction: column; gap: 24px; }
:is(.notfound__code, .thanks-page__eyebrow) { color: rgba(213,216,222,.7); }
:is(.notfound__title, .thanks-page__title) { font-size: 72px; line-height: 1.02; }
.thanks-card { display: flex; flex-direction: column; gap: 14px; padding: 40px; color: var(--navy); }
.thanks-card__lead { margin: 0; font-family: var(--font-serif); font-size: 24px; line-height: 1.4; font-variation-settings: "SOFT" 30, "WONK" 0; }
.thanks-card__head { margin-top: 12px; padding-top: 22px; border-top: 1px dashed rgba(11,53,88,.25); }
.thanks-card__list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 17px; line-height: 1.5; }
.redline {
  position: relative;
  padding: 40px 36px 36px 64px;
  border-radius: 6px;
  background-color: #FFFDF8;
  background-image:
    linear-gradient(to right, transparent 44px, rgba(229,72,77,.45) 44px, rgba(229,72,77,.45) 45.5px, transparent 45.5px),
    repeating-linear-gradient(to bottom, transparent 0, transparent 31px, rgba(31,74,122,.12) 31px, rgba(31,74,122,.12) 32px);
  color: var(--navy);
  box-shadow: 0 30px 70px rgba(0,0,0,.4);
  transform: rotate(1.5deg);
}
.redline__slug { margin: 0 0 14px; font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--slate-2); }
.redline__text { margin: 0; font-family: var(--font-serif); font-size: 21px; line-height: 1.5; font-variation-settings: "SOFT" 50, "WONK" 0; }
.redline del { color: var(--slate); text-decoration: line-through; text-decoration-color: #C8373D; text-decoration-thickness: 2px; }
.redline ins { text-decoration: none; font-family: var(--font-hand); font-size: 26px; color: #C8373D; }
.redline__note { margin: 6px 0 0; text-align: right; font-family: var(--font-hand); font-size: 22px; color: #C8373D; transform: rotate(-3deg); }
.redline__head { margin: 24px 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--slate-2); }
.redline__list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 16px; line-height: 1.45; }
.redline__sign { margin: 18px 0 0; font-family: var(--font-hand); font-size: 22px; color: var(--ink-hand); }
@media (max-width: 900px) {
  :is(.notfound, .thanks-page) { margin-bottom: 72px; }
  :is(.notfound__grid, .thanks-page__grid) { grid-template-columns: 1fr; gap: 48px; }
  :is(.notfound__title, .thanks-page__title) { font-size: 44px; }
  .thanks-card { padding: 28px 22px; }
  .redline { padding: 32px 22px 28px 50px; transform: none; background-image:
    linear-gradient(to right, transparent 34px, rgba(229,72,77,.45) 34px, rgba(229,72,77,.45) 35.5px, transparent 35.5px),
    repeating-linear-gradient(to bottom, transparent 0, transparent 31px, rgba(31,74,122,.12) 31px, rgba(31,74,122,.12) 32px); }
}

/* Filter chips on the dark panel */
.filters--dark .filter-chip { background: transparent; color: var(--footer-text); box-shadow: inset 0 0 0 1px rgba(243,238,227,.3); }
.filters--dark .filter-chip:hover { background-color: var(--brick); color: #FFFFFF; box-shadow: none; }
.filters--dark .filter-chip[aria-pressed="true"]:hover { background-color: var(--brick); color: #FFFFFF; }
.filters--dark .filter-chip[aria-pressed="true"] { background: var(--paper); color: var(--navy); box-shadow: none; }

@media (max-width: 900px) {
  .night-hero { margin: 12px 12px 0; padding: 72px 0 56px; border-radius: 24px; }
  .night-hero__title { font-size: 64px; }
  .night-hero__lede { font-size: 20px; }
}

/* ==========================================================================
   Projects
   ========================================================================== */
.stage-key-section { padding: 24px 0 72px; }
.stage-key-section .wrap { display: flex; flex-direction: column; gap: 18px; }

.stage-key {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
}

/* A pencilled timeline: one ink line, eight marks, number and name beneath */
.stage-key li { position: relative; }
.stage-key li::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 0;
  right: -8px;
  height: 1.5px;
  background: rgba(11,53,88,.3);
}
.stage-key li:first-child::before { left: 50%; }
.stage-key li:last-child::before { right: 50%; }

.stage-btn {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 4px 6px;
  border: 0;
  background: none;
  color: var(--navy);
  text-align: center;
  cursor: help;
}
.stage-btn__mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 8px;
  border: 1.5px solid rgba(11,53,88,.55);
  border-radius: 50%;
  background: #FFFFFF;
  transition: background-color .2s, color .2s, border-color .2s;
}
.stage-btn__num { font-size: 12px; letter-spacing: .14em; color: var(--slate-2); }
.stage-btn__name { font-family: var(--font-serif, inherit); font-size: 19px; line-height: 1.2; }
.stage-btn[aria-pressed="true"] .stage-btn__mark,
.stage-btn:hover .stage-btn__mark,
.stage-btn:focus-visible .stage-btn__mark { background: var(--navy); border-color: var(--navy); color: var(--footer-text); }
.stage-btn:focus-visible { outline-offset: 6px; border-radius: 12px; }

/* Where the lead book is: circled in red pen */
.pen-loop {
  position: absolute;
  inset: -20px -18px -16px -18px;
  width: calc(100% + 36px);
  height: calc(100% + 36px);
  color: var(--red-pen);
  transform: rotate(-4deg);
  pointer-events: none;
}
.stage-key__current .stage-btn__mark { position: relative; }
.stage-key__note {
  display: block;
  margin-top: 2px;
  text-align: center;
  font-size: 24px; /* large text, so the red pen passes at 3.9:1 (WCAG 1.4.3) */
  line-height: 1.05;
  color: var(--red-pen);
  transform: rotate(-3deg);
}

.stage-desc { margin: 12px 0 0; min-height: 34px; text-align: center; font-size: 19px; color: var(--slate); }
.stage-desc__name { font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-ink); }

.books {
  padding: 96px 0 120px;
  background: var(--wash-soft);
  border-top: 1px solid rgba(11,53,88,.08);
}
.books > .wrap { display: flex; flex-direction: column; gap: 56px; }

.book {
  position: relative;
  padding: 26px 64px 56px;
  box-shadow: 0 0 0 1px rgba(11,53,88,.06), 0 22px 48px rgba(11,53,88,.12);
}
.book__topline {
  height: 38px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--slate-2);
}
.book__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  gap: 64px;
  align-items: start;
}
.book__cover { position: relative; margin: 30px 0 0; }
.book__cover-frame {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  background: #5A5D63;
  box-shadow: 0 2px 0 rgba(11,53,88,.04), 0 28px 56px rgba(11,37,64,.22);
}
.book__cover-frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 19% 50%; }
.book__cover-frame--tbd {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 40% at 50% 30%, rgba(226,184,92,.18), rgba(0,0,0,0) 70%),
    linear-gradient(165deg, #0B2540 0%, #12355C 60%, #1F4A7A 100%);
  color: var(--footer-text);
}
.tbd__title { font-family: var(--font-serif, inherit); font-size: 40px; line-height: 1.05; }
.tbd__author { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; opacity: .75; }
.tbd__label { position: absolute; bottom: 16px; left: 0; right: 0; font-size: 11px; letter-spacing: .1em; opacity: .4; }

/* Rubber stamp over the corner of the cover */
.stamp {
  position: absolute;
  top: -14px;
  right: -16px;
  padding: 8px 14px;
  border: 2px solid #C8373D;
  border-radius: var(--r-pill);
  background: rgba(250,247,241,.92);
  color: #C8373D; /* a shade darker than --red-pen so the small caps pass AA */
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  transform: rotate(6deg);
}

.book__title { margin: 30px 0 0; font-size: 64px; line-height: 1.02; }
.book__facts { margin: 12px 0 0; font-size: 15px; letter-spacing: .03em; color: var(--slate); }
.book__pitch {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 40em;
  font-size: 20px;
  line-height: 1.6;
}
.book__pitch p { margin: 0; }
.book__aside { color: var(--slate); }
.book__follow { margin-top: 32px; }
.book__follow a { font-size: 16px; padding-bottom: 3px; }

.stage-bars {
  list-style: none;
  margin: 40px 0 0;
  padding: 28px 0 0;
  border-top: 1px dashed rgba(11,53,88,.25);
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
}
.stage-bars li { display: flex; flex-direction: column; gap: 8px; }

.stage-bar {
  position: relative;
  overflow: hidden;
  height: 10px;
  border-radius: var(--r-pill);
  border: 1.5px solid rgba(11,53,88,.28);
}
.stage-bar--done { border-color: var(--navy); background: var(--navy); }
.stage-bar--active { border-color: var(--blue); }
.stage-bar__fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: var(--blue);
  transition: width 1.8s cubic-bezier(.3,.6,.2,1);
}

.stage-label { font-size: 13px; line-height: 1.3; color: var(--slate-2); }
.stage-label strong { font-weight: 700; }
.stage-label--done { color: var(--navy); }
.stage-label--active { color: var(--blue-ink); }

.ideas-block { display: flex; flex-direction: column; gap: 20px; margin-top: 16px; }
.ideas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; align-items: stretch; }

.idea {
  display: flex;
  flex-direction: column;
  padding: 36px 40px 40px;
  box-shadow: 0 0 0 1px rgba(11,53,88,.06), 0 10px 24px rgba(11,53,88,.08);
  opacity: .9;
}
.idea__title { margin: 22px 0 0; font-size: 40px; line-height: 1.05; }
.idea__facts { margin: 20px 0 0; font-size: 14px; color: var(--slate); }
.idea__title + .idea__facts { margin-top: 8px; }
.idea__pitch {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 18px;
  line-height: 1.55;
}
.idea__pitch p { margin: 0; }
.idea-bars {
  list-style: none;
  margin: auto 0 0; /* sits at the bottom, so both cards' bars line up */
  padding: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
}
.idea-bars li { height: 8px; border-radius: var(--r-pill); border: 1.5px solid rgba(11,53,88,.28); }

.proof-art {
  position: relative;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(11,53,88,.12);
  border-radius: 16px;
  background: #FFFFFF;
}
.proof-art__slug { position: absolute; top: 8px; left: 12px; font-size: 11px; letter-spacing: .12em; color: var(--slate-2); }
.proof-art__title { position: relative; font-size: 52px; }
.proof-art__mark { border-bottom: 2px solid var(--red-pen); }
.proof-note { position: absolute; color: var(--red-pen); }
.proof-note--kern { top: 28px; right: 22px; font-family: var(--font-hand); font-size: 24px; transform: rotate(6deg); }
.proof-note--blue { bottom: 14px; left: 18px; font-family: 'Reenie Beanie', cursive; font-size: 26px; transform: rotate(-4deg); }
.proof-note--thunder { bottom: 12px; right: 18px; font-family: 'Nothing You Could Do', cursive; font-size: 17px; transform: rotate(-8deg); }

.space-art { position: relative; overflow: hidden; height: 170px; border-radius: 16px; background: var(--navy); }
.space-art__wave { position: absolute; left: 0; bottom: 6px; }
.sat { animation: orbit 14s linear 2; }
.wave { animation: wave 3s linear 10; }

@media (max-width: 900px) {
  .stage-key { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stage-bars { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 18px; }
  .book, .idea { padding: 32px 24px; }
  .book__title { font-size: 44px; }
  .book__body { grid-template-columns: 1fr; gap: 8px; }
  .book__cover { max-width: 260px; }
  .stamp { right: -10px; }
  .stage-key { row-gap: 28px; }
  .stage-key li:nth-child(4)::before { right: 50%; }
  .stage-key li:nth-child(5)::before { left: 50%; }
  .ideas { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .stage-btn__name { font-size: 16px; } /* "Beta readers" fits a 320px screen */
}

/* ==========================================================================
   Journal
   ========================================================================== */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.filter-chip {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--r-pill);
  background: #FFFFFF;
  color: var(--navy);
  box-shadow: 0 0 0 1px rgba(11,53,88,.08);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.filter-chip:hover { background-color: var(--brick); color: #FFFFFF; box-shadow: none; }
.filter-chip[aria-pressed="true"]:hover { background-color: var(--brick); }
.filter-chip[aria-pressed="true"] { background: var(--navy); color: #FFFFFF; }

.posts { padding: 56px 0 120px; }
.posts .placeholder-note { margin-top: 28px; }
.entries { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid rgba(11,53,88,.10); }
.entries > li { border-bottom: 1px solid rgba(11,53,88,.10); }
.entries > li[hidden] { display: none; }

.entry {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto 28px;
  gap: 32px;
  align-items: center;
  margin: 6px -20px;
  padding: 30px 20px;
  border-radius: 20px;
  background: #FFFFFF;
  transition: background-color .2s;
}
.entry__date { font-weight: 500; color: var(--slate-2); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.entry__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.entry__title { font-size: 26px; line-height: 1.2; }
.entry--placeholder .entry__title { color: #7D90A6; }
.entry__title { margin: 0; transition: color .2s; }
.entry:hover .entry__title { color: var(--link-hover); }
.entry__summary { font-size: 17px; line-height: 1.55; color: var(--slate); }
.entry__arrow { font-size: 22px; color: var(--footer-muted); transition: transform .2s, color .2s; }
.entry:hover .entry__arrow { transform: translateX(4px); color: var(--blue); }
/* A photo is optional: text-only posts let the body run into the photo column */
.entry__body { grid-column: 2 / 4; }
.entry--photo .entry__body { grid-column: 2; }
.entry .thumb { grid-column: 3; }
.entry__arrow { grid-column: 4; }

.thumb {
  position: relative;
  overflow: hidden;
  display: block;
  width: 180px;
  height: 128px;
  border-radius: 16px;
  background: linear-gradient(150deg, #9FD7E8 0%, #6E9DC0 55%, #3D5F86 100%);
}
.thumb::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  background: linear-gradient(180deg, rgba(11,53,88,0), rgba(11,53,88,.35));
}
.thumb__label {
  position: absolute;
  z-index: 1;
  left: 10px;
  bottom: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  color: rgba(255,255,255,.85);
}

.strip-section { padding: 0 0 120px; }
.strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 40px 44px;
  border-radius: 28px;
  background: var(--band);
  color: #FFFFFF;
}
.strip__copy { display: flex; flex-direction: column; gap: 6px; }
.strip__title { margin: 0; font-size: 30px; }
.strip__text { margin: 0; font-size: 17px; color: #E6ECFF; }

@media (max-width: 900px) {
  .entry { grid-template-columns: 1fr; gap: 10px; margin: 6px 0; padding: 22px 18px; }
  .entry__body, .entry--photo .entry__body, .entry .thumb, .entry__arrow { grid-column: 1; }
  .thumb { width: 100%; height: 180px; }
  .entry .thumb { order: -1; margin-bottom: 6px; }
  .entry__arrow { display: none; }
}

/* ==========================================================================
   Journal post
   ========================================================================== */
.post-header { position: relative; overflow: hidden; }
.post-header__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 40% 70% at 85% 0%, rgba(77,152,255,.14), rgba(77,152,255,0) 70%),
    radial-gradient(ellipse 40% 70% at 10% 10%, rgba(0,107,255,.12), rgba(0,107,255,0) 70%);
}
.post-header__inner { position: relative; display: flex; flex-direction: column; gap: 22px; }
.back-link { align-self: flex-start; font-size: 15px; font-weight: 600; color: var(--blue-ink); transition: color .2s; }
.back-link:hover { color: var(--link-hover); }
.post-header .tag { padding: 5px 14px; }
.post-title { margin: 0; }
.post-meta { margin: 0; color: var(--slate-2); font-variant-numeric: tabular-nums; }

.prose {
  display: flex;
  flex-direction: column;
  gap: 26px;
  font-size: 20px;
  line-height: 1.75;
  color: var(--body-ink);
}
.prose p { margin: 0; }
.prose a { color: var(--link); font-weight: 600; border-bottom: 1.5px solid rgba(37,99,201,.4); }
.prose a:hover { color: var(--link-hover); border-bottom-color: var(--link-hover); }
.prose--after { padding-top: 48px; }
/* EE post body: space it from the intro or photo above, when there is one */
.prose--intro + .prose--body, .bleed + .prose--body { padding-top: 48px; }
/* Intro sits under the photo when there is one */
.bleed + .prose--intro { padding-top: 48px; }
.prose__lead { font-size: 24px; line-height: 1.55; font-weight: 500; color: var(--navy); }
.prose__signature { margin-top: 12px; line-height: 0; }

.bleed { margin: 56px 0 0; display: flex; flex-direction: column; gap: 12px; }
.bleed__frame {
  position: relative;
  overflow: hidden;
  height: 640px;
  margin: 0 24px;
  border-radius: var(--r-panel);
  background:
    radial-gradient(ellipse 30% 40% at 50% 50%, #FFFFFF 0%, #F4F1EA 60%, rgba(244,241,234,0) 100%),
    linear-gradient(135deg, #C9B79C 0%, #B39E80 100%);
}
.bleed__label { position: absolute; right: 24px; top: 20px; font-size: 12px; font-weight: 600; letter-spacing: .08em; color: rgba(255,255,255,.85); }
.bleed__caption { width: 100%; font-family: var(--font-hand); font-weight: 500; font-size: 28px; line-height: 1.2; color: var(--ink-hand); }

.manuscript {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 300px;
  height: 390px;
  transform: translate(-50%, -50%) rotate(-4deg);
  background: #FFFFFF;
  border-radius: 4px;
  box-shadow: 0 2px 0 #EDEAE3, 0 4px 0 #E3DFD6, 0 6px 0 #EDEAE3, 0 8px 0 #DCD7CC, 0 30px 60px rgba(60,40,15,.35);
}
.manuscript__lines { position: absolute; left: 36px; right: 36px; top: 48px; display: flex; flex-direction: column; gap: 12px; }
.manuscript__lines span { height: 6px; border-radius: 3px; background: #E8EBF0; }
.manuscript__lines .ms-head { height: 10px; width: 60%; border-radius: 4px; background: #D9DEE6; }
.manuscript__lines .ms-85 { width: 85%; }
.manuscript__lines .ms-70 { width: 70%; }

/* .pull-quote: put on any paragraph in a post (Wygwam Source view) */
.pull, .prose .pull-quote {
  margin: 16px 0;
}
.pull p, .pull-quote { color: var(--navy); }

.post-signup { padding: 80px 0 0; }
.post-signup .flip-box { min-height: 260px; }
.post-signup .flip__face {
  padding: 32px 36px;
}
.post-signup__form { gap: 16px; }
.post-signup__title { margin: 0; font-size: 26px; }
.post-signup__thanks { gap: 10px; }
.thanks-title { margin: 0; font-size: 28px; }

.related { padding: 80px 0 120px; }
.related .wrap { display: flex; flex-direction: column; gap: 24px; }
.related__title { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--slate-2); }
.rels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.rel { display: flex; flex-direction: column; gap: 12px; padding: 28px; transition: transform .25s ease, box-shadow .25s; }
.rel:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(11,53,88,.06), 0 24px 48px rgba(11,53,88,.12); }
.rel__meta { display: flex; align-items: center; gap: 12px; }
.rel__date { font-size: 14px; color: var(--slate-2); }
.rel__title { font-size: 22px; line-height: 1.25; color: var(--navy); }
.rel__summary { font-size: 16px; color: var(--slate); }

@media (max-width: 900px) {
  .bleed__frame { margin: 0 12px; border-radius: 24px; height: 420px; }
  .field-row { flex-direction: column; align-items: stretch; }
  .post-signup .flip-box { min-height: 330px; }
  .rels { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-hero { margin-bottom: 112px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 72px; align-items: start; }
.contact-intro { display: flex; flex-direction: column; gap: 24px; padding-top: 8px; }
.contact-title { margin: 0; font-size: 72px; line-height: 1; }
.contact-lede { margin: 0; font-size: 22px; line-height: 1.45; max-width: 22em; }


.contact-form-col { display: flex; flex-direction: column; gap: 22px; }
.contact-card { min-height: 620px; perspective: 1600px; }
.contact-form { justify-content: flex-start; gap: 20px; padding: 36px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group--grow { flex-grow: 1; }
.contact-form .btn { min-height: 54px; padding: 0 28px; }
.contact-thanks { gap: 14px; padding: 48px 40px; }
.contact-thanks__title { margin: 0; font-size: 34px; line-height: 1.2; }
.contact-thanks .hand { transform: rotate(-2deg); }
.contact-alt { margin: 0; text-align: center; font-size: 17px; }
.contact-alt a { font-weight: 600; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-title { font-size: 48px; }
  .contact-card { min-height: 700px; }
  .contact-hero { margin-bottom: 72px; }
  .contact-form { padding: 28px 22px; }
}

/* ==========================================================================
   Newsletter
   ========================================================================== */
.nl-hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}
.nl-hero__copy { display: flex; flex-direction: column; gap: 22px; }
.nl-hero .btn-row { margin-top: 4px; gap: 12px; }
.nl-hero .btn { min-height: 54px; padding-top: 0; padding-bottom: 0; }
.badge {
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 700;
}
.nl-title { margin: 0; font-size: 60px; line-height: 1.02; }
.nl-lede { margin: 0; font-size: 21px; line-height: 1.5; }

/* Zine on a desk. zine.js scales the 600x470 desk to fit its column. */
.zine { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.zine__stage { position: relative; width: 100%; max-width: 600px; height: 470px; }
.zine__desk {
  position: absolute;
  left: 0;
  top: 0;
  width: 600px;
  height: 470px;
  transform-origin: top left;
  border-radius: 28px;
  perspective: 1600px;
}
.zine__desk [hidden] { display: none !important; }
.zine-fade { animation: zinefade .35s ease-out; }

.zine-cover {
  position: absolute;
  left: 50%;
  top: 40px;
  width: 290px;
  height: 390px;
  margin-left: -145px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 34px 26px 24px;
  border-radius: 6px 14px 14px 6px;
  background:
    radial-gradient(ellipse 70% 40% at 50% 30%, rgba(0,107,255,.45), rgba(0,107,255,0) 70%),
    linear-gradient(165deg, #0B3558 0%, #1C2F7A 55%, #3B2A86 100%);
  box-shadow: -3px 0 0 #E7EAF2, -6px 0 0 #D9DEEA, 0 24px 48px rgba(11,53,88,.35);
  color: #FFFFFF;
  text-align: center;
}
.zine-cover__series { font-size: 11px; font-weight: 700; letter-spacing: .22em; color: rgba(255,255,255,.75); }
.zine-cover__title { margin-top: 6px; font-size: 40px; line-height: .95; }
.zine-cover__author { margin-top: auto; font-size: 11px; font-weight: 700; letter-spacing: .24em; color: rgba(255,255,255,.85); }

.zine-book {
  position: absolute;
  left: 30px;
  top: 40px;
  width: 540px;
  height: 390px;
  display: flex;
  border-radius: 6px;
  box-shadow: 0 24px 48px rgba(11,53,88,.22);
}
.zine-page {
  position: relative;
  overflow: hidden;
  width: 50%;
  height: 100%;
  padding: 26px 22px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--navy);
}
.zine-page--left { border-radius: 6px 0 0 6px; background: linear-gradient(to left, rgba(11,53,88,.10), rgba(11,53,88,0) 14%), #FFFDF8; }
.zine-page--right { border-radius: 0 6px 6px 0; background: linear-gradient(to right, rgba(11,53,88,.10), rgba(11,53,88,0) 14%), #FFFDF8; }
.zine-page__inner { height: 100%; }
.zine-kicker { margin: 0 0 14px; font-size: 11px; font-weight: 700; letter-spacing: .16em; }
.zine-kicker--blue { color: var(--blue-ink); margin-bottom: 0; }
.zine-list { margin: 0; padding: 0 0 0 18px; display: flex; flex-direction: column; gap: 12px; }
.zine-small { margin: 18px 0 0; font-size: 11px; color: var(--slate-2); }
.zine-hand { margin: 26px 0 0; font-family: var(--font-hand); font-weight: 500; font-size: 20px; line-height: 1.1; color: var(--ink-hand); }
/* Case File contents: manuscript lines, character files, the claim form */
.zine-chapter { margin: 10px 0 14px; font-size: 20px; line-height: 1.15; }
.zine-lines { display: flex; flex-direction: column; gap: 9px; }
.zine-lines--top { margin-top: 30px; }
.zine-line { height: 5px; border-radius: 3px; background: #E2DED4; }
.zine-line--90 { width: 90%; } .zine-line--85 { width: 85%; } .zine-line--80 { width: 80%; } .zine-line--75 { width: 75%; }
.zine-line--70 { width: 70%; } .zine-line--65 { width: 65%; } .zine-line--60 { width: 60%; } .zine-line--50 { width: 50%; }
.zine-file { display: flex; gap: 12px; margin-top: 14px; }
.zine-photo { flex: none; display: grid; place-items: center; width: 70px; height: 88px; border: 1.2px solid rgba(11,53,88,.25); background: #F1ECE0; font-size: 9px; letter-spacing: .06em; color: var(--slate-2); }
.zine-file dl, .zine-form { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-content: start; font-size: 12px; }
.zine-file dt, .zine-form dt { font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-2); padding-top: 2px; }
.zine-file dd, .zine-form dd { margin: 0; border-bottom: 1px solid rgba(11,53,88,.15); padding-bottom: 3px; }
.zine-form { margin-top: 16px; gap: 10px 10px; font-size: 13px; }
.zine-circled { position: relative; display: inline-block; padding: 0 3px; }
.zine-circled::after { content: ""; position: absolute; inset: -4px -6px; border: 1.5px solid var(--red-pen); border-radius: 50%; transform: rotate(-6deg); }
.zine-note { margin: 18px 0 0; font-family: var(--font-hand); font-weight: 500; font-size: 20px; line-height: 1.1; color: var(--ink-hand); transform: rotate(-2deg); }
.zine-note--red { color: var(--red-pen); }
/* Redaction bars: the Case File preview hints at content without showing it */
.zine-redact { display: inline-block; vertical-align: middle; height: .8em; border-radius: 1px; background: var(--navy); }
.zine-redact--60 { width: 60%; } .zine-redact--70 { width: 70%; } .zine-redact--80 { width: 80%; } .zine-redact--90 { width: 90%; }
.zine-chapter .zine-redact { height: .75em; }

/* The cover as a manila case folder */
.zine-cover--folder {
  justify-content: flex-start;
  border-radius: 4px 10px 10px 4px;
  background: linear-gradient(170deg, #E9D7A8 0%, #DCC48C 100%);
  box-shadow: -3px 0 0 #CDB57E, -6px 0 0 #BFA66E, 0 24px 48px rgba(0,0,0,.35);
  color: var(--navy);
}
.zine-cover--folder .zine-cover__series { margin-top: 40px; color: rgba(11,53,88,.7); }
.zine-cover--folder .zine-cover__title { font-size: 54px; line-height: .95; }
.zine-cover--folder .zine-cover__author { color: rgba(11,53,88,.75); }
.zine-cover__tab { position: absolute; top: 14px; right: 16px; padding: 3px 8px; border: 1px solid rgba(11,53,88,.3); background: #F6EEDA; font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.zine-cover__stamp {
  margin-top: 46px;
  padding: 6px 14px;
  border: 2.5px solid var(--red-pen);
  border-radius: 4px;
  color: var(--red-pen);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  transform: rotate(-8deg);
  opacity: .85;
}

.zine-turn {
  position: absolute;
  left: 50%;
  top: 0;
  width: 50%;
  height: 100%;
  transform-origin: left center;
  border-radius: 0 6px 6px 0;
  background: linear-gradient(to right, #F1EEE6, #FFFDF8 40%);
  box-shadow: 0 6px 20px rgba(11,53,88,.18);
}
.zine-turn.is-turning { transform: rotateY(-178deg); transition: transform .55s cubic-bezier(.4,.1,.3,1); }
.zine-pencil { position: absolute; right: -20px; bottom: 40px; transform: rotate(-24deg); }

.zine-dots { display: flex; align-items: center; gap: 12px; } /* dot centres 24px apart (WCAG 2.5.8) */
.zine-dot {
  position: relative;
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background-color .2s, width .2s;
}
.zine-dot::before { content: ""; position: absolute; inset: -6px; } /* 24px touch target */
.zine-dot[aria-pressed="true"] { width: 32px; }
.zine-dots__name { margin-left: 8px; font-size: 13px; font-weight: 500; }

.svg-hand { font-family: var(--font-hand); font-weight: 500; }
.svg-label { font-family: var(--font-sans); }

.nl-section { padding-top: 112px; }
.nl-section > .wrap { display: flex; flex-direction: column; gap: 32px; }
.h2-xl { margin: 0; font-size: 44px; }

.inside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.feature { display: flex; gap: 20px; padding: 32px; }
.feature__text { display: flex; flex-direction: column; gap: 6px; }
.feature h3 { margin: 0; font-size: 22px; }
.feature p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--slate); }

.nl-band-section { padding: 80px 0 120px; }
.nl-band { gap: 48px; padding: 72px; }
.nl-band .band__copy { gap: 14px; }
.nl-band .band__title { font-size: 44px; line-height: 1.05; }
.nl-band .band__text { font-size: 18px; }
.nl-signup { min-height: 220px; }
.nl-signup .flip__face { box-shadow: 0 24px 56px rgba(11,53,88,.2); }
.nl-signup__form { gap: 14px; }
.nl-signup__thanks { gap: 8px; }
.nl-signup__thanks .thanks-title { font-size: 26px; }
.nl-signup__thanks .signup__sig { font-size: 26px; }

.nl-next > .wrap { gap: 20px; align-items: center; text-align: center; }
.nl-next__intro { margin: 0; font-size: 19px; line-height: 1.6; color: var(--slate); max-width: 40em; }


@media (max-width: 900px) {
  .nl-hero { grid-template-columns: 1fr; gap: 40px; }
  .nl-title { font-size: 44px; }
  .inside { grid-template-columns: 1fr; }
  .panel.nl-band { padding: 40px 22px; }
  .nl-signup { min-height: 340px; }
}

/* ==========================================================================
   About
   ========================================================================== */
.page--about main { font-size: 20px; line-height: 1.65; }

.about-hero {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  margin: 16px 24px 0;
  border-radius: var(--r-panel);
  background: #161A24;
}
/* Background photo, muted so the white type reads; the turtle's head stays in frame on phones */
.about-hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 66% 50%;
  filter: saturate(.55) brightness(.7);
}
/* Darkest at the bottom-left, behind the headline */
.about-hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(14,20,32,.85) 0%, rgba(14,20,32,.45) 45%, rgba(14,20,32,.15) 100%),
    radial-gradient(ellipse 60% 70% at 0% 100%, rgba(14,20,32,.5), rgba(14,20,32,0) 70%);
}
.about-hero__inner { position: relative; width: 100%; padding-bottom: 96px; display: flex; flex-direction: column; gap: 24px; }
.about-hero__title { margin: 0; min-height: 104px; font-size: 104px; line-height: 1; color: var(--footer-text); }
.about-hero__title .caret { width: 4px; vertical-align: -.05em; background: var(--pencil); }
.about-hero__sub { margin: 0; font-style: italic; font-size: 32px; line-height: 1.3; color: #D5D8DE; max-width: 24em; }

.story { padding: 128px 0; }
.story--tint { background: var(--wash-soft); }

.two { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 88px; align-items: center; }
.two--rev { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.two--top { align-items: start; }

.story__text { display: flex; flex-direction: column; gap: 22px; max-width: 36em; }
.story__text p { margin: 0; }
.story__text .kicker { margin-bottom: 6px; }
.story__text--solo { max-width: none; }
.horn-pull { margin: 12px 0; padding: 4px 0 4px 32px; border-left: 3px solid var(--blue); }
.horn-pull p { margin: 0; font-family: var(--font-serif, inherit); font-style: italic; font-size: 32px; line-height: 1.3; color: var(--navy); font-variation-settings: "SOFT" 50, "WONK" 0; }
@media (max-width: 900px) { .horn-pull p { font-size: 25px; } }
.lead-lg { font-size: 26px; line-height: 1.4; color: var(--navy); }
.story__italic { font-style: italic; color: var(--navy); }

.fig { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.fig--sticky { position: sticky; top: 120px; gap: 12px; }
/* Photo panel: background image pinned to the top, so any crop comes off the bottom */
.portrait { aspect-ratio: 4 / 5; border-radius: var(--r-card); background: #E4EAF1 center top / cover no-repeat; box-shadow: var(--card-shadow); }
.portrait--bobble { background-image: url("/assets/images/bobble-head-tom.jpg"); background-position: var(--pan, 0%) center; } /* about-scroll.js pans 0% → 100% */
.photo { display: block; width: 100%; height: auto; border-radius: var(--r-card); box-shadow: var(--card-shadow); }
/* Kindergarten → now: the "after" image sits on top and fades in on scroll (about-scroll.js) */
.fade-pair { position: relative; }
.fade-pair__after { position: absolute; inset: 0; }
.fig__card { padding: 20px; box-shadow: var(--card-shadow-lg); }
.fig__hand { font-family: var(--font-hand); font-weight: 500; font-size: 22px; color: var(--slate-2); }
.fig--sticky .fig__hand, .fig--sticky .fig__note { padding-left: 8px; }
.fig__note { margin: 0; font-size: 12px; letter-spacing: .06em; color: var(--slate-2); }



.ear { display: flex; flex-direction: column; gap: 20px; }
.player { display: flex; flex-direction: column; gap: 18px; padding: 28px 28px 24px; border-radius: var(--r-card); background: var(--navy); color: var(--footer-text); }
.player__row { display: flex; align-items: center; gap: 18px; }
.player__btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: var(--blue);
  color: #FFFFFF;
  cursor: pointer;
  transition: background-color .2s;
}
.player { cursor: pointer; } /* whole card toggles play (reading-demo.js) */
.player:hover .player__btn { background: var(--brick); }
.player :focus-visible { outline-color: var(--footer-text); }
.player__wave rect { fill: rgba(243,238,227,.35); }
.player__wave rect.is-lit { fill: var(--blue); }
.player__caption { margin: 0; min-height: 66px; font-size: 22px; line-height: 1.5; }
.player__caption span { transition: color .2s; }
.player__caption.is-active span { color: rgba(243,238,227,.45); }
.player__caption.is-active span.is-past { color: var(--footer-muted); }
.player__caption.is-active span.is-current { color: #FFFFFF; }
.player__note { margin: 0; font-size: 12px; letter-spacing: .06em; color: var(--footer-muted); }
.route { margin: 0; padding: 18px 20px 14px; border-radius: 20px; background: var(--mist); }

.grow { min-height: 460px; display: flex; align-items: flex-start; justify-content: center; }
.grow__card {
  width: 100%;
  max-width: 440px;
  height: 470px;
  overflow: hidden;
  padding: 18px 26px;
  box-shadow: var(--card-shadow-lg);
  transition: height .2s linear;
}
.grow__head { height: 38px; display: flex; justify-content: space-between; font-size: 13px; letter-spacing: .14em; }
.grow__label { font-weight: 700; }
.grow__pages { color: var(--slate-2); }
.grow__stack { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.grow__item { display: flex; flex-direction: column; gap: 6px; padding-bottom: 12px; border-bottom: 1px dashed rgba(11,53,88,.2); transition: opacity .3s; }
.grow__row { display: flex; justify-content: space-between; gap: 12px; }
.grow__title { font-size: 20px; }
.grow__status { font-size: 13px; color: var(--slate-2); }
.mini-bars { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; }
.mini-bars span { height: 6px; border-radius: var(--r-pill); border: 1.2px solid rgba(11,53,88,.28); }
.mini-bars .is-done { border-color: var(--navy); background: var(--navy); }
.mini-bars .is-active { border-color: var(--blue); background: var(--blue); }
.about-link { font-size: 17px; }

.feel { padding: 168px 0; }
.feel .wrap { display: flex; flex-direction: column; gap: 48px; }
.feel__pull { margin: 0; font-size: 48px; line-height: 1.18; }
.feel__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 32px 56px; color: var(--slate); }
.feel__cols p { margin: 0; }

.process-note { padding: 0 0 128px; }
.process-note p { margin: 0; padding: 28px 32px; background: var(--mist); font-size: 17px; line-height: 1.6; color: var(--label-ink); }
.process-note strong { font-weight: 600; color: var(--navy); }

.off-page > .wrap { display: flex; flex-direction: column; gap: 64px; }
.off-page__title { margin: 0 0 6px; font-size: 44px; line-height: 1.1; }
.guitar-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border-radius: var(--r-card);
  background: #2A2E38;
}
.guitar-photo svg { position: absolute; inset: 0; }
.guitar-photo__label { position: relative; margin-bottom: 14px; font-size: 12px; letter-spacing: .08em; color: rgba(243,238,227,.6); }

.reading { display: flex; flex-direction: column; align-items: center; gap: 48px; }
.reading__title { margin: 0; text-align: center; font-family: var(--font-serif, inherit); font-weight: 500; font-size: 44px; line-height: 1.1; letter-spacing: -.01em; font-variation-settings: "SOFT" 30, "WONK" 0; }
/* Currently reading: a pile of books on the desk, spines facing out.
   Typographic spines rather than publishers' cover art. */
.book-stack { list-style: none; margin: 0; padding: 0 0 14px; display: flex; flex-direction: column; gap: 4px; position: relative; width: 100%; }
.book-stack::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; border-radius: 3px; background: linear-gradient(180deg, #D9CDB4, #C8B996); }
/* The pile is centred; notes hang in the margin to the right, like pencilled annotations */
.stack-book { position: relative; width: min(520px, 100%); margin: 0 auto; }
.stack-book__spine {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 0 28px;
  border-radius: 4px 6px 6px 4px;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.12), 0 2px 4px rgba(11,37,64,.12);
}
/* Two thin bands near each end, like a cloth binding */
.stack-book__spine::before,
.stack-book__spine::after { content: ""; position: absolute; top: 8px; bottom: 8px; width: 6px; border-left: 1px solid currentColor; border-right: 1px solid currentColor; opacity: .3; }
.stack-book__spine::before { left: 10px; }
.stack-book__spine::after { right: 10px; }
.stack-book__title { font-family: var(--font-serif, inherit); font-size: 22px; line-height: 1.2; font-variation-settings: "SOFT" 30, "WONK" 0; }
.stack-book__author { flex: none; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.stack-book__note {
  position: absolute;
  left: calc(100% + 36px);
  top: 50%;
  width: 240px;
  font-family: var(--font-hand);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.05;
  color: var(--ink-hand);
  transform: translateY(-50%) rotate(-4deg);
  transform-origin: left center;
}
.stack-book__note::before { content: "← "; }
/* Narrow desktop: less margin either side of the pile, so tuck the notes in */
@media (min-width: 901px) and (max-width: 1180px) {
  .stack-book__note { left: calc(100% + 20px); width: 150px; font-size: 22px; }
}

.stack-book--ink .stack-book__spine { width: 92%; margin-left: 4%; background: #1F4A7A; color: var(--footer-text); transform: rotate(-.6deg); }
.stack-book--sage .stack-book__spine { width: 100%; background: #7E9A84; color: #FFFFFF; transform: rotate(.4deg); }
.stack-book--cream .stack-book__spine { width: 96%; margin-left: 1%; background: #EFE6D2; color: var(--navy); box-shadow: inset 0 0 0 1px rgba(11,53,88,.12), inset 0 -3px 0 rgba(0,0,0,.06), 0 2px 4px rgba(11,37,64,.12); }
.stack-book--navy .stack-book__spine { width: 88%; margin-left: 7%; background: #0B2540; color: var(--footer-text); transform: rotate(.8deg); }
.stack-book--brick .stack-book__spine { width: 94%; margin-left: 2%; background: #9C4A3C; color: #FBF4EC; transform: rotate(-.4deg); }

@media (max-width: 900px) {
  .about-hero { margin: 12px 12px 0; border-radius: 24px; }
  .about-hero__title { font-size: 60px; min-height: 60px; }
  .about-hero__sub { font-size: 24px; }
  .story, .feel { padding: 80px 0; }
  .two, .two--rev { grid-template-columns: 1fr; gap: 40px; }
  .two--rev > :first-child { order: 2; }
  .fig--sticky { position: static; }
  .feel__pull { font-size: 32px; }
  .reading__title { font-size: 34px; }
  .stack-book { margin-bottom: 10px; }
  .stack-book__spine { padding: 12px 22px; }
  .stack-book__title { font-size: 19px; }
  .stack-book__note { position: static; display: block; width: auto; margin-top: 6px; padding-left: 8px; transform: rotate(-2deg); }
  .stack-book__note::before { content: "↑ "; }
}

/* ==========================================================================
   Ink and paper: serif headings, ink, paper and desk colours, per page.
   Kept after the page sections so it refines them. Body copy stays sans.
   ========================================================================== */
/* Headings and subheadings: Fraunces. WONK 0 keeps the italic plain (no swash forms). */
:is(.hero__title, .now__title, .section-title, .band__title, .door__title, .signup__thanks-title,
               .now__hook, .quiz__question, .site-footer__logo,
               .book__title, .idea__title, .proof-art__title) {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -.01em;
  font-variation-settings: "SOFT" 30, "WONK" 0;
}
.hero__title { line-height: 1.08; }
.now__hook { font-weight: 500; line-height: 1.2; }
.quiz__question { font-weight: 400; }

/* Projects */
.stage-key-section { padding-top: 64px; }
@media (max-width: 900px) {
  .stage-key-section { padding-top: 40px; }
}
/* Journal: a list of entries like a notebook index */
.posts { padding-top: 72px; }
.entry:hover { background: var(--paper); }
.entry__title { font-family: var(--font-serif); font-weight: 500; letter-spacing: -.01em; font-variation-settings: "SOFT" 30, "WONK" 0; }
.entry__date { font-family: var(--font-serif); font-style: italic; font-size: 17px; font-variation-settings: "WONK" 0; }
.strip__title { font-family: var(--font-serif); font-weight: 500; letter-spacing: -.01em; }

/* Tags: one colour per kind of post, all drawn from the desk.
   Writing = pencil, Places = sage, Science = ink */
.tag--writing { background: #FCEFD6; color: #7A4F00; }
.tag--places { background: #E4ECE4; color: #34573F; }
.tag--science { background: var(--tint-100); color: var(--blue-ink); }

/* Journal post: serif headings and pull quote; body copy stays in the site sans */
.post-header__glow { display: none; }
.post-header { padding: 88px 0 48px; }
.post-title { font-family: var(--font-serif); font-weight: 500; font-size: 60px; line-height: 1.08; letter-spacing: -.015em; font-variation-settings: "SOFT" 30, "WONK" 0; }
.post-meta { font-family: var(--font-serif); font-style: italic; font-size: 18px; font-weight: 400; font-variation-settings: "WONK" 0; }
.pull, .pull-quote { padding: 8px 0 8px 32px; border-radius: 0; border-left: 3px solid var(--blue); background: none; }
.pull p, .pull-quote { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 34px; line-height: 1.3; letter-spacing: -.01em; }
.post-signup .flip__face { box-shadow: 0 0 0 1px rgba(11,53,88,.08), 0 24px 56px rgba(11,37,64,.10); }
:is(.post-signup__title, .thanks-title, .rel__title) { font-family: var(--font-serif); font-weight: 500; letter-spacing: -.01em; font-variation-settings: "SOFT" 30, "WONK" 0; }
@media (max-width: 900px) {
  .post-title { font-size: 40px; }
  .pull p, .pull-quote { font-size: 26px; }
}
/* Journal post on phones: the whole photo, scaled down (no crop), half the gap above it,
   and 10px more side room for the text (header, caption, player and body line up). */
@media (max-width: 900px) {
  .post-header { padding-bottom: 24px; }
  .bleed { margin-top: 28px; }
  .bleed__frame { height: auto; background: none; }
  .bleed .bleed__frame img { position: static; height: auto; } /* beats the absolute, cover-cropped default further down */
  article .wrap--read, .listen { padding-left: calc(var(--gutter) + 10px); padding-right: calc(var(--gutter) + 10px); }
}

/* About: a memoir. Section titles become chapter titles; hero in serif. */
:is(.about-hero__title, .feel__pull, .off-page__title, .grow__title) {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -.01em;
  font-variation-settings: "SOFT" 30, "WONK" 0;
}
.about-hero__title { letter-spacing: -.02em; }
.about-hero__sub { font-family: var(--font-serif); font-weight: 400; font-variation-settings: "SOFT" 50, "WONK" 0; }
.feel__pull { font-weight: 400; }
.story__text .kicker--blue {
  margin-bottom: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -.005em;
  text-transform: none;
  font-variation-settings: "SOFT" 50, "WONK" 0;
}

/* Newsletter */
.badge { background: rgba(243,238,227,.1); box-shadow: inset 0 0 0 1px rgba(243,238,227,.25); color: var(--footer-text); }
:is(.nl-title, .h2-xl, .feature h3, .zine-cover__title, .zine-chapter) {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -.01em;
  font-variation-settings: "SOFT" 30, "WONK" 0;
}
.nl-title { color: var(--footer-text); }
.nl-lede { font-family: var(--font-serif); font-weight: 400; color: #D5D8DE; }
.nl-band .band__title { font-family: var(--font-serif); font-weight: 500; letter-spacing: -.01em; }
.zine__desk { background: linear-gradient(160deg, #FAF7F1 0%, #EFE7D6 100%); box-shadow: 0 0 0 1px rgba(243,238,227,.08), 0 30px 70px rgba(0,0,0,.4); }
.zine-cover:not(.zine-cover--folder) {
  background:
    radial-gradient(ellipse 70% 40% at 50% 30%, rgba(226,184,92,.22), rgba(226,184,92,0) 70%),
    linear-gradient(165deg, #0B2540 0%, #12355C 55%, #1F4A7A 100%);
}
.zine-kicker--pink { color: #A8323A; }
.zine-dot { background: rgba(243,238,227,.55); } /* 3:1 or better on the night background (WCAG 1.4.11) */
.zine-dot[aria-pressed="true"] { background: var(--paper); }
.zine-dots__name { color: #D5D8DE; }
/* Feature tiles use the desk colours (same family as the tags and book spines) */
.icon-tile--pink { background: #FBE7E6; }
.icon-tile--teal { background: #E4ECE4; }
.icon-tile--blue { background: var(--tint-100); }
.icon-tile--violet { background: #FCEFD6; }

/* Contact: intro on the dark panel, the form card on the right */
:is(.contact-title, .contact-thanks__title) { font-family: var(--font-serif); font-weight: 500; letter-spacing: -.015em; font-variation-settings: "SOFT" 30, "WONK" 0; }
.contact-hero .eyebrow { color: rgba(213,216,222,.75); }
.contact-title { color: var(--footer-text); }
.contact-lede { font-family: var(--font-serif); font-weight: 400; color: #D5D8DE; }
.contact-form .btn { box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.contact-alt { color: rgba(213,216,222,.75); }
.contact-alt a { color: var(--footer-text); border-bottom: 1px solid rgba(243,238,227,.4); transition: color .2s, border-color .2s; }
.contact-alt a:hover { color: var(--lamp); border-bottom-color: var(--lamp); }

/* Book cards: near-white with very faint drifting ink glows */
.book { background: #FEFDFB; }
.art--book::after { opacity: .1; }
.art--book .blob--1 { width: 40%; right: -10%; top: -20%; background: var(--tint-300); opacity: .14; }
.art--book .blob--2 { width: 30%; left: -8%; bottom: -18%; background: var(--tint-200); opacity: .2; }
.art--book .blob--3 { width: 24%; left: 40%; top: -16%; background: var(--tint-100); opacity: .25; }
.art--book .blob--4 { width: 26%; right: 20%; bottom: -24%; background: var(--tint-200); opacity: .18; }


/* Italic serif for the quieter subheads under a title */
:is(.hero__tagline, .now__genre, .quiz__answer, .quiz__book, .site-footer__tagline,
               .book__aside, .stage-desc__text) {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  font-variation-settings: "SOFT" 50, "WONK" 0;
}

/* Pencil is reserved for strong actions (Buy now, pre-order). Use .btn--pencil. */
.btn--pencil { background: var(--pencil); color: var(--navy); }
.btn--pencil:hover { background-color: var(--pencil-ink); }
.caret { background: var(--pencil); }
.door__icon-fill { fill: var(--pencil); }
.text-link { text-decoration: underline; text-decoration-color: var(--pencil); text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* Ink-coloured shadows instead of blue glows */
:is(.btn--glow, .signup__submit) { box-shadow: 0 10px 24px rgba(11,37,64,.22); }
.cover__frame { box-shadow: 0 2px 0 rgba(11,53,88,.04), 0 40px 80px rgba(11,37,64,.24); }
.field:focus-within { box-shadow: 0 0 0 3px rgba(31,74,122,.22); }
.progress__bar--empty { background: rgba(31,74,122,.12); }


/* ---------- Books page: finished books ---------- */
.shelf-page { padding-bottom: 96px; }
.book--featured .book__topline span:first-child { color: var(--brick); font-weight: 700; }
.book__hook {
  margin: 20px 0 0;
  font-family: var(--font-serif);
  font-size: 26px;
  line-height: 1.35;
  font-variation-settings: "SOFT" 30, "WONK" 0;
}
.book__sample { margin-top: 22px; font-size: 16px; text-align: center; }

.buy {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px dashed rgba(11,53,88,.25);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.buy__label { font-size: 13px; }
.buy__row { display: flex; flex-wrap: wrap; gap: 12px; }
.buy__note { margin: 0; font-size: 15px; color: var(--slate); }

.shelf-block { display: flex; flex-direction: column; gap: 20px; margin-top: 16px; }
.shelf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; align-items: stretch; }
.shelf-book { display: flex; flex-direction: column; padding: 28px 28px 32px; background: #FEFDFB; }
.shelf-book__cover { position: relative; aspect-ratio: 2 / 3; border-radius: 14px; }
.shelf-book__cover .tbd__title { font-size: 30px; }
.shelf-book__cover--deep { background: linear-gradient(165deg, #0B2540 0%, #12355C 60%, #1F4A7A 100%); }
.shelf-book__cover--paper { background: linear-gradient(165deg, #F5F0E6 0%, #E9DFCC 100%); color: var(--navy); }
.shelf-book__cover--night {
  background:
    radial-gradient(circle at 30% 70%, rgba(248,167,32,.35) 0 3px, rgba(0,0,0,0) 4px),
    radial-gradient(ellipse 70% 50% at 50% 20%, rgba(169,188,210,.18), rgba(0,0,0,0) 70%),
    #161A24;
}
.shelf-book__num { margin: 24px 0 0; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-2); }
.shelf-book__title { margin: 6px 0 0; font-size: 30px; line-height: 1.1; }
.shelf-book__facts { margin: 6px 0 0; font-size: 14px; color: var(--slate); }
.shelf-book__hook {
  margin: 14px 0 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.5;
  color: var(--body-ink);
  font-variation-settings: "SOFT" 50, "WONK" 0;
}
.shelf-book__links {
  margin-top: auto; /* sits at the bottom so all three cards line up */
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 16px;
}
/* Shelf card on /books/: title and cover link to the book's own page */
.book--shelf .book__title a { transition: color .2s; }
.book--shelf .book__title a:hover { color: var(--link-hover); }
a.book__cover-frame { display: block; }

/* A book's own page (/books/continuity-error/): no night hero, so less space on top */
.book-page { padding-top: 56px; }
.book-page > .wrap { gap: 24px; }
/* Cover and "Out now" stamp stay on screen while the text column scrolls past (desktop only) */
.book-page .book__cover { position: sticky; top: 120px; }
@media (max-width: 900px) { .book-page .book__cover { position: relative; top: auto; } }
/* Extra text under the buy buttons (book_body) */
.book__more { margin-top: 40px; padding-top: 36px; border-top: 1px dashed rgba(11,53,88,.25); max-width: 40em; }

/* Two-book “coming soon” shelf on /books/ before launch */
.shelf--two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; }

.shelf-next { padding: 96px 0 0; text-align: center; }
.shelf-next p { margin: 0; font-size: 24px; }
.shelf-next a { font-size: 19px; }
.shelf-next + .section { padding-top: 96px; }

@media (max-width: 900px) {
  .book__hook { font-size: 22px; }
  .book--featured .book__topline { height: auto; flex-direction: column; gap: 4px; margin-bottom: 8px; }
  .shelf { grid-template-columns: 1fr; gap: 24px; }
  .shelf-book__cover { max-width: 220px; }
  .buy__row .btn { flex: 1 1 auto; }
}


/* ---------- Journal: content from ExpressionEngine ---------- */
/* Empty paragraphs left by pasting (e.g. <p><!-- obsidian --></p>) take no space */
.prose > p:empty { display: none; }
/* First real paragraph of a post's intro gets the lead style */
.prose--intro > p:not(:empty):first-child,
.prose--intro > p:empty:first-child + p { font-size: 24px; line-height: 1.55; font-weight: 500; color: var(--navy); }
/* Rich Text extras */
.prose h2 { margin: 16px 0 0; font-size: 30px; line-height: 1.2; color: var(--navy); }
.prose h3 { margin: 8px 0 0; font-size: 24px; line-height: 1.25; color: var(--navy); }
.prose ul, .prose ol { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 10px; }
.prose img { display: block; max-width: 100%; height: auto; border-radius: var(--r-card); }
.prose figure { margin: 0; }
.prose figcaption { margin-top: 10px; font-family: var(--font-hand); font-size: 24px; color: var(--ink-hand); }
.prose blockquote:not(.pull) { margin: 0; padding-left: 24px; border-left: 3px solid var(--tint-300); color: var(--slate); }
/* Real photos in the wide image and the list thumbnails */
.bleed__frame img, .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.tag--real-or-made-up { background: #F6E3DE; color: #8A3A26; }
/* Older / newer posts */
.pager { margin-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 16px; }
.pager__count { color: var(--slate-2); font-size: 14px; }
/* Room under the signup card when there are no related posts below it */
.post-signup { padding-bottom: 120px; }
.post-signup + .related { padding-top: 0; }


/* ---------- Contact: Deftform embed ---------- */
.contact-card--embed { min-height: 0; padding: 12px; perspective: none; }
.contact-card--embed iframe { display: block; width: 100%; border: 0; }
.contact-noscript { margin: 0; padding: 24px; color: var(--slate); }


/* ==========================================================================
   Motion
   ========================================================================== */
.pulse { animation: pulse 1.6s ease-in-out 12; }
.float-a { animation: float 6s ease-in-out 5; }
.float-b { animation: float 7s ease-in-out -2s 5; }

@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes orbit { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(120px, -26px); } }
@keyframes wave { to { stroke-dashoffset: -60; } }
@keyframes zinefade { from { opacity: .2; } to { opacity: 1; } }
@keyframes drift-a {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-22%, 12%) scale(1.1); }
  66% { transform: translate(10%, 22%) scale(.95); }
  100% { transform: translate(18%, -10%) scale(1.06); }
}
@keyframes drift-b {
  0% { transform: translate(0, 0) scale(1.02); }
  33% { transform: translate(20%, -15%) scale(.94); }
  66% { transform: translate(-12%, -22%) scale(1.12); }
  100% { transform: translate(-22%, 12%) scale(1); }
}
@keyframes drift-c {
  0% { transform: translate(0, 0) scale(.96); }
  50% { transform: translate(24%, 18%) scale(1.12); }
  100% { transform: translate(-18%, 20%) scale(.96); }
}
@keyframes glitch-word {
  0%   { opacity: 1; transform: none; clip-path: none; }
  4%   { transform: translateX(-3px); clip-path: inset(0 0 45% 0); }
  8%   { transform: translateX(2px); clip-path: inset(55% 0 0 0); }
  12%  { opacity: 0; }
  22%  { opacity: 1; transform: translateX(2px); clip-path: inset(30% 0 20% 0); }
  27%  { transform: none; clip-path: none; }
  36%  { opacity: 0; }
  44%  { opacity: 1; transform: translateX(-2px); clip-path: inset(0 0 60% 0); }
  48%  { transform: translateX(1px); clip-path: inset(40% 0 0 0); }
  52%  { transform: none; clip-path: none; }
  62%  { opacity: 0; }
  67%  { opacity: 1; transform: translateX(-1px); clip-path: inset(0 0 35% 0); }
  71%, 100% { opacity: 1; transform: none; clip-path: none; }
}
@keyframes glitch-red {
  0%   { opacity: 0; }
  12%  { opacity: 1; transform: translateX(-4px); clip-path: inset(0 0 55% 0); }
  16%  { transform: translateX(3px); clip-path: inset(50% 0 10% 0); }
  19%  { transform: translateX(-2px); clip-path: inset(15% 0 50% 0); }
  22%  { opacity: 0; }
  36%  { opacity: 1; transform: translateX(3px); clip-path: inset(10% 0 45% 0); }
  40%  { transform: translateX(-3px); clip-path: inset(60% 0 0 0); }
  44%  { opacity: 0; }
  62%  { opacity: 1; transform: translateX(-2px); clip-path: inset(0 0 40% 0); }
  67%, 100% { opacity: 0; }
}
@keyframes glitch-ink {
  0%   { opacity: 0; }
  12%  { opacity: 1; transform: translateX(1px); clip-path: inset(45% 0 0 0); filter: blur(.6px); }
  16%  { transform: translateX(-1px); clip-path: inset(0 0 50% 0); filter: none; }
  19%  { transform: translateX(2px); clip-path: inset(50% 0 0 0); }
  22%  { opacity: 0; }
  36%  { opacity: 1; transform: translateX(-1px); clip-path: inset(55% 0 0 0); filter: blur(.8px); }
  40%  { transform: translateX(1px); clip-path: inset(0 0 40% 0); filter: none; }
  44%  { opacity: 0; }
  62%  { opacity: 1; transform: none; clip-path: inset(40% 0 0 0); filter: blur(.5px); }
  67%, 100% { opacity: 0; filter: none; }
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

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

/* ==========================================================================
   Responsive (900px)
   ========================================================================== */
@media (min-width: 901px) {
  .mobile-menu { display: none !important; }
}

@media (max-width: 900px) {
  :root { --gutter: 16px; --header-offset: 88px; }

  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .site-logo__img { height: 36px; top: 2px; }

  .section { padding-top: 72px; padding-bottom: 72px; }
  .books + .section { padding-top: 72px; }

  .panel { padding: 32px 22px; }
  .band { padding: 40px 22px; }
  .signup { min-height: 300px; }
  .signup__row { flex-direction: column; align-items: stretch; }

  .site-footer { margin: 0 12px 12px; border-radius: 24px; }
  .site-footer__top, .site-footer__bottom { flex-direction: column; align-items: flex-start; }

  /* Home */
  .hero__grid { grid-template-columns: 1fr; gap: 56px; }
  .hero__title { font-size: 44px; }
  .cover__chip { right: -8px; }
  .now-grid { grid-template-columns: 1fr; gap: 40px; }
  .now__aside { position: static; }
  .now__title { font-size: 44px; }
  .now__note { display: none; }
  .doors { grid-template-columns: 1fr; }
  .quiz-panel { padding: 88px 24px; }
  .mq { padding: 28px 20px; }
  .mq__final { font-size: 56px; }
}

/* ==========================================================================
   Downloads (/downloads/): one .dl-book section per novel, newest first
   ========================================================================== */
.dl-hero { padding: 96px 0 72px; }
.dl-hero__eyebrow { color: var(--footer-muted); }
.dl-book { padding: 96px 0 128px; }
.dl-book + .dl-book { padding-top: 0; }
.dl-book__head { display: flex; align-items: center; gap: 28px; margin-bottom: 40px; }
.dl-book__cover { flex: none; width: 160px; height: auto; border-radius: 12px; box-shadow: var(--card-shadow); }
.dl-book__title { margin: 6px 0 4px; font-size: 44px; line-height: 1.1; }
.dl-book__lede { margin: 0; font-family: var(--font-serif); font-style: italic; font-size: 20px; color: var(--slate); }
.dl-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 28px; align-items: start; }
.dl-item { display: flex; flex-direction: column; gap: 14px; }
.dl-item p { margin: 0; }
.dl-item__title { margin: 0; font-size: 28px; line-height: 1.15; }
.dl-item__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.dl-size { margin-left: 8px; font-weight: 500; opacity: .7; }
.dl-audio { display: flex; align-items: center; gap: 16px; margin-top: 6px; padding: 16px 18px; border-radius: 16px; background: var(--mist); }
.dl-audio__btn { width: 48px; height: 48px; }
.dl-audio__track { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.dl-audio__seek { width: 100%; margin: 0; accent-color: var(--blue); cursor: pointer; }
.dl-audio__meta { font-size: 13px; color: var(--slate); font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
  .dl-hero { padding: 72px 0 56px; }
  .dl-book { padding: 64px 0 88px; }
  .dl-book__head { gap: 18px; }
  .dl-book__cover { width: 104px; }
  .dl-book__title { font-size: 34px; }
  .dl-grid { grid-template-columns: 1fr; }
}

/* ---------- SendFox signup embed ----------
   cdn.sendfox.com/js/embed.js draws its own card with inline styles,
   so these rules use !important to bring it in line with the site. */
.sf-signup { display: flex; flex-direction: column; width: 100%; min-height: 236px; }
.sf-signup .sendfox-embed { max-width: none !important; }
.sf-signup .sendfox-embed-card {
  padding: 32px !important;
  border: 0 !important;
  border-radius: var(--r-card) !important;
  background: #FFFFFF !important;
  box-shadow: var(--card-shadow-xl) !important;
  color: var(--navy) !important;
}
.sf-signup .sendfox-embed-card * { font-family: var(--font-sans) !important; }
.sf-signup .sendfox-embed-card form { gap: 16px !important; }
.sf-signup .sendfox-embed-card label { margin-bottom: 8px !important; font-size: 14px !important; font-weight: 600 !important; color: var(--label-ink) !important; }
.sf-signup .sendfox-embed-card input:not([type="checkbox"]) {
  min-height: 56px !important;
  padding: 8px 16px !important;
  border: 1.5px solid rgba(11,53,88,.55) !important;
  border-radius: var(--r-control) !important;
  background: transparent !important;
  font-family: var(--font-hand) !important;
  font-size: 30px !important;
  line-height: 1.2 !important;
  color: var(--ink-hand) !important;
  transition: border-color .2s;
}
.sf-signup .sendfox-embed-card input:not([type="checkbox"])::placeholder { font-family: var(--font-sans); font-size: 17px; color: var(--placeholder); }
.sf-signup .sendfox-embed-card input:not([type="checkbox"]):focus { outline: none !important; border-color: var(--blue) !important; }
.sf-signup .sendfox-embed-card button[type="submit"] {
  min-height: 56px !important;
  padding: 0 24px !important;
  border-radius: var(--r-control) !important;
  background: var(--blue) !important;
  color: #FFFFFF !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  transition: transform .15s ease, background-color .2s;
}
.sf-signup .sendfox-embed-card button[type="submit"]:hover { transform: translateY(-2px); background: var(--brick) !important; }
.sf-signup .sendfox-embed-card button[type="submit"]:disabled { opacity: .7; transform: none; cursor: default !important; }
.sf-signup .sendfox-embed-card button[type="submit"]:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
/* Success message (shown only if SendFox has no redirect set) and errors */
.sf-signup .sendfox-embed-card > div > div:last-child { font-size: 19px !important; color: var(--navy) !important; }
.sf-signup .sendfox-embed-error { font-size: 14px !important; }
.sf-signup--nl .sendfox-embed-card { box-shadow: 0 24px 56px rgba(11,53,88,.2) !important; }
.sf-signup--post .sendfox-embed-card { box-shadow: 0 0 0 1px rgba(11,53,88,.08), 0 24px 56px rgba(11,37,64,.10) !important; }
.post-signup .wrap { display: grid; gap: 16px; }
/* Shown under the form in the blue bands */
.sf-signup__note { margin: auto 0 0; padding-top: 16px; text-align: center; font-size: 15px; color: #FFFFFF; }
@media (max-width: 600px) {
  .sf-signup .sendfox-embed-card { padding: 24px 20px !important; }
}

/* ---------- Journal: Listen to this post (journal_audio) ---------- */
.bleed + .post-main { padding-top: 48px; }
.listen { max-width: 760px; margin: 0 auto 40px; padding: 0 var(--gutter); }
.listen__card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px 16px;
  border-radius: 16px;
  background: var(--mist);
}
.listen__label { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-ink); }
.listen__row { display: flex; align-items: center; gap: 14px; }
.listen__btn { width: 44px; height: 44px; }
.listen__btn:hover { background: var(--brick); }
.listen__time { margin: 0; font-size: 14px; color: var(--slate); font-variant-numeric: tabular-nums; }
.listen__seek { width: 100%; margin: 0; accent-color: var(--blue); cursor: pointer; }
.listen__note { margin: 0; font-size: 13px; color: var(--slate); }
/* Wide screens: in the left margin beside the 760px text column, following the reader down the post.
   The rail runs the full height of the text; the card sticks inside it and stops at the end of the post. */
@media (min-width: 1280px) {
  .post-main { position: relative; }
  .listen { position: absolute; top: 0; bottom: 0; left: calc(50% - 596px); width: 200px; max-width: none; margin: 0; padding: 0; }
  .bleed + .post-main .listen { top: 48px; }
  .listen__card { position: sticky; top: 120px; }
}

/* ---------- Signature (thomas.svg, 1055 × 348) ---------- */
.signature-line { margin: 4px 0 0; }
.signature { display: block; width: 105px; height: auto; }
.signature--lg { width: 147px; }
@media (max-width: 600px) { .signature--lg { width: 126px; } }
