:root {
  --bg: #faf7f0;
  --surface: #ffffff;
  --text: #3a3630;
  --text-dim: #7a736a;
  --accent: #b8860b;
  --border: #e5dfd2;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #201d18;
    --surface: #2a261f;
    --text: #e8e2d6;
    --text-dim: #a89f90;
    --accent: #d4a437;
    --border: #3d382e;
  }
}

* { box-sizing: border-box; }

body {
  font-family: system-ui, -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

h1 { font-size: 1.6rem; line-height: 1.3; }
h2 { font-size: 1.15rem; margin-top: 2.5rem; }
a { color: var(--accent); }
ul { padding-left: 1.4rem; }
li { margin: 0.35rem 0; }

.dim { color: var(--text-dim); font-size: 0.9rem; }

.site-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 1.25rem 1.25rem 0;
  max-width: 42rem;
  margin: 0 auto;
}

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

.site-footer {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1.25rem 2.5rem;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.site-footer a { color: var(--text-dim); }

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

table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
th, td { text-align: left; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--text-dim); font-weight: 600; white-space: nowrap; }
