*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--color-canvas);
    color: var(--color-ink);
    font-family: var(--font-body);
    font-size: var(--text-md);
    line-height: 1.5;
    font-feature-settings: 'cv11', 'ss01';
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    word-spacing: var(--heading-word-spacing);
    line-height: 1.2;
    margin: 0;
    letter-spacing: -0.01em;
}

h1 {
    font-size: var(--text-2xl);
    font-weight: 750;
}

h2 {
    font-size: var(--text-xl);
    font-weight: 700;
}

h3 {
    font-size: var(--text-lg);
    font-weight: 650;
}

p {
    margin: 0;
}

/* `hidden` always hides, whatever display a class sets (the browser's own rule is too weak). */
[hidden] {
    display: none !important;
}

/* Browser defaults that make forms and detail lists look unfinished. */
fieldset {
    margin: 0;
    padding: 0;
    border: 0;
    min-inline-size: 0;
}

legend {
    padding: 0;
}

dl,
dd {
    margin: 0;
}

a {
    color: var(--color-primary);
    text-underline-offset: 0.15em;
}

a:hover {
    color: var(--color-primary-strong);
}

:focus-visible {
    outline: 2px solid var(--color-ink);
    outline-offset: 2px;
    box-shadow: var(--focus-ring);
}

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

.tabular {
    font-variant-numeric: tabular-nums;
}

.skip-link {
    position: absolute;
    left: var(--space-3);
    top: -100px;
    z-index: 100;
    padding: var(--space-2) var(--space-4);
    background: var(--color-surface);
    color: var(--color-ink);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-2);
}

.skip-link:focus {
    top: var(--space-3);
}

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