@font-face {
    font-family: "Vatger";
    src: url("/_error-assets/Vatger-Regular.woff2") format("woff2");
    font-display: swap;
    font-weight: 400;
}

@font-face {
    font-family: "Vatger";
    src: url("/_error-assets/Vatger-SemiBold.woff2") format("woff2");
    font-display: swap;
    font-weight: 600;
}

:root {
    color-scheme: light;
    --navy: #2b3f55;
    --navy-deep: #172637;
    --accent: #ea5763;
    --paper: #f4f5f7;
    --muted: #657383;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    display: grid;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    color: var(--navy);
    background:
        radial-gradient(circle at 88% 14%, rgb(234 87 99 / 14%), transparent 24rem),
        linear-gradient(145deg, #fff 0%, var(--paper) 58%, #e9edf1 100%);
    font-family: "Vatger", system-ui, sans-serif;
}

body::before {
    position: fixed;
    inset: 0;
    pointer-events: none;
    content: "";
    opacity: 0.35;
    background-image: linear-gradient(rgb(43 63 85 / 5%) 1px, transparent 1px);
    background-size: 100% 4rem;
    mask-image: linear-gradient(to right, transparent, #000 35%, #000);
}

.shell {
    position: relative;
    display: flex;
    width: min(100% - 2rem, 76rem);
    min-height: 100%;
    margin-inline: auto;
    padding: clamp(1.5rem, 4vw, 3.5rem) 0;
    flex-direction: column;
}

.logo {
    width: clamp(10rem, 24vw, 14rem);
    height: auto;
}

main {
    display: grid;
    flex: 1;
    align-content: center;
    padding-block: 3rem;
}

.eyebrow {
    display: flex;
    margin: 0 0 1.25rem;
    align-items: center;
    gap: 0.75rem;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 2.75rem;
    height: 2px;
    content: "";
    background: currentColor;
}

h1 {
    max-width: 14ch;
    margin: 0;
    color: var(--navy-deep);
    font-size: clamp(3rem, 9vw, 7rem);
    font-weight: 600;
    letter-spacing: -0.055em;
    line-height: 0.93;
    text-wrap: balance;
}

.error h1 {
    max-width: 18ch;
    font-size: clamp(2.8rem, 7vw, 5.75rem);
}

.lead {
    max-width: 38rem;
    margin: 1.75rem 0 0;
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6;
}

.actions {
    display: flex;
    margin-top: 2rem;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
}

.button {
    display: inline-flex;
    min-height: 2.9rem;
    padding: 0.7rem 1.1rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.45rem;
    color: #fff;
    background: var(--navy);
    font-weight: 600;
    text-decoration: none;
}

.button:hover,
.button:focus-visible {
    background: var(--accent);
}

.link {
    color: var(--navy);
    font-weight: 600;
    text-underline-offset: 0.25rem;
}

footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--muted);
    font-size: 0.82rem;
}

.code {
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

@media (max-width: 40rem) {
    footer {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: no-preference) {
    main {
        animation: enter 500ms ease-out both;
    }

    @keyframes enter {
        from {
            opacity: 0;
            transform: translateY(0.75rem);
        }
    }
}
