:root {
  color-scheme: light dark;
  --bg: light-dark(#f7f7f5, #121212);
  --surface: light-dark(#ffffff, #1c1c1b);
  --fg: light-dark(#1b1a17, #f1efea);
  --muted: light-dark(#5c5955, #a9a59d);
  --border: light-dark(#dedcd6, #33322f);
  --accent: light-dark(#0f6e66, #39c8b8);
  --warn-bg: light-dark(#fdf3d8, #3a2c08);
  --warn-fg: light-dark(#6b4a05, #f4d890);
}
:root[data-theme='light'] { color-scheme: light; }
:root[data-theme='dark'] { color-scheme: dark; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 24px 16px 64px; }
header.top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; padding: 8px 0 24px; }
header.top a { color: var(--accent); text-decoration: none; font-weight: 600; }
header.top a:hover { text-decoration: underline; }
h1 { font-size: 1.75rem; line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 8px; }
h2 { font-size: 1.15rem; margin: 32px 0 8px; }
h3 { font-size: 1rem; margin: 20px 0 4px; }
p, li { max-width: 68ch; }
.lead { color: var(--muted); margin-top: 0; }
address { font-style: normal; }
a { color: var(--accent); }
mark.todo {
  background: var(--warn-bg);
  color: var(--warn-fg);
  padding: 0 4px;
  border-radius: 4px;
  font-weight: 600;
}
.banner {
  display: none;
  background: var(--warn-bg);
  color: var(--warn-fg);
  border: 1px solid color-mix(in srgb, var(--warn-fg) 30%, transparent);
  border-radius: 10px;
  padding: 10px 14px;
  margin: 0 0 24px;
  font-size: 0.95rem;
}
.banner[data-visible='true'] { display: block; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; width: 30%; }
.optout { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.optout button { font: inherit; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--border); background: transparent; color: var(--accent); font-weight: 600; cursor: pointer; }
.optout button:hover { border-color: var(--accent); }
.optout button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.optout [role='status'] { color: var(--muted); font-size: 0.9rem; }
footer.bottom { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.9rem; display: flex; flex-wrap: wrap; gap: 16px; }
