.site-header,
.site-footer,
main {
    width: min(1120px, calc(100% - var(--space) * 2));
    margin-inline: auto;
}

.site-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.4rem 0 1.1rem;
    border-bottom: 1px solid var(--line);
}

.logo {
    font-family: var(--serif);
    font-size: 1.05rem;
    letter-spacing: 0.16em;
    text-decoration: none;
}

.nav {
    display: flex;
    gap: 1.25rem;
    font-size: 0.92rem;
}

.nav a {
    text-decoration: none;
}

.nav a[aria-current="page"] {
    color: var(--accent);
}

.flash {
    width: min(1120px, calc(100% - var(--space) * 2));
    margin: 1rem auto 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--line);
    color: var(--accent);
}

.hero {
    padding: clamp(4.5rem, 12vw, 9rem) 0 clamp(3rem, 8vw, 6rem);
    max-width: 46rem;
}

.hero h1 {
    max-width: 11em;
}

.eyebrow {
    margin-bottom: 1.25rem;
    color: var(--accent);
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.hero h1,
.error-page h1 {
    font-size: clamp(2.7rem, 7vw, 5.6rem);
}

.lead {
    margin-top: 1.75rem;
    max-width: 34rem;
    color: var(--muted);
    font-size: 1.05rem;
}

.note {
    padding: 1.5rem 0 5rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.error-page {
    padding: clamp(4rem, 12vw, 8rem) 0 6rem;
}

.text-link {
    display: inline-block;
    margin-top: 2rem;
    color: var(--ink);
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 0 2rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.85rem;
}

@media (max-width: 600px) {
    .site-header,
    .site-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero,
    .hero h1 {
        max-width: none;
    }
}
