:root {
    color: #242323;
    background: #f7f7f2;
    font-family: system-ui, sans-serif;
    --paper: #f7f7f2;
    --ink: #242323;
    --muted: #565550;
    --line: #c9c8bf;
    --accent: #9e342c;
    --cover: #213a31;
    --cover-muted: #dee9e1;
    --serif: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p { margin: 0; }

a { color: inherit; text-underline-offset: .2em; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.shell { width: min(100% - 3rem, 76rem); margin-inline: auto; }
.visually-hidden, .skip:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip:focus {
    position: absolute;
    z-index: 1;
    top: .75rem;
    left: .75rem;
    padding: .5rem 1rem;
    background: var(--paper);
}

.masthead {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .55rem;
    padding: clamp(1.75rem, 4vw, 3.15rem) 0 1.65rem;
    text-align: center;
}

.brand {
    font: bold clamp(2.6rem, 7.6vw, 5.4rem)/.97 var(--serif);
    letter-spacing: -.07em;
    text-decoration: none;
}

.brand span { color: var(--accent); }
.masthead-label, .kicker, .selection > h2 {
    font-size: .875rem;
    font-weight: 750;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.masthead-label { color: var(--muted); }
.site-nav { border-block: 1px solid var(--line); }
.site-nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0 clamp(.2rem, 1.4vw, 1.55rem);
    padding: .25rem 0;
    margin-block: 0;
    list-style: none;
}

.site-nav a {
    display: block;
    padding: .55rem .35rem;
    border-bottom: 2px solid transparent;
    font-size: .875rem;
    font-weight: 650;
    text-decoration: none;
}

.site-nav a:hover, .site-nav .nav-current { color: var(--accent); border-bottom-color: currentColor; }
.cover {
    display: grid;
    grid-template-columns: minmax(0, 1.95fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
    margin-block: 2rem clamp(2.5rem, 6vw, 4.5rem);
}

.headline {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 23rem;
    padding: clamp(1.5rem, 5vw, 3.75rem);
    color: #fcfcf6;
    background: var(--cover);
}

.headline a:hover { color: #f6ddab; }
.headline-label, .story-label {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem 1rem;
}

.kicker {
    width: fit-content;
    color: var(--accent);
    text-decoration: none;
}

.kicker:hover { text-decoration: underline; }
.headline .kicker { color: #f6ddab; }
.headline h2, .category-intro h1, .story h1 {
    font: bold clamp(2.6rem, 5.4vw, 4.9rem)/1.01 var(--serif);
    letter-spacing: -.055em;
    text-wrap: balance;
}

.headline h2 { margin-top: .9rem; }
.headline h2 a, .selection h3 a, .section-title h2 a, .card h3 a { text-decoration: none; }
.headline h2 a:hover, .selection h3 a:hover, .section-title h2 a:hover, .card h3 a:hover {
    text-decoration: underline;
    text-decoration-thickness: .055em;
}

.headline p {
    max-width: 39rem;
    margin-block: 1.1rem 1.6rem;
    color: var(--cover-muted);
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    line-height: 1.6;
}

.headline-link { font-weight: 650; }
.selection {
    display: flex;
    flex-direction: column;
    border-block: 2px solid var(--ink);
    padding: 1rem 0 .25rem;
}

.selection-list { display: grid; align-content: space-evenly; flex: 1; }
.selection-row { padding-block: 1.1rem; }
.selection-row + .selection-row { border-top: 1px solid var(--line); }
.selection h3 {
    margin-top: .3rem;
    font: bold clamp(1.25rem, 2.35vw, 1.75rem)/1.18 var(--serif);
    letter-spacing: -.028em;
}

.paid {
    display: inline-block;
    width: fit-content;
    padding: .2rem .45rem;
    border: 1px solid currentColor;
    font-size: .875rem;
    font-weight: 650;
    line-height: 1.25;
}

.rubric { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .5rem 1rem;
    padding-block: .8rem 1.15rem;
    border-top: 2px solid var(--ink);
}

.section-title h2 {
    font: bold clamp(1.65rem, 3.4vw, 2.5rem)/1.1 var(--serif);
    letter-spacing: -.04em;
}

.section-link {
    color: var(--accent);
    font-size: .9rem;
    font-weight: 650;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem clamp(1.2rem, 3vw, 2.25rem);
}

.card { border-top: 1px solid var(--line); padding-block: .9rem .25rem; }
.card .paid { margin-bottom: .45rem; }
.card h3 {
    font: bold clamp(1.38rem, 2.1vw, 1.75rem)/1.19 var(--serif);
    letter-spacing: -.03em;
    text-wrap: pretty;
}

.card p { color: var(--muted); line-height: 1.6; margin-top: .55rem; }

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    padding-top: 1.35rem;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.6;
}

.category-intro { padding-block: clamp(2rem, 5vw, 3.7rem); }
.category-intro p {
    margin-top: 1rem;
    max-width: 45ch;
    color: var(--muted);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.55;
}

.category-list .cards { row-gap: 1.65rem; }
.story { max-width: 48rem; margin-inline: auto; }
.story-header {
    padding-block: clamp(2rem, 6vw, 4rem) 1.6rem;
    border-bottom: 1px solid var(--line);
}

.story h1 { margin-top: .8rem; }
.story .lead {
    margin-block: 1rem 1.35rem;
    color: var(--muted);
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    line-height: 1.55;
}

.story time { color: var(--muted); font-size: .875rem; }
.prose {
    max-width: 68ch;
    padding-block: 1.55rem clamp(2.25rem, 6vw, 4.5rem);
    font-size: clamp(1.07rem, 1.7vw, 1.2rem);
    line-height: 1.75;
}

.prose h2 {
    margin: 1.65rem 0 .55rem;
    font: bold clamp(1.5rem, 2.8vw, 2rem)/1.2 var(--serif);
    letter-spacing: -.025em;
}

.prose h2:first-child { margin-top: 0; }
.prose p + p { margin-top: 1rem; }
.prose a { color: var(--accent); }
.story-related { margin-inline: auto; max-width: 48rem; }
.story-related .card h3 { font-size: 1.25rem; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 1.5rem 2rem;
}

.footer-inner .brand { font-size: 1.65rem; }
.footer-inner > a:last-child { color: var(--muted); font-size: .9rem; }
.footer-inner > a:last-child:hover { color: var(--accent); }

@media (max-width: 52rem) {
    .cover { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
    .headline { min-height: auto; }
    .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 39rem) {
    .shell { width: calc(100% - 2rem); }
    .masthead { padding-block: 1.65rem 1.25rem; }
    .site-nav a { padding-block: .5rem; }
    .cover { display: block; margin-top: 1.15rem; }
    .headline { margin-bottom: 1.5rem; }
    .selection-row { padding-block: .85rem; }
    .cards { grid-template-columns: minmax(0, 1fr); gap: .8rem; }
    .category-list .cards { row-gap: 1rem; }
    .section-title { padding-bottom: .85rem; }
}
