/* The public pages (/, /privacy, /terms). Values follow docs/design/system.md; tokens match public/invite/invite.css. */
/* IBM Plex (SIL Open Font License), self-hosted under /site/fonts/, which is open without an invitation. */
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('/site/fonts/ibm-plex-sans-latin.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url('/site/fonts/ibm-plex-serif-400-latin.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Serif'; font-style: normal; font-weight: 500; font-display: swap; src: url('/site/fonts/ibm-plex-serif-500-latin.woff2') format('woff2'); }

:root {
  --bg: #f6f7f5;
  --surface: #ffffff;
  --ink: #142024;
  --muted: #52615f;
  --hairline: #e1e6e3;
  --accent: #0b5c5c;
  --accent-hover: #083f3f;
  --accent-ink: #ffffff;
  --focus: #0b5c5c;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1a1c;
    --surface: #142325;
    --ink: #e9efed;
    --muted: #9aa8a5;
    --hairline: #24322f;
    --accent: #5fb5ab;
    --accent-hover: #7fc6bd;
    --accent-ink: #082422;
    --focus: #7fc6bd;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  display: flex;
  flex-direction: column;
}
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.brand { max-width: 1120px; width: 100%; margin: 0 auto; padding: 24px 16px; }
.brand a {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--ink); text-decoration: none; font: 500 18px/1.2 'IBM Plex Serif', Georgia, serif;
}
.brand svg { width: 28px; height: 28px; flex: none; }
/* The mark's dark set (src/app/theme/tokens.css --brand*): the inline SVG's fills are presentation attributes, so CSS wins. */
@media (prefers-color-scheme: dark) {
  .brand svg rect { fill: #5fb5ab; }
  .brand svg path { stroke: #082422; }
  .brand svg circle { fill: #f2b77d; }
}
/* One column, the prose measure (docs/design/system.md --measure 760px); a page reads top to bottom: story, action, detail. */
main { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 48px 16px 64px; }
.eyebrow {
  margin: 0 0 12px; color: var(--accent);
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
}
h1 {
  margin: 0;
  font: 500 clamp(30px, 4.2vw, 38px)/1.2 'IBM Plex Serif', Georgia, serif;
  letter-spacing: -0.01em;
}
.lede { margin: 16px 0 0; font-size: 17px; line-height: 1.55; color: var(--muted); max-width: 62ch; }
.act { margin: 32px 0 0; }
a.action {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px;
  font: 600 16px/1 'IBM Plex Sans', system-ui, sans-serif; text-decoration: none;
  color: var(--accent-ink); background: var(--accent); border-radius: 12px;
}
a.action:hover { color: var(--accent-ink); background: var(--accent-hover); }
.hint { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
/* Detail after the story: quiet rows on hairlines, not cards (v4's "Also today"). */
.rows-title { margin: 48px 0 0; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.rows { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--hairline); }
.rows li { padding: 12px 0; border-bottom: 1px solid var(--hairline); line-height: 1.35; }
.rows h3 { margin: 0; font-size: 16px; font-weight: 500; }
.rows p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.rows.summary { margin-top: 24px; }
.rows.summary li { color: var(--muted); font-size: 15px; }
.rows.summary a { color: var(--ink); font-weight: 500; text-decoration: none; }
.rows.summary a:hover { color: var(--accent); text-decoration: underline; }
.prose h1 { margin-bottom: 0; }
.prose h2 { margin: 32px 0 8px; font-size: 20px; font-weight: 600; scroll-margin-top: 16px; }
.prose p, .prose li { color: var(--ink); }
.prose > p { line-height: 1.55; }
.prose > ul { padding-left: 20px; }
.prose > ul li { margin: 8px 0; }
footer {
  max-width: 1120px; width: 100%; margin: 0 auto; padding: 24px 16px;
  display: flex; flex-wrap: wrap; gap: 24px;
  color: var(--muted); font-size: 13px; border-top: 1px solid var(--hairline);
}
footer span { margin-right: auto; }
footer a { color: var(--muted); }
footer a[aria-current] { color: var(--ink); text-decoration: none; }
