body {
    background: var(--background);
    color: var(--foreground);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.error {
    flex: 1;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-block: 3rem;
    padding-inline: 1.5rem;
    text-align: center;
}

    .error .content {
        max-width: 60ch;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }

    .error h1 {
        font-size: clamp(3.5rem, 8vw, 5rem);
        font-weight: 650;
        letter-spacing: -0.02em;
        line-height: 1;
    }

    .error p {
        opacity: 85%;
        text-wrap: balance;
    }

    .error .actions {
        display: flex;
        gap: 0.6rem;
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 0.5rem;
    }

    .error .caption {
        font-size: 12px;
        opacity: 60%;
        max-width: 60ch;
    }

    .error code {
        font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
        font-size: 12px;
        background: #ffffff10;
        border: 1px solid var(--border);
        border-radius: 6px;
        padding: 1px 6px;
    }

footer {
    margin-top: auto;
    padding: 1.5rem;
    text-align: center;
    font-size: 12px;
    font-weight: 300;
    color: color-mix(in srgb, var(--foreground) 50%, transparent);
}

footer .footer-links {
    margin-bottom: 0.4rem;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
}

.caption {
    font-size: 13px;
    color: color-mix(in srgb, var(--foreground) 75%, transparent);
}

html:not([data-theme="light"]) img.brand-img[data-variant="light"] {
    display: none;
}

[data-theme="light"] img.brand-img[data-variant="dark"] {
    display: none;
}

