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

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

body {
    margin: 0;
    background: var(--paper-2);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: var(--line-height);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    line-height: var(--line-height-tight);
    color: var(--ink);
    letter-spacing: 0.01em;
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-lg); }
h4 { font-size: var(--text-base); font-family: var(--font-sans); font-weight: 600; }

p {
    margin: 0 0 var(--space-3);
}

a {
    color: var(--accent-dark);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

ul,
ol {
    margin: 0 0 var(--space-3);
    padding-left: 22px;
}

code,
pre {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
}

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

strong { font-weight: 600; }

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

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

img { max-width: 100%; height: auto; }

.u-muted { color: var(--muted); }
.u-small { font-size: var(--text-sm); }
.u-mono { font-family: var(--font-mono); font-size: var(--text-sm); letter-spacing: 0.02em; }
.u-num { font-family: var(--font-num); }

.u-kicker {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    letter-spacing: var(--tracking-kicker);
    color: var(--brass-text);
    font-weight: 600;
}

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