/* Public pages (home, privacy, terms). Plain static files served by Netlify
   ahead of the app's catch-all rewrite; they load nothing from the app. */
:root {
  --paper: #F7F2EA; --surface: #FFFDF9; --ink: #1F1B16; --muted: #5E554A;
  --line: #D9CDBC; --accent: #4F7400; --accent-ink: #FFFFFF;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #040305; --surface: #1E1C23; --ink: #F1EDE6; --muted: #B5AEA4;
    --line: #312E36; --accent: #A4D63A; --accent-ink: #10140A;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  padding: max(24px, env(safe-area-inset-top)) 16px max(32px, env(safe-area-inset-bottom));
}
main, header, footer { max-width: 42rem; margin: 0 auto; }
header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 18px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
nav { display: flex; gap: 16px; flex-wrap: wrap; }
a { color: var(--accent); }
nav a { color: var(--muted); text-decoration: none; }
nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
h1 { font-size: 30px; line-height: 1.2; margin: 0 0 12px; text-wrap: balance; }
h2 { font-size: 20px; line-height: 1.3; margin: 32px 0 8px; text-wrap: balance; }
h3 { font-size: 17px; margin: 20px 0 4px; }
p, li { color: var(--ink); }
.lede { font-size: 18px; color: var(--muted); }
.meta { color: var(--muted); font-size: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin: 20px 0; }
.cta { display: inline-block; background: var(--accent); color: var(--accent-ink); padding: 12px 20px; border-radius: 12px; text-decoration: none; font-weight: 600; }
ul { padding-left: 1.2em; }
footer { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; display: flex; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--muted); }
code, a { overflow-wrap: anywhere; }
