/* Doppel public site — single shared stylesheet. No framework, no build step. */
:root {
  --bg: #0f1216;
  --bg-card: #171c22;
  --text: #e8ecf1;
  --text-dim: #9aa5b1;
  --accent: #3eafd1;
  --border: #2a323c;
  --max: 720px;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --bg-card: #f4f6f8;
    --text: #1a222b;
    --text-dim: #5b6672;
    --border: #dde3e9;
    /* The dark-mode accent (#3eafd1) is only 2.54:1 on white — fails WCAG AA
       for link text. Darken it in light mode to 5.26:1. */
    --accent: #177592;
  }
}
* { box-sizing: border-box; }

/* Accessibility primitives (508 / WCAG 2.1 AA). */
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 30;
  background: var(--accent); color: #ffffff;
  padding: 10px 16px; border-radius: 8px;
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.vh {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* Content links carry a non-color cue too (WCAG 1.4.1); nav links excepted. */
main a { text-decoration: underline; text-underline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .skip-link { transition: none; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
header, main, footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
header {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding-top: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
header .brand {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
nav { display: flex; gap: 16px; flex-wrap: wrap; }
nav a { color: var(--text-dim); text-decoration: none; font-size: 14px; }
nav a:hover, nav a[aria-current="page"] { color: var(--accent); }
main { padding-top: 32px; padding-bottom: 48px; }
h1 { font-size: 30px; line-height: 1.25; margin: 0 0 8px; }
h2 { font-size: 20px; margin: 32px 0 8px; }
h3 { font-size: 16px; margin: 24px 0 4px; }
p, li { color: var(--text); }
.dim, .updated { color: var(--text-dim); font-size: 14px; }
a { color: var(--accent); }
ul { padding-left: 22px; }
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 16px 0;
}
.pillars { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 24px 0; }
@media (min-width: 640px) { .pillars { grid-template-columns: 1fr 1fr; } }
.pillar h3 { margin-top: 0; }
.pillar p { margin-bottom: 0; font-size: 14px; color: var(--text-dim); }
table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 14px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--text-dim); font-weight: 600; }
footer {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  padding-bottom: 32px;
  color: var(--text-dim);
  font-size: 13px;
}
footer nav { margin-top: 4px; }
.notice {
  border-left: 3px solid var(--accent);
  padding: 8px 16px;
  background: var(--bg-card);
  border-radius: 0 8px 8px 0;
  margin: 16px 0;
}
