:root {
    color-scheme: light;
    --ink: #211719;
    --muted: #705f62;
    --paper: #fffaf2;
    --surface: #ffffff;
    --line: #decfca;
    --accent: #a3283e;
    --accent-dark: #72172b;
    --shell: 72rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.65;
}

a { color: var(--accent-dark); }
a:hover { color: var(--accent); }

.shell {
    width: min(calc(100% - 2rem), var(--shell));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    top: .75rem;
    left: .75rem;
    z-index: 10;
    transform: translateY(-200%);
    background: var(--ink);
    color: white;
    padding: .65rem 1rem;
}

.skip-link:focus { transform: translateY(0); }

.site-header {
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}

.header-inner,
.footer-inner,
.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.header-inner { min-height: 5rem; }

.brand {
    color: var(--ink);
    font-weight: 700;
    letter-spacing: .04em;
    text-decoration: none;
}

.site-nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--accent-dark); }

.hero,
.page-shell { padding-block: clamp(4rem, 9vw, 8rem); }
.hero { max-width: 58rem; margin-left: max(1rem, calc((100% - var(--shell)) / 2)); }
.page-shell { max-width: 52rem; }

h1,
h2,
h3 { line-height: 1.08; text-wrap: balance; }
h1 { margin: .25rem 0 1.5rem; font-size: clamp(3rem, 8vw, 6.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: 1.5rem; }

.eyebrow {
    margin: 0;
    color: var(--accent);
    font-family: ui-sans-serif, system-ui, sans-serif;
    font-size: .78rem;
    font-weight: 750;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.lede {
    max-width: 44rem;
    color: var(--muted);
    font-size: clamp(1.25rem, 2.6vw, 1.75rem);
}

.page-section { padding-block: 3.5rem; border-top: 1px solid var(--line); }
.section-heading { align-items: end; margin-bottom: 2rem; }
.section-heading h2 { margin: .35rem 0 0; }
.section-heading > p { max-width: 34rem; color: var(--muted); }

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
    gap: 1rem;
}

.card {
    min-height: 14rem;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--surface);
    box-shadow: 0 .75rem 2.5rem rgb(74 31 39 / .06);
}

.card h3 { margin: .35rem 0 .8rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card-kicker { color: var(--accent); font-size: .9rem; }
.text-link { display: inline-block; margin-top: 1rem; font-weight: 700; }

.page-header { margin-bottom: 3rem; }
.prose { max-width: 46rem; font-size: 1.08rem; }
.prose h2 { margin-top: 2.5rem; }
.prose p + p { margin-top: 1.3rem; }
.related-content { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--line); }

.button {
    display: inline-block;
    margin-top: 1.5rem;
    border-radius: 999px;
    background: var(--accent-dark);
    color: white;
    padding: .75rem 1.15rem;
    text-decoration: none;
}

.button:hover { background: var(--accent); color: white; }
.purchase-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.purchase-actions .button { margin-top: 0; }
.site-footer { margin-top: 4rem; border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner { min-height: 7rem; font-size: .92rem; }

@media (max-width: 42rem) {
    .header-inner,
    .footer-inner,
    .section-heading { align-items: flex-start; flex-direction: column; }
    .header-inner { padding-block: 1.25rem; }
    .footer-inner { padding-block: 2rem; gap: .25rem; }
    .section-heading { gap: .5rem; }
}
