html, body {
    height: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--ff-sans);
    font-size: var(--fs-base);
    line-height: var(--lh-base);
    color: var(--fg);
    background: var(--bg);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    font-feature-settings: "ss01", "cv01", "cv11";
    transition: background var(--t-base), color var(--t-base);
}

::selection {
    background: var(--accent);
    color: var(--accent-on);
}

::placeholder {
    color: var(--fg-dim);
    opacity: 1;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--t-base);
}

a:hover {
    color: var(--accent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: none;
    box-shadow: var(--sh-focus);
    border-radius: var(--r-xs);
}

main {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ff-sans);
    color: var(--fg);
    letter-spacing: var(--ls-snug);
    line-height: var(--lh-snug);
    font-weight: var(--fw-bold);
    text-wrap: balance;
    margin: 0;
}

h1 {
    font-size: var(--fs-6xl);
    line-height: var(--lh-tight);
    letter-spacing: var(--ls-tight);
    font-weight: var(--fw-bold);
}

h2 {
    font-size: var(--fs-5xl);
    line-height: 1.08;
    letter-spacing: -0.025em;
}

h3 {
    font-size: var(--fs-4xl);
    line-height: 1.15;
    letter-spacing: -0.015em;
    font-weight: var(--fw-semibold);
}

h4 {
    font-size: var(--fs-3xl);
    line-height: 1.2;
    letter-spacing: -0.01em;
    font-weight: var(--fw-semibold);
}

h5 {
    font-size: var(--fs-xl);
    line-height: 1.3;
    font-weight: var(--fw-semibold);
}

h6 {
    font-size: var(--fs-sm);
    line-height: 1.4;
    font-weight: var(--fw-medium);
    letter-spacing: var(--ls-wider);
    text-transform: uppercase;
    color: var(--fg-muted);
    font-family: var(--ff-mono);
}

p {
    margin: 0;
    line-height: var(--lh-base);
}

ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

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

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

hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: var(--sp-6) 0;
}

code, kbd, samp, pre {
    font-family: var(--ff-mono);
    font-size: 0.95em;
}

mark {
    background: var(--accent-soft);
    color: var(--accent-ink, var(--fg));
    padding: 0 0.2em;
    border-radius: var(--r-xs);
}

abbr[title] {
    text-decoration: underline dotted;
    text-decoration-color: var(--line-strong);
    cursor: help;
}

[hidden] {
    display: none !important;
}

.h-display {
    font-size: var(--fs-display);
    line-height: var(--lh-tight);
    letter-spacing: var(--ls-tight);
    font-weight: var(--fw-bold);
}

.h-eyebrow {
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    letter-spacing: var(--ls-mono);
    text-transform: uppercase;
    color: var(--fg-dim);
}

.lede {
    font-size: var(--fs-lg);
    line-height: var(--lh-relaxed);
    color: var(--fg-muted);
    max-width: 60ch;
    text-wrap: balance;
}

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

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