:root {
  --bg: #fffdf7;
  --fg: #2a2620;
  --muted: #7a7266;
  --line: #ece6d8;
  --accent: #b07a00;
  --brand: #ffd45e;
  --card: #fff8e1;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1915;
    --fg: #f1ece1;
    --muted: #a39b8c;
    --line: #37322a;
    --accent: #ffd45e;
    --card: #26221b;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.8 -apple-system, BlinkMacSystemFont, "PingFang TC", "Hiragino Sans", "Noto Sans TC", "Noto Sans JP",
    "Microsoft JhengHei", "Yu Gothic", sans-serif;
}
header, main, footer { max-width: 760px; margin: 0 auto; padding: 0 20px; }
header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px;
  padding-top: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.brand { white-space: nowrap; font-weight: 800; font-size: 20px; color: var(--fg); text-decoration: none; letter-spacing: 0.02em; }
.brand::before {
  content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px;
  border-radius: 50%; background: var(--brand);
}
nav { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; }
nav a { color: var(--muted); text-decoration: none; }
nav a[aria-current] { color: var(--fg); font-weight: 600; }
nav .sep { color: var(--line); }
main { padding-top: 28px; padding-bottom: 48px; }
h1 { font-size: 28px; line-height: 1.3; margin: 0 0 4px; }
h2 { font-size: 19px; line-height: 1.4; margin: 40px 0 10px; padding-top: 4px; }
h3 { font-size: 16px; margin: 22px 0 6px; }
p, ul, ol { margin: 10px 0; }
ul, ol { padding-left: 1.4em; }
li { margin: 4px 0; }
a { color: var(--accent); }
.meta { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.note { background: var(--card); border-radius: 12px; padding: 14px 16px; margin: 18px 0; }
.note p:first-child { margin-top: 0; }
.note p:last-child { margin-bottom: 0; }
.table { overflow-x: auto; margin: 14px 0; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 14.5px; line-height: 1.6; }
th, td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; white-space: nowrap; }
footer { padding-top: 18px; padding-bottom: 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
