:root {
  --bg: #fbfaf7; --surface: #ffffff; --ink: #13211d; --muted: #55635e; --line: #e4e2db;
  --brand: #0f5c4d; --tint: #eef5f2;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1513; --surface: #15201d; --ink: #e9efec; --muted: #a3b2ac; --line: #26332f;
    --brand: #49b39b; --tint: #17302a;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1513; --surface: #15201d; --ink: #e9efec; --muted: #a3b2ac; --line: #26332f;
  --brand: #49b39b; --tint: #17302a;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.7 Inter, system-ui, sans-serif; }
a { color: var(--brand); }
nav { border-bottom: 1px solid var(--line); background: var(--bg); }
nav .wrap { display: flex; align-items: center; height: 64px; gap: 16px; }
.logo { font-family: Fraunces, Georgia, serif; font-weight: 700; font-size: 24px; color: var(--ink); text-decoration: none; }
.logo span { color: #d9822b; }
nav .back { margin-left: auto; font-weight: 500; text-decoration: none; }
.wrap { max-width: 780px; margin: 0 auto; padding: 0 16px; }
main { padding: 40px 0 64px; }
h1, h2 { font-family: Fraunces, Georgia, serif; line-height: 1.2; }
h1 { font-size: clamp(30px, 5vw, 44px); margin: 0 0 6px; }
h2 { font-size: 22px; margin: 36px 0 8px; }
.meta { color: var(--muted); margin-bottom: 28px; }
.note { background: var(--tint); border-radius: 12px; padding: 14px 18px; }
table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; padding: 24px 0 40px; }
@media (max-width: 600px) { table { font-size: 14px; } th, td { padding: 8px 6px; } }
