/* Base layout, typography and utilities */
html { scroll-padding-top: calc(var(--h-header) + 1rem); }
body {
  font-family: var(--f-text);
  font-size: var(--t-base);
  line-height: 1.5;
  color: var(--c-ink);
  background: var(--c-canvas);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.1; font-weight: var(--fw-display); font-stretch: var(--fwdth-display); }
h1 { font-size: var(--t-2xl); }
h2 { font-size: var(--t-lg); }
h3 { font-size: var(--t-md); }
p { max-width: var(--w-text); }
a { color: var(--c-brand-strong); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
strong, b { font-weight: var(--fw-strong); }
.num { font-variant-numeric: tabular-nums; }
small, .small { font-size: var(--t-sm); }
.muted { color: var(--c-ink-muted); }

:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; border-radius: 4px; }
.on-dark { --c-focus: #FFFFFF; }

.wrap { width: 100%; max-width: var(--w-page); margin-inline: auto; padding-inline: var(--gutter); }
.stack > * + * { margin-top: var(--stack, var(--s-4)); }
.row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.row--between { justify-content: space-between; }
.grid-auto { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: var(--s-4); top: -100px; z-index: 100; background: var(--c-surface); padding: var(--s-2) var(--s-4); border-radius: var(--r-control); box-shadow: var(--shadow-raise); }
.skip-link:focus { top: var(--s-2); }

.icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }

main { display: block; }
.page-main { padding-bottom: var(--s-8); }

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