/* Base: element defaults, typography, focus, reduced motion. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body, 1.6);
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-serif); line-height: var(--lh-heading, 1.15); margin: 0 0 var(--space-3); font-weight: 700; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
h5, h6 { font-size: var(--fs-body); }
p { margin: 0 0 var(--space-4); }
a { color: var(--river); text-underline-offset: 0.2em; }
img, canvas { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: var(--focus-width) solid var(--focus-color); outline-offset: var(--focus-offset); }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; vertical-align: top; padding: var(--space-2) var(--space-3); border-bottom: 1.5px solid var(--paper-edge); }
caption { text-align: left; font-weight: 700; padding-bottom: var(--space-2); }
[hidden] { display: none !important; }
