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

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: var(--step-0);
    line-height: 1.6;
    transition: background-color var(--duration) ease, color var(--duration) ease;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.08;
    margin: 0 0 var(--space-4);
    letter-spacing: -0.03em;
    text-wrap: balance;
}

h1 { font-size: var(--step-3); font-weight: 650; letter-spacing: -0.04em; }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); letter-spacing: -0.02em; }

.eyebrow,
.badge,
.tag,
.flow,
.status-dot__label,
.build-info {
    font-family: var(--font-mono);
    letter-spacing: normal;
}

p {
    margin: 0 0 var(--space-4);
    max-width: 70ch;
}

ul, ol {
    margin: 0 0 var(--space-4);
    padding-left: 1.25em;
}

a {
    color: var(--accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.15em;
}

a:hover {
    text-decoration-thickness: 2px;
}

strong {
    font-weight: 600;
}

code, pre {
    font-family: var(--font-mono);
    font-size: 0.92em;
}

code {
    background: var(--accent-tint);
    padding: 0.1em 0.4em;
    border-radius: 4px;
}

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

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 2px;
    border-radius: 4px;
}

button {
    font: inherit;
}
