/* Lambtime's website. Layout: a night-sky hero, then calm cream sections that alternate with deep-blue "night" bands,
   like the app moving from day to bedtime. Colors are the app's own (mobile/src/theme/tokens.ts). */
@font-face { font-family: 'Literata'; src: url('fonts/Literata-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Literata'; src: url('fonts/Literata-Italic.ttf') format('truetype'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('fonts/Nunito-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('fonts/Nunito-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }

:root {
  --night: #131f45;
  --night-2: #1d2d5f;
  --star: #f1e6c8;
  --star-dim: #b9b8d3;
  --gold: #e8bf67;
  --gold-ink: #172957;
  --paper: #fbf7ee;
  --paper-2: #f3ecdc;
  --ink: #26314f;
  --ink-2: #5a617a;
  --line: #e2d8c2;
  --card: #ffffff;
  --link: #2c4596;
  --display: 'Literata', 'Iowan Old Style', Georgia, serif;
  --body: 'Nunito', 'Segoe UI', system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #10182f; --paper-2: #16203d; --ink: #ece6d6; --ink-2: #b3b0c6; --line: #2a3866; --card: #1a2547;
    --link: #f0cf86; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #10182f; --paper-2: #16203d; --ink: #ece6d6; --ink-2: #b3b0c6; --line: #2a3866; --card: #1a2547;
  --link: #f0cf86; color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; } /* hidden always wins over a display set below (tab panels, the quiz result) */
html { scroll-behavior: smooth; }
body { margin: 0; font: 400 1.0625rem/1.65 var(--body); color: var(--ink); background: var(--paper); }
a { color: var(--link); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.2; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding-inline: 20px; }
.eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 36em; }

/* the night bands (always night, in either theme) */
.night { background: var(--night); color: var(--star); }
.night .lead, .night p { color: var(--star-dim); }
.night h1, .night h2, .night h3 { color: var(--star); }
.night a { color: var(--gold); }

header.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--night); }
nav.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding-block: 14px; }
nav.bar .brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 1.35rem; font-weight: 600; color: var(--star); text-decoration: none; margin-right: auto; }
nav.bar .brand img { width: 34px; height: 34px; border-radius: 50%; }
nav.bar a { color: var(--star-dim); text-decoration: none; font-weight: 700; font-size: 0.95rem; }
nav.bar a:hover, nav.bar a[aria-current] { color: var(--gold); }

.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding-block: 40px 64px; }
.hero > div { display: grid; gap: 18px; min-width: 0; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 3.6rem); }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--gold); }
.verse-line { font-family: var(--display); font-style: italic; color: var(--star); border-left: 3px solid var(--gold); padding-left: 14px; }
.verse-line cite { display: block; font-family: var(--body); font-style: normal; font-size: 0.85rem; color: var(--star-dim); margin-top: 4px; }
.soon { justify-self: start; background: var(--gold); color: var(--gold-ink); font-weight: 700; border-radius: 999px; padding: 10px 20px; }
.hero figure { margin: 0; }
.hero figure img { border-radius: 28px; box-shadow: 0 24px 60px rgba(4, 8, 24, 0.5); }

section.band { padding-block: 72px; }
.split { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center; }
.split > div { display: grid; gap: 16px; min-width: 0; }
.split img { border-radius: 50%; }

/* a Lambtime night: a real sequence, so it is numbered */
.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.steps li { counter-increment: step; background: var(--night-2); border-radius: 18px; padding: 20px; display: grid; gap: 6px; align-content: start; }
.steps li::before { content: counter(step); font-family: var(--display); font-size: 1.6rem; color: var(--gold); line-height: 1; }
.steps h3 { font-size: 1.1rem; }
.steps p { font-size: 0.95rem; }

/* feature tabs */
.tabs { margin-top: 32px; }
.tablist { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.tablist button { flex: none; font: 700 0.95rem var(--body); color: var(--ink); background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; cursor: pointer; }
.tablist button[aria-selected="true"] { background: var(--night); border-color: var(--night); color: var(--star); }
.panel { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; padding-top: 28px; }
.panel > div { display: grid; gap: 14px; min-width: 0; }
.panel ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.premium { justify-self: start; font-size: 0.8rem; font-weight: 700; color: var(--gold-ink); background: var(--gold); border-radius: 999px; padding: 3px 10px; }

/* the example: a little piece of the app, always at night like the app at bedtime */
.example { background: var(--night); color: var(--star); border-radius: 26px; padding: 24px; display: grid; gap: 12px; box-shadow: 0 16px 40px rgba(19, 31, 69, 0.25); min-width: 0; }
.example .eyebrow { font-size: 0.72rem; }
.example .big { font-family: var(--display); font-size: 1.35rem; line-height: 1.35; color: var(--star); }
.example .small { font-size: 0.88rem; color: var(--star-dim); }
.example .pill { justify-self: start; background: var(--gold); color: var(--gold-ink); font-weight: 700; border-radius: 999px; padding: 8px 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { font-size: 0.85rem; border: 1px solid #3a4a80; color: var(--star); border-radius: 999px; padding: 4px 12px; }
.example .name { color: var(--gold); }
.faces { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; font-size: 0.85rem; }
.faces span { background: var(--night-2); border-radius: 14px; padding: 10px 4px; }
.faces b { display: block; font-size: 1.6rem; font-weight: 400; }
.clock { font-family: var(--display); font-size: 2.6rem; color: var(--gold); line-height: 1; }
.note-card { background: var(--night-2); border-radius: 14px; padding: 12px 14px; display: grid; gap: 2px; }

.scripture { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: center; }
.scripture > div { display: grid; gap: 16px; min-width: 0; }
.scripture blockquote { margin: 0; font-family: var(--display); font-style: italic; font-size: clamp(1.4rem, 3.4vw, 1.9rem); line-height: 1.4; color: var(--star); }
.scripture cite { font-style: normal; font-size: 0.95rem; color: var(--star-dim); }
.scripture img { border-radius: 50%; }

.steps.charge { grid-template-columns: repeat(4, 1fr); counter-reset: none; }
.steps.charge li::before { content: none; }
.charge-icon { font-size: 1.8rem; line-height: 1; }
@media (max-width: 860px) { .steps.charge { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps.charge { grid-template-columns: 1fr; } }
.from-me { margin-top: 16px; padding: 14px 18px; border-left: 3px solid var(--gold, #E8BF67); background: rgba(232, 191, 103, 0.10); border-radius: 0 14px 14px 0; display: grid; gap: 4px; }
.from-me-label { font-size: 0.72rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold, #B08A2E); font-weight: 700; }
.from-me p { font-family: var(--display); font-style: italic; font-size: 1.02rem; margin: 0; }
.from-me-sign { font-size: 0.9rem; opacity: 0.8; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; counter-reset: chapter; }
.timeline li { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; counter-increment: chapter; }
.timeline img { width: 100%; height: auto; border-radius: 18px; }
.timeline h3::before { content: counter(chapter) ". "; color: var(--gold, #B08A2E); }
.timeline p { margin: 6px 0 0; }
@media (max-width: 620px) { .timeline li { grid-template-columns: 1fr; } }
.letter { max-width: 640px; display: grid; gap: 14px; }
.letter p { font-size: 1.08rem; line-height: 1.7; margin: 0; }
.letter .letter-sign span { font-family: var(--display); font-style: italic; font-size: 1.6rem; }
.lessons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.lessons div { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: grid; gap: 8px; align-content: start; }
.lessons img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.lessons h3 { font-size: 1.1rem; }
.lessons p { font-size: 0.95rem; }
@media (max-width: 860px) { .lessons { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .lessons { grid-template-columns: 1fr; } }
.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.promises div { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: grid; gap: 6px; }
.draft { background: var(--paper-2); border: 1px dashed var(--line); border-radius: 18px; padding: 20px; color: var(--ink-2); }

main.doc { padding-block: 48px 72px; }
main.doc .wrap { max-width: 760px; display: grid; gap: 16px; }
main.doc h1 { font-size: clamp(2rem, 5vw, 2.6rem); color: var(--ink); }
.notice { background: var(--paper-2); border-radius: 12px; padding: 12px 16px; }

footer { background: var(--night); color: var(--star-dim); padding-block: 28px; font-size: 0.95rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
footer a { color: var(--star); }

@media (max-width: 820px) {
  .hero, .split, .panel, .scripture { grid-template-columns: 1fr; }
  .split img, .scripture img { max-width: 220px; justify-self: center; }
  .steps, .promises { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .steps, .promises { grid-template-columns: 1fr; }
  section.band { padding-block: 52px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Meet Pip: the app's own picture of Pip */
.split img.pip { border: 6px solid var(--gold); box-shadow: 0 16px 40px rgba(19, 31, 69, 0.25); }
.verse-quote { font-family: var(--display); font-style: italic; font-size: 1.15rem; border-left: 3px solid var(--gold); padding-left: 14px; }
.verse-quote cite { font-family: var(--body); font-style: normal; font-size: 0.85rem; color: var(--ink-2); white-space: nowrap; }
/* the feature tabs sit on a night band: keep the tab buttons readable there */
.night .tablist button { background: var(--night-2); border-color: #33447c; color: var(--star); }
.night .tablist button[aria-selected="true"] { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.night .panel ul { color: var(--star-dim); }
.night .example { background: var(--night-2); box-shadow: none; }
.night .example .note-card, .night .faces span { background: var(--night); }
.soft { background: var(--paper-2); }

/* calming sounds: the full list, and a mix shown as volume levels */
.sounds { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.sounds > div:first-child { display: grid; gap: 16px; min-width: 0; }
.sound-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.sound-list li { display: grid; gap: 2px; padding-block: 8px; border-top: 1px solid #2c3c72; }
.sound-list b { color: var(--star); }
.sound-list span { font-size: 0.92rem; color: var(--star-dim); }
.mixer { background: var(--night-2); box-shadow: none; }
.level { display: grid; gap: 6px; }
.level span { font-size: 0.92rem; }
.level i { display: block; height: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--gold) var(--v), #33447c var(--v)); }

/* family prayers: a real sequence, so it is numbered */
.family { margin-bottom: 32px; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: flow; }
.flow li { counter-increment: flow; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: grid; gap: 6px; align-content: start; }
.flow li::before { content: counter(flow); font-family: var(--display); font-size: 1.5rem; color: var(--gold); line-height: 1; }
.flow h3 { font-size: 1.08rem; }
.small-note { margin-top: 18px; color: var(--ink-2); font-size: 0.95rem; }
@media (max-width: 820px) { .sounds { grid-template-columns: 1fr; } .flow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .sound-list, .flow { grid-template-columns: 1fr; } }

/* Kenisha's note: why Lambtime exists. */
.founder .wrap { max-width: 680px; }
.founder h2 { margin-bottom: 12px; }
.founder p { font-size: 1.08rem; line-height: 1.7; margin: 0 0 14px; }
.founder .blessing { margin-top: 22px; font-family: 'Literata', Georgia, serif; }
.founder .signature { font-weight: 700; margin-top: 6px; }

/* Questions parents ask. */
.faq .wrap { max-width: 760px; }
.faq details { border-bottom: 1px solid rgba(23, 41, 87, .14); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.1rem; }
.faq summary:focus-visible { outline: 2px solid #E9C46A; outline-offset: 4px; }
.faq details p { margin: 10px 0 0; line-height: 1.6; }
.example audio { width: 100%; margin-top: 14px; }

/* ---- 16 Oct 2026: livelier, with gentle motion. Everything below stays still for "reduce motion". ---- */

/* twinkling stars on every night band: two layers of tiny dots that fade in and out at different speeds */
.night { position: relative; isolation: isolate; overflow: hidden; }
.night::before, .night::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 12% 18%, #f6e3a6 50%, transparent 51%), radial-gradient(1.5px 1.5px at 28% 62%, #f6e3a6 50%, transparent 51%),
    radial-gradient(2px 2px at 47% 12%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 63% 40%, #f6e3a6 50%, transparent 51%),
    radial-gradient(2.5px 2.5px at 82% 22%, #f6e3a6 50%, transparent 51%), radial-gradient(1.5px 1.5px at 92% 70%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 6% 84%, #f6e3a6 50%, transparent 51%), radial-gradient(1.5px 1.5px at 38% 90%, #fff 50%, transparent 51%);
  animation: twinkle 5s ease-in-out infinite;
}
.night::after { transform: translate(7%, 9%) scale(1.1); animation-duration: 7s; animation-delay: -2.5s; }
@keyframes twinkle { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.9; } }

/* floating pictures */
.hero figure img, img.float { animation: float 7s ease-in-out infinite; }
.pip-float { animation: float 5s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* buttons that lift a little */
.say, .soon, .tablist button, .chip span { transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; }
.say:hover, .tablist button:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(19, 31, 69, 0.25); }

/* sections ease in as they are reached (only with the script, so nothing is hidden without it) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Meet Pip: he bobs while he talks, and each word lights up as he says it */
.pip-stage { position: relative; justify-self: center; }
.pip-stage .twinkle { position: absolute; color: var(--gold); font-size: 1.4rem; animation: twinkle 3s ease-in-out infinite; }
.pip-stage .s1 { top: 4%; right: 2%; } .pip-stage .s2 { bottom: 12%; left: -4%; animation-delay: -1s; } .pip-stage .s3 { top: 40%; right: -8%; font-size: 1rem; animation-delay: -2s; }
.pip-stage.talking .pip { animation: talk 0.42s ease-in-out infinite alternate; }
@keyframes talk { from { transform: translateY(0) rotate(-1.5deg) scale(1); } to { transform: translateY(-8px) rotate(1.5deg) scale(1.02); } }
.bubble { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 18px 20px; font-size: 1.12rem; line-height: 1.6; color: var(--ink-2); box-shadow: 0 10px 30px rgba(19, 31, 69, 0.08); }
.bubble::before { content: ""; position: absolute; left: -11px; top: 30px; border: 11px solid transparent; border-left: 0; border-right-color: var(--line); }
.bubble span { transition: color 0.15s ease; }
.bubble span.lit { color: var(--ink); font-weight: 700; }
.say { justify-self: start; display: inline-flex; align-items: center; gap: 10px; font: 700 1rem var(--body); color: var(--gold-ink); background: var(--gold); border: 0; border-radius: 999px; padding: 12px 22px; cursor: pointer; text-decoration: none; }
.meet .small-note { margin-top: 0; }

/* the bedtime quiz */
.quiz-form { display: grid; gap: 22px; margin-top: 28px; }
.quiz-form fieldset, .signup fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.quiz-form legend, .signup legend { font-weight: 700; padding: 0; margin-bottom: 10px; }
.chips-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-block; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 10px 18px; font-weight: 700; font-size: 0.98rem; }
.chip input:checked + span { background: var(--night); border-color: var(--night); color: var(--star); transform: translateY(-2px); }
.chip input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 3px; }
.night .chip span { background: var(--night-2); border-color: #33447c; color: var(--star); }
.night .chip input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.quiz-error { color: #b4462c; font-weight: 700; }
.quiz-result { margin-top: 32px; display: grid; gap: 18px; outline: none; }
.quiz-result h3 { font-size: 1.5rem; }
.quiz-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.quiz-card { background: var(--night); color: var(--star); border-radius: 22px; padding: 20px; display: grid; gap: 8px; align-content: start; animation: pop 0.45s ease both; }
.quiz-card:nth-child(2) { animation-delay: 0.08s; } .quiz-card:nth-child(3) { animation-delay: 0.16s; } .quiz-card:nth-child(4) { animation-delay: 0.24s; }
.quiz-card h4 { font-family: var(--display); font-size: 1.2rem; margin: 0; color: var(--star); }
.quiz-card p { color: var(--star-dim); font-size: 0.95rem; }
.quiz-card .see { color: var(--gold); font-weight: 700; text-decoration: none; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(0.97); } to { opacity: 1; transform: none; } }
.quiz-notes { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; color: var(--ink-2); }

/* reels */
.reel-row { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 28px; }
.reel-row figure { margin: 0; width: min(300px, 100%); display: grid; gap: 10px; }
.reel-row video { width: 100%; aspect-ratio: 9 / 16; border-radius: 22px; background: #0a1028; box-shadow: 0 20px 50px rgba(4, 8, 24, 0.5); }
.reel-row figcaption { color: var(--star-dim); font-size: 0.95rem; }

/* the free printable and the sign-up forms */
.free { grid-template-columns: 340px 1fr; }
.split img.sheet { border-radius: 14px; transform: rotate(-3deg); box-shadow: 0 20px 50px rgba(19, 31, 69, 0.22); transition: transform 0.3s ease; }
.split img.sheet:hover { transform: rotate(0) scale(1.02); }
.signup { display: grid; gap: 14px; max-width: 440px; }
.signup label { display: grid; gap: 6px; font-weight: 700; font-size: 0.95rem; }
.signup input[type="email"], .signup input[type="text"] { font: 400 1rem var(--body); color: var(--ink); background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.signup input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.signup .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.signup .check input { margin-top: 5px; accent-color: var(--night); }
.signup .small-note { margin-top: 0; font-size: 0.88rem; }
.beta { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.beta > div { display: grid; gap: 16px; }
.night .signup input[type="email"], .night .signup input[type="text"] { background: var(--night-2); border-color: #33447c; color: var(--star); }
.night .signup .small-note { color: var(--star-dim); }

/* grandparents and churches */
.promises.four { grid-template-columns: repeat(4, 1fr); }
.two-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.two-lists > div { display: grid; gap: 14px; align-content: start; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: "✦"; position: absolute; left: 4px; color: var(--gold); }
.contact-line { font-size: 1.2rem; }
.thanks .wrap { justify-items: center; text-align: center; }
.thanks img.pip { border-radius: 50%; border: 5px solid var(--gold); }

@media (max-width: 820px) {
  .free, .beta, .two-lists { grid-template-columns: 1fr; }
  .promises.four { grid-template-columns: 1fr 1fr; }
  .split img.sheet { max-width: 260px; }
  .bubble::before { display: none; }
}
@media (max-width: 520px) { .promises.four { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .night::before, .night::after, .hero figure img, img.float, .pip-float, .pip-stage .twinkle, .pip-stage.talking .pip, .quiz-card { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .say:hover, .tablist button:hover, .chip input:checked + span, .split img.sheet:hover { transform: none; }
}

/* phones: the menu stays one line that scrolls sideways, so the sticky header stays small */
@media (max-width: 640px) {
  nav.bar { flex-wrap: nowrap; overflow-x: auto; gap: 18px; scrollbar-width: none; }
  nav.bar::-webkit-scrollbar { display: none; }
  nav.bar .brand, nav.bar a { flex: none; }
  nav.bar .brand { margin-right: 6px; }
}

/* for everyone in your family: the tab buttons carry a little picture, and a link to more */
.people .tablist button span { margin-right: 2px; }
.more-link { font-weight: 700; text-decoration: none; }
.people .tablist { flex-wrap: wrap; overflow: visible; }

/* the animated-style pictures (16 Oct 2026) are a little taller than wide: round spots crop them to a circle */
.split img:not(.sheet), .scripture img { aspect-ratio: 1; object-fit: cover; object-position: center 35%; }
.hero figure img { aspect-ratio: 4 / 3; object-fit: cover; object-position: center 40%; width: 100%; }

/* a picture above each tab's example (the owner's pictures, pictures.cjs) */
.side { display: grid; gap: 16px; min-width: 0; align-content: start; }
.panel-pic { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 22px; box-shadow: 0 16px 40px rgba(19, 31, 69, 0.2); }

/* the founder's family, at the top of her note */
.family-photo { margin: 6px 0 22px; display: grid; gap: 8px; }
.family-photo img { width: 100%; border-radius: 24px; box-shadow: 0 16px 40px rgba(19, 31, 69, 0.2); }
.family-photo figcaption { font-family: var(--display); font-style: italic; color: var(--ink-2); text-align: center; }

/* Every family, every night (18 Oct 2026): the gallery of families with Pip. */
.family-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.family-grid figure { margin: 0; display: grid; gap: 8px; }
.family-grid img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; box-shadow: 0 12px 30px rgba(19, 31, 69, 0.16); }
.family-grid figcaption { font-family: var(--display); font-style: italic; color: var(--ink-2); text-align: center; font-size: 0.95rem; }
@media (max-width: 760px) { .family-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
