:root {
  --background: #ffffff;
  --foreground: #1a1d21;
  --muted: #5b6470;
  --border: #e4e7eb;
  --accent: #128c7e;
  --surface: #f6f8fa;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0f1214;
    --foreground: #e8eaed;
    --muted: #9aa3ad;
    --border: #2a2f35;
    --accent: #25d366;
    --surface: #171b1f;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

header .brand {
  font-weight: 700;
  color: var(--foreground);
  text-decoration: none;
}

nav { display: flex; flex-wrap: wrap; gap: 16px; }

a { color: var(--accent); }

nav a { text-decoration: none; font-size: 15px; }

main { padding-top: 24px; padding-bottom: 48px; }

h1 { font-size: 28px; line-height: 1.25; margin: 8px 0 4px; }
h2 { font-size: 20px; margin: 32px 0 8px; }

.updated { color: var(--muted); font-size: 14px; margin-top: 0; }

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

.card p { margin: 4px 0; }

footer {
  padding-top: 16px;
  padding-bottom: 32px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}
