:root {
  color-scheme: light;
  --page-bg: #fff;
  --text: #1a1a1a;
  --muted: #666;
  --surface: #f5f5f5;
  --field-bg: #fff;
  --border: #ddd;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page-bg: #121212;
  --text: #eee;
  --muted: #aaa;
  --surface: #1b1b1b;
  --field-bg: #181818;
  --border: #3d3d3d;
}

body {
  max-width: 800px;
  margin: 48px auto;
  padding: 0 20px;
  background: var(--page-bg);
  color: var(--text);
  font-family: system-ui, sans-serif;
  line-height: 1.65;
}

header, footer, .display-settings {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

header { border-bottom: 1px solid var(--border); }
footer {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

a { color: inherit; }
.brand { text-decoration: none; }
.display-settings { justify-content: flex-end; margin: 20px 0; }
.display-settings label { display: flex; align-items: center; gap: 8px; }
select {
  padding: 6px;
  border: 1px solid var(--border);
  background: var(--field-bg);
  color: var(--text);
}
h2 { margin-top: 2em; }
.updated, .note { color: var(--muted); }
.note {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
}
[hidden] { display: none !important; }
