/* Fade Readers — public site pages (support, privacy, terms, parents, faq,
   accessibility). Same linen language as the app: Lora serif voice, Nunito Sans
   chrome, warm linen ground, coral accent. Written 2026-09-03. */
:root {
  --bg: #f5f1ea; --card: #fffdf8; --ink: #45443c; --muted: #91897a;
  --line: #e5ddcd; --line-dark: #d8cfba; --brand: #e8705f; --fill: #efe9dc;
  --disp: 'Nunito Sans', system-ui, -apple-system, sans-serif;
  --serif: 'Lora', Georgia, serif;
  --shadow-soft: 0 1px 3px rgba(90,80,55,.06), 0 8px 20px rgba(90,80,55,.08);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--disp); font-size: 17px; line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
.wrap { width: min(720px, calc(100% - 44px)); margin: 0 auto; }

/* ---------- header ---------- */
.site-head { padding: 26px 0 8px; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
/* wordmark: exactly the app's treatment - the fox f picture-letter, then
   Quicksand hugging it (Angela 2026-07-26: "the f hugs the text") */
.wordmark { font-size: 26px; line-height: 1; text-decoration: none; user-select: none; }
.wordmark svg { height: 1.55em; vertical-align: -0.517em; }
.wordmark span { font-family: 'Quicksand', system-ui, sans-serif; font-weight: 700;
  font-size: 1em; letter-spacing: -.005em; color: #615c50; margin-left: -0.22em; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 15px; font-weight: 600; }
.site-nav a { color: var(--muted); text-decoration: none; padding: 3px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brand); }

/* ---------- page ---------- */
main { padding: 30px 0 72px; }
h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 5.4vw, 40px);
  line-height: 1.2; margin: 12px 0 10px; letter-spacing: -.01em; }
.lede { font-size: 19px; color: var(--muted); margin: 0 0 34px; max-width: 46ch; }
h2 { font-family: var(--serif); font-weight: 600; font-size: 22px; margin: 40px 0 10px; }
h3 { font-size: 17px; font-weight: 800; margin: 26px 0 6px; }
p, li { margin: 0 0 14px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 8px; }
a { color: var(--brand); text-underline-offset: 3px; }
strong { font-weight: 800; }
hr { border: none; border-top: 1px solid var(--line); margin: 44px 0; }
.small { font-size: 15px; color: var(--muted); }

/* ---------- pieces ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 26px 28px; box-shadow: var(--shadow-soft); margin: 0 0 26px; }
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.mailcard { text-align: center; padding: 32px 28px; }
.mailcard .label { font-size: 14px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.mailcard a.mail { font-family: var(--serif); font-size: clamp(21px, 4.6vw, 28px);
  font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--brand); }
.mailcard a.mail:hover { color: var(--brand); }
.facts { list-style: none; padding: 0; margin: 0; }
.facts li { position: relative; padding-left: 26px; margin-bottom: 10px; }
.facts li::before { content: "\2713"; position: absolute; left: 0; top: -1px;
  color: var(--brand); font-weight: 800; }
.nots { list-style: none; padding: 0; margin: 0; }
.nots li { position: relative; padding-left: 26px; margin-bottom: 10px; }
.nots li::before { content: "\2014"; position: absolute; left: 0; color: var(--line-dark); font-weight: 800; }
details { border-bottom: 1px solid var(--line); padding: 4px 0; }
details summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--brand); font-size: 22px; font-weight: 700; line-height: 1; }
details[open] summary::after { content: "\2013"; }
details .body { padding: 0 0 16px; color: var(--ink); }
details .body > :last-child { margin-bottom: 0; }
.updated { font-size: 14px; color: var(--muted); font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; margin-bottom: 22px; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 30px 0 60px; font-size: 15px; color: var(--muted); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between; }
.site-foot .copy { font-size: 13.5px; color: var(--muted); opacity: .8; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--ink); text-decoration: underline; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }

/* ---------- examples (for parents) ---------- */
/* The picture-letters themselves, exported from letters.js - same art the
   child sees. Sized in em off the row, so every letter shares one baseline. */
.ex { background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-soft); margin: 20px 0 30px; padding: 26px 22px 20px; text-align: center; }
.ex svg.fr-l { height: 1.35em; width: auto; vertical-align: -0.45em; overflow: visible; }
.ex figcaption { font-size: 15px; color: var(--muted); margin-top: 14px; }
.ex-word { font-size: 76px; line-height: 1; letter-spacing: .1em; }
.fade-row { display: flex; justify-content: center; align-items: flex-start; gap: clamp(10px, 4vw, 30px); }
.fade-step { font-size: 54px; line-height: 1; }
.fade-step .lbl { display: block; font-size: 12.5px; line-height: 1.35; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-top: 12px; }
.tap { font-size: 88px; line-height: 1; background: none; border: 0; padding: 6px 14px;
  cursor: pointer; border-radius: 14px; color: inherit;
  transition: transform .18s ease, background-color .18s ease; }
.tap:hover { background: var(--fill); }
.tap:active, .tap.is-tapped { transform: scale(.95); background: var(--fill); }
.tap:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

/* ---------- printables ---------- */
.print-btn { font: inherit; font-weight: 800; cursor: pointer; border: none;
  background: var(--brand); color: #fffdf8; border-radius: 999px;
  padding: 13px 26px; min-height: 44px; box-shadow: 0 12px 20px -14px rgba(232,112,95,.9); }
.print-btn:hover { filter: brightness(1.04); }
.sheet { background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 26px 22px; margin: 0 0 26px; box-shadow: var(--shadow-soft); }
.sheet h2 { margin-top: 0; }
.abc-sheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 18px 10px; margin: 20px 0 0; }
.ltr { margin: 0; text-align: center; font-size: 40px; line-height: 1; }
.ltr svg.fr-l { height: 1.35em; width: auto; overflow: visible; }
.ltr figcaption { font-size: 11.5px; font-weight: 700; letter-spacing: .03em;
  color: var(--muted); margin-top: 8px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 20px; }
.wcard { border: 1px dashed var(--line-dark); border-radius: 10px; padding: 14px 8px;
  text-align: center; font-size: 34px; line-height: 1; }
.wcard svg.fr-l { height: 1.35em; width: auto; vertical-align: -0.45em; overflow: visible; }
.pw { letter-spacing: .04em; }

@media print {
  /* one clean page per sheet, ink on white, none of the site chrome */
  @page { margin: 14mm; }
  body { background: #fff; font-size: 12pt; }
  .site-head, .site-foot, .print-btn, .noprint { display: none !important; }
  main { padding: 0; }
  .wrap { width: 100%; }
  h1 { font-size: 20pt; margin: 0 0 6pt; }
  .lede { font-size: 11pt; margin-bottom: 12pt; color: #444; }
  .sheet { background: transparent; border: none; box-shadow: none; border-radius: 0;
    padding: 0; margin: 0 0 10mm; break-inside: auto; }
  .sheet + .sheet { break-before: page; }
  /* six across x five rows = the whole alphabet on one sheet */
  .abc-sheet { grid-template-columns: repeat(6, 1fr); gap: 8mm 3mm; }
  .ltr { font-size: 40pt; break-inside: avoid; }
  .ltr figcaption { font-size: 8.5pt; color: #555; }
  /* four across x five rows = all twenty first words on one sheet */
  .cards { grid-template-columns: repeat(4, 1fr); gap: 4mm; }
  .wcard { background: transparent; break-inside: avoid; border-color: #bbb;
    padding: 6mm 2mm; font-size: 22pt; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .card { padding: 22px 20px; border-radius: 14px; }
  main { padding: 20px 0 56px; }
  .site-head { padding: 18px 0 4px; }
  .site-head .wrap { gap: 12px; }
  .wordmark { font-size: 21px; }
  .site-nav { font-size: 14px; gap: 2px 15px; }
  .lede { font-size: 17px; margin-bottom: 28px; }
  h2 { font-size: 20px; margin-top: 34px; }
  .mailcard { padding: 26px 18px; }
  .ex { padding: 22px 14px 18px; border-radius: 14px; }
  .ex-word { font-size: 52px; }
  .fade-step { font-size: 38px; }
  .fade-step .lbl { font-size: 11px; letter-spacing: .02em; }
  .tap { font-size: 62px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
