/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: var(--fs-base);
    line-height: 1.65;
    font-feature-settings: "tnum" 0, "kern" 1;
    -webkit-font-smoothing: antialiased;
    /* clip (not hidden) keeps the sticky header working */
    overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--forest-ink); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--forest); text-decoration-thickness: 2px; }

button, input, select, textarea { font: inherit; color: inherit; }

hr { border: 0; border-top: 1px solid var(--rule); margin: var(--space-4) 0; }

table { border-collapse: collapse; width: 100%; }

abbr[title] { text-decoration: underline dotted; cursor: help; }

:focus-visible {
    outline: 3px solid var(--citrus);
    outline-offset: 3px;
    border-radius: 1px;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 1000;
    background: var(--citrus);
    color: var(--pine);
    padding: .6rem 1rem;
    font-weight: 700;
    text-decoration: none;
}
.skip-link:focus { top: 12px; }

.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;
}

::selection { background: var(--citrus); color: var(--pine); }

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