:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1c2420;
  --muted: #55615a;
  --line: #dfe3dc;
  --accent: #2f6b4f;
  --accent-ink: #ffffff;
  --accent-soft: #e7f1ea;
  --warn-soft: #fbf1dc;
  --warn-line: #e3c987;
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141916;
    --surface: #1b221e;
    --text: #e8ede9;
    --muted: #a4b0a8;
    --line: #2d3731;
    --accent: #7cc4a0;
    --accent-ink: #10231a;
    --accent-soft: #1f2e26;
    --warn-soft: #2b2617;
    --warn-line: #6b5a27;
  }
}
:root[data-theme="dark"] {
  --bg: #141916;
  --surface: #1b221e;
  --text: #e8ede9;
  --muted: #a4b0a8;
  --line: #2d3731;
  --accent: #7cc4a0;
  --accent-ink: #10231a;
  --accent-soft: #1f2e26;
  --warn-soft: #2b2617;
  --warn-line: #6b5a27;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }
a { color: var(--accent); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 12px; padding-bottom: 12px; }
.brand { font-weight: 700; font-size: 1.25rem; text-decoration: none; color: var(--text); letter-spacing: -0.01em; }
.brand span { color: var(--accent); }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
nav a { text-decoration: none; color: var(--text); padding: 4px 0; border-bottom: 2px solid transparent; }
nav a:hover { border-bottom-color: var(--line); }
nav a[aria-current="page"] { border-bottom-color: var(--accent); font-weight: 600; }

main { padding-top: 32px; padding-bottom: 56px; }
h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); line-height: 1.2; margin: 0 0 16px; letter-spacing: -0.015em; }
h2 { font-size: 1.4rem; line-height: 1.3; margin: 2.2rem 0 0.6rem; }
h3 { font-size: 1.1rem; margin: 1.6rem 0 0.4rem; }
p, ul, ol { margin: 0 0 1rem; }
li { margin-bottom: 0.3rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40em; }
.small { font-size: 0.9rem; color: var(--muted); }

.hero { padding: 16px 0 8px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.btn { display: inline-block; padding: 10px 18px; border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 600; }
.btn.secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 28px 0; padding: 0; list-style: none; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 0; }
.card h2, .card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.card p { margin: 0 0 8px; color: var(--muted); font-size: 0.97rem; }
.card a.more { font-weight: 600; }

.status, .note { border-radius: var(--radius); padding: 16px 18px; margin: 28px 0; }
.status { background: var(--accent-soft); border: 1px solid var(--line); }
.note { background: var(--warn-soft); border: 1px solid var(--warn-line); }
.status h2, .note h2 { margin-top: 0; font-size: 1.15rem; }
.status p:last-child, .note p:last-child { margin-bottom: 0; }

.timeline { list-style: none; margin: 24px 0; padding: 0 0 0 18px; border-left: 3px solid var(--line); }
.timeline li { position: relative; margin: 0 0 22px; padding-left: 14px; }
.timeline li::before { content: ""; position: absolute; left: -26px; top: 9px; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); }
.timeline .when { font-weight: 700; display: block; }

dl.terms dt { font-weight: 700; margin-top: 1.2rem; }
dl.terms dd { margin: 0.2rem 0 0; }
.az { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 0; list-style: none; margin: 0 0 8px; }

.sources { font-size: 0.95rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: 2.4rem; padding-top: 1rem; }
.sources h2 { font-size: 1rem; margin: 0 0 0.4rem; }

.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 24px 0; }
.site-footer p { margin: 0 0 8px; }

@media (max-width: 520px) {
  body { font-size: 16px; }
}
