/* Impossibly Curious: site styles.
   Brand palette from brand/BRAND_GUIDE.md in the book repo. One stylesheet for every page. */

@font-face {
  font-family: "Fredoka";
  src: url("/assets/fonts/fredoka-latin-wght.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito-latin-wght.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --navy: #10254c;
  --navy-deep: #0a1834;
  --blue: #176dc1;
  --teal: #0c9dad;
  --teal-dark: #087786;
  --teal-light: #63dfeb;
  --gold: #f8c642;
  --gold-dark: #e0a800;
  --orange: #fa8a37;
  --purple: #7352b8;
  --cream: #fff8ec;
  --ink: #15213b;
  --muted: #4b5872;
  --line: #e4e0d6;
  --white: #fff;

  --font-display: "Fredoka", "Nunito", ui-rounded, system-ui, sans-serif;
  --font-body: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(16, 37, 76, .12);
  --shadow-lg: 0 24px 60px rgba(6, 16, 38, .35);
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(56px, 9vw, 104px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font-body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
.icon { width: 1.5em; height: 1.5em; flex: none; }
a { color: var(--blue); text-underline-offset: .18em; }
a:hover { color: var(--navy); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; color: var(--navy); }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.center { text-align: center; }
.small { font-size: .9rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--navy); padding: 10px 16px; border-radius: 10px; font-weight: 800; }
.skip:focus { top: 12px; }

/* ---------- buttons, badges, eyebrows ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 50px; padding: .7em 1.5em; border-radius: 999px; border: 2px solid transparent;
  font: 700 1.02rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { min-height: 42px; padding: .5em 1.15em; font-size: .95rem; }
.btn-gold { background: var(--gold); color: var(--navy); box-shadow: 0 6px 0 var(--gold-dark); }
.btn-gold:hover { color: var(--navy); background: #ffd25a; }
.btn-gold:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--gold-dark); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { color: var(--white); background: var(--blue); }
.btn-teal { background: var(--teal); color: var(--white); }
.btn-teal:hover { color: var(--white); background: var(--teal-dark); }
.btn-ghost { border-color: currentColor; color: var(--white); background: transparent; }
.btn-ghost:hover { color: var(--navy); background: var(--white); border-color: var(--white); }
.section:not(.section-navy) .btn-ghost, .signup .btn-ghost { color: var(--navy); }
.section:not(.section-navy) .btn-ghost:hover { color: var(--white); background: var(--navy); border-color: var(--navy); }
.actions { display: flex; flex-wrap: wrap; gap: 14px 16px; margin-top: 28px; }
.actions.center { justify-content: center; }

.badge { display: inline-block; padding: .28em .9em; border-radius: 999px; font: 800 .78rem/1.4 var(--font-body); letter-spacing: .08em; text-transform: uppercase; }
.badge-gold { background: var(--gold); color: var(--navy); }
.badge-teal { background: var(--teal); color: var(--white); }
.eyebrow { font: 800 .82rem/1.4 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0 0 .9em; }
.eyebrow-teal { color: var(--teal-dark); }
.subtitle { font: 600 1.2rem/1.4 var(--font-display); color: var(--teal-dark); margin-top: -.2em; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(16, 37, 76, .96); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 58px; height: auto; background: var(--white); border-radius: 10px; padding: 5px 6px; }
.brand-name { font: 600 1.35rem/1 var(--font-display); color: var(--white); white-space: nowrap; }
.brand-name span { color: var(--gold); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.site-nav a:not(.btn) { display: block; padding: 10px 14px; color: rgba(255, 255, 255, .88); text-decoration: none; font-weight: 700; border-radius: 10px; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { color: var(--white); background: rgba(255, 255, 255, .1); }
.site-nav li:last-child { margin-left: 8px; }
.nav-toggle { display: none; width: 46px; height: 46px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .1); cursor: pointer; place-items: center; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 22px; height: 2.5px; border-radius: 2px; background: var(--white); position: relative; transition: transform .2s ease, background-color .2s ease; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: grid; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--navy); border-bottom: 1px solid rgba(255, 255, 255, .1); padding: 8px var(--gutter) 20px; display: none; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a:not(.btn) { padding: 14px 12px; font-size: 1.1rem; }
  .site-nav li:last-child { margin: 10px 0 0; }
  .site-nav .btn { width: 100%; min-height: 50px; }
}

/* ---------- hero (home) ---------- */
.hero { position: relative; background: radial-gradient(120% 90% at 80% 30%, #1b3a78 0%, var(--navy) 55%, var(--navy-deep) 100%); color: var(--white); overflow: hidden; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(24px, 5vw, 64px); padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 88px); }
.hero h1 { color: var(--white); }
.hero h1 span { display: block; color: var(--gold); }
.hero .lead { color: rgba(255, 255, 255, .9); max-width: 34em; }
.hero-art img { width: 100%; border-radius: 28px; box-shadow: var(--shadow-lg); transform: rotate(1.5deg); border: 6px solid rgba(255, 255, 255, .08); }
.hero-stars { position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image:
    radial-gradient(2px 2px at 8% 18%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 22% 78%, #fff 50%, transparent 51%),
    radial-gradient(3px 3px at 41% 12%, var(--gold) 50%, transparent 51%),
    radial-gradient(2px 2px at 55% 88%, #fff 50%, transparent 51%),
    radial-gradient(3px 3px at 66% 8%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 91% 52%, var(--gold) 50%, transparent 51%),
    radial-gradient(2px 2px at 34% 46%, #fff 50%, transparent 51%),
    radial-gradient(3px 3px at 4% 62%, var(--gold) 50%, transparent 51%); }
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { max-width: 460px; }
  .hero-art img { transform: none; }
}

/* ---------- welcome / QR strip ---------- */
.welcome { background: var(--cream); border-bottom: 1px solid var(--line); }
.welcome-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px 28px; padding-top: 28px; padding-bottom: 28px; }
.welcome h2 { font-size: 1.5rem; margin-bottom: .2em; }
.welcome p { margin: 0; color: var(--muted); }
.welcome-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--teal); color: var(--white); }
.welcome-icon .icon { width: 36px; height: 36px; }
@media (max-width: 760px) { .welcome-inner { grid-template-columns: auto 1fr; } .welcome .btn { grid-column: 1 / -1; justify-self: start; } }

/* ---------- sections ---------- */
.section { padding: var(--section) 0; }
.section-cream { background: var(--cream); }
.section-navy { background: var(--navy); color: rgba(255, 255, 255, .9); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-head { max-width: 680px; margin: 0 auto clamp(32px, 5vw, 52px); }
.section-head p:last-child { color: var(--muted); font-size: 1.12rem; }
.section-navy .section-head p:last-child { color: rgba(255, 255, 255, .8); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { background: var(--white); border: 2px solid var(--line); border-radius: var(--radius); padding: 28px 24px; position: relative; }
.section-cream .step { border-color: transparent; box-shadow: var(--shadow); }
.step .icon { width: 52px; height: 52px; padding: 10px; border-radius: 16px; color: var(--white); margin-bottom: 18px; }
.step p { color: var(--muted); margin: 0; }
.s0 .icon { background: var(--blue); }
.s1 .icon { background: var(--teal); }
.s2 .icon { background: var(--purple); }
.s3 .icon { background: var(--orange); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.feature { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.feature-flip { grid-template-columns: 1.15fr .85fr; }
.feature-flip .feature-art { order: 2; }
.feature-copy > .badge { margin-bottom: 14px; }
.feature-copy > p:not(.eyebrow):not(.subtitle) { color: var(--muted); }
.book-frame { position: relative; border-radius: 10px 22px 22px 10px; overflow: hidden; box-shadow: var(--shadow-lg); max-width: 420px; margin: 0 auto; transform: rotate(-2deg); }
.book-frame::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 14px; background: linear-gradient(90deg, rgba(0, 0, 0, .35), rgba(255, 255, 255, .12) 60%, transparent); z-index: 1; }
.round-art { border-radius: 50% 50% 46% 54% / 55% 48% 52% 45%; box-shadow: var(--shadow); max-width: 460px; margin: 0 auto; width: 100%; }
@media (max-width: 860px) {
  .feature, .feature-flip { grid-template-columns: 1fr; }
  .feature-flip .feature-art { order: 0; }
  .book-frame { max-width: 320px; }
  .round-art { max-width: 340px; }
}

.ticks { list-style: none; padding: 0; margin: 0 0 1.4em; }
.ticks li { position: relative; padding-left: 34px; margin-bottom: .55em; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 15px no-repeat; }
.ticks-lg li { font-size: 1.1rem; margin-bottom: .8em; }

/* A to Z letter tiles */
.letters { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
.letter { display: flex; align-items: center; gap: 12px; background: var(--white); border-radius: 16px; padding: 10px 14px 10px 10px; box-shadow: 0 3px 0 rgba(16, 37, 76, .08), 0 6px 18px rgba(16, 37, 76, .06); }
.letter-l { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; font: 600 1.45rem/1 var(--font-display); color: var(--white); }
.letter-w { font-weight: 700; line-height: 1.2; font-size: .98rem; }
.c0 .letter-l { background: var(--blue); }
.c1 .letter-l { background: var(--teal); }
.c2 .letter-l { background: var(--orange); }
.c3 .letter-l { background: var(--purple); }
.c4 .letter-l { background: var(--gold); color: var(--navy); }
.c5 .letter-l { background: var(--navy); }
.letters-mini { grid-template-columns: repeat(13, 1fr); gap: 6px; margin: 8px 0 4px; }
.letters-mini .letter { padding: 0; background: none; box-shadow: none; }
.letters-mini .letter-l { width: 100%; height: auto; aspect-ratio: 1; font-size: clamp(.9rem, 1.6vw, 1.2rem); border-radius: 9px; }
.letters-mini .letter-w { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 520px) { .letters { grid-template-columns: repeat(2, 1fr); } .letters-mini { grid-template-columns: repeat(9, 1fr); } }

/* founder quote */
.quote-band { background: var(--navy); color: var(--white); padding: var(--section) 0; text-align: center; position: relative; overflow: hidden; }
.quote-band blockquote { margin: 0 auto 32px; max-width: 860px; }
.quote-band blockquote p { font: 500 clamp(1.6rem, 3.4vw, 2.4rem)/1.3 var(--font-display); margin-bottom: .8em; }
.quote-band blockquote p::before { content: "\201C"; display: block; font-size: 4.5rem; line-height: .6; color: var(--gold); margin-bottom: .1em; }
.quote-band footer { color: rgba(255, 255, 255, .8); }
.quote-band footer strong { color: var(--gold); }

/* ---------- signup ---------- */
.signup { background: linear-gradient(135deg, var(--teal) 0%, #0b7f9a 55%, var(--blue) 100%); color: var(--white); padding: var(--section) 0; }
.signup-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 72px); align-items: center; }
.signup h2 { color: var(--white); }
.signup-copy p { font-size: 1.12rem; color: rgba(255, 255, 255, .92); }
.signup-form { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow-lg); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 800; margin-bottom: 6px; color: var(--navy); }
.optional { font-weight: 600; color: var(--muted); }
.field input { width: 100%; min-height: 52px; padding: 12px 16px; border: 2px solid #cfd6e3; border-radius: 14px; font: inherit; color: var(--ink); background: #fbfcfe; }
.field input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(12, 157, 173, .2); }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 6px 0 20px; font-size: .95rem; color: var(--muted); cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin-top: 2px; accent-color: var(--teal); }
.signup-form .btn { width: 100%; }
.fine { font-size: .85rem; color: var(--muted); margin: 14px 0 0; text-align: center; }
.form-error { background: #fff1ef; border: 2px solid #f3b4a9; color: #8d2a17; border-radius: 12px; padding: 10px 14px; font-weight: 700; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 860px) { .signup-inner { grid-template-columns: 1fr; } }

/* ---------- inner pages ---------- */
.page-hero { background: radial-gradient(110% 120% at 85% 0%, #1b3a78 0%, var(--navy) 60%); color: rgba(255, 255, 255, .9); padding: clamp(48px, 8vw, 96px) 0 clamp(44px, 7vw, 80px); }
.page-hero h1 { color: var(--white); max-width: 15em; }
.page-hero .lead { max-width: 40em; }
.page-hero-tall { padding: clamp(64px, 10vw, 120px) 0; }
.page-hero-tall h1, .page-hero-tall .lead { margin-left: auto; margin-right: auto; }
.crumbs { font-size: .92rem; margin-bottom: 18px; color: rgba(255, 255, 255, .7); }
.crumbs a { color: var(--teal-light); }

.book-hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.book-hero .badge { margin-bottom: 14px; }
.book-hero .subtitle { color: var(--teal-light); }
.facts { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 12px 32px; margin: 28px 0 0; }
.facts div { border-left: 3px solid var(--gold); padding-left: 12px; }
.facts dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; color: rgba(255, 255, 255, .65); }
.facts dd { margin: 0; font: 600 1.15rem/1.3 var(--font-display); color: var(--white); }
@media (max-width: 860px) { .book-hero-inner { grid-template-columns: 1fr; } .book-hero-art { order: -1; } .facts { grid-template-columns: repeat(2, auto); } }

.spread { display: grid; grid-template-columns: 1fr 1fr; max-width: 920px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 2px solid var(--line); }
.spread-page { padding: clamp(24px, 4vw, 40px); background: var(--white); }
.spread-page + .spread-page { border-left: 2px dashed var(--line); background: #fffdf8; }
.spread-tag { font: 800 .78rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
@media (max-width: 680px) { .spread { grid-template-columns: 1fr; } .spread-page + .spread-page { border-left: 0; border-top: 2px dashed var(--line); } }

.two-col { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.two-col > div > p { color: var(--muted); }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.note-card, .info-card { background: var(--cream); border-radius: var(--radius); padding: clamp(24px, 3.5vw, 34px); }
.section-cream .info-card { background: var(--white); box-shadow: var(--shadow); }
.note-card .icon, .info-card .icon { width: 50px; height: 50px; padding: 10px; border-radius: 15px; background: var(--teal); color: var(--white); margin-bottom: 16px; }
.note-card p, .info-card p { color: var(--muted); }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
@media (max-width: 860px) { .cards-3 { grid-template-columns: 1fr; } }

.formats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 920px; margin: 0 auto; }
.format { background: rgba(255, 255, 255, .06); border: 2px solid rgba(255, 255, 255, .14); border-radius: var(--radius); padding: clamp(24px, 4vw, 36px); display: flex; flex-direction: column; align-items: flex-start; }
.format .icon { width: 50px; height: 50px; color: var(--gold); margin-bottom: 14px; }
.format p { color: rgba(255, 255, 255, .8); flex: 1; }
.format .badge { margin-bottom: 16px; }
.format .price { font: 600 1.8rem/1 var(--font-display); color: var(--white); flex: none; }
@media (max-width: 680px) { .formats { grid-template-columns: 1fr; } }

.faq details { border-bottom: 2px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 44px 20px 0; position: relative; font: 600 1.18rem/1.35 var(--font-display); color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--cream); color: var(--teal-dark); font: 600 1.4rem/1 var(--font-body); }
.faq details[open] summary::after { content: "\2212"; background: var(--teal); color: var(--white); }
.faq details p { color: var(--muted); padding-right: 44px; }

.book-list { display: grid; gap: 28px; }
.book-card { display: grid; grid-template-columns: 300px 1fr; gap: clamp(24px, 5vw, 56px); align-items: center; background: var(--cream); border-radius: 28px; padding: clamp(22px, 4vw, 40px); }
.book-card-art img { border-radius: 8px 18px 18px 8px; box-shadow: var(--shadow-lg); transform: rotate(-2deg); }
.book-card h2 a { color: inherit; text-decoration: none; }
.book-card h2 a:hover { color: var(--blue); }
.book-card .badge { margin-bottom: 12px; }
.book-card-copy > p:not(.eyebrow):not(.subtitle) { color: var(--muted); }
@media (max-width: 760px) { .book-card { grid-template-columns: 1fr; } .book-card-art { max-width: 260px; } }
.chips { list-style: none; padding: 0; margin: 24px 0 30px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chips li { padding: 8px 18px; border-radius: 999px; background: var(--white); border: 2px solid var(--line); font-weight: 700; color: var(--navy); }

.tips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.tip { position: relative; background: var(--white); border: 2px solid var(--line); border-radius: var(--radius); padding: 30px 28px 26px 92px; }
.tip p { color: var(--muted); margin: 0; }
.tip-n { position: absolute; left: 26px; top: 26px; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--gold); color: var(--navy); font: 600 1.5rem/1 var(--font-display); }
@media (max-width: 760px) { .tips { grid-template-columns: 1fr; } .tip { padding-left: 26px; padding-top: 90px; } }

.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #2c3854; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.prose .pull { font: 500 1.5rem/1.35 var(--font-display); color: var(--navy); border-left: 5px solid var(--gold); padding: 4px 0 4px 22px; margin: 1.4em 0; }
.prose .mantra { font: 600 1.25rem/1.6 var(--font-display); color: var(--teal-dark); margin-top: 1.6em; }
.signature span { display: block; font: 600 1.4rem/1.3 var(--font-display); color: var(--navy); }
.signature { color: var(--muted); }

.thanks-art { width: 220px; border-radius: 50%; margin: 0 auto 28px; box-shadow: var(--shadow-lg); }
.big-404 { font: 700 clamp(5rem, 16vw, 9rem)/1 var(--font-display); color: var(--gold); margin: 0 0 .1em; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, .75); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 36px; }
.site-footer h2 { font: 800 .82rem/1.4 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.logo-chip { display: inline-block; background: var(--white); border-radius: 18px; padding: 12px 18px; }
.logo-chip img { width: 170px; }
.footer-tagline { margin-top: 18px; font: 500 1.15rem/1.4 var(--font-display); color: var(--white); }
.footer-tagline span { color: var(--teal-light); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .9rem; }
.footer-base p { margin: 0; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
