:root {
  --bg: #ffffff;
  --bg-alt: #f4f6f8;
  --text: #1a1d21;
  --text-muted: #51575e;
  --accent: #0b5fff;
  --border: #e2e5e9;
  --max-width: 760px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161a;
    --bg-alt: #1c1f24;
    --text: #e9ebee;
    --text-muted: #a7adb4;
    --accent: #5b9bff;
    --border: #2b2f36;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 10;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

a { color: var(--accent); }
a:focus, button:focus { outline: 2px solid var(--accent); outline-offset: 2px; }

header.site-header {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 1rem;
}

header.site-header .wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
}

header.site-header strong {
  font-size: 1.25rem;
}

nav.site-nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1rem 0;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem;
}

section {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}
section:last-child { border-bottom: none; }

h1 { font-size: 1.75rem; margin-top: 0; }
h2 { font-size: 1.35rem; margin-top: 0; }
h3 { font-size: 1.05rem; }

.lead {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
}

dl.policy dt { font-weight: 600; margin-top: 1rem; }
dl.policy dd { margin: 0.25rem 0 0; color: var(--text-muted); }

footer.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (max-width: 480px) {
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.15rem; }
}
