:root {
    --paper: #f4f3ef;
    --ink: #1c1c1a;
    --muted: #5a5954;
    --rule: #d8d7d0;
    --link: #24574e;
    --focus: #8a4b16;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--paper);
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1rem;
    line-height: 1.5;
}

.page-shell {
    width: min(calc(100% - 3rem), 1200px);
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.site-header {
    padding: 2rem 0;
    border-bottom: 1px solid var(--rule);
}

.wordmark {
    color: var(--ink);
    font-size: 1.125rem;
    font-weight: 650;
    letter-spacing: 0.02em;
    line-height: 1;
    text-decoration: none;
}

.site-main {
    display: flex;
    align-items: center;
    padding: 5rem 0 6rem;
}

.content-block {
    width: min(100%, 39rem);
}

.eyebrow {
    margin: 0 0 1.5rem;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.12em;
    line-height: 1.4;
    text-transform: uppercase;
}

h1 {
    max-width: 10ch;
    margin: 0;
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 520;
    letter-spacing: -0.045em;
    line-height: 0.98;
}

.supporting-copy {
    max-width: 30rem;
    margin: 2rem 0 0;
    color: var(--muted);
    font-size: clamp(1.0625rem, 2vw, 1.25rem);
    line-height: 1.55;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 0 2rem;
    border-top: 1px solid var(--rule);
    color: var(--muted);
    font-size: 0.875rem;
}

.site-footer p {
    margin: 0;
}

a {
    color: var(--link);
    text-underline-offset: 0.2em;
}

a:hover {
    color: var(--ink);
}

a:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 5px;
}

@media (max-width: 520px) {
    .page-shell {
        width: min(calc(100% - 2rem), 1200px);
    }

    .site-header {
        padding: 1.5rem 0;
    }

    .site-main {
        align-items: flex-start;
        padding: 6rem 0 5rem;
    }

    h1 {
        max-width: 100%;
        font-size: clamp(1.5rem, 12vw, 3rem);
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
        padding-bottom: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
    }
}
