:root {
    color-scheme: light dark;
    --paper: #f5efe4;
    --card: #fffdf8;
    --ink: #27190e;
    --soft: #6e5948;
    --line: rgba(71, 45, 23, 0.2);
    --gold: #9a6514;
    --focus: #c7861f;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    background: var(--paper);
    color: var(--ink);
    line-height: 1.65;
    margin: 0;
}

a {
    color: var(--gold);
    text-underline-offset: 3px;
}

a:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

.skip-link {
    background: var(--ink);
    border-radius: 0 0 10px 10px;
    color: #fff;
    font-weight: 800;
    left: 16px;
    padding: 10px 14px;
    position: fixed;
    top: -80px;
    z-index: 10;
}

.skip-link:focus {
    top: 0;
}

.topbar,
main,
footer {
    margin: 0 auto;
    max-width: 880px;
    padding-inline: clamp(16px, 4vw, 34px);
}

.topbar {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    padding-block: 20px;
}

.brand {
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.1rem;
    font-weight: 800;
    text-decoration: none;
}

.brand span {
    color: var(--soft);
    display: block;
    font-family: system-ui, sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.back-link {
    font-weight: 800;
}

main {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 20px 56px rgba(53, 32, 15, 0.12);
    padding-block: clamp(24px, 5vw, 48px);
}

h1,
h2 {
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 7vw, 3.3rem);
    margin: 0 0 14px;
}

h2 {
    font-size: clamp(1.25rem, 4vw, 1.6rem);
    margin-top: 0;
}

.eyebrow {
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.lead {
    color: var(--soft);
    font-size: 1.08rem;
    max-width: 70ch;
}

section {
    border-top: 1px solid var(--line);
    margin-top: 30px;
    padding-top: 26px;
}

li + li {
    margin-top: 7px;
}

.updated {
    color: var(--soft);
    font-size: 0.88rem;
    margin-top: 32px;
}

footer {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    justify-content: center;
    padding-block: 24px 40px;
}

@media (max-width: 520px) {
    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    main {
        border-radius: 0;
        border-inline: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --paper: #100d0a;
        --card: #1c1712;
        --ink: #fff5e6;
        --soft: #d2bdab;
        --line: rgba(255, 238, 212, 0.18);
        --gold: #f0c06e;
        --focus: #ffd88c;
    }
}
