/* ---------------------------------------------------------------- tokens */
:root {
    --ink: #151515;
    --ink-soft: #4a4a4a;
    --ink-muted: #7a7a7a;
    --paper: #fbfaf7;
    --paper-2: #f1efe9;
    --rule: #d9d6cf;
    --accent: #a8261f;
    --serif: "Source Serif 4", "Source Serif 4 Fallback", Georgia, "Times New Roman", serif;
    --display: "Playfair Display", "Playfair Display Fallback", Georgia, serif;
    --sans: "Inter", "Inter Fallback", Arial, system-ui, sans-serif;
    --max: 1180px;
    --gutter: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--serif);
    font-size: 17px;
    line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; height: auto; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* -------------------------------------------------------------- masthead */
.masthead { border-bottom: 3px double var(--ink); background: var(--paper); }
.masthead__top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 18px var(--gutter) 10px;
    font-family: var(--sans);
    font-size: 12px;
    color: var(--ink-muted);
}
.masthead__brand {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(28px, 5vw, 46px);
    letter-spacing: -0.01em;
    color: var(--ink);
    text-align: center;
    white-space: nowrap;
}
.masthead__brand:hover { text-decoration: none; }
.masthead__tag { text-align: right; }
.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 18px;
    justify-content: center;
    padding: 8px var(--gutter);
    border-top: 1px solid var(--rule);
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.nav a { padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover { text-decoration: none; border-color: var(--rule); }
.nav a.active { border-color: var(--accent); color: var(--accent); }

/* -------------------------------------------------------------- shared */
main { padding: 28px 0 48px; }
.kicker {
    display: inline-block;
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 6px;
}
.meta { font-family: var(--sans); font-size: 12px; color: var(--ink-muted); margin: 0; }
.section-title {
    font-family: var(--display);
    font-size: 22px;
    margin: 0 0 18px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--ink);
}
.empty { color: var(--ink-muted); text-align: center; padding: 60px 0; }

/* ---------------------------------------------------------------- lead */
.lead {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 28px;
    padding-bottom: 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--rule);
}
.lead__image, .card__image { display: block; aspect-ratio: 3 / 2; background: var(--paper-2); overflow: hidden; }
.lead__image img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.lead__title { font-family: var(--display); font-size: clamp(26px, 3.4vw, 38px); line-height: 1.15; margin: 4px 0 12px; }
.lead__intro { font-size: 18px; color: var(--ink-soft); margin: 0 0 14px; }

/* ---------------------------------------------------------------- grid */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 24px;
}
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card__image img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.card__body { padding-top: 10px; }
.card__title { font-family: var(--display); font-size: 20px; line-height: 1.25; margin: 0 0 8px; }
.card--small .card__title { font-size: 16px; }
.card__intro { font-size: 15px; color: var(--ink-soft); margin: 0 0 8px; }

/* ----------------------------------------------------------- pagination */
.pagination-wrap { margin-top: 40px; }
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--rule);
    padding-top: 16px;
    font-family: var(--sans);
    font-size: 14px;
}
.pagination__link.is-disabled { color: var(--rule); }
.pagination__info { color: var(--ink-muted); }

/* -------------------------------------------------------------- article */
.article { max-width: 720px; margin: 0 auto; }
.article__header { text-align: left; margin-bottom: 22px; }
.breadcrumb { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 6px; }
.breadcrumb a:last-child { color: var(--accent); }
.footer__copy a { text-decoration: underline; }
.article__title { font-family: var(--display); font-size: clamp(30px, 4.5vw, 46px); line-height: 1.12; margin: 6px 0 14px; }
.article__intro { font-size: 20px; color: var(--ink-soft); margin: 0 0 14px; }
.article__hero, .article__inline { margin: 0 0 26px; }
.article__hero img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--paper-2); }
.article__inline { margin: 28px auto; max-width: 560px; clear: both; }
figcaption { font-family: var(--sans); font-size: 12px; color: var(--ink-muted); padding-top: 8px; }
.article__body { font-size: 18px; line-height: 1.7; }
.article__body p { margin: 0 0 1.25em; text-wrap: pretty; hyphens: auto; -webkit-hyphens: auto; }
.article__body > p:first-of-type::first-letter {
    font-family: var(--display);
    font-size: 3.2em;
    float: left;
    line-height: 0.85;
    padding: 6px 8px 0 0;
}
.article__body h2 {
    font-family: var(--display);
    font-size: 23px;
    line-height: 1.25;
    margin: 1.8em 0 0.55em;
    padding-top: 0.6em;
    border-top: 1px solid var(--rule);
    text-wrap: balance;
}
.article__body h2::before {
    content: "";
    display: block;
    width: 36px;
    height: 3px;
    background: var(--accent);
    margin: -0.6em 0 0.7em;
    position: relative;
    top: -1px;
}

/* Key facts box */
.keyfacts {
    margin: 0.4em 0 1.6em;
    padding: 16px 20px 14px;
    background: var(--paper-2);
    border-left: 4px solid var(--accent);
    font-family: var(--sans);
}
.keyfacts h3 {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
}
.keyfacts ul { margin: 0; padding-left: 18px; font-size: 15px; line-height: 1.5; }
.keyfacts li { margin-bottom: 4px; }
.keyfacts li::marker { color: var(--accent); }
@media (min-width: 900px) {
    /* Float beside body text only when a paragraph follows; otherwise use the full width. */
    .keyfacts:has(+ p) { float: right; width: 280px; margin: 0.3em 0 1em 28px; }
    .keyfacts:not(:has(+ p)) ul { columns: 2; column-gap: 32px; }
    .keyfacts:not(:has(+ p)) li { break-inside: avoid; }
}

/* Pull quote */
.pullquote {
    position: relative;
    clear: both;
    margin: 2em auto;
    padding: 1.4em 1.6em 1.2em 3em;
    max-width: 640px;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}
.pullquote::before {
    content: "\201C";
    position: absolute;
    left: 0.2em;
    top: 0.1em;
    font-family: var(--display);
    font-size: 4.2em;
    line-height: 1;
    color: var(--accent);
}
.pullquote p {
    margin: 0;
    font-family: var(--display);
    font-size: 24px;
    line-height: 1.35;
    font-weight: 600;
    font-style: italic;
    color: var(--ink);
}
.pullquote cite {
    display: block;
    margin-top: 0.7em;
    font-family: var(--sans);
    font-style: normal;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-muted);
}
.pullquote cite::before { content: "— "; color: var(--accent); }
@media (max-width: 600px) {
    .pullquote { padding-left: 2.2em; }
    .pullquote p { font-size: 20px; }
}
.more { margin-top: 56px; }

.page .article__body h2:first-child { margin-top: 0; }
.page .article__body p:first-of-type::first-letter { font: inherit; float: none; padding: 0; }
.footer__small a { color: inherit; text-decoration: underline; }

.error-page .article__header { padding: 24px 0 8px; }
.error-page .meta a { color: var(--accent); }

.notice {
    background: var(--paper-2);
    border-left: 4px solid var(--accent);
    padding: 20px 24px;
    margin: 24px 0;
}
.notice h2 { margin: 0 0 8px; font-family: var(--display); font-size: 22px; }
.notice a { color: var(--accent); }

/* --------------------------------------------------------------- footer */
.footer {
    border-top: 3px double var(--ink);
    background: var(--paper);
    padding: 28px 0 32px;
    font-family: var(--sans);
}
.footer__brand { font-family: var(--display); font-weight: 800; font-size: 22px; margin-bottom: 10px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; margin-bottom: 14px; }
.footer__copy { font-size: 12px; color: var(--ink-muted); margin: 0 0 6px; }
.footer__small { font-size: 10.5px; color: #a9a9a9; margin: 0; line-height: 1.4; }

/* ----------------------------------------------------------- responsive */
@media (max-width: 1180px) and (min-width: 601px) {
    .masthead__top { grid-template-columns: 1fr auto 1fr; }
    .masthead__tag { display: none; }
}
@media (max-width: 900px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .lead { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 600px) {
    body { font-size: 16px; }
    .masthead__top { grid-template-columns: 1fr; text-align: center; gap: 4px; }
    .masthead__tag { text-align: center; }
    .grid, .grid--4 { grid-template-columns: 1fr; }
    .article__body { font-size: 17px; }
}
