:root {
    --bg: #faf8f3;
    --link: #6b7a3f;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    overflow: hidden;
}

body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    background: var(--bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.logo-wrap {
    flex: 1;
    min-height: 0;
    padding: 1rem;
}

.logo-wrap picture,
.logo-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

footer {
    flex-shrink: 0;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

footer a {
    color: var(--link);
    text-decoration: none;
    font-size: 0.75rem;
    opacity: 0.6;
    margin: 0 0.5rem;
}

footer a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-credit {
    margin: 0;
    opacity: 0.7;
    line-height: 0;
}

.footer-credit:hover {
    opacity: 1;
}

.footer-credit-logo {
    height: 28px;
    width: auto;
    display: block;
}

.footer-links {
    text-align: right;
}

.error-wrap {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    color: #333;
}

.error-wrap h1 {
    font-size: clamp(3rem, 12vw, 6rem);
    margin: 0;
    color: var(--link);
}

.error-wrap p {
    margin: 0.5rem 0;
}

.error-wrap .btn {
    display: inline-block;
    margin-top: 1.25rem;
    padding: 0.6rem 1.5rem;
    background: var(--link);
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    font-size: 0.9rem;
}

.error-wrap .btn:hover {
    opacity: 0.85;
}
