/*
  Chores site stylesheet. Same system as the other Doodle Project sites (masscast.app,
  thedoodleproject.com, antiphona.app): Fraunces and Public Sans, a warm cream page, dark
  bands with a glow. The palette comes from the logo, charcoal and amber.
*/
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/fonts/public-sans.woff2") format("woff2-variations"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: light dark;
  --bg: #fbf7ec;
  --band: #f2ecdb;
  --surface: #ffffff;
  --tile: #f3ead2;
  --ink: #1a1d23;
  --muted: #5a5f6b;
  --line: #e4dcc6;
  --line-strong: #cbc2a6;
  --brand: #8a5300;
  --brand-strong: #6b3f00;
  --gold: #ffb627;
  --gold-text: #8a5300;
  --dark: #1a1d23;
  --dark-deep: #0f1115;
  --on-dark: #f6f1e2;
  --on-dark-muted: #bdc2cf;
  --btn-bg: #1a1d23;
  --btn-ink: #f6f1e2;
  --header-bg: rgba(251, 247, 236, 0.92);
  --shadow: 0 1px 2px rgba(26, 29, 35, 0.06), 0 16px 36px -16px rgba(26, 29, 35, 0.26);
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --wrap: 72rem;
  --wrap-read: 46rem;
  --radius: 18px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101216;
    --band: #151821;
    --surface: #1c2029;
    --tile: #242a36;
    --ink: #eef0f4;
    --muted: #a9afbc;
    --line: #2b313d;
    --line-strong: #404857;
    --brand: #ffb627;
    --brand-strong: #ffd37a;
    --gold-text: #ffb627;
    --btn-bg: #ffb627;
    --btn-ink: #1a1d23;
    --header-bg: rgba(16, 18, 22, 0.92);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 36px -16px rgba(0, 0, 0, 0.6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.65 var(--font-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 0.2em; }
a:hover { color: var(--brand-strong); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25rem; }
li { margin: 0.35em 0; }
strong { font-weight: 650; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); position: relative; }
.wrap--read { max-width: var(--wrap); }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 40; background: var(--ink); color: var(--bg); padding: 0.6rem 1rem; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 1rem; }

/* Type */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 0.5em; text-wrap: balance; font-optical-sizing: auto; }
h1 { font-size: clamp(2.5rem, 1.4rem + 4.2vw, 4.2rem); line-height: 1.02; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); margin-top: 2.25em; }
h2:first-child { margin-top: 0; }
h3, .q { font-size: 1.25rem; letter-spacing: -0.01em; margin: 1.75em 0 0.3em; }
p, li { max-width: 42rem; }
.lede { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem); color: var(--muted); max-width: 40rem; }
.eyebrow { margin: 0 0 1rem; font: 700 0.78rem/1.2 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-text); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--header-bg); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.4rem 1.5rem; padding-block: 0.7rem; }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--ink); font: 600 1.35rem/1 var(--font-display); letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.brand img { width: 2.1rem; height: 2.1rem; border-radius: 8px; display: block; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 1.4rem; font-weight: 500; font-size: 0.97rem; }
.nav a { color: var(--muted); text-decoration: none; padding: 0.3rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold); }
.nav .nav__cta { background: var(--btn-bg); color: var(--btn-ink); border-radius: 999px; padding: 0.5rem 1.1rem; border: 0; font-weight: 600; }
.nav .nav__cta:hover { color: var(--btn-ink); filter: brightness(1.1); }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.6rem 0 1rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.8rem 1.4rem; border-radius: 999px; font: 600 1rem/1.2 var(--font-body); text-decoration: none; border: 1.5px solid transparent; transition: transform 0.15s, filter 0.15s, border-color 0.15s, color 0.15s; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--btn-bg); color: var(--btn-ink); }
.btn--primary:hover { color: var(--btn-ink); filter: brightness(1.1); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-strong); }
.hero .btn--primary, .page-hero .btn--primary { background: var(--gold); color: #1a1d23; }
.hero .btn--ghost, .page-hero .btn--ghost { color: var(--on-dark); border-color: rgba(246, 241, 226, 0.5); }
.hero .btn--ghost:hover, .page-hero .btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
@media (max-width: 30rem) { .actions .btn { width: 100%; } }

/* Dark bands */
.hero, .page-hero { background: linear-gradient(150deg, #262a33 0%, var(--dark) 45%, var(--dark-deep) 100%); color: var(--on-dark); position: relative; overflow: hidden; }
.hero::before, .page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 20%, rgba(255, 182, 39, 0.2), transparent 45%), radial-gradient(circle at 8% 95%, rgba(255, 182, 39, 0.08), transparent 50%); pointer-events: none; }
.hero h1, .page-hero h1 { color: var(--on-dark); }
.hero .lede, .page-hero .lede { color: var(--on-dark-muted); }
.hero .eyebrow, .page-hero .eyebrow { color: var(--gold); }
.hero a:not(.btn), .page-hero a:not(.btn) { color: var(--gold); }
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(5rem, 8vw, 7rem); }
.hero__grid { display: grid; gap: 2.5rem; align-items: center; }
.hero__art { max-width: 26rem; width: 100%; margin-inline: auto; filter: drop-shadow(0 22px 30px rgba(0, 0, 0, 0.4)); }
@media (min-width: 52rem) { .hero__grid { grid-template-columns: 1.1fr 0.9fr; } }
.page-hero { padding-block: clamp(2.5rem, 5vw, 4rem) clamp(4.5rem, 7vw, 6rem); }
.page-hero h1 { font-size: clamp(2.3rem, 1.3rem + 3.6vw, 3.6rem); margin-bottom: 0.3em; }
.page-hero .lede { margin-bottom: 0; }
.wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(2rem, 5vw, 4rem); display: block; fill: var(--bg); pointer-events: none; }

/* Sections and cards */
.section { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.section--band { background: var(--band); border-block: 1px solid var(--line); }
.section__head { max-width: 40rem; margin-bottom: 2rem; }
.section__head h2 { margin-top: 0; }
.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.card h3 { margin-top: 0.9rem; }
.card p { color: var(--muted); margin-bottom: 0; }
.card__icon { width: 3rem; height: 3rem; border-radius: 14px; background: var(--tile); color: var(--brand); display: grid; place-items: center; }
.card__icon svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.note { border-left: 4px solid var(--gold); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; padding: 1rem 1.25rem; box-shadow: var(--shadow); color: var(--muted); max-width: 42rem; }
.note strong { color: var(--gold-text); }
.note p:last-child { margin-bottom: 0; }

/* Footer */
.site-footer { background: var(--dark); color: var(--on-dark-muted); padding: 2rem 0 2.5rem; font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 2rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.site-footer p { margin: 0; }

@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

/* Long-form story pages (example-family) */
.story { max-width: var(--wrap-read); margin-inline: auto; }
.story h2 { margin-top: 2.5em; }
.story h2:first-child { margin-top: 0; }
.shot { margin: 1.75rem 0 2rem; }
.shot img { display: block; width: 100%; border-radius: 14px; border: 1px solid var(--line-strong); box-shadow: var(--shadow); background: #f2f3f5; }
.shot--phone img { max-width: 19rem; margin-inline: auto; border-radius: 26px; }
.shot figcaption { margin-top: 0.7rem; font-size: 0.92rem; color: var(--muted); text-align: center; max-width: none; }
.shots { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); margin: 1.75rem 0 2rem; }
.shots .shot { margin: 0; }
.shots .shot--phone img { max-width: 100%; }
.try { background: var(--tile); border-radius: var(--radius); padding: 0.9rem 1.2rem; margin: 1.25rem 0 0; color: var(--ink); max-width: 42rem; }
.try strong { color: var(--gold-text); }
.try p:last-child { margin-bottom: 0; }
.week { width: 100%; border-collapse: collapse; margin: 1.25rem 0 0.5rem; font-size: 0.97rem; }
.week th, .week td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); }
.week th { font-weight: 650; white-space: nowrap; }
.week thead th { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.table-scroll { overflow-x: auto; }
.checklist { list-style: none; padding-left: 0; counter-reset: step; }
.checklist li { counter-increment: step; position: relative; padding-left: 2.6rem; margin: 0.9em 0; }
.checklist li::before { content: counter(step); position: absolute; left: 0; top: 0.05em; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--gold); color: #1a1d23; font-weight: 700; font-size: 0.9rem; display: grid; place-items: center; }
