/* PrivRead's web pages in the Daylight look (design system tokens, 2026-10-02). Fonts are served from this site,
   never from a font service: the pages make no request to anyone else. */

@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/AtkinsonHyperlegible-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/AtkinsonHyperlegible-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Fraunces;
  src: url("fonts/Fraunces-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --linen: #FBF8F1;
  --surface: #FFFFFF;
  --ink: #1B1A17;
  --ink-muted: #5E594E;
  --line: #E8E1D2;
  --daylight: #F3B53F;
  --on-daylight: #1B1A17;
  --link: #2D5DA8;
  --daylight-soft: #FBE3B0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --display: Fraunces, "New York", Georgia, serif;
  --body: "Atkinson Hyperlegible", -apple-system, "SF Pro Text", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --linen: #1B1A17;
    --surface: #262420;
    --ink: #F4EFE4;
    --ink-muted: #B8B1A2;
    --line: #3A372F;
    --link: #8FB3EE;
    --daylight-soft: #5A4519;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 24px;
}

.page {
  max-width: 40rem;
  margin: 0 auto;
  padding: var(--space-8) var(--space-4) var(--space-8);
}

main > header, .page > header { margin-bottom: var(--space-8); }

/* The wordmark is the approved outlines (docs/brand/wordmark), drawn in ink, so it turns cream in dark mode.
   Never narrower than 80 px. */
.wordmark { display: block; width: 140px; height: auto; color: var(--ink); }

h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 34px;
  line-height: 40px;
  letter-spacing: -0.01em;
  margin: var(--space-6) 0 var(--space-2);
}

h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  line-height: 28px;
  margin: var(--space-8) 0 var(--space-3);
}

h3 {
  font-size: 16px;
  line-height: 22px;
  font-weight: 700;
  margin: 0 0 var(--space-1);
}

p, ul { margin: 0 0 var(--space-3); }
ul { padding-left: 1.25em; }
li { margin-bottom: var(--space-2); }
strong { font-weight: 700; }

a { color: var(--link); text-underline-offset: 2px; }
a:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 4px; }

.updated { color: var(--ink-muted); font-size: 14px; line-height: 20px; margin: 0; }

/* The short version: a daylight banner, the brand colour as a fill with on-daylight text. */
.summary {
  background: var(--daylight);
  color: var(--on-daylight);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin: var(--space-6) 0;
}
.summary p:last-child { margin-bottom: 0; }

/* A grouped list on surface, rows divided by line hairlines. */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin: 0 0 var(--space-3);
}
.card > div { padding: var(--space-4); }
.card > div + div { border-top: 1px solid var(--line); }
.card p:last-child { margin-bottom: 0; }

.contact {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin: var(--space-6) 0;
}
.contact p:last-child { margin-bottom: 0; }
.contact .address { font-size: 22px; line-height: 28px; font-weight: 700; overflow-wrap: anywhere; }

/* Still to fill in before the pages are published (site/README.md lists them). */
.todo { background: var(--daylight); color: var(--on-daylight); border-radius: 4px; padding: 0 4px; }

/* ---- Every page: the site header and footer ---- */

.site-header {
  max-width: 1120px;
  margin: 0 auto;
  padding: var(--space-6) clamp(16px, 4vw, 40px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4) var(--space-8);
}
.brand { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; color: var(--ink); }
.brand-icon { width: 40px; height: 40px; border-radius: 9px; }
.site-nav, .footer-nav { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-6); }
.site-nav a { color: var(--ink); font-weight: 700; font-size: 16px; text-decoration: none; padding: 10px 0; }
.site-nav a:hover { text-decoration: underline; }

.site-footer { border-top: 1px solid var(--line); color: var(--ink-muted); font-size: 14px; line-height: 20px; }
.site-footer .wide {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-4) 40px;
  padding-top: var(--space-8);
  padding-bottom: 48px;
}
.footer-about { flex: 1 1 320px; }
.footer-about p { margin: 0 0 var(--space-2); }
.footer-nav a { padding: 10px 0; }

/* ---- The home page ---- */

.wide { max-width: 1120px; margin: 0 auto; padding-left: clamp(16px, 4vw, 40px); padding-right: clamp(16px, 4vw, 40px); }
.narrow { max-width: 760px; margin: 0 auto; padding-left: clamp(16px, 4vw, 40px); padding-right: clamp(16px, 4vw, 40px); }
.muted { color: var(--ink-muted); }

/* Full-width bands on surface alternate with linen. */
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band > div { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 88px); }
.band h2, .sources h2, .help h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; margin: 0 0 var(--space-3); }
.section-lede { color: var(--ink-muted); max-width: 36em; margin: 0 0 40px; }
.more { margin: 40px 0 0; font-weight: 700; }

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px 64px;
  padding-top: clamp(24px, 5vw, 64px);
  padding-bottom: clamp(48px, 7vw, 96px);
}
.hero-text { flex: 1 1 420px; min-width: 0; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.08; letter-spacing: -0.015em; margin: 0 0 var(--space-6); }
/* "read aloud" marked the way the reader marks the sentence being read. */
.reading {
  background: var(--daylight-soft);
  border-radius: 10px;
  padding: 0 8px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  white-space: nowrap;
}
.lede { font-size: 20px; line-height: 30px; max-width: 34em; margin: 0 0 var(--space-8); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) 20px; margin: 0 0 var(--space-8); }
/* Not a link until the app is on the App Store; then Apple's badge, served from this site. */
.soon {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 var(--space-6);
  border-radius: var(--radius-md);
  background: var(--ink);
  color: var(--linen);
  font-weight: 700;
  font-size: 16px;
}
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chips li {
  margin: 0;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 14px;
  line-height: 20px;
}
.hero-shot { flex: 0 1 340px; min-width: 0; display: flex; justify-content: center; }
/* The screenshots carry their own phone frame on linen, so no border here. */
.hero-shot img, .sources-shots img { display: block; width: 100%; height: auto; }
.hero-shot picture { width: 100%; max-width: 340px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-6); }
.steps li { margin: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.steps p, .facts p, .faq p { margin: 0; }
.step-number {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--daylight);
  color: var(--on-daylight);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}
.steps h3, .facts h3 { font-size: 19px; line-height: 26px; margin: 0; }
.facts h3 { margin-bottom: var(--space-2); }

.sources {
  display: flex;
  flex-wrap: wrap-reverse;
  align-items: center;
  gap: 48px 64px;
  padding-top: clamp(48px, 7vw, 96px);
  padding-bottom: clamp(48px, 7vw, 96px);
}
.sources-shots { flex: 0 1 600px; min-width: 0; display: flex; gap: 20px; justify-content: center; align-items: flex-start; }
.sources-shots picture { width: 48%; max-width: 280px; }
.sources-shots img { border-radius: 24px; }
.sources-shots picture + picture { margin-top: 48px; }
.sources-text { flex: 1 1 360px; min-width: 0; }
.sources h2 { margin-bottom: var(--space-6); }
.rows { list-style: none; padding: 0; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.rows li { display: flex; gap: var(--space-4); align-items: flex-start; padding: var(--space-4); margin: 0; }
.rows li + li { border-top: 1px solid var(--line); }
/* A 32 pt icon tile: daylight with an on-daylight icon, as in the app's lists. */
.tile { flex: none; width: 32px; height: 32px; border-radius: 8px; background: var(--daylight); display: flex; align-items: center; justify-content: center; }
.tile svg { width: 18px; height: 18px; fill: none; stroke: var(--on-daylight); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-8) 40px; }

.panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
  padding-top: clamp(48px, 7vw, 96px);
  padding-bottom: clamp(48px, 7vw, 96px);
}
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 40px); }
.panel h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.15; margin: 0 0 var(--space-4); }
.panel p:last-child { margin-bottom: 0; }
.panel-daylight { background: var(--daylight); color: var(--on-daylight); border-color: var(--daylight); }

.faq > div { padding: 20px 0; border-top: 1px solid var(--line); }
.faq > div:last-child { border-bottom: 1px solid var(--line); }
.faq h3 { font-size: 18px; line-height: 24px; margin: 0 0 var(--space-2); }
#questions h2 { margin-bottom: var(--space-8); }

.help { text-align: center; padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 96px); }
.help .address { font-size: 22px; line-height: 28px; font-weight: 700; overflow-wrap: anywhere; }
