/* ==========================================================================
   Kids Have a Point — standalone site styles
   Self-contained: no dependency on the Room for Tomorrow corporate CSS.
   Palette is sampled from the finalized cover artwork. Mobile-first.

   Contrast (WCAG 2.x, on --cream unless noted; checked 2026-11-03):
     --navy 15.0:1 · --ink-2 8.1:1 · --coral-ink 5.0:1
     --cream on --navy 15.0:1 · --cream-2 on --navy 10.0:1 (on --navy-2 8.4:1)
     --navy on --yellow 9.3:1 · --navy on --yellow-soft 14.0:1
   --coral and --yellow are for fills, art and large marks only — never body text.
   ========================================================================== */

/* ---- Fonts (self-hosted, SIL Open Font License — see /assets/fonts) ---- */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("/assets/fonts/fraunces-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 300 600;
  font-display: swap;
  src: url("/assets/fonts/fraunces-italic-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/instrument-sans-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Nanum Pen Script";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/nanum-pen-script-latin.woff2") format("woff2");
}

/* ---- Tokens ------------------------------------------------------------ */

:root {
  --cream: #fcf8ef;
  --paper: #fffdf8;
  --navy: #10223f;
  --navy-2: #1b3156;
  --ink-2: #3f4d63;
  --cream-2: rgb(252 248 239 / 0.8);
  --coral: #ef5544;
  --coral-ink: #c23a2a;
  --coral-soft: #fde3dc;
  --yellow: #f6bd3c;
  --yellow-soft: #fdf0cc;
  --rule: rgb(16 34 63 / 0.14);
  --rule-on-navy: rgb(252 248 239 / 0.16);
  --focus: #1f47e5;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hand: "Nanum Pen Script", "Bradley Hand", "Segoe Print", cursive;
  --display-axes: "SOFT" 20, "WONK" 0;

  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.18rem, 1.08rem + 0.45vw, 1.45rem);
  --step-2: clamp(1.3rem, 1.18rem + 0.55vw, 1.75rem);
  --step-3: clamp(1.7rem, 1.35rem + 1.35vw, 2.5rem);
  --step-4: clamp(2.4rem, 1.7rem + 2.6vw, 3.75rem);

  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: 2.5rem;
  --space-xl: clamp(2rem, 4vw, 3rem);
  --space-2xl: clamp(3rem, 6vw, 5rem);

  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: clamp(22px, 3vw, 32px);
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 1240px;

  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --shadow-art: 0 1px 2px rgb(16 34 63 / 0.06), 0 30px 60px -32px rgb(16 34 63 / 0.45);
}

/* ---- Base -------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

main {
  flex: 1;
}

h1, h2, h3, p, ul, ol, figure {
  margin: 0;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.on-navy :focus-visible {
  outline-color: var(--yellow);
}

::selection {
  background: var(--yellow);
  color: var(--navy);
}

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 100;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-s);
  background: var(--navy);
  color: var(--cream);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

/* ---- Type roles -------------------------------------------------------- */

.display {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-variation-settings: var(--display-axes);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.display-1 { font-size: var(--step-4); }
.display-2 { font-size: var(--step-3); line-height: 1.06; letter-spacing: -0.03em; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.on-navy .eyebrow {
  color: var(--cream-2);
}

.lede {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-variation-settings: var(--display-axes);
  font-size: var(--step-2);
  font-weight: 360;
  line-height: 1.25;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.muted {
  color: var(--ink-2);
}

.hand {
  font-family: var(--font-hand);
  font-size: clamp(1.45rem, 1.2rem + 0.8vw, 1.9rem);
  line-height: 1.25;
  color: var(--coral-ink);
}

/* Hand-drawn underline (coral), from the original page. */
.mark {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.mark__svg {
  position: absolute;
  left: -3%;
  bottom: -0.14em;
  width: 106%;
  height: 0.3em;
  max-width: none;
  overflow: visible;
  pointer-events: none;
  fill: none;
  stroke: var(--coral);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.mark__svg path {
  stroke-dasharray: 1;
  animation: draw 1.1s var(--ease-out) 0.4s both;
}

@keyframes draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

@keyframes settle {
  from { opacity: 0; translate: 0 18px; }
  to { opacity: 1; translate: 0 0; }
}

/* ---- Buttons ----------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.7rem 1.35rem;
  border: 2px solid var(--navy);
  border-radius: 999px;
  background: var(--navy);
  color: var(--cream);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, translate 0.2s var(--ease-out);
}

.btn:hover {
  background: var(--navy-2);
  translate: 0 -1px;
}

.btn--ghost {
  background: transparent;
  color: var(--navy);
}

.btn--ghost:hover {
  background: var(--navy);
  color: var(--cream);
}

.btn__arrow {
  transition: translate 0.2s var(--ease-out);
}

.btn:hover .btn__arrow {
  translate: 2px 0;
}

/* Status pill: honest pre-launch state. */
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.35em 0.85em 0.35em 0.7em;
  border-radius: 999px;
  background: var(--yellow-soft);
  color: var(--navy);
  font-size: var(--step--1);
  font-weight: 600;
  line-height: 1.3;
}

.status__dot {
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 0 rgb(239 85 68 / 0.5);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgb(239 85 68 / 0.45); }
  70%, 100% { box-shadow: 0 0 0 0.6em rgb(239 85 68 / 0); }
}

.on-navy .status {
  background: rgb(246 189 60 / 0.16);
  color: var(--cream);
}

/* ---- Header ------------------------------------------------------------ */

.site-header {
  padding-block: var(--space-s);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xs) var(--space-m);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  color: var(--navy);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.25rem;
  margin-inline: -0.6rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 0.6rem;
  font-size: 0.97rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 999px;
}

.site-nav a:hover {
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-decoration-thickness: 2px;
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-decoration-thickness: 2px;
}

/* Small screens: nav sits on its own row, full width, scrollable if needed. */
@media (max-width: 719.98px) {
  .site-nav {
    flex-basis: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    border-top: 1px solid var(--rule);
  }

  .site-nav ul {
    flex-wrap: nowrap;
    margin-inline: -0.6rem;
    padding-top: 0.25rem;
  }
}

/* ---- Hero -------------------------------------------------------------- */

.hero {
  padding-block: clamp(1.25rem, 3.5vw, 2.5rem) var(--space-xl);
  overflow-x: clip; /* decorative bubbles never cause sideways scroll */
}

.hero__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero__copy {
  display: grid;
  justify-items: start;
  gap: var(--space-xs);
}

.hero__title {
  margin-top: var(--space-2xs);
  font-weight: 420;
}

.hero__lede {
  max-width: 22ch;
}

.hero__body {
  max-width: 34rem;
  color: var(--ink-2);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-2xs);
}

.hero__art {
  position: relative;
  width: min(100%, 20rem);
  justify-self: center;
  isolation: isolate;
}

/* Decorative bubbles echoing the cover, behind the artwork. */
.hero__art::before,
.hero__art::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
}

.hero__art::before {
  width: 38%;
  aspect-ratio: 1;
  top: -6%;
  right: -7%;
  background: var(--coral);
  opacity: 0.9;
}

.hero__art::after {
  width: 30%;
  aspect-ratio: 1;
  bottom: -6%;
  left: -6%;
  background: var(--yellow);
}

.hero__art img {
  width: 100%;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-art);
  animation: settle 0.9s var(--ease-out) 0.05s both;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }

  .hero__art {
    width: min(100%, 28.75rem);
  }
}

/* ---- Sections ---------------------------------------------------------- */

.section {
  padding-block: var(--space-2xl);
}

.section-head {
  display: grid;
  gap: var(--space-xs);
  max-width: 42rem;
  margin-bottom: var(--space-l);
}

.section--tight {
  padding-block: var(--space-xl) var(--space-2xl);
}

.section-head p:last-child:not(.eyebrow) {
  color: var(--ink-2);
}

.on-navy .section-head p:last-child:not(.eyebrow) {
  color: var(--cream-2);
}

.band-navy {
  background: var(--navy);
  color: var(--cream);
}

/* ---- Featured episode -------------------------------------------------- */

.featured {
  border-radius: var(--radius-l) var(--radius-l) 0 0;
}

.feature-card {
  display: grid;
  gap: var(--space-l);
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid var(--rule-on-navy);
  border-radius: var(--radius-l);
  background: var(--navy-2);
}

.feature-card__art {
  width: min(100%, 22rem);
}

.feature-card__art img {
  width: 100%;
  border-radius: var(--radius-m);
}

.feature-card__body {
  display: grid;
  align-content: start;
  gap: var(--space-s);
}

.feature-card__title {
  font-size: var(--step-3);
}

.feature-card__desc {
  max-width: 38rem;
  color: var(--cream-2);
  text-wrap: pretty;
}

@media (min-width: 820px) {
  .feature-card {
    grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
    align-items: center;
  }
}

.episode-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.9rem;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.episode-guest {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--cream);
}

/* Secondary feature card (e.g. the trailer once a full episode is featured). */
.feature-card--compact {
  gap: var(--space-m);
  padding-block: clamp(1.25rem, 3vw, 2rem);
}

.feature-card--compact .feature-card__title {
  font-size: var(--step-2);
}

/* Listen actions for platform-hosted episodes (no embeds). */
.listen-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-xs);
}

.btn--yellow {
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--navy);
}

.btn--yellow:hover {
  background: #f8ca5f;
}

.btn--ghost-light {
  border-color: rgb(252 248 239 / 0.55);
  background: transparent;
  color: var(--cream);
}

.btn--ghost-light:hover {
  border-color: var(--cream);
  background: var(--cream);
  color: var(--navy);
}

.listen-note {
  font-size: var(--step--1);
  color: var(--cream-2);
}

/* ---- Listen (homepage): primary platform buttons + trailer / Episode 1 --- */

.listen-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.btn--lg {
  min-height: 56px;
  padding: 0.85rem 1.6rem;
  font-size: var(--step-1);
}

.btn--cream {
  border-color: var(--cream);
  background: var(--cream);
  color: var(--navy);
}

.btn--cream:hover {
  background: #fff;
}

@media (max-width: 519.98px) {
  .listen-cta .btn { flex: 1 1 100%; }
}

.episode-pair {
  display: grid;
  gap: var(--space-s);
  margin-top: var(--space-l);
}

@media (min-width: 820px) {
  .episode-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.ep {
  display: grid;
  align-content: start;
  gap: var(--space-2xs);
  padding: clamp(1.1rem, 3vw, 1.75rem);
  border: 1px solid var(--rule-on-navy);
  border-radius: var(--radius-m);
  background: var(--navy-2);
}

.ep__title {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-variation-settings: var(--display-axes);
  font-size: var(--step-2);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.ep__desc {
  color: var(--cream-2);
  text-wrap: pretty;
}

.ep__links,
.listen-more {
  font-size: var(--step--1);
  color: var(--cream-2);
}

.ep__links a,
.listen-more a {
  color: var(--cream);
  font-weight: 600;
}

.listen-more {
  margin-top: var(--space-m);
}

/* ---- Audio player ------------------------------------------------------ */

.player {
  margin-top: var(--space-xs);
  padding: var(--space-s);
  border-radius: var(--radius-m);
  background: rgb(252 248 239 / 0.07);
  border: 1px solid var(--rule-on-navy);
}

/* No-JS fallback: the browser's own controls. */
.player > audio {
  display: block;
  width: 100%;
}

.player__ui {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--space-s);
}

.player__ui[hidden] {
  display: none;
}

.player__play {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy);
  cursor: pointer;
  transition: scale 0.15s var(--ease-out), background-color 0.2s;
}

.player__play:hover:not(:disabled) {
  scale: 1.05;
}

.player__play svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.player__play .icon-pause,
.player.is-playing .player__play .icon-play {
  display: none;
}

.player.is-playing .player__play .icon-pause {
  display: block;
}

.player__main {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.player__seek {
  width: 100%;
  height: 28px;
  margin: 0;
  accent-color: var(--yellow);
  cursor: pointer;
}

.player__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 0.8rem;
}

.player__time {
  font-size: var(--step--1);
  font-variant-numeric: tabular-nums;
  color: var(--cream-2);
}

.player__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.player__tool {
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.7rem;
  border: 1px solid var(--rule-on-navy);
  border-radius: 999px;
  background: transparent;
  font-size: var(--step--1);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background-color 0.2s;
}

.player__tool:hover:not(:disabled) {
  background: rgb(252 248 239 / 0.1);
}

.player__tool[aria-pressed="true"] {
  background: var(--cream);
  color: var(--navy);
}

.player :disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.player__note {
  margin-top: var(--space-s);
  padding-top: var(--space-xs);
  border-top: 1px solid var(--rule-on-navy);
  font-size: var(--step--1);
  color: var(--cream-2);
}

.player.is-error .player__note {
  color: var(--cream);
}

/* Small screens: play button above the full-width timeline. */
@media (max-width: 419.98px) {
  .player__ui {
    grid-template-columns: 1fr;
  }
}

/* ---- Episode cards ----------------------------------------------------- */

.episodes {
  padding-top: var(--space-xl);
}

.episode-grid {
  display: grid;
  gap: var(--space-m);
  margin-top: var(--space-m);
}

@media (min-width: 640px) {
  .episode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Three columns only when there are three or more cards. */
@media (min-width: 1000px) {
  .episode-grid:has(> li:nth-child(3)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.episode-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--rule-on-navy);
  border-radius: var(--radius-m);
  background: var(--navy-2);
}

.episode-card__art {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--coral);
}

.episode-card--yellow .episode-card__art { background: var(--yellow); }
.episode-card--cream .episode-card__art { background: var(--cream); }

/* Two overlapping bubbles — the cover motif, drawn in CSS. */
.episode-card__art::before,
.episode-card__art::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.episode-card__art::before {
  width: 46%;
  aspect-ratio: 1;
  right: 10%;
  top: 14%;
  background: var(--cream);
  opacity: 0.9;
}

.episode-card__art::after {
  width: 34%;
  aspect-ratio: 1;
  right: 34%;
  top: 40%;
  background: var(--navy);
}

.episode-card--yellow .episode-card__art::before { background: var(--coral); }
.episode-card--cream .episode-card__art::before { background: var(--yellow); }
.episode-card--cream .episode-card__art::after { background: var(--coral); }

.episode-card__body {
  display: grid;
  align-content: start;
  gap: var(--space-2xs);
  padding: var(--space-m);
}

.episode-card__title {
  font-family: var(--font-display);
  font-variation-settings: var(--display-axes);
  font-size: var(--step-1);
  font-weight: 420;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.episode-card__desc {
  color: var(--cream-2);
  font-size: 0.97rem;
}

.episode-card__foot {
  margin-top: var(--space-xs);
  padding-top: var(--space-xs);
  border-top: 1px solid var(--rule-on-navy);
  font-size: var(--step--1);
  color: var(--cream-2);
}

/* ---- About ------------------------------------------------------------- */

.about__grid {
  display: grid;
  gap: var(--space-m);
}

@media (min-width: 900px) {
  .about__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: clamp(3rem, 7vw, 7rem);
    align-items: start;
  }
}

.about__title {
  max-width: 13ch;
  margin-top: var(--space-xs);
}

.about__body .producer {
  display: block;
  margin-top: var(--space-2xs);
  padding-top: var(--space-s);
  font-size: var(--step--1);
}

.about__body {
  display: grid;
  gap: var(--space-s);
  max-width: 34rem;
}

.about__body > p:not(.lede) {
  color: var(--ink-2);
  text-wrap: pretty;
}

.about__nos {
  margin-top: var(--space-s);
  padding-top: var(--space-m);
  border-top: 1px solid var(--rule);
  font-family: var(--font-display);
  font-variation-settings: var(--display-axes);
  font-size: var(--step-2);
  font-weight: 360;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.pillars {
  display: grid;
  gap: var(--space-m);
  margin-top: var(--space-xl);
  counter-reset: pillar;
}

@media (min-width: 760px) {
  .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.pillar {
  padding: var(--space-m);
  border-radius: var(--radius-m);
  background: var(--paper);
  border: 1px solid var(--rule);
  counter-increment: pillar;
}

.pillar::before {
  content: counter(pillar);
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: var(--space-s);
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 600;
}

.pillar:nth-child(2)::before { background: var(--coral-soft); }
.pillar:nth-child(3)::before { background: var(--navy); color: var(--cream); }

.pillar h3 {
  font-size: var(--step-1);
  font-family: var(--font-display);
  font-variation-settings: var(--display-axes);
  font-weight: 450;
  line-height: 1.2;
}

.pillar p {
  margin-top: var(--space-2xs);
  color: var(--ink-2);
}

.producer {
  display: grid;
  gap: var(--space-2xs);
  margin-top: var(--space-xl);
  padding-top: var(--space-m);
  border-top: 1px solid var(--rule);
  color: var(--ink-2);
}

.producer strong {
  color: var(--navy);
  font-weight: 600;
}

/* ---- Listen ------------------------------------------------------------ */

.listen {
  background: var(--paper);
  border-block: 1px solid var(--rule);
}

.platforms {
  display: grid;
  gap: var(--space-xs);
}

@media (min-width: 640px) {
  .platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1000px) {
  .platforms { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.platform {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s);
  min-height: 64px;
  padding: var(--space-s) var(--space-m);
  border: 1px dashed rgb(16 34 63 / 0.3);
  border-radius: var(--radius-m);
  font-weight: 600;
}

.platform__state {
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
}

.platform--link {
  border-style: solid;
  border-color: rgb(16 34 63 / 0.22);
  background: var(--cream);
  color: var(--navy);
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s, translate 0.2s var(--ease-out);
}

.platform--link:hover {
  border-color: var(--navy);
  background: var(--yellow-soft);
  translate: 0 -1px;
}

.platform--link .platform__state {
  font-weight: 600;
  color: var(--navy);
}

/* ---- Families ---------------------------------------------------------- */

.families__card {
  display: grid;
  gap: var(--space-m);
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border-radius: var(--radius-l);
  background: var(--yellow-soft);
}

@media (min-width: 900px) {
  .families__card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    column-gap: clamp(3rem, 7vw, 7rem);
  }
}

.families__title {
  max-width: 14ch;
  margin-top: var(--space-xs);
}

.families__body {
  display: grid;
  gap: var(--space-s);
  max-width: 34rem;
}

.families__note {
  font-size: var(--step--1);
  color: var(--ink-2);
  overflow-wrap: anywhere;
}

/* ---- Footer ------------------------------------------------------------ */

.site-footer {
  padding-block: var(--space-xl) var(--space-l);
  background: var(--navy);
  color: var(--cream);
}

.site-footer__grid {
  display: grid;
  gap: var(--space-l);
}

@media (min-width: 820px) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  }
}

.site-footer .brand {
  color: var(--cream);
}

.site-footer__about {
  margin-top: var(--space-s);
  max-width: 28rem;
  color: var(--cream-2);
}

.site-footer h2 {
  margin-bottom: var(--space-xs);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-2);
}

.site-footer li + li {
  margin-top: 0.35rem;
}

.site-footer a {
  display: inline-block;
  padding-block: 0.3rem;
  overflow-wrap: anywhere;
}

.site-footer__legal {
  display: grid;
  gap: var(--space-2xs);
  margin-top: var(--space-xl);
  padding-top: var(--space-m);
  border-top: 1px solid var(--rule-on-navy);
  font-size: var(--step--1);
  color: var(--cream-2);
}

/* ---- Text pages (draft privacy notice, 404) ---------------------------- */

.page {
  padding-block: clamp(1.5rem, 5vw, 4rem) var(--space-2xl);
}

.prose {
  max-width: 44rem;
}

.prose > * + * {
  margin-top: var(--space-s);
}

.prose h1 {
  margin-top: var(--space-s);
}

.prose h2 {
  margin-top: var(--space-l);
  font-family: var(--font-display);
  font-variation-settings: var(--display-axes);
  font-size: var(--step-2);
  font-weight: 420;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.prose ul {
  padding-left: 1.25em;
}

.prose li + li {
  margin-top: 0.4em;
}

.prose strong {
  font-weight: 600;
}

.prose a {
  overflow-wrap: anywhere;
}

/* NOT FOR PUBLICATION banner on the draft legal notice. */
.draft-banner {
  max-width: 44rem;
  margin-bottom: var(--space-l);
  padding: var(--space-m);
  border: 3px solid var(--coral-ink);
  border-radius: var(--radius-m);
  background: var(--paper);
}

.draft-banner strong {
  display: block;
  font-size: var(--step-1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--coral-ink);
}

.draft-banner p + p {
  margin-top: 0.4rem;
}

.pending {
  padding: 0 0.15em;
  background: rgb(246 189 60 / 0.5);
  color: var(--navy);
}

.back-link {
  margin-top: var(--space-xl);
  padding-top: var(--space-m);
  border-top: 1px solid var(--rule);
}

/* ---- Dev-only test page ------------------------------------------------ */

.dev-banner {
  padding: var(--space-xs) 0;
  background: var(--coral-ink);
  color: #fff;
  font-weight: 600;
  text-align: center;
}

/* ---- Reduced motion ---------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

.feature-card + .feature-card {
  margin-top: var(--space-m);
}

/* A feature card without artwork uses the full width. */
.feature-card__body:only-child {
  grid-column: 1 / -1;
}

/* ==========================================================================
   Forms — /updates/ and /families/ (Phase 5a: UI only, submission disabled)
   No JavaScript. Native constraints (required, type=email, maxlength) are in
   place for when a backend is approved; :user-invalid gives visual feedback.
   ========================================================================== */

.form-page {
  padding-block: clamp(1.5rem, 5vw, 4rem) var(--space-2xl);
}

.form-page__grid {
  display: grid;
  gap: var(--space-xl);
}

@media (min-width: 900px) {
  .form-page__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    column-gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
  }
}

.form-page__intro {
  display: grid;
  align-content: start;
  gap: var(--space-s);
  max-width: 36rem;
}

.form-page__intro > h1 {
  margin-top: var(--space-2xs);
}

.form-page__intro > p:not(.eyebrow):not(.lede) {
  color: var(--ink-2);
  text-wrap: pretty;
}

.callout {
  padding: var(--space-s) var(--space-m);
  border-left: 4px solid var(--coral);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  background: var(--coral-soft);
  color: var(--navy);
}

.next-steps {
  display: grid;
  gap: var(--space-s);
  margin-top: var(--space-s);
  padding-top: var(--space-m);
  border-top: 1px solid var(--rule);
}

.next-steps h2 {
  font-family: var(--font-display);
  font-variation-settings: var(--display-axes);
  font-size: var(--step-1);
  font-weight: 450;
  line-height: 1.2;
}

.next-steps ol {
  display: grid;
  gap: 0.8rem;
  counter-reset: step;
}

.next-steps li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
  color: var(--ink-2);
  counter-increment: step;
}

.next-steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 600;
  line-height: 1;
}

.privacy-ref {
  font-size: var(--step--1);
  color: var(--ink-2);
}

.form-card {
  padding: clamp(1.25rem, 4vw, 2.25rem);
  border: 1px solid var(--rule);
  border-radius: var(--radius-l);
  background: var(--paper);
}

/* "Not open yet" notice above every disabled form. */
.form-status {
  margin-bottom: var(--space-m);
  padding: var(--space-s);
  border: 2px solid var(--navy);
  border-radius: var(--radius-s);
  background: var(--yellow-soft);
}

.form-status strong {
  display: block;
  font-weight: 600;
}

.form {
  display: grid;
  gap: var(--space-m);
}

.form__title {
  font-family: var(--font-display);
  font-variation-settings: var(--display-axes);
  font-size: var(--step-2);
  font-weight: 420;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field > label,
.checks > legend {
  font-weight: 600;
}

.req {
  font-weight: 500;
  color: var(--ink-2);
}

.hint {
  font-size: var(--step--1);
  color: var(--ink-2);
}

.input {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.9rem;
  border: 2px solid rgb(16 34 63 / 0.55);
  border-radius: var(--radius-s);
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-size: max(16px, 1rem); /* avoids iOS zoom on focus */
}

.input:hover {
  border-color: var(--navy);
}

.input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-color: var(--navy);
}

.input:user-invalid {
  border-color: var(--coral-ink);
}

.field__error {
  display: none;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--coral-ink);
}

/* No-JS fallback only; with JS, forms.js controls messages (.is-shown). */
.form:not(.js-validate) .input:user-invalid ~ .field__error {
  display: block;
}

.field__error.is-shown {
  display: block;
}

.js-validate .input[aria-invalid="true"] {
  border-color: var(--coral-ink);
}

.checks {
  display: grid;
  gap: 0.9rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.checks > legend {
  margin-bottom: 0.4rem;
  padding: 0;
}

.check {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
}

.check input {
  width: 1.5rem;
  height: 1.5rem;
  margin: 0.1rem 0 0;
  accent-color: var(--navy);
  cursor: pointer;
}

.check label {
  cursor: pointer;
  text-wrap: pretty;
}

.form__actions {
  display: grid;
  justify-items: start;
  gap: 0.5rem;
  padding-top: var(--space-xs);
  border-top: 1px solid var(--rule);
}

.btn:disabled,
.btn:disabled:hover {
  opacity: 0.5;
  background: var(--navy);
  translate: none;
  cursor: not-allowed;
}

.form__note {
  font-size: var(--step--1);
  color: var(--ink-2);
}

.form__note--consent {
  padding: var(--space-xs) var(--space-s);
  border-left: 3px solid var(--navy);
  background: var(--paper);
  color: var(--navy);
}

.opt {
  font-weight: 400;
  color: var(--ink-2);
}

.form-aside {
  margin-top: var(--space-m);
  font-size: var(--step--1);
  color: var(--ink-2);
}

/* Homepage: small link row under the platform tiles and in Families. */
.inline-cta {
  margin-top: var(--space-m);
  color: var(--ink-2);
}

.families__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

/* ---- Legal links (Phase 5b) -------------------------------------------- */

.footer-tag {
  display: inline-block;
  margin-left: 0.25rem;
  padding: 0.05em 0.5em;
  border: 1px solid var(--rule-on-navy);
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--cream-2);
  white-space: nowrap;
}

.footer-tag--inline {
  font-size: 0.85em;
  font-weight: 400;
}

.footer-tag.footer-tag--inline {
  margin-left: 0.15rem;
}

.doc-note {
  padding: var(--space-xs) var(--space-s);
  border: 1px solid var(--rule);
  border-radius: var(--radius-s);
  background: var(--paper);
}

.prose .form-status {
  margin-block: var(--space-m);
}

.prose section > * + * {
  margin-top: var(--space-s);
}

/* ---- Form errors, honeypot, legal drafts (Phase 7) ---------------------- */

.error-summary {
  padding: var(--space-s) var(--space-m);
  border: 3px solid var(--coral-ink);
  border-radius: var(--radius-s);
  background: #fff;
}

.error-summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.error-summary h3 {
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--coral-ink);
}

.error-summary ul {
  display: grid;
  gap: 0.3rem;
  margin-top: 0.5rem;
}

.error-summary a {
  color: var(--coral-ink);
  font-weight: 600;
}

.checks .field__error {
  margin-top: -0.2rem;
}

/* Honeypot: invisible to people and assistive tech; bots may fill it. */
.hp-field {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Draft legal documents (review markup is removed before publication). */
.review-panel {
  max-width: 44rem;
  margin-bottom: var(--space-l);
  padding: var(--space-m);
  border: 3px solid var(--coral-ink);
  border-radius: var(--radius-m);
  background: var(--paper);
}

.review-panel strong {
  display: block;
  font-size: var(--step-1);
  color: var(--coral-ink);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.review-panel ul {
  margin-top: 0.5rem;
  padding-left: 1.25em;
}

.review-panel code {
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

mark.filled {
  padding: 0 0.15em;
  background: #d6e2ff;
  color: var(--navy);
}

a.added-link {
  text-decoration-style: dashed;
  text-decoration-thickness: 2px;
}

.review-note {
  display: block;
  margin: 0.4rem 0;
  padding: 0.35rem 0.6rem;
  border: 1px dashed var(--coral-ink);
  border-radius: var(--radius-s);
  background: #fff;
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--coral-ink);
}

.legal-doc h2.legal-h {
  margin-top: var(--space-xl);
  scroll-margin-top: 1rem;
}

.legal-num {
  font-variant-numeric: tabular-nums;
  margin-right: 0.35em;
}

.legal-doc .clause--0 {
  margin-top: var(--space-l);
  font-weight: 500;
}

.legal-doc .clause--1 {
  padding-left: 1.75rem;
  text-indent: -1.75rem;
}

.legal-doc .clause--1 .legal-num {
  display: inline-block;
  width: 1.4rem;
  margin-right: 0.35rem;
  text-indent: 0;
}

.legal-doc .clause--cont,
.legal-doc .clause-cont {
  padding-left: 1.75rem;
}

.legal-list {
  padding-left: 1.25em;
}

.legal-list li + li {
  margin-top: 0.4em;
}

.legal-list .legal-list {
  margin-top: 0.4em;
  list-style-type: circle;
}

.table-wrap {
  overflow-x: auto;
  margin-block: var(--space-m);
}

.legal-table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: var(--step--1);
}

.legal-table th,
.legal-table td {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: var(--yellow-soft);
}

.review-panel .review-note {
  display: inline-block;
  margin: 0;
}

/* ==========================================================================
   Consent banner, preferences dialog, footer "Cookie Preferences" (consent.js)
   ========================================================================== */

.consent-banner {
  position: fixed;
  z-index: 50;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--space-xs) var(--gutter) calc(var(--space-xs) + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}

.consent-banner__inner {
  display: grid;
  gap: var(--space-xs);
  max-width: 62rem;
  margin-inline: auto;
  padding: var(--space-s) clamp(1rem, 2.5vw, 1.5rem);
  border: 2px solid var(--navy);
  border-radius: var(--radius-m);
  background: var(--paper);
  box-shadow: 0 18px 40px -18px rgb(16 34 63 / 0.45);
  pointer-events: auto;
}

.consent-banner__title {
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1.25;
}

.consent-banner__text p {
  margin-top: 0.2rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ink-2);
}

/* Compact buttons: two per row on phones, one row on desktop; all identical. */
.consent-banner__actions .consent-btn {
  flex: 1 1 8.5rem;
  min-height: 44px;
  padding: 0.45rem 0.9rem;
  font-size: 0.92rem;
}

.consent-banner__gpc {
  font-weight: 600;
  color: var(--navy) !important;
}

.consent-banner__actions,
.consent-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
}

/* All three choices share one style: equal prominence. */
.consent-btn {
  flex: 1 1 10rem;
  min-height: 48px;
  padding: 0.6rem 1rem;
  border: 2px solid var(--navy);
  border-radius: 999px;
  background: var(--navy);
  color: var(--cream);
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.consent-btn:hover {
  background: var(--navy-2);
}

.consent-btn:focus-visible,
.consent-dialog__close:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

@media (min-width: 900px) {
  .consent-banner__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: var(--space-m);
  }

  .consent-banner__actions {
    flex-wrap: nowrap;
  }

  .consent-banner__actions .consent-btn {
    flex: 0 0 auto;
  }
}

.consent-dialog {
  width: min(36rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 2px solid var(--navy);
  border-radius: var(--radius-m);
  background: var(--paper);
  color: var(--navy);
}

.consent-dialog::backdrop {
  background: rgb(16 34 63 / 0.55);
}

.consent-dialog__body {
  display: grid;
  gap: var(--space-s);
  padding: var(--space-m);
}

.consent-dialog__title {
  padding-right: 2.5rem;
  font-family: var(--font-display);
  font-variation-settings: var(--display-axes);
  font-size: var(--step-2);
  font-weight: 420;
  line-height: 1.15;
}

.consent-dialog__close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.consent-cats {
  display: grid;
  gap: var(--space-xs);
  margin: 0;
  padding: 0;
  border: 0;
}

.consent-cat {
  padding: var(--space-s);
  border: 1px solid var(--rule);
  border-radius: var(--radius-s);
  background: #fff;
}

.consent-cat__head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
}

.consent-cat__head input {
  width: 1.4rem;
  height: 1.4rem;
  margin: 0;
  accent-color: var(--navy);
}

.consent-cat__badge {
  margin-left: auto;
  padding: 0.1em 0.6em;
  border-radius: 999px;
  background: var(--yellow-soft);
  font-size: var(--step--1);
  font-weight: 500;
}

.consent-cat__desc {
  margin-top: 0.3rem;
  font-size: var(--step--1);
  color: var(--ink-2);
}

.footer-link-button {
  padding: 0.3rem 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.footer-link-button[hidden] {
  display: none;
}
