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

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

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-ink-default);
    background-color: var(--color-surface-base);
    line-height: 1.5;
}

a {
    color: inherit;
}

.app-main {
    min-height: 100vh;
}

.site-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.28);
    background-color: #ffffff;
}

.site-footer__inner {
    display: grid;
    gap: 0.8rem;
    width: min(1040px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.45rem 0;
}

.site-footer__brand {
    width: fit-content;
    color: #315a86;
    font-family: var(--font-display);
    font-size: 0.96rem;
    font-weight: 800;
    text-decoration: none;
}

.site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
}

.site-footer__nav a {
    color: #475569;
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
}

.site-footer__nav a:hover {
    color: #0f3f70;
    text-decoration: underline;
}

.site-footer__copy {
    max-width: 36rem;
    margin: 0;
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.55;
}

@media (max-width: 560px) {
    .site-footer__inner {
        width: min(100% - 1rem, 1040px);
        padding: 1.2rem 0;
    }

    .site-footer__nav {
        gap: 0.45rem 0.8rem;
    }
}

.error-view {
    width: min(640px, 100% - 2.5rem);
    margin: 8rem auto 0;
    padding: 2rem;
    border-radius: var(--radius-large);
    border: 1px solid var(--color-border-soft);
    background-color: var(--color-surface-elevated);
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.error-view__title {
    margin: 0 0 0.75rem;
    color: var(--color-ink-strong);
    font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem);
    font-family: var(--font-display);
}

.error-view__description {
    margin: 0;
    color: var(--color-ink-default);
}

.error-view__link {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--color-accent-strong);
    font-weight: 700;
    text-decoration: none;
}

.error-view__link:hover {
    text-decoration: underline;
}
