:root {
    color-scheme: light;
    --canvas: #f4f5f0;
    --surface: #ffffff;
    --ink: #171917;
    --ink-soft: #373c38;
    --ink-muted: #687069;
    --line: #dfe3dc;
    --line-strong: #c8cec5;
    --signal-green: #15844c;
    --signal-green-soft: #dcefe4;
    --signal-amber: #b46508;
    --signal-amber-soft: #f7e6ca;
    --signal-red: #b63838;
    --signal-red-soft: #f5dddd;
    --signal-blue: #2b66a8;
    --focus: #2b66a8;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-synthesis: none;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--canvas);
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    background: var(--canvas);
    color: var(--ink);
    letter-spacing: 0;
}

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

h1,
h2,
h3,
p {
    margin-top: 0;
}

a {
    color: var(--signal-blue);
}

code {
    font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

h1:focus {
    outline: none;
}

.error-page,
.not-found-page {
    width: min(100% - 40px, 760px);
    margin: 0 auto;
    padding: 88px 0 112px;
}

.error-page h1,
.not-found-page h1 {
    margin-bottom: 12px;
    font-size: 3.5rem;
    line-height: 1;
}

.error-page p,
.not-found-page p {
    max-width: 58ch;
    color: var(--ink-muted);
    line-height: 1.65;
}

.error-page code {
    color: var(--ink-soft);
}

@media (max-width: 640px) {
    .error-page,
    .not-found-page {
        width: min(100% - 28px, 760px);
        padding: 64px 0 88px;
    }

    .error-page h1,
    .not-found-page h1 {
        font-size: 2rem;
    }
}

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

main a:focus-visible,
main button:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}
