/* ============================================================================
   Kids Fun Week — design system
   Warm, modern, sophisticated-playful. Built for parents, on-brand for kids.
   Light by default; [data-theme="dark"] is a cozy warm-night palette.
   System fonts only (ui-rounded gives the friendly display face on Apple, with
   graceful fallbacks elsewhere — no web-font request). Mobile-first.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* surfaces */
  --bg:        #FFFBF3;   /* warm cream */
  --bg-2:      #FBF2E4;   /* deeper cream panels */
  --surface:   #FFFFFF;
  --surface-2: #FFF7EC;   /* warm card */
  --ink:       #2C2620;
  --ink-soft:  #6A6051;
  --ink-faint: #6F6757;   /* AA on cream (≈4.6:1); was #9C9385 (2.94:1, failed) */
  --line:      #EFE3D0;

  /* brand colors */
  --coral:      #E26A43;  /* primary */
  --coral-deep: #BF4E2B;  /* AA text on cream */
  --coral-soft: #FBE3D6;
  --gold:       #F1B23C;
  --gold-deep:  #B5821A;
  --gold-soft:  #FBEFD2;
  --teal:       #4FA89B;
  --teal-deep:  #2E7A6E;
  --teal-soft:  #DCEEEA;
  --plum:       #C26086;
  --plum-deep:  #9E4368;
  --plum-soft:  #F6E0E9;

  /* effects */
  --shadow-sm: 0 1px 2px rgba(58,42,28,.06), 0 2px 6px rgba(58,42,28,.05);
  --shadow:    0 4px 10px rgba(58,42,28,.06), 0 14px 34px rgba(58,42,28,.09);
  --shadow-lg: 0 10px 24px rgba(58,42,28,.08), 0 30px 70px rgba(58,42,28,.14);
  --ring:      0 0 0 4px var(--coral-soft);

  --radius-sm: 12px;
  --radius:    20px;
  --radius-lg: 28px;
  --radius-xl: 38px;

  --wrap:     74rem;
  --measure:  40rem;

  --font-display: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN",
                  Quicksand, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

:root[data-theme="dark"] {
  --bg:        #1A130D;
  --bg-2:      #221A11;
  --surface:   #241B12;
  --surface-2: #2B2117;
  --ink:       #F7ECDC;
  --ink-soft:  #CBBCA4;
  --ink-faint: #96896F;
  --line:      #38291A;

  --coral:      #F08760;
  --coral-deep: #F4A483;
  --coral-soft: #3A2316;
  --gold:       #F3C262;
  --gold-deep:  #F3C262;
  --gold-soft:  #33260F;
  --teal:       #71C2B4;
  --teal-deep:  #71C2B4;
  --teal-soft:  #16322C;
  --plum:       #DC88A8;
  --plum-deep:  #DC88A8;
  --plum-soft:  #34202A;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
  --shadow:    0 6px 16px rgba(0,0,0,.35), 0 18px 40px rgba(0,0,0,.4);
  --shadow-lg: 0 14px 30px rgba(0,0,0,.4), 0 36px 80px rgba(0,0,0,.5);
  --ring:      0 0 0 4px rgba(240,135,96,.25);
}

/* ---------- Reset-ish ---------- */
*, *::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(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.72 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .3s ease, color .3s ease;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--coral-deep); text-decoration: none; }
a:hover { color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700; line-height: 1.12; letter-spacing: -0.02em;
  color: var(--ink); margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.7rem, 1.2rem + 1.9vw, 2.5rem); letter-spacing: -0.025em; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 1.5rem; }
.muted { color: var(--ink-soft); }
.center { text-align: center; }

/* ---------- Eyebrow / pills / doodles ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-display);
  font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--coral-deep); background: var(--coral-soft);
  padding: .45em .95em; border-radius: 999px; margin-bottom: 1.1rem;
}
.eyebrow.gold { color: var(--gold-deep); background: var(--gold-soft); }
.eyebrow.teal { color: var(--teal-deep); background: var(--teal-soft); }

.pill-row { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: 1.2rem; }
.pill {
  display: inline-flex; align-items: center; gap: .45em;
  font-size: .86rem; font-weight: 600; color: var(--ink-soft);
  background: var(--surface); border: 1px solid var(--line);
  padding: .5em .9em; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.pill svg { width: 15px; height: 15px; color: var(--teal-deep); }

/* hand-drawn underline accent under a word in headings */
.swoosh { position: relative; white-space: nowrap; color: var(--coral-deep); }
.swoosh::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: -.12em; height: .34em;
  background: var(--gold); border-radius: 999px; opacity: .55; z-index: -1;
  transform: rotate(-.6deg);
}

/* ---------- Skip link ---------- */
.skip { position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--coral-deep); color: #fff; padding: .6rem 1rem; border-radius: 0 0 10px 0; }
.skip:focus { left: 0; }

/* ---------- Global keyboard focus indicator (WCAG 2.4.7) ---------- */
a:focus-visible, button:focus-visible, .btn:focus-visible,
.icon-btn:focus-visible, .nl-card:focus-visible, input:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--coral-deep);
  outline-offset: 2px;
  border-radius: 6px;
}
:root[data-theme="dark"] a:focus-visible,
:root[data-theme="dark"] button:focus-visible,
:root[data-theme="dark"] .btn:focus-visible,
:root[data-theme="dark"] .icon-btn:focus-visible,
:root[data-theme="dark"] .nl-card:focus-visible,
:root[data-theme="dark"] input:focus-visible,
:root[data-theme="dark"] [tabindex]:focus-visible {
  outline-color: var(--coral);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; line-height: 1;
  padding: .92em 1.5em; border-radius: 999px; cursor: pointer;
  border: 2px solid transparent; color: var(--ink); background: var(--surface-2);
  box-shadow: var(--shadow-sm);
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn-primary {
  color: #fff; border-color: transparent;
  background: linear-gradient(180deg, #EC7850 0%, var(--coral) 55%, #D85B36 100%);
  box-shadow: 0 2px 0 #A84020, var(--shadow);
}
.btn-primary:hover { color: #fff; box-shadow: 0 2px 0 #A84020, var(--shadow-lg); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--coral); color: var(--coral-deep); background: var(--coral-soft); }
.btn-sm { padding: .6em 1.1em; font-size: .92rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; transition: background-color .25s ease, box-shadow .25s ease, border-color .25s ease; border-bottom: 1px solid transparent; }
.site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom-color: var(--line); box-shadow: var(--shadow-sm);
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand .wordmark { font-family: var(--font-display); font-weight: 700; font-size: 1.22rem;
  letter-spacing: -0.03em; color: var(--ink); white-space: nowrap; }
.brand-mark { width: 38px; height: 38px; flex: 0 0 auto; filter: drop-shadow(0 3px 6px rgba(58,42,28,.16)); }
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.04); }
.brand-mark { transition: transform .25s cubic-bezier(.34,1.56,.64,1); }
.nav { display: flex; gap: .15rem; margin-left: auto; }
.nav a { font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  color: var(--ink-soft); padding: .55rem .85rem; border-radius: 12px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--bg-2); }
.header-actions { display: flex; align-items: center; gap: .55rem; margin-left: .4rem; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 13px; cursor: pointer; padding: 0; transition: border-color .2s, color .2s, transform .2s; }
.icon-btn:hover { border-color: var(--coral); color: var(--coral-deep); transform: translateY(-1px); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .moon { display: none; }
.theme-toggle .sun  { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
:root[data-theme="dark"] .theme-toggle .sun  { display: none; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(1.25rem, 3vw, 2.75rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.hero::before {
  content: ""; position: absolute; inset: -25% -10% 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 44% at 12% 18%, color-mix(in srgb, var(--coral) 22%, transparent), transparent 72%),
    radial-gradient(40% 46% at 88% 8%,  color-mix(in srgb, var(--gold)  28%, transparent), transparent 72%),
    radial-gradient(46% 50% at 80% 86%, color-mix(in srgb, var(--teal)  16%, transparent), transparent 70%);
  filter: blur(30px); opacity: .85;
}
.hero-split { display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(1.25rem, 3.5vw, 2.5rem); align-items: center; }
.hero-copy { max-width: 38rem; }
.hero-copy h1 { font-size: clamp(2.2rem, 1.5rem + 2.7vw, 3.4rem); margin-bottom: .3em; }
.hero-copy .lede { font-size: clamp(1rem, .98rem + .3vw, 1.08rem); color: var(--ink-soft); margin-bottom: 1.3rem; max-width: 38rem; }
.hero-art-wrap { position: relative; display: grid; place-items: center; }
.hero-art-wrap::before {
  content: ""; position: absolute; width: 96%; aspect-ratio: 1; border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%;
  background: radial-gradient(circle at 42% 38%, color-mix(in srgb, var(--gold-soft) 85%, transparent) 0%,
              color-mix(in srgb, var(--coral-soft) 70%, transparent) 55%, transparent 78%);
  filter: blur(10px); z-index: 0;
}
.hero-art { position: relative; z-index: 1; width: 100%; max-width: 27rem; }
.hero .signup-card { padding: 1.25rem; }

/* signup card */
.signup-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.4rem; box-shadow: var(--shadow); max-width: 30rem; }
.signup-card .card-label { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; margin-bottom: .8rem; display: block; }
.trust { color: var(--ink-faint); font-size: .88rem; margin: 1.1rem 0 0; }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.section-head { text-align: center; max-width: 46rem; margin: 0 auto clamp(1.8rem, 3vw, 2.8rem); }
.section-head h2 { margin-bottom: .35em; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; margin: 0; }
.section-head .head-link { display: inline-block; margin-top: .7rem; font-family: var(--font-display); font-weight: 700; }

/* tinted panel wrapper — an inset rounded block */
.panel { background: var(--bg-2); border: 1px solid var(--line); border-radius: clamp(24px, 3vw, 40px);
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1.4rem, 4vw, 3rem); }
.panel .section-head { margin-bottom: clamp(1.5rem, 3vw, 2.4rem); }

/* ---------- "Anatomy of a Sunday" list ---------- */
.anatomy { display: grid; gap: 1rem; max-width: 44rem; margin: 0 auto; }
.anatomy-row { display: flex; gap: 1.1rem; align-items: flex-start; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; box-shadow: var(--shadow-sm); }
.anatomy-row .count { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: #fff; }
.anatomy-row:nth-child(1) .count { background: var(--coral); }
.anatomy-row:nth-child(2) .count { background: var(--gold); }
.anatomy-row:nth-child(3) .count { background: var(--teal); }
.anatomy-row:nth-child(4) .count { background: var(--plum); }
.anatomy-row .a-body { padding-top: .15rem; }
.anatomy-row .a-body strong { font-family: var(--font-display); display: block; font-size: 1.06rem; color: var(--ink); }
.anatomy-row .a-body span { color: var(--ink-soft); font-size: .98rem; }

/* ---------- Feature bento ---------- */
.bento { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.1rem; }
.bento-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.6rem; box-shadow: var(--shadow-sm); transition: transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .22s ease; }
.bento-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.icon-tile { width: 56px; height: 56px; border-radius: 17px; display: grid; place-items: center; font-size: 1.7rem; margin-bottom: 1rem; }
.icon-tile.coral { background: var(--coral-soft); }
.icon-tile.gold  { background: var(--gold-soft); }
.icon-tile.teal  { background: var(--teal-soft); }
.icon-tile.plum  { background: var(--plum-soft); }
.bento-card h3 { margin-bottom: .3em; }
.bento-card p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* ---------- Email preview mockup ---------- */
.email-preview { max-width: 38rem; margin: 0 auto; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.email-bar { display: flex; align-items: center; gap: .5rem; padding: .85rem 1.1rem; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.email-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.email-bar .dot.r { background: #F0866B; } .email-bar .dot.y { background: var(--gold); } .email-bar .dot.g { background: var(--teal); }
.email-bar .email-app { margin-left: auto; font-size: .78rem; color: var(--ink-faint); font-weight: 600; letter-spacing: .04em; }
.email-body { padding: 1.5rem 1.6rem 1.7rem; }
.email-from { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.email-avatar { width: 42px; height: 42px; border-radius: 50%; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--gold) 0%, var(--coral) 100%); display: grid; place-items: center; }
.email-avatar svg { width: 26px; height: 26px; }
.email-from .who { font-family: var(--font-display); font-weight: 700; color: var(--ink); line-height: 1.2; }
.email-from .meta { font-size: .85rem; color: var(--ink-faint); }
.email-from .when { margin-left: auto; font-size: .82rem; color: var(--ink-faint); }
.email-subject { font-family: var(--font-display); font-weight: 700; font-size: 1.32rem; letter-spacing: -.02em; margin: 0 0 .5rem; color: var(--ink); }
.email-snippet { color: var(--ink-soft); margin: 0 0 1.2rem; }
.email-cta { display: inline-flex; }

/* ---------- Archive cards ---------- */
.nl-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(18.5rem, 1fr)); gap: 1.2rem; }
.nl-card { position: relative; display: flex; flex-direction: column; gap: .5rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem 1.5rem 1.35rem; text-decoration: none;
  color: var(--ink); box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .22s ease, border-color .22s ease; }
.nl-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; }
.nl-card:nth-child(4n+1)::before { background: var(--coral); }
.nl-card:nth-child(4n+2)::before { background: var(--gold); }
.nl-card:nth-child(4n+3)::before { background: var(--teal); }
.nl-card:nth-child(4n+4)::before { background: var(--plum); }
.nl-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.nl-badge { align-self: flex-start; font-family: var(--font-display); font-weight: 700; font-size: .76rem;
  letter-spacing: .04em; padding: .35em .7em; border-radius: 999px; background: var(--bg-2); color: var(--ink-soft); margin-top: .3rem; }
.nl-card .nl-meta { color: var(--ink-faint); font-size: .82rem; }
.nl-card h3 { margin: 0; font-size: 1.22rem; }
.nl-card p { margin: 0; color: var(--ink-soft); font-size: .96rem; flex: 1; }
.nl-card .card-go { font-family: var(--font-display); font-weight: 700; color: var(--coral-deep); font-size: .92rem; margin-top: .3rem; }
.nl-card:hover .card-go { color: var(--ink); }

/* ---------- CTA band (pre-footer) ---------- */
.cta-band { position: relative; margin-top: clamp(3rem, 6vw, 5rem); overflow: hidden;
  background: linear-gradient(135deg, #F6A24C 0%, var(--coral) 60%, #D8542F 100%); }
.cta-band .wrap { padding-block: clamp(2.8rem, 6vw, 4.5rem); text-align: center; position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: rgba(255,255,255,.92); font-size: 1.12rem; max-width: 34rem; margin: 0 auto 1.6rem; }
.cta-band .btn { background: #fff; color: var(--coral-deep); box-shadow: 0 2px 0 rgba(120,40,15,.35), var(--shadow); }
.cta-band .btn:hover { color: var(--coral-deep); transform: translateY(-2px); }
.cta-band .fineprint { color: rgba(255,255,255,.85); font-size: .86rem; margin: 1rem 0 0; }
.cta-band .doodle { position: absolute; opacity: .5; color: #fff; }
.cta-band .doodle.d1 { top: 14%; left: 8%; width: 46px; }
.cta-band .doodle.d2 { bottom: 16%; right: 10%; width: 60px; }
.cta-band .doodle.d3 { top: 24%; right: 22%; width: 26px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); }
.footer-inner { padding-block: 3rem 2rem; display: grid; gap: 1.8rem; }
.footer-top { display: flex; flex-wrap: wrap; gap: 2.5rem; justify-content: space-between; }
.footer-brand { max-width: 22rem; }
.footer-brand .brand { margin-bottom: .8rem; }
.footer-brand p { color: var(--ink-soft); font-size: .95rem; margin: 0; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 2rem 3rem; }
.footer-cols nav { display: grid; gap: .45rem; align-content: start; }
.footer-cols h4 { font-family: var(--font-display); margin: 0 0 .3rem; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-faint); }
.footer-cols a { color: var(--ink-soft); font-size: .96rem; }
.footer-cols a:hover { color: var(--coral-deep); }
.disclosure { color: var(--ink-faint); font-size: .82rem; max-width: 46rem; border-top: 1px solid var(--line); padding-top: 1.4rem; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; color: var(--ink-faint); font-size: .85rem; }
.foot-legal a { color: var(--ink-faint); }
.foot-legal a:hover { color: var(--ink); }
.xref { color: var(--coral-deep); font-weight: 600; }

/* ---------- Article / edition ---------- */
.article { max-width: var(--measure); margin-inline: auto; padding-top: 2rem; }
.breadcrumbs { font-size: .85rem; color: var(--ink-faint); margin-bottom: 1.2rem; }
.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs a:hover { color: var(--coral-deep); }
.article-header { margin-bottom: 1.5rem; }
.article-header h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
.article-meta { color: var(--ink-faint); font-size: .92rem; }
.cat-tag { display: inline-block; font-family: var(--font-display); font-size: .78rem; font-weight: 700;
  letter-spacing: .04em; color: var(--coral-deep); background: var(--coral-soft); padding: .4em .85em; border-radius: 999px; margin-bottom: 1rem; }
.article-lede { font-size: 1.24rem; color: var(--ink-soft); margin: 1rem 0 0; }

.article-body { font-size: 1.075rem; }
.article-body > p:first-of-type::first-letter {
  font-family: var(--font-display); font-weight: 700; float: left; font-size: 3.4rem; line-height: .8;
  padding: .08em .12em 0 0; color: var(--coral-deep);
}
.article-body p { margin: 1.15em 0; }
.article-body h2 { font-size: 1.55rem; margin: 1.8em 0 .5em; padding-top: .4em; }
.article-body h2::after { content: ""; display: block; width: 3rem; height: .28rem; border-radius: 999px;
  background: var(--gold); margin-top: .5rem; opacity: .75; }
.article-body h3 { font-size: 1.2rem; margin: 1.5em 0 .4em; }
.article-body ul, .article-body ol { margin: 1.15em 0; padding-left: 0; list-style: none; }
.article-body li { position: relative; margin: .55em 0; padding-left: 1.7em; }
.article-body ul li::before { content: ""; position: absolute; left: .2em; top: .62em; width: .5em; height: .5em;
  border-radius: 50%; background: var(--coral); }
.article-body ol { counter-reset: li; }
.article-body ol li { counter-increment: li; }
.article-body ol li::before { content: counter(li); position: absolute; left: 0; top: .05em; width: 1.3em; height: 1.3em;
  background: var(--gold-soft); color: var(--gold-deep); border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: .78em; }
.article-body a { color: var(--coral-deep); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--coral) 40%, transparent);
  text-underline-offset: .2em; text-decoration-thickness: .1em; transition: text-decoration-color .2s, color .2s; }
.article-body a:hover { color: var(--ink); text-decoration-color: var(--coral); }
.article-body strong { color: var(--ink); font-weight: 700; }
.article-body blockquote { margin: 1.6em 0; padding: 1.2em 1.4em; background: var(--gold-soft);
  border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent); color: var(--ink); }
.article-body hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }

.edition-nav { display: flex; justify-content: space-between; gap: 1rem; max-width: var(--measure); margin: 2.5rem auto 0;
  padding-top: 1.4rem; border-top: 1px solid var(--line); }
.edition-nav a { font-family: var(--font-display); font-weight: 700; }

/* ---------- Related editions ("More activities", in editions) ---------- */
.related { max-width: var(--measure); margin: 3rem auto 0; padding-top: 1.6rem; border-top: 1px solid var(--line); }

/* ---------- Inline nudge (in editions) ---------- */
.nudge { position: relative; max-width: var(--measure); margin: 2.5rem auto 0; padding: 1.5rem 1.6rem;
  background: var(--teal-soft); border: 1px solid color-mix(in srgb, var(--teal) 28%, transparent); border-radius: var(--radius-lg);
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; justify-content: space-between; }
.nudge p { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.nudge .btn { white-space: nowrap; }

/* ---------- Subscribe page ---------- */
.subscribe-hero { text-align: center; max-width: 40rem; margin-inline: auto; padding: clamp(2rem, 5vw, 3.5rem) 0 1rem; }
.subscribe-hero .signup-card { margin: 1.6rem auto 0; }
.subscribe-hero .feature-list { text-align: left; max-width: 30rem; margin: 2rem auto 0; }
.feature-list { display: grid; gap: .8rem; padding: 0; list-style: none; }
.feature-list li { display: flex; gap: .7rem; align-items: flex-start; color: var(--ink-soft); font-size: 1.04rem; }
.feature-list li::before { content: ""; flex: 0 0 auto; width: 1.4em; height: 1.4em; margin-top: .08em; border-radius: 50%;
  background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E7A6E' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/.8em no-repeat; }

/* form */
.ck-form .form-row { display: flex; gap: .55rem; flex-wrap: wrap; }
.ck-form input[type="email"] { flex: 1 1 14rem; padding: .9em 1.1em; font-size: 1rem; border-radius: 999px;
  border: 2px solid var(--line); background: var(--bg); color: var(--ink); font-family: var(--font); }
.ck-form input[type="email"]:focus { outline: none; border-color: var(--coral); box-shadow: var(--ring); }
.ck-form .fineprint { color: var(--ink-faint); font-size: .82rem; margin: .85rem 0 0; }
.ck-disabled { background: var(--coral-soft); border: 2px dashed var(--coral); border-radius: var(--radius);
  padding: 1rem 1.2rem; color: var(--ink-soft); font-size: .95rem; }
.ck-disabled code { background: rgba(0,0,0,.06); padding: .1em .35em; border-radius: 5px; font-size: .9em; }

/* ---------- Sample peek (home fallback) ---------- */
.sample { max-width: 38rem; margin: 0 auto; padding: 1.6rem; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.sample .label { font-family: var(--font-display); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }

/* ---------- Ads (tasteful, max 3/page) ---------- */
.ad { margin: 2.2rem auto; text-align: center; max-width: var(--measure); }
.ad::before { content: "Advertisement"; display: block; font-size: .7rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: .35rem; }
.ad ins { display: block; }
/* Reserve slot height so loading ads don't shift content (CLS). Only rendered
   when AdSense is enabled, so no empty gap pre-launch. */
.ad-inline { min-height: 250px; }
.ad-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; margin: 0; padding: .25rem;
  background: var(--surface); border-top: 1px solid var(--line); display: none; min-height: 60px; }
.ad-sticky::before { display: none; }
@media (max-width: 720px) { .ad-sticky.on { display: block; } body.has-sticky { padding-bottom: 70px; } }

/* ---------- Illustration colors + float ---------- */
.ill .f-coral { fill: var(--coral); } .ill .f-coral-d { fill: var(--coral-deep); }
.ill .f-gold { fill: var(--gold); } .ill .f-gold-d { fill: var(--gold-deep); }
.ill .f-teal { fill: var(--teal); } .ill .f-teal-d { fill: var(--teal-deep); }
.ill .f-plum { fill: var(--plum); }
.ill .f-cream { fill: var(--surface); } .ill .f-bg { fill: var(--bg-2); }
.ill .s-ink { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ill .ln { stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ill .dots { fill: none; stroke: var(--ink-faint); stroke-width: 3; stroke-dasharray: 0.5 13; stroke-linecap: round; opacity: .45; }
.ill .spark { fill: var(--gold); }
.ill .float { transform-box: fill-box; transform-origin: center; animation: floaty 6s ease-in-out infinite; }
.ill .float.f2 { animation-duration: 7.5s; animation-delay: -1.2s; }
.ill .float.f3 { animation-duration: 5.4s; animation-delay: -.6s; }
.ill .float.f4 { animation-duration: 8s; animation-delay: -2s; }
.ill .float.f5 { animation-duration: 6.6s; animation-delay: -3s; }
.ill .float.f6 { animation-duration: 7s; animation-delay: -.3s; }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-9px) rotate(2.5deg); } }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.22,1,.36,1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { max-width: 38rem; margin-inline: auto; }
  .hero-copy .lede, .signup-card { margin-inline: auto; }
  .hero-art-wrap { order: -1; max-width: 22rem; margin-inline: auto; }
}
@media (max-width: 760px) {
  .nav, .header-actions .btn { display: none; }
  .nav-toggle { display: inline-grid; }
  .nav.open { display: grid; position: absolute; left: 0; right: 0; top: 72px;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: .75rem 1.5rem 1rem; gap: .1rem; box-shadow: var(--shadow); }
  .nav.open a { padding: .8rem .5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ill .float { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .bento-card:hover, .nl-card:hover { transform: none; }
}
@media print {
  .site-header, .site-footer, .cta-band, .ad, .ad-sticky, .nudge, .edition-nav, .related { display: none !important; }
  body { background: #fff; color: #000; }
}
