/* Self-hosted brand fonts (Montserrat headlines, Inter body) */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/montserrat-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/montserrat-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 800; font-display: swap; src: url('/fonts/montserrat-latin-800-normal.woff2') format('woff2'); }

/* The Stormatory — subpages (topic pages, About). "Field Guide" look from mockup C. */
:root {
  --storm-blue: #001F40; --deep: #00142B; --panel: #0A2E57;
  --sky: #00A4F7; --sky-ink: #006FAB; --silver: #F5F5F5; --paper: #FAFBFC; --orange: #FF8006;
  --ink-soft: #3D5470; --line: #D6DEE8; --grid: rgba(0, 164, 247, .10);
  --head: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Inter', -apple-system, 'Segoe UI', Arial, sans-serif;
  --gutter: clamp(16px, 5vw, 64px);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body.sub {
  color: var(--storm-blue); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased;
  background-color: var(--paper);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1 { font-family: var(--head); font-weight: 800; font-size: clamp(40px, 6vw, 76px); line-height: 1; letter-spacing: -0.02em; margin: 0 0 20px; max-width: 13ch; }
h2 { font-family: var(--head); font-weight: 800; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.1; margin: 0 0 12px; }

.btn { display: inline-block; padding: 14px 24px; border-radius: 999px; font-family: var(--head); font-weight: 700; font-size: 15px; text-decoration: none; transition: filter .15s ease, transform .15s ease; }
.btn-primary { background: var(--orange); color: var(--storm-blue); }
.btn-ghost { border: 2px solid var(--storm-blue); padding: 12px 22px; }
.btn:hover { filter: brightness(1.05); transform: translateY(-1px); }

/* header: navy bar so the logo's white letters read */
.site-header { position: relative; background: var(--storm-blue); color: var(--silver); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.logo-link img { display: block; height: 38px; width: auto; }
nav { display: flex; align-items: center; gap: 24px; font-weight: 500; font-size: 15px; }
nav a { text-decoration: none; opacity: .85; }
nav a:hover, nav a[aria-current="page"] { opacity: 1; }
nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--sky); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav-cta { opacity: 1; padding: 8px 16px; border-radius: 999px; border: 2px solid var(--orange); font-weight: 600; }

/* hero */
.topic-hero { display: grid; grid-template-columns: 1fr 280px; gap: 40px; align-items: end; padding-top: 56px; }
.crumb { margin: 0 0 14px; font-size: 15px; color: var(--ink-soft); }
.crumb a { color: var(--sky-ink); font-weight: 600; text-decoration: none; }
.lede { font-size: 19px; color: var(--ink-soft); max-width: 34em; margin: 0 0 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 48px; }
.pose { width: 100%; height: auto; display: block; margin-bottom: -6px; }

/* question row */
.questions { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 3px solid var(--storm-blue); background: #fff; }
.questions li + li { border-left: 1px solid var(--line); }
.questions a { display: block; height: 100%; padding: 24px 24px 28px; text-decoration: none; }
.questions a:hover { background: #F0F7FC; }
.q { font-family: var(--head); font-weight: 700; font-size: 20px; line-height: 1.25; display: block; margin-bottom: 10px; }
.a { font-size: 15px; color: var(--ink-soft); }
.a strong { color: var(--sky-ink); font-weight: 600; }

.section { padding-top: 80px; }
.flush { padding-top: 72px; }
.sub-lede { margin: 0 0 24px; color: var(--ink-soft); }

/* lineup */
.lineup { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.ep-row { display: grid; grid-template-columns: 110px 1fr auto; gap: 16px; align-items: baseline; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.ep-row:last-child { border-bottom: 0; }
.ep-num { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.ep-title { font-family: var(--head); font-weight: 700; font-size: 17px; line-height: 1.3; }
.ep-meta { font-size: 14px; color: var(--ink-soft); white-space: nowrap; }
.ep-type { display: inline-block; padding: 1px 9px; border-radius: 999px; background: #EAF2FA; color: var(--sky-ink); font-weight: 600; font-size: 12px; margin-right: 6px; }
.ep-row.is-out .when, .a .when { font-weight: 600; }
.ep-row.is-out .when { color: #B85600; }

/* chapter tiles (other topics, promise) */
.chapters { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.chapters > li > a, .chapters > li > div { display: flex; flex-direction: column; gap: 6px; height: 100%; min-height: 140px; padding: 20px; border-radius: 14px; background: #fff; border: 1px solid var(--line); text-decoration: none; }
.chapters > li > a:hover { border-color: var(--sky); }
.chapters strong { font-family: var(--head); font-size: 18px; line-height: 1.2; }
.chapters span { font-size: 14px; color: var(--ink-soft); }
.chapters em { margin-top: auto; font-style: normal; font-size: 13px; font-weight: 600; color: var(--sky-ink); }
.promise a { color: var(--sky-ink); font-weight: 600; }

/* about */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.about p { color: var(--ink-soft); }
.about blockquote { margin: 20px 0 0; padding: 18px 22px; border-left: 4px solid var(--orange); background: #fff; font-family: var(--head); font-weight: 600; font-size: 20px; line-height: 1.35; }
.how { padding-left: 22px; margin: 0; color: var(--ink-soft); }
.how li { margin-bottom: 12px; }
.how strong { color: var(--storm-blue); }
.how a { color: var(--sky-ink); font-weight: 600; }
.contact { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px 30px; }
.contact p { margin: 0; color: var(--ink-soft); max-width: 46em; }
.contact a { color: var(--sky-ink); font-weight: 600; }

/* newsletter band + footer */
.band-signup { margin-top: 88px; }
.signup { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; padding-top: 40px; padding-bottom: 40px; border-radius: 20px; background: var(--storm-blue); color: var(--silver); }
.band-signup .wrap.signup { max-width: calc(1180px - 2 * clamp(16px, 5vw, 64px)); padding-left: 40px; padding-right: 40px; }
.signup p { margin: 0; color: rgba(245,245,245,.82); max-width: 40em; }
.signup { grid-template-columns: 1fr minmax(280px, 420px); }
.signup-form .kit-fallback { color: rgba(245,245,245,.75); }
.site-footer { margin-top: 64px; background: var(--storm-blue); color: var(--silver); padding: 32px 0 44px; font-size: 15px; }
.links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-bottom: 14px; }
.links a { text-decoration: none; opacity: .85; }
.links a:hover { opacity: 1; text-decoration: underline; }
.fine { margin: 0; font-size: 13px; color: rgba(245,245,245,.6); }

/* responsive */
@media (max-width: 960px) { .chapters { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 820px) {
  .topic-hero { grid-template-columns: 1fr; gap: 0; padding-top: 28px; }
  .pose { order: -1; width: 120px; justify-self: end; margin: 0 0 4px; }
  .questions { grid-template-columns: 1fr; }
  .questions li + li { border-left: 0; border-top: 1px solid var(--line); }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .signup { grid-template-columns: 1fr; }
  .band-signup .wrap.signup { margin: 0 16px; padding: 28px 22px; max-width: none; }
}
@media (max-width: 640px) {
  .logo-link img { height: 30px; }
  .chapters { grid-template-columns: 1fr; }
  .chapters > li > a, .chapters > li > div { min-height: 0; }
  .ep-row { grid-template-columns: 1fr; gap: 2px; padding: 14px 18px; }
  .ep-meta { white-space: normal; }
  .section { padding-top: 56px; }
  .flush { padding-top: 48px; }
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } html { scroll-behavior: auto; } }

/* ---------- episodes, glossary, privacy ---------- */
[hidden] { display: none !important; }
.topic-hero--text { grid-template-columns: 1fr; }
.topic-hero--text .lede { margin-bottom: 12px; }
.updated { margin: 0; font-size: 14px; color: var(--ink-soft); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.chip { font: 600 14px/1 var(--body); color: var(--storm-blue); background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 9px 14px; cursor: pointer; }
.chip:hover { border-color: var(--sky); }
.chip[aria-pressed="true"] { background: var(--storm-blue); border-color: var(--storm-blue); color: var(--silver); }
.month + .month { margin-top: 40px; }
.month-title { font-size: 22px; margin: 0 0 12px; }
.ep-main { display: flex; flex-direction: column; gap: 2px; }
.ep-topic { font-size: 14px; font-weight: 600; color: var(--sky-ink); text-decoration: none; }
.ep-topic:hover { text-decoration: underline; }
.ep-row { scroll-margin-top: 24px; }
.ep-row:target { background: #FFF4E8; box-shadow: inset 4px 0 0 var(--orange); }

.glossary-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin: 0 0 28px; }
.search input { width: min(100%, 340px); height: 48px; padding: 0 20px; border-radius: 999px; border: 2px solid var(--line); background: #fff; font: 16px var(--body); color: var(--storm-blue); }
.search input:focus { outline: 3px solid var(--sky); outline-offset: 2px; border-color: var(--sky); }
.letters { display: flex; flex-wrap: wrap; gap: 4px; }
.letters a { display: grid; place-items: center; min-width: 34px; height: 34px; border-radius: 8px; font-family: var(--head); font-weight: 700; font-size: 15px; text-decoration: none; color: var(--sky-ink); }
.letters a:hover { background: #EAF2FA; }
.no-match { color: var(--ink-soft); }
.no-match a { color: var(--sky-ink); font-weight: 600; }
.glossary { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.term { display: grid; grid-template-columns: 260px 1fr; gap: 8px 32px; padding: 22px 26px; border-bottom: 1px solid var(--line); scroll-margin-top: 24px; }
.term:last-child { border-bottom: 0; }
.term:has(dt:target) { background: #FFF4E8; box-shadow: inset 4px 0 0 var(--orange); }
.term dt { font-family: var(--head); font-weight: 700; font-size: 19px; line-height: 1.3; scroll-margin-top: 24px; }
.term dd { margin: 0; }
.term dd p { margin: 0 0 8px; color: var(--ink-soft); }
.term-ep { font-size: 14px; font-weight: 600; color: var(--sky-ink); text-decoration: none; }
.term-ep:hover { text-decoration: underline; }
.term-ep.is-out .when { color: #B85600; }

.prose > * { max-width: 760px; }
.prose h2 { font-size: 24px; margin: 36px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-soft); }
.prose strong { color: var(--storm-blue); }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--sky-ink); font-weight: 600; }

@media (max-width: 820px) {
  .topic-hero--text { padding-top: 40px; }
  .term { grid-template-columns: 1fr; padding: 18px 20px; }
}
@media (max-width: 640px) {
  .ep-row--full .ep-meta { margin-top: 4px; }
}
.chip { white-space: nowrap; }
.term-ep { display: inline-block; line-height: 1.5; }
@media (max-width: 640px) {
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)) 24px; padding: 0 var(--gutter) 6px; scrollbar-width: none; }
  .letters a { min-width: 30px; height: 32px; }
}
.empty { background: #fff; border: 1px dashed var(--line); border-radius: 16px; padding: 26px 28px; }
.empty p { margin: 0; color: var(--ink-soft); max-width: 46em; }
.empty strong { color: var(--storm-blue); }
.empty a, .lede a { color: var(--sky-ink); font-weight: 600; }
a.ep-title { text-decoration: none; }
a.ep-title:hover { color: var(--sky-ink); text-decoration: underline; }
.questions .a strong { color: var(--sky-ink); }

/* 404 */
.lost-scope { position: relative; }
.lost-rings { position: absolute; left: 50%; top: 8%; width: 120%; transform: translateX(-50%); z-index: 0; }
.lost-rings circle, .lost-rings line { fill: none; stroke: rgba(0, 111, 171, .22); stroke-width: 1.5; }
.lost-rings circle:first-child { stroke: rgba(0, 111, 171, .4); stroke-dasharray: 6 8; }
.lost-scope .pose { position: relative; z-index: 1; }
@media (max-width: 820px) {
  .lost-scope { order: -1; justify-self: end; width: 140px; }
  .lost-scope .pose { width: 100%; }
}

/* Header: logo left, menu links centered, Cheat sheet button right (Ryan, Oct 29) */
.bar { display: grid; grid-template-columns: 1fr auto 1fr; }
.bar > .logo-link { justify-self: start; }
.bar > nav { justify-self: center; }
.bar > .nav-cta { justify-self: end; text-decoration: none; font-size: 15px; font-weight: 600; white-space: nowrap; }

/* freebies */
.freebie { display: grid; grid-template-columns: minmax(240px, 400px) 1fr; gap: 48px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 36px; }
.freebie-preview { position: relative; display: block; padding: 0 28px 28px 0; }
.freebie-preview img { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 18px 40px rgba(0, 31, 64, .18), 0 0 0 1px rgba(0, 31, 64, .08); }
.freebie-preview .back { position: absolute; top: 28px; left: 28px; width: calc(100% - 28px); transform: rotate(3deg); opacity: .9; }
.freebie-preview .front { position: relative; transition: transform .2s ease; }
.freebie-preview:hover .front { transform: translateY(-4px); }
.freebie-label { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--sky-ink); }
.freebie h2 { margin-bottom: 12px; }
.freebie-summary { color: var(--ink-soft); margin: 0 0 20px; }
.freebie h3 { font-family: var(--head); font-size: 16px; margin: 0 0 8px; }
.inside { margin: 0 0 26px; padding-left: 20px; color: var(--ink-soft); }
.inside li { margin-bottom: 6px; }
.freebie-fine { margin: 14px 0 0; font-size: 13px; color: var(--ink-soft); max-width: 34em; }
.more-soon { margin-top: 24px; }
@media (max-width: 820px) {
  .freebie { grid-template-columns: 1fr; gap: 28px; padding: 24px 20px; }
  .freebie-preview { max-width: 300px; }
}
@media (prefers-reduced-motion: reduce) { .freebie-preview .front { transition: none; } }

/* Skip link for keyboard and screen reader users: hidden until focused */
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 999px; background: var(--orange); color: var(--storm-blue); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* Scroll-in reveals (paired with reveal.js). Only active once reveal.js adds .reveal-on. */
.reveal-on [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
}
.reveal-on [data-reveal].is-in { opacity: 1; transform: none; }
.reveal-on [data-reveal="left"]  { transform: translateX(-32px); }
.reveal-on [data-reveal="right"] { transform: translateX(32px); }
.reveal-on [data-reveal="left"].is-in, .reveal-on [data-reveal="right"].is-in { transform: none; }

/* Kit "Website signup" form (embedded via JavaScript) restyled to match the site.
   Kit sets inline styles, so these overrides use !important. */
.kit-embed { margin: 4px 0 0; }
.kit-embed .formkit-form { max-width: none !important; width: 100% !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
.kit-embed .formkit-form > div, .kit-embed [data-style] { padding: 0 !important; background: transparent !important; }
/* The page already has its own heading and description. */
.kit-embed .formkit-header, .kit-embed .formkit-subheader,
.kit-embed [data-element="header"], .kit-embed [data-element="subheader"] { display: none !important; }
.kit-embed .formkit-fields { display: flex !important; flex-wrap: wrap !important; gap: 10px !important; margin: 0 !important; }
.kit-embed .formkit-field { flex: 1 1 220px !important; margin: 0 !important; }
.kit-embed .formkit-input {
  width: 100% !important; height: 50px !important; padding: 0 20px !important;
  border-radius: 999px !important; border: 2px solid rgba(0, 164, 247, .55) !important;
  background: #fff !important; color: #001F40 !important;
  font-family: 'Inter', -apple-system, 'Segoe UI', Arial, sans-serif !important; font-size: 16px !important;
}
.kit-embed .formkit-input:focus { outline: 3px solid #00A4F7 !important; outline-offset: 2px !important; }
.kit-embed .formkit-submit {
  flex: 0 0 auto !important; height: 50px !important; margin: 0 !important; padding: 0 24px !important;
  border-radius: 999px !important; border: 0 !important;
  background: #FF8006 !important; color: #001F40 !important;
  font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif !important; font-weight: 700 !important; font-size: 15px !important;
}
.kit-embed .formkit-submit > span { padding: 0 !important; }
.kit-embed .formkit-submit:hover { filter: brightness(1.08); }
.kit-embed .formkit-alert-success, .kit-embed .formkit-alert-error { margin: 12px 0 0 !important; border-radius: 12px !important; font-family: 'Inter', Arial, sans-serif !important; }
.kit-fallback { margin: 12px 0 0; font-size: 13px; opacity: .75; }
.kit-fallback a { color: inherit; }

/* Kit's template wraps the form in two padded columns; the first (heading) one has a light background. */
.kit-embed .formkit-column { padding: 0 !important; background: transparent !important; border: 0 !important; }
.kit-embed .formkit-column:has(.formkit-header), .kit-embed .formkit-background { display: none !important; }
/* Small print, readable on the navy bands. */
.kit-embed .formkit-guarantee, .kit-embed .formkit-guarantee * { color: rgba(245, 245, 245, .72) !important; font-size: 13px !important; margin: 12px 0 0 !important; text-align: left !important; }
.kit-embed .formkit-powered-by-convertkit-container { margin: 10px 0 0 !important; display: flex !important; justify-content: flex-start !important; }
/* "Built with Kit" badge is a dark SVG; invert it so it reads on navy. */
.kit-embed .formkit-powered-by-convertkit { filter: invert(1) !important; opacity: .55 !important; margin: 0 !important; }

/* "See what's inside" link to /newsletter under the signup forms */
.nl-more { margin: 12px 0 0 !important; font-size: 15px; font-weight: 600; }
.nl-more a { color: var(--sky, #00A4F7); text-decoration: none; }
.nl-more a:hover { text-decoration: underline; }

/* Phone and tablet menu (Ryan, Nov 1, 2026): below 960px the links fold into a Menu button
   that opens a full width list with large tap targets. Shared by every page (bundled into
   sub.css and home.bundle.css). Script: public/nav.js. */
.menu-btn { display: none; }
@media (max-width: 960px) {
  .site-header { z-index: 20; }
  .bar { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; }
  .bar > .nav-cta { justify-self: end; }
  .menu-btn {
    display: inline-flex; align-items: center; gap: 8px; justify-self: end;
    min-height: 44px; padding: 0 14px; border-radius: 999px;
    border: 2px solid rgba(245, 245, 245, .35); background: transparent; color: var(--silver);
    font: 600 15px/1 var(--body); cursor: pointer;
  }
  .menu-btn:hover { border-color: var(--silver); }
  .menu-icon { position: relative; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: background .15s ease; }
  .menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s ease; }
  .menu-icon::before { top: -6px; }
  .menu-icon::after { top: 6px; }
  .site-header.open .menu-icon { background: transparent; }
  .site-header.open .menu-icon::before { transform: translateY(6px) rotate(45deg); }
  .site-header.open .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }

  .site-header .bar > nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; width: 100%; justify-self: stretch;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 6px var(--gutter) 22px; background: var(--storm-blue);
    border-top: 1px solid rgba(0, 164, 247, .25); box-shadow: 0 18px 30px rgba(0, 10, 25, .45);
  }
  .site-header.open .bar > nav { display: flex; }
  .site-header .bar > nav > a {
    display: block; padding: 15px 2px; font-size: 18px; font-weight: 600; opacity: 1;
    border-bottom: 1px solid rgba(245, 245, 245, .1);
  }
  .site-header .bar > nav > a:last-child { border-bottom: 0; }
  .site-header .bar > nav > a[aria-current="page"] { color: var(--sky); text-decoration: none; }
}
@media (max-width: 640px) {
  /* Phones: icon-only menu button so logo, Cheat sheet and Menu fit on one row */
  .bar { gap: 8px; }
  .bar > .nav-cta { padding: 9px 12px; font-size: 14px; }
  .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .menu-btn { width: 44px; height: 44px; justify-content: center; padding: 0; }
  .site-header .logo-link img { height: 28px; }
}
@media (max-width: 360px) {
  .site-header .logo-link img { height: 24px; }
  .bar > .nav-cta { padding: 8px 10px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .menu-icon, .menu-icon::before, .menu-icon::after { transition: none; } }

/* Phones: smaller Dr. Storm so the headline and buttons show on the first screen (Ryan, Nov 1, 2026) */
@media (max-width: 640px) {
  .set .stage { width: min(62%, 240px); }
  .set-grid { padding-top: 76px; }
  .topic-hero .pose { width: 96px; }
}

/* Menu opening animation (Ryan, Nov 1, 2026): same easing as the scroll-in reveals.
   The panel drops in, then each link fades and rises in turn. */
@keyframes nav-panel-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes nav-link-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 960px) {
  .site-header.open .bar > nav { animation: nav-panel-in .35s cubic-bezier(.2, .7, .2, 1) both; }
  .site-header.open .bar > nav > a { animation: nav-link-in .55s cubic-bezier(.2, .7, .2, 1) both; }
  .site-header.open .bar > nav > a:nth-child(1) { animation-delay: .05s; }
  .site-header.open .bar > nav > a:nth-child(2) { animation-delay: .10s; }
  .site-header.open .bar > nav > a:nth-child(3) { animation-delay: .15s; }
  .site-header.open .bar > nav > a:nth-child(4) { animation-delay: .20s; }
  .site-header.open .bar > nav > a:nth-child(5) { animation-delay: .25s; }
  .site-header.open .bar > nav > a:nth-child(6) { animation-delay: .30s; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header.open .bar > nav, .site-header.open .bar > nav > a { animation: none; }
}

/* /newsletter page: "What's Brewing in the Lab" in the email's Morning Roast palette (Nov 3, 2026).
   Header and footer stay navy like every other page; only the body changes. */
body.nl {
  --espresso: #2B1A12; --mocha: #5A3A26; --roast: #3B2418; --charcoal: #2A211C;
  --second: #5C4A3E; --label: #9A6B3F; --latte: #C8A27A; --oat: #F3EBE1; --cream: #FFF9F2;
  background: var(--cream); background-image: none; color: var(--charcoal);
}
.nl main h1, .nl main h2, .nl main h3 { color: var(--roast); }
.nl-kicker { display: inline-block; margin: 0 0 18px; padding: 7px 14px; border-radius: 999px; background: var(--orange); color: var(--espresso); font: 800 12px/1 var(--head); letter-spacing: 2px; }
.nl-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; padding-top: 64px; padding-bottom: 24px; }
.nl-hero h1 { font-family: var(--head); font-weight: 800; font-size: clamp(38px, 5.4vw, 64px); line-height: 1.02; margin: 0 0 14px; }
.nl-hero h1 em { font-style: normal; color: var(--orange); }
.nl-tagline { margin: 0 0 14px; font: 700 clamp(18px, 2vw, 22px)/1.35 var(--head); color: var(--mocha); }
.nl-sub { margin: 0 0 26px; color: var(--second); max-width: 34em; }
.nl-small { margin: 12px 0 0; font-size: 14px; color: var(--label); font-weight: 600; }
.nl-banner { margin: 0; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 50px rgba(43, 26, 18, .22), 0 0 0 1px rgba(43, 26, 18, .08); background: var(--mocha); }
.nl-banner img { display: block; width: 100%; height: auto; }

.nl-section { padding-top: 88px; }
.nl-section > h2, .nl-head h2 { font-family: var(--head); font-weight: 800; font-size: clamp(28px, 3.4vw, 40px); margin: 0 0 8px; }
.nl-head p { margin: 0 0 32px; color: var(--second); }
.cups { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cups li { background: #fff; border: 1px solid #EADFD3; border-radius: 18px; padding: 26px 24px 24px; }
.cups li:nth-child(even) { background: var(--oat); }
.cup-num { display: block; margin: 0 0 14px; font: 800 30px/1 var(--head); color: var(--orange); }
.cups h3 { font-family: var(--head); font-size: 18px; margin: 0 0 8px; }
.cups p { margin: 0; color: var(--second); font-size: 16px; }

.sip { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.sip-card { position: relative; max-width: 420px; margin: 0 auto; padding: 14px; border-radius: 34px; background: var(--espresso); box-shadow: 0 30px 60px rgba(43, 26, 18, .28); }
.sip-screen { position: relative; height: 560px; overflow: hidden; border-radius: 22px; background: var(--oat); }
.sip-screen img { display: block; width: 100%; height: auto; }
.sip-screen::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(to bottom, rgba(43, 26, 18, 0), var(--espresso)); }
.sip-copy p { color: var(--second); }

.gift { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; margin-top: 88px; padding: 40px; border-radius: 22px; background: var(--mocha); color: var(--cream); }
.nl main .gift h2 { color: var(--cream); font-family: var(--head); font-weight: 800; font-size: clamp(24px, 3vw, 34px); margin: 0 0 8px; }
.gift p { margin: 0; color: rgba(255, 249, 242, .86); max-width: 38em; }
.gift-label { display: block; margin: 0 0 8px; font: 700 12px/1 var(--head); letter-spacing: 2px; color: var(--latte); }
.gift img { display: block; width: 150px; height: auto; border-radius: 6px; transform: rotate(-4deg); box-shadow: 0 14px 30px rgba(0, 0, 0, .3); }

.nl-close { margin-top: 88px; padding: 56px 0 64px; background: var(--espresso); color: var(--cream); }
.nl-close .wrap { display: grid; grid-template-columns: 1fr minmax(280px, 440px); gap: 40px; align-items: center; }
.nl main .nl-close h2 { color: var(--cream); font-family: var(--head); font-weight: 800; font-size: clamp(26px, 3.2vw, 38px); margin: 0 0 8px; }
.nl-close p { margin: 0; color: var(--latte); }
.nl-close .nl-small { color: var(--latte); }
body.nl .site-footer { margin-top: 0; }

/* Kit form on the cream hero: dark small print, cocoa outline on the email box */
.nl-hero .kit-embed .formkit-input { border-color: var(--latte) !important; color: var(--charcoal) !important; }
.nl-hero .kit-embed .formkit-submit { color: var(--espresso) !important; }
.nl-hero .kit-embed .formkit-guarantee, .nl-hero .kit-embed .formkit-guarantee * { color: var(--second) !important; }
.nl-hero .kit-embed .formkit-powered-by-convertkit { filter: none !important; }
.nl-hero .kit-fallback { color: var(--second); }
.nl-close .kit-embed .formkit-input { border-color: var(--latte) !important; }
.nl-close .kit-fallback { color: var(--latte); }

@media (max-width: 960px) { .cups { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 820px) {
  .nl-hero { grid-template-columns: 1fr; gap: 32px; padding-top: 36px; }
  .nl-banner { order: -1; }
  .sip { grid-template-columns: 1fr; gap: 24px; }
  .sip-copy { order: -1; }
  .sip-copy p { margin-bottom: 0; }
  .sip-screen { height: 460px; }
  .gift { grid-template-columns: 1fr; gap: 22px; padding: 28px 22px; margin-left: 16px; margin-right: 16px; }
  .nl-close .wrap { grid-template-columns: 1fr; gap: 24px; }
  .nl-section { padding-top: 64px; }
}
@media (max-width: 560px) { .cups { grid-template-columns: 1fr; } .gift img { width: 120px; } }
