/*
 * Shared theme for the static pages (privacy, faq, glossary, compare, articles).
 * Mirrors the token set in src/theme.js — the React app reads THEME from there,
 * the static pages read these CSS variables here. To restyle every static page,
 * change the variables in :root below (keep them in sync with src/theme.js).
 *
 * Current theme: Neo-Brutal Block.
 */
:root {
  --bg: #d9e8f5;
  --panel: #ffffff;
  --panel-alt: #fff7ef;
  --ink: #0a0a0a;
  --ink-muted: #3a3a3a;
  --ink-dim: #6a6a6a;
  --accent: #ff7a45;
  --border: #0a0a0a;
  --bw: 3px;
  --bw-thin: 2px;
  --shadow: 4px 4px 0 var(--border);
  --shadow-sm: 2px 2px 0 var(--border);
  --shadow-lg: 6px 6px 0 var(--border);
  --font: 'Space Grotesk', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  font-weight: 500;
}

.wrap { max-width: 680px; margin: 0 auto; padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 5vw, 2rem); }
.wrap--article { max-width: 720px; padding-bottom: 4rem; }

h1 { font-weight: 700; font-size: clamp(2.25rem, 6vw, 3rem); color: var(--ink); letter-spacing: -0.03em; margin-bottom: 1.5rem; line-height: 0.98; }
h2 { font-weight: 700; font-size: 1.35rem; color: var(--ink); margin-top: 2.5rem; margin-bottom: 1rem; letter-spacing: -0.015em; }

p { color: var(--ink); margin-bottom: 1rem; font-weight: 500; }
ul, ol { color: var(--ink); margin-left: 1.4rem; margin-bottom: 1rem; font-weight: 500; }
li { margin-bottom: 0.5rem; }
strong { font-weight: 700; }
em { font-style: italic; }

a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; font-weight: 700; }
a:hover { color: var(--accent); }

/* Eyebrow / label */
.badge { display: inline-block; background: var(--accent); color: var(--ink); border: var(--bw-thin) solid var(--border); box-shadow: var(--shadow-sm); padding: 0.45rem 1rem; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; margin-bottom: 2rem; }
.rule { width: 48px; height: 6px; background: var(--accent); border: var(--bw-thin) solid var(--border); margin-bottom: 2rem; }
.meta { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-muted); font-weight: 700; margin-bottom: 2.5rem; }
.crumb { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 1.25rem; }
.crumb a { color: var(--ink-muted); text-decoration: none; }
.crumb a:hover { color: var(--accent); }

.lede, .lead { font-size: 1.05rem; margin-bottom: 1rem; }

/* White bordered panels: privacy .card, faq .qa, glossary .term, article list .item */
.card, .qa, .term, .item { background: var(--panel); border: var(--bw) solid var(--border); box-shadow: var(--shadow); padding: 1.4rem 1.5rem; margin: 1.75rem 0; }
.card p { margin-bottom: 0.5rem; }
.qa p { margin-bottom: 0.5rem; }
.qa h2, .term dt { margin-top: 0; }

/* Glossary definition list */
dl { margin-top: 2.25rem; }
dt { font-weight: 700; font-size: 1.2rem; letter-spacing: -0.015em; }
dd { margin: 0.5rem 0 0; }

/* Article index list */
.list { list-style: none; }
.item a { display: block; text-decoration: none; color: var(--ink); }
.item a:hover { color: var(--ink); }
.item-title { font-weight: 700; font-size: 1.4rem; color: var(--ink); margin-bottom: 0.5rem; line-height: 1.2; letter-spacing: -0.015em; }
.item a:hover .item-title { color: var(--accent); }
.item-blurb { color: var(--ink-muted); font-weight: 500; font-size: 0.95rem; }
.item-date { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-dim); margin-top: 0.75rem; display: inline-block; font-weight: 700; }

/* Article body emphasis */
p.lede { font-size: 1.2rem; line-height: 1.55; font-weight: 600; margin-bottom: 2rem; color: var(--ink); }
sup a { font-size: 0.7em; color: var(--accent); text-decoration: none; margin-left: 1px; }
.footnotes { margin-top: 3rem; padding-top: 1.5rem; border-top: var(--bw-thin) solid var(--border); font-size: 0.85rem; color: var(--ink-muted); }
.footnotes ol { color: var(--ink-muted); font-weight: 500; }
.footnotes a { color: var(--ink); }

/* Buttons & links row */
.links { margin-top: 3rem; display: flex; gap: 0.75rem; flex-wrap: wrap; }
.btn, .cta, .back {
  display: inline-block; text-decoration: none; cursor: pointer;
  border: var(--bw-thin) solid var(--border); box-shadow: var(--shadow-sm);
  color: var(--ink); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700;
  padding: 0.7rem 1.5rem; background: var(--panel);
  transition: transform 0.1s, box-shadow 0.1s, background 0.1s;
}
.btn:hover, .cta:hover, .back:hover { background: var(--accent); color: var(--ink); transform: translate(-2px, -2px); box-shadow: var(--shadow); }
.btn.primary, .cta { background: var(--accent); }
.cta { margin-top: 0.5rem; padding: 0.85rem 1.75rem; font-size: 0.72rem; box-shadow: 3px 3px 0 var(--border); }
.back { margin-top: 3rem; }
