*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--topbar-h) + 1rem);
}
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 var(--t-base) / 1.5 var(--font);
  font-feature-settings: 'ss01' 0;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100dvh;
  accent-color: var(--pine-700);
  caret-color: var(--pine-700);
}
::selection {
  background: var(--pine-200);
  color: var(--pine-950);
}
h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
  color: var(--pine-900);
  text-wrap: balance;
  letter-spacing: -0.012em;
}
h1 { font-size: var(--t-xl); }
h2 { font-size: var(--t-lg); }
h3 { font-size: var(--t-md); }
h4 { font-size: var(--t-base); }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a {
  color: var(--pine-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover { color: var(--pine-900); }
button, input, select, textarea {
  font: inherit;
  color: inherit;
}
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-4) 0; }
code, kbd, pre, .mono {
  font-family: var(--mono);
  font-size: 0.92em;
}
.num, td.num, .tnum { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.muted { color: var(--ink-3); }
.small { font-size: var(--t-sm); }
.xsmall { font-size: var(--t-xs); }
.grow { flex: 1 1 auto; min-width: 0; }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--pine-600);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}
.on-pine :focus-visible { outline-color: #fff; }

* {
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 10px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: var(--pine-500); background-clip: content-box; border: 2px solid transparent; }
::placeholder { color: var(--ink-3); opacity: 1; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: var(--s-3);
  top: -4rem;
  background: var(--pine-800);
  color: var(--on-pine);
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-md);
  z-index: 100;
  transition: top 0.15s var(--ease-out);
}
.skip-link:focus { top: var(--s-3); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
