:root {
    color-scheme: light;
    --paper: #fffaf0;
    --surface: #ffffff;
    --ink: #27231f;
    --muted: #6b6258;
    --line: #ded4c4;
    --olive: #5f6f45;
    --terracotta: #b7654a;
    --yellow: #d7a846;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic", "Segoe UI", sans-serif;
    line-height: 1.75;
}

a {
    color: var(--olive);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

.site-header,
.site-footer {
    width: min(1080px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 0;
}

.brand {
    color: var(--ink);
    font-size: 1.2rem;
    font-weight: 800;
    text-decoration: none;
}

nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 14px 22px;
    font-size: 0.95rem;
}

nav a {
    color: var(--muted);
    text-decoration: none;
}

nav a[aria-current="page"] {
    color: var(--ink);
    font-weight: 700;
}

.hero,
.section,
.page {
    width: min(1080px, calc(100% - 40px));
    margin: 0 auto;
}

.hero {
    padding: 70px 0 58px;
}

.page {
    max-width: 820px;
    padding: 52px 0 64px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--terracotta);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    max-width: 850px;
    margin: 0;
    font-size: clamp(2.25rem, 7vw, 4.9rem);
    line-height: 1.08;
    letter-spacing: 0;
}

h2 {
    margin: 0 0 18px;
    font-size: 1.55rem;
    line-height: 1.35;
}

h3 {
    margin: 0 0 8px;
    font-size: 1.08rem;
    line-height: 1.45;
}

p {
    margin: 0 0 14px;
}

.lead {
    max-width: 780px;
    margin-top: 22px;
    color: var(--muted);
    font-size: 1.08rem;
}

.updated {
    margin-top: 10px;
    color: var(--muted);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.55);
    font-weight: 700;
    text-decoration: none;
}

.button.primary {
    border-color: var(--olive);
    color: #ffffff;
    background: var(--olive);
}

.section {
    padding: 24px 0 72px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.grid article,
.faq-item {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.grid article {
    padding: 22px;
}

.grid p,
.faq-item p {
    color: var(--muted);
}

.page section {
    padding-top: 34px;
}

.faq-item {
    margin: 14px 0;
    padding: 18px 20px;
}

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

@media (max-width: 760px) {
    .site-header,
    .site-footer {
        width: min(100% - 28px, 1080px);
    }

    .site-header,
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    nav {
        justify-content: flex-start;
    }

    .hero,
    .section,
    .page {
        width: min(100% - 28px, 1080px);
    }

    .hero {
        padding: 44px 0 42px;
    }

    .page {
        padding-top: 34px;
    }

    .grid {
        grid-template-columns: 1fr;
    }
}
