:root {
  --bg: #ffffff;
  --text: #1d1b22;
  --muted: #5c5866;
  --primary: #a142f4;
  --primary-hover: #9326f2;
  --border: #e6e2ec;
  --surface: #f7f4fb;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141218;
    --text: #ece8f2;
    --muted: #a8a2b4;
    --primary: #b084f5;
    --primary-hover: #c3a0f8;
    --border: #2c2833;
    --surface: #1c1922;
  }
}

* { box-sizing: border-box; }

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

a { color: var(--primary); }
a:hover { color: var(--primary-hover); }

header, main, footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  padding-bottom: 24px;
}

.brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
}

.brand span { color: var(--primary); }

nav a { margin-left: 16px; font-size: 0.95rem; }

h1 { font-size: 2rem; line-height: 1.2; margin: 24px 0 8px; }
h2 { font-size: 1.25rem; margin-top: 32px; }

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 24px 0;
}

.updated { color: var(--muted); font-size: 0.9rem; }

table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--border); vertical-align: top; }

footer {
  margin-top: 48px;
  padding-top: 24px;
  padding-bottom: 32px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

footer a { margin-right: 16px; }
