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

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

body {
    margin: 0;
    background: var(--surface);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: var(--step-0);
    line-height: var(--lh-body);
}

h1,
h2,
p,
ul,
dl,
dd {
    margin: 0;
}

ul {
    padding: 0;
    list-style: none;
}

[hidden] {
    display: none !important;
}

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

input,
textarea {
    width: 100%;
    padding: var(--space-2xs) var(--space-xs);
    background: var(--surface-sunken);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
}

input::placeholder,
textarea::placeholder {
    color: var(--ink-faint);
}

label {
    display: block;
    font-size: var(--step--1);
    color: var(--ink-muted);
}

:focus-visible {
    outline: var(--focus-ring-width) solid var(--focus-ring-color);
    outline-offset: var(--focus-ring-offset);
}

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

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    white-space: nowrap;
    clip-path: inset(50%);
}

@media (prefers-reduced-motion: reduce) {
    :root {
        --transition: 0ms;
    }
}
