:root {
  color-scheme: light;
  --paper: #faf9f6;
  --ink: #232b29;
  --muted: #53615b;
  --accent: #285c49;
  --rule: #d4d8d0;
  --serif: Georgia, "Noto Serif CJK SC", "Songti SC", serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #19201d;
  --ink: #eae9e2;
  --muted: #b1bcb4;
  --accent: #acceb5;
  --rule: #414c44;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: system-ui, sans-serif; }
a, a:hover { color: var(--accent); text-underline-offset: .2em; }
a:focus-visible, button:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.site-header { position: sticky; top: 0; z-index: 5; background: var(--paper); border-bottom: 1px solid var(--rule); }
.site-bar {
  max-width: 73rem; min-height: 4rem; margin: auto; padding: .65rem clamp(1rem, 4vw, 3rem);
  display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap;
}
.site-bar .brand { margin-right: auto; text-decoration: none; color: var(--ink); font: bold 1.45rem var(--serif); }
.site-bar nav { display: flex; align-items: center; gap: clamp(.5rem, 2vw, 1.6rem); }
.site-bar nav a { text-decoration: none; font-size: .92rem; color: var(--muted); }
.site-bar nav a:hover, .site-bar nav a[aria-current] { color: var(--accent); text-decoration: underline; text-underline-offset: .35em; }
.site-bar button, .site-bar select { font: inherit; font-size: .85rem; color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: .3rem; padding: .35rem .45rem; }
.menu-toggle { display: none; }
@media (max-width: 56rem) {
  .menu-toggle:not([hidden]) { display: inline-block; }
  .site-bar { gap: .75rem; }
  #sections { order: 1; width: 100%; flex-wrap: wrap; padding-bottom: .35rem; }
  .menu-toggle[aria-expanded="false"]:not([hidden]) ~ #sections { display: none; }
}
