:root {
  --bg: #fdf6ec;
  --surface: #ffffff;
  --text: #2a1d14;
  --muted: #5e4b3c;
  --brand: #b3261e;
  --brand-dark: #8c1d17;
  --accent: #2f6b31;
  --cheese: #f2b33d;
  --border: #ead9c2;
  --focus: #1a5fb4;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1410;
    --surface: #261c16;
    --text: #f6ece1;
    --muted: #d3c0ae;
    --brand: #ff8a7a;
    --brand-dark: #ffb3a8;
    --accent: #8fd18f;
    --cheese: #f2b33d;
    --border: #3d2e24;
    --focus: #8ab4ff;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 18px/1.65 Georgia, "Times New Roman", serif;
}
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip-link:focus { left: 16px; top: 8px; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

.site-header { border-bottom: 4px solid var(--cheese); background: var(--surface); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font: 700 1.25rem/1.2 system-ui, -apple-system, "Segoe UI", sans-serif; }
.brand img { width: 40px; height: 40px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; font: 600 0.95rem/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; }
.site-nav a { text-decoration: none; padding: 6px 0; display: inline-block; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--cheese); }

main { padding: 32px 0 48px; }
h1, h2, h3 { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; line-height: 1.2; }
h1 { font-size: clamp(2rem, 6vw, 2.8rem); margin: 0 0 12px; }
h2 { font-size: 1.5rem; margin: 40px 0 10px; }
.lede { font-size: 1.2rem; color: var(--muted); margin-top: 0; }

.card { background: var(--surface); border: 1px solid var(--border); border-left: 6px solid var(--brand); border-radius: 10px; padding: 18px 20px; margin: 28px 0; }
.card h2 { margin-top: 0; }
.cta { display: inline-block; background: var(--brand); color: #fff; text-decoration: none; font: 700 1rem/1.2 system-ui, -apple-system, "Segoe UI", sans-serif; padding: 12px 18px; border-radius: 999px; margin-top: 6px; }
.cta:hover { background: var(--brand-dark); color: #fff; }
@media (prefers-color-scheme: dark) { .cta, .cta:hover { color: #1b1410; } }

.rules { counter-reset: rule; list-style: none; padding: 0; }
.rules li { counter-increment: rule; position: relative; padding: 14px 16px 14px 64px; margin: 12px 0; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.rules li::before { content: "#" counter(rule); position: absolute; left: 14px; top: 12px; font: 800 1.3rem/1.4 system-ui, sans-serif; color: var(--brand); }
.rules strong { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }

.facts { padding-left: 1.2em; }
.facts li { margin: 6px 0; }

.site-footer { border-top: 1px solid var(--border); background: var(--surface); font-size: 0.95rem; color: var(--muted); }
.site-footer .wrap { padding-top: 24px; padding-bottom: 32px; }
.site-footer p { margin: 8px 0; }
