:root {
  font-family: system-ui, -apple-system, "Noto Sans SC", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  line-height: 1.6;
  --serif: Georgia, "Noto Serif CJK SC", "Songti SC", serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }
img { display: block; width: 100%; height: auto; }
.shell { width: min(100% - clamp(2rem, 8vw, 9rem), 86rem); margin-inline: auto; }

.skip {
  position: fixed;
  inset: .75rem auto auto .75rem;
  z-index: 2;
  padding: .6rem 1rem;
  background: var(--paper);
  translate: 0 -200%;
}

.skip:focus { translate: none; }

.site-header, .site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem 2rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.site-header nav, .site-footer nav { display: flex; gap: .25rem 1.35rem; flex-wrap: wrap; }
.site-header a, .site-footer a { display: inline-block; padding-block: .35rem; }
.site-header nav, .site-footer { font-size: .88rem; }
.wordmark { font-size: 1.35rem; font-weight: 650; text-decoration: none; }
.site-footer { border-top: 1px solid var(--line); border-bottom: 0; margin-top: 2rem; }
.accent, .wordmark span { color: var(--accent); }
[tabindex="-1"]:focus { outline: none; }

@media (max-width: 38rem) {
  .site-header, .site-footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
