/* ==========================================================================
   Micro Missions™ Series — micromissionsseries.com
   Palette sampled directly from the Book 1 cover art
   (FINAL - Micro-Missions_rev2-1.jpg). See README.md.
   ========================================================================== */

:root {
  /* --- sampled from the cover ------------------------------------------ */
  --navy:        #13467B;  /* cover background field                        */
  --navy-deep:   #0D3159;  /* darkened navy for gradients + footer          */
  --navy-ink:    #0A2440;
  --red:         #C11C1A;  /* the red outline behind the MICRO MISSIONS type*/
  --red-bright:  #E6504F;  /* the arteries running down the cover           */
  --heart-red:   #BD0F0E;  /* Haley the Heart's deepest red                 */
  --blue:        #0064B4;  /* the aorta/vena cava blue                      */
  --green:       #C5D008;  /* Tia's dress                                   */
  --yellow:      #FEC514;  /* Tyler's shirt                                 */
  --pink:        #FE4CA2;  /* Tia's headband                                */
  --skin:        #F7D7C2;  /* the torso the kids are standing inside        */
  --skin-deep:   #EEBE9A;

  /* --- derived neutrals ------------------------------------------------- */
  --cream:       #FFF8F1;
  --cream-warm:  #FDEFE3;
  --blush:       #FDE3E3;
  --paper:       #FFFFFF;
  --ink:         #17283C;
  --muted:       #5A6B7D;
  --line:        #E5D8CC;

  --font-display: "Baloo 2", "Nunito", ui-rounded, "SF Pro Rounded",
                  "Segoe UI Variable Display", "Segoe UI", system-ui,
                  -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
               Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia,
                "Times New Roman", serif;

  --wrap: 1120px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-hard: 6px 6px 0 var(--navy);
  --ease: cubic-bezier(.22,.8,.3,1);
}

/* --------------------------------------------------------------------------
   Reset + base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
  color: var(--navy);
}
h1 { font-size: clamp(2.1rem, 6vw, 3.5rem); }
h2 { font-size: clamp(1.65rem, 4.2vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.6vw, 1.45rem); }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--red); }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-navy :focus-visible, .site-footer :focus-visible { outline-color: var(--yellow); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--yellow); color: var(--navy-ink);
  padding: .7rem 1.1rem; border-radius: 0 0 10px 10px;
  font-weight: 800; text-decoration: none;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 0; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.wrap--narrow { width: min(760px, 100% - 2.5rem); margin-inline: auto; }
@media (max-width: 460px) {
  .wrap, .wrap--narrow { width: calc(100% - 2rem); }
}

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

section { padding-block: clamp(3rem, 7vw, 5.5rem); }

/* --------------------------------------------------------------------------
   Wordmark — white type with the cover's red offset, exactly like the book
   -------------------------------------------------------------------------- */
.wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #fff;
  text-shadow:
     2px 0 0 var(--red), -2px 0 0 var(--red),
     0 2px 0 var(--red), 0 -2px 0 var(--red),
     3px 3px 0 var(--red);
}
.on-cream .wordmark { color: #fff; }

/* --------------------------------------------------------------------------
   Header + navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 248, 241, .94);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 2px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; gap: 1rem;
  min-height: 68px; padding-block: .5rem;
}

.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; margin-right: auto; }
.brand:hover { color: inherit; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display); font-weight: 900; font-size: 1.12rem;
  letter-spacing: -.01em; color: var(--navy); text-transform: uppercase;
}
.brand__sub {
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; margin-top: 3px;
}

.nav-toggle {
  display: none; background: var(--paper); border: 2px solid var(--navy);
  border-radius: 10px; padding: .5rem .7rem; cursor: pointer;
  font: inherit; font-weight: 700; color: var(--navy); align-items: center; gap: .45rem;
}
.nav-toggle__bars { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor;
}
.nav-toggle__bars::before { top: -6px; } .nav-toggle__bars::after { top: 6px; }

.site-nav ul {
  list-style: none; display: flex; align-items: center; gap: .3rem;
  margin: 0; padding: 0;
}
.site-nav a {
  display: block; padding: .5rem .7rem; border-radius: 10px;
  color: var(--navy); font-weight: 700; font-size: .95rem; text-decoration: none;
}
.site-nav a:hover { background: var(--cream-warm); color: var(--red); }
.site-nav a[aria-current="page"] {
  color: var(--red);
  box-shadow: inset 0 -3px 0 var(--red);
  border-radius: 10px 10px 0 0;
}
/* the CTA pill must win over the plain nav-link colours */
.site-nav a.btn { margin-left: .5rem; color: #fff; background: var(--red); }
.site-nav a.btn:hover { color: #fff; background: var(--heart-red); }

/* Without JS the toggle can't work, so the nav simply stays open and in flow. */
.no-js .nav-toggle { display: none !important; }

@media (max-width: 940px) {
  html:not(.no-js) .nav-toggle { display: inline-flex; }
  .site-header__inner { flex-wrap: wrap; }
  .no-js .site-nav { width: 100%; }
  html:not(.no-js) .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    box-shadow: 0 18px 30px -20px rgba(10,36,64,.5);
  }
  .site-nav {
    background: var(--cream); border-bottom: 3px solid var(--navy);
    padding: .6rem 1.25rem 1.2rem;
  }
  .site-nav[hidden] { display: none; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: .1rem; }
  .site-nav a { padding: .8rem .6rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current="page"] { box-shadow: none; background: var(--cream-warm); }
  .site-nav .btn { margin: .9rem 0 0; width: 100%; justify-content: center; border-bottom: none; }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 800; font-size: 1rem;
  line-height: 1.2; text-decoration: none; cursor: pointer;
  padding: .85rem 1.35rem; border-radius: 999px;
  border: 2.5px solid var(--navy-ink);
  background: var(--red); color: #fff;
  box-shadow: 0 4px 0 var(--navy-ink);
  transition: transform .12s var(--ease), box-shadow .12s var(--ease), background .18s var(--ease);
}
.btn:hover { color: #fff; background: var(--heart-red); transform: translateY(2px); box-shadow: 0 2px 0 var(--navy-ink); }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--navy-ink); }
.btn--yellow { background: var(--yellow); color: var(--navy-ink); }
.btn--yellow:hover { background: #ffd54a; color: var(--navy-ink); }
.btn--ghost { background: transparent; color: var(--navy); box-shadow: 0 4px 0 rgba(10,36,64,.25); }
.btn--ghost:hover { background: var(--paper); color: var(--red); }
.on-navy .btn--ghost,
.hero .btn--ghost,
.signup .btn--ghost {
  color: #fff; border-color: #fff; box-shadow: 0 4px 0 rgba(255,255,255,.3);
}
.on-navy .btn--ghost:hover,
.hero .btn--ghost:hover,
.signup .btn--ghost:hover { background: rgba(255,255,255,.14); color: #fff; }
.btn--sm { padding: .6rem 1rem; font-size: .92rem; }
.btn--wide { width: 100%; }

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:hover, .btn:active { transform: none; }
}

/* --------------------------------------------------------------------------
   Shared section furniture
   -------------------------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-display); font-weight: 800; font-size: .8rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--red);
  margin: 0 0 .7rem;
}
.on-navy .eyebrow,
.hero .eyebrow,
.signup .eyebrow { color: var(--yellow); }

.lede { font-size: clamp(1.08rem, 2.2vw, 1.28rem); color: var(--muted); }
.on-navy .lede { color: rgba(255,255,255,.88); }

.section-head { max-width: 62ch; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.section-head--center { margin-inline: auto; text-align: center; }

/* Section marker: the series magnifying glass, above centred section headings. */
.section-head--center .eyebrow::before {
  content: ""; display: block; width: 30px; height: 30px; margin: 0 auto .5rem;
  background: url("../assets/logo-magnifier.svg") center/contain no-repeat;
}

.on-navy { background: var(--navy); color: #fff; }
.on-navy h2, .on-navy h3 { color: #fff; }
.on-navy a { color: var(--yellow); }
.on-navy a:hover { color: #fff; }
/* Buttons inside navy sections keep their own text colour — without this the
   link rule above turns a yellow button's label yellow-on-yellow (invisible). */
.on-navy .btn--yellow, .on-navy .btn--yellow:hover { color: var(--navy-ink); }

.bg-cream { background: var(--cream); }
.bg-paper { background: var(--paper); }
.bg-warm  { background: var(--cream-warm); }
.bg-blush { background: var(--blush); }

/* ECG divider ------------------------------------------------------------- */
.ecg { display: block; width: 100%; height: 34px; color: var(--red-bright); }
.ecg path { fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.ecg--animate path {
  stroke-dasharray: 1200; stroke-dashoffset: 1200;
  animation: ecg-draw 2.6s var(--ease) .3s forwards;
}
@keyframes ecg-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .ecg--animate path { animation: none; stroke-dashoffset: 0; }
}

/* Sticker badge ----------------------------------------------------------- */
.sticker {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-display); font-weight: 800; font-size: .85rem;
  letter-spacing: .04em; text-transform: uppercase;
  background: var(--yellow); color: var(--navy-ink);
  border: 2.5px solid var(--navy-ink); border-radius: 999px;
  padding: .45rem .95rem; box-shadow: 3px 3px 0 var(--navy-ink);
  transform: rotate(-2deg);
}
.sticker--pink { background: var(--pink); color: #fff; }
.sticker--green { background: var(--green); color: var(--navy-ink); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  padding-block: clamp(2.5rem, 7vw, 5rem) clamp(3rem, 8vw, 5.5rem);
}
.hero__vessels {
  position: absolute; inset: -10% -5%; width: 110%; height: 120%;
  pointer-events: none; opacity: .5;
}
.hero__vessels path { fill: none; stroke-linecap: round; }
.hero .wrap { position: relative; z-index: 1; }

.hero__grid {
  display: grid; gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: 1.05fr .95fr; align-items: center;
}
@media (max-width: 720px) {
  .hero__grid { grid-template-columns: 1fr; text-align: left; }
}

.hero h1 { color: #fff; margin-bottom: .35em; }
.hero__title-line { display: block; }
.hero__title-line--mark { font-size: 1.14em; }
.hero__tm { font-size: .38em; vertical-align: .9em; letter-spacing: 0; text-shadow: none; -webkit-text-stroke: 0; }

.hero__positioning {
  font-size: clamp(1.05rem, 2.3vw, 1.3rem);
  color: rgba(255,255,255,.92); max-width: 34ch; font-weight: 500;
}
.hero__positioning strong { color: var(--yellow); font-weight: 700; }

.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.7rem; }
.hero__note { margin-top: 1.1rem; font-size: .92rem; color: rgba(255,255,255,.72); }

.hero__cover { position: relative; justify-self: center; max-width: 380px; width: 100%; }
.hero__cover img {
  width: 100%; border-radius: 6px;
  box-shadow: 0 30px 60px -22px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.14);
  transform: rotate(-2.2deg);
}
/* Badge sits fully BELOW the cover's bottom-left corner, touching nothing.
   Never over the magnifying glass (the O in MICRO, top right) and never over the
   author name band printed along the cover's bottom edge — at phone widths any
   offset that overlaps the cover lands on "DR. ANAND GOPALSAMI". The margin
   keeps room for it (the hero clips overflow). See CLAUDE.md visual rule. */
.hero__cover .sticker {
  position: absolute; left: -8px; top: calc(100% + 14px); transform: rotate(-4deg); z-index: 2;
}
.hero__cover:has(.sticker) { margin-bottom: 3.4rem; }
@media (max-width: 900px) { .hero__cover { max-width: 300px; } }
@media (max-width: 720px) {
  .hero__cover { max-width: 270px; justify-self: start; }
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: 1.4rem; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.card {
  background: var(--paper);
  border: 3px solid var(--navy);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-hard);
}
.card h3 { margin-bottom: .45rem; }
.card p { color: var(--muted); font-size: .98rem; }
.card__icon {
  width: 46px; height: 46px; margin-bottom: .9rem;
  display: grid; place-items: center;
  border-radius: 12px; background: var(--cream-warm);
}
.card--red   { box-shadow: 6px 6px 0 var(--red); }
.card--blue  { box-shadow: 6px 6px 0 var(--blue); }
.card--green { box-shadow: 6px 6px 0 var(--green); }
.card--yellow{ box-shadow: 6px 6px 0 var(--yellow); }
.card--pink  { box-shadow: 6px 6px 0 var(--pink); }

.on-navy .card { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.35); box-shadow: none; }
.on-navy .card p { color: rgba(255,255,255,.82); }
.on-navy .card__icon { background: rgba(255,255,255,.12); }

/* Split feature row ------------------------------------------------------- */
.split {
  display: grid; gap: clamp(1.8rem, 4vw, 3.2rem);
  grid-template-columns: 1fr 1fr; align-items: center;
}
.split--art-first .split__art { order: -1; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } .split--art-first .split__art { order: 0; } }

.split__art img {
  width: 100%; border-radius: var(--radius);
  border: 3px solid var(--navy); box-shadow: var(--shadow-hard);
}
.split__art--tilt img { transform: rotate(-1.5deg); }

/* Figure / caption -------------------------------------------------------- */
.figure { margin: 0; }
.figure img {
  width: 100%; border-radius: var(--radius);
  border: 3px solid var(--navy); box-shadow: var(--shadow-hard);
  background: var(--paper);
}
.figure figcaption {
  margin-top: .9rem; font-size: .92rem; color: var(--muted); line-height: 1.55;
}
.figure figcaption b { color: var(--navy); }

/* --------------------------------------------------------------------------
   The Books — series shelf (books/index.html)
   One card per title. Book 1 is a solid card; unreleased titles are dashed.
   Each card jumps to that title's section, which becomes its own sub-page
   (books/<slug>.html) later. No nav dropdown until 2+ books have sub-pages.
   -------------------------------------------------------------------------- */
.shelf {
  display: grid; gap: clamp(1rem, 3vw, 1.6rem);
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  margin-top: clamp(1.8rem, 5vw, 2.8rem); max-width: 860px;
}
.hero .shelf__book {
  display: grid; grid-template-columns: 88px 1fr; gap: 1.1rem; align-items: center;
  background: rgba(255,255,255,.08); border: 3px solid var(--yellow);
  border-radius: var(--radius); padding: 1rem 1.1rem;
  color: #fff; text-decoration: none;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.hero .shelf__book:hover { background: rgba(255,255,255,.15); color: #fff; transform: translateY(-2px); }
.hero .shelf__book--soon { border-style: dashed; border-color: rgba(255,255,255,.5); }
.shelf__cover { width: 88px; border-radius: 4px; box-shadow: 0 10px 20px -8px rgba(0,0,0,.6); }
.shelf__placeholder {
  width: 88px; aspect-ratio: 5 / 8; border-radius: 4px;
  border: 2px dashed rgba(255,255,255,.5);
  display: grid; place-items: center; padding: .4rem; text-align: center;
  font-family: var(--font-display); font-weight: 800; font-size: .66rem;
  letter-spacing: .06em; line-height: 1.2; text-transform: uppercase;
  color: rgba(255,255,255,.75);
}
.shelf__num {
  display: block; margin-bottom: .2rem;
  font-family: var(--font-display); font-weight: 900; font-size: .72rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--yellow);
}
.shelf__title { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.18rem; line-height: 1.15; }
.shelf__status { display: block; margin-top: .35rem; font-size: .9rem; color: rgba(255,255,255,.8); }
@media (prefers-reduced-motion: reduce) {
  .hero .shelf__book { transition: none; }
  .hero .shelf__book:hover { transform: none; }
}

.book-feature { padding-bottom: clamp(3.5rem, 8vw, 5rem); }
.book-feature__title { font-size: clamp(2.1rem, 5.5vw, 3.2rem); margin-bottom: .4em; }
.book-feature__note { margin-top: 1.1rem; font-size: .92rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   Lists, glossary, Q&A
   -------------------------------------------------------------------------- */
.tick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.tick-list li { position: relative; padding-left: 2.1rem; }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: .3em;
  width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: var(--red-bright);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.9-9.6-9.2C.7 8.3 2.5 4.6 6 4c2.2-.4 3.9 1 4.6 2.2h2.8C14.1 5 15.8 3.6 18 4c3.5.6 5.3 4.3 3.6 7.8C19.5 16.1 12 21 12 21z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.9-9.6-9.2C.7 8.3 2.5 4.6 6 4c2.2-.4 3.9 1 4.6 2.2h2.8C14.1 5 15.8 3.6 18 4c3.5.6 5.3 4.3 3.6 7.8C19.5 16.1 12 21 12 21z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.glossary { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin: 0; }
.glossary div {
  background: var(--paper); border: 2px solid var(--line);
  border-left: 6px solid var(--red-bright);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 1rem 1.1rem;
}
.glossary dt { font-family: var(--font-display); font-weight: 800; color: var(--navy); font-size: 1.05rem; }
.glossary .say { font-style: italic; color: var(--red); font-weight: 600; font-size: .9rem; }
.glossary dd { margin: .25rem 0 0; font-size: .95rem; color: var(--muted); }

.qa { counter-reset: q; list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.qa li {
  counter-increment: q; position: relative; padding-left: 3.4rem;
  font-size: 1.03rem;
}
.qa li::before {
  content: counter(q); position: absolute; left: 0; top: -.15em;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--navy); color: var(--yellow);
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem;
  display: grid; place-items: center;
}

/* Spec table -------------------------------------------------------------- */
.specs { width: 100%; border-collapse: collapse; font-size: .98rem; }
.specs caption { text-align: left; font-family: var(--font-display); font-weight: 800; color: var(--navy); font-size: 1.2rem; margin-bottom: .7rem; }
.specs th, .specs td { text-align: left; padding: .7rem .3rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 42%; color: var(--navy); font-weight: 700; }
.specs td { color: var(--muted); }
.table-scroll { overflow-x: auto; }

/* --------------------------------------------------------------------------
   Launch-list signup (injected from js/launch-form.js)
   -------------------------------------------------------------------------- */
.signup { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.signup::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 8px;
  background: repeating-linear-gradient(90deg,
    var(--red) 0 40px, var(--yellow) 40px 80px, var(--blue) 80px 120px, var(--green) 120px 160px);
}
.signup__inner {
  display: grid; gap: clamp(1.6rem, 4vw, 3rem);
  grid-template-columns: 1.05fr .95fr; align-items: center;
}
@media (max-width: 820px) { .signup__inner { grid-template-columns: 1fr; } }

.signup h2 { color: #fff; }
.signup p { color: rgba(255,255,255,.88); }

/* the card is a light island inside the navy band — reset the inherited
   light-on-dark text colour for everything inside it */
.signup .signup__card,
.signup .signup__card p { color: var(--ink); }
.signup .signup__card h2,
.signup .signup__card h3 { color: var(--navy); }

.signup__card {
  background: var(--cream); color: var(--ink);
  border: 3px solid var(--navy-ink); border-radius: var(--radius);
  padding: clamp(1.3rem, 3vw, 1.9rem);
  box-shadow: 8px 8px 0 var(--red);
}
/* Substack embed — cross-origin, so its inside can't be restyled. It sits in
   the site's card, with a plain "Or subscribe here" link underneath. */
.signup__embed {
  display: block; width: 100%; height: 320px; border: 0;
  border-radius: 12px; background: #fff;
}
@media (max-width: 480px) { .signup__embed { height: 380px; } }
.signup .signup__hint { font-size: .92rem; color: var(--muted); margin: .9rem 0 0; text-align: center; }
.signup .signup__hint a { color: var(--blue); font-weight: 700; }
.signup .signup__hint a:hover { color: var(--red); }
.signup .signup__fine {
  margin: .5rem 0 0; text-align: center; font-size: .82rem; line-height: 1.45;
  color: var(--muted);
}
.signup__fallback a { color: var(--yellow); font-weight: 700; }
.signup__fallback { color: rgba(255,255,255,.9); }

/* --------------------------------------------------------------------------
   Contact — email + social handles ONLY (no form, no press kit, no bios)
   -------------------------------------------------------------------------- */
.contact-heading { font-size: 1.35rem; margin-bottom: .9rem; }
.contact-email {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.1rem, 3.2vw, 1.5rem); margin: 0; overflow-wrap: anywhere;
}
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.contact-list a {
  display: flex; align-items: center; gap: .85rem;
  color: var(--navy); font-weight: 800; text-decoration: none;
}
.contact-list a:hover { color: var(--red); }
.contact-list svg { width: 26px; height: 26px; flex: none; fill: currentColor; }
.contact-list small {
  display: block; font-size: .9rem; font-weight: 600; color: var(--muted);
  overflow-wrap: anywhere;
}

/* Pull quote -------------------------------------------------------------- */
.pullquote {
  font-family: var(--font-serif); font-size: clamp(1.2rem, 3vw, 1.6rem);
  line-height: 1.45; color: var(--navy); margin: 0;
  border-left: 6px solid var(--red-bright); padding: .3rem 0 .3rem 1.3rem;
}
.pullquote cite { display: block; font-family: var(--font-body); font-size: .9rem;
  font-style: normal; color: var(--muted); margin-top: .8rem; font-weight: 700; }

/* Author portrait --------------------------------------------------------- */
.portrait { position: relative; max-width: 380px; }
.portrait img {
  width: 100%; border-radius: var(--radius);
  border: 4px solid var(--paper); box-shadow: 10px 10px 0 var(--blue);
}
.portrait .sticker { position: absolute; left: -10px; bottom: -16px; }

/* Series roadmap ---------------------------------------------------------- */
.roadmap { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.roadmap__item {
  border: 3px dashed rgba(255,255,255,.4); border-radius: var(--radius);
  padding: 1.5rem; background: rgba(255,255,255,.06);
}
.roadmap__item--now { border-style: solid; border-color: var(--yellow); background: rgba(254,197,20,.12); }
.roadmap__num {
  font-family: var(--font-display); font-weight: 900; font-size: .78rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--yellow);
  display: block; margin-bottom: .5rem;
}
.roadmap__item h3 { font-size: 1.25rem; margin-bottom: .4rem; }
.roadmap__item p { color: rgba(255,255,255,.82); font-size: .96rem; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-deep); color: rgba(255,255,255,.8);
  padding-block: clamp(2.5rem, 6vw, 4rem) 2rem;
  font-size: .93rem;
}
.site-footer h2, .site-footer h3 { color: #fff; }
.site-footer a { color: rgba(255,255,255,.88); text-decoration: none; }
.site-footer a:hover { color: var(--yellow); text-decoration: underline; }

.footer__grid {
  display: grid; gap: 2rem; grid-template-columns: 1.4fr 1fr 1fr;
  padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.18);
}
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .footer__grid { grid-template-columns: 1fr; } }

.footer__grid h3 {
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--yellow); margin-bottom: .9rem;
}
.footer__grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer__brand p { max-width: 38ch; color: rgba(255,255,255,.72); }
.footer__brandline { display: flex; align-items: center; gap: .55rem; }
.footer__mark { width: 30px; height: 30px; flex: none; }

.social { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1rem; }
.social a {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.1); border: 1.5px solid rgba(255,255,255,.25);
}
.social a:hover { background: var(--yellow); border-color: var(--yellow); }
.social a:hover svg { fill: var(--navy-ink); }
.social svg { width: 19px; height: 19px; fill: #fff; }

.legal { padding-top: 1.6rem; display: grid; gap: .45rem; font-size: .82rem; color: rgba(255,255,255,.62); }
.legal p { margin: 0; }
.legal strong { color: rgba(255,255,255,.85); font-weight: 700; }

/* --------------------------------------------------------------------------
   Small print / misc
   -------------------------------------------------------------------------- */
.note-strip {
  background: var(--yellow); color: var(--navy-ink);
  font-family: var(--font-display); font-weight: 700; font-size: .92rem;
  text-align: center; padding: .7rem 1rem;
}
.note-strip a { color: var(--navy-ink); }

.stat-row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stat { text-align: center; padding: 1.2rem .8rem; background: var(--paper);
  border: 2px solid var(--line); border-radius: var(--radius); }
.stat b { display: block; font-family: var(--font-display); font-weight: 900;
  font-size: 1.9rem; color: var(--red); line-height: 1; }
.stat span { font-size: .86rem; color: var(--muted); }

.faq { border-top: 2px solid var(--line); }
.faq details { border-bottom: 2px solid var(--line); padding: 1rem 0; }
.faq summary {
  font-family: var(--font-display); font-weight: 800; color: var(--navy);
  cursor: pointer; font-size: 1.08rem; list-style: none;
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--red); line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin-top: .8rem; color: var(--muted); }
