/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Base ── */
:root {
    --text: #1a1a1a;
    --muted: #666;
    --faint: #999;
    --border: #ddd;
    --serif: Georgia, 'Times New Roman', serif;
    --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, sans-serif;
    --article-width: 820px;
    --gutter: clamp(20px, 5vw, 48px);
    --gap-sm: clamp(20px, 3vw, 32px);
    --gap-md: clamp(28px, 4vw, 48px);
    --gap-lg: clamp(56px, 8vh, 96px);
}

html { font-size: 18px; }

body {
    font-family: var(--serif);
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text);
    background: #fff;
}

/* ── Layout ── */
.article-wrap {
    max-width: var(--article-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ── Story header ── */
.story-header {
    padding: clamp(80px, 14vh, 140px) 0 clamp(16px, 2vh, 28px);
    margin-bottom: var(--gap-md);
    text-align: center;
}

.story-title {
    font-family: var(--serif);
    font-size: clamp(48px, 9vw, 96px);
    font-weight: 400;
    font-style: italic;
    line-height: 1.0;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.story-subtitle {
    font-family: var(--serif);
    font-size: clamp(15px, 1.6vw, 20px);
    font-weight: 400;
    color: var(--muted);
    line-height: 1.4;
    margin-bottom: 28px;
}

.story-rule {
    width: 40px;
    height: 1px;
    background: var(--border);
    margin: 0 auto 20px;
}

.story-byline {
    font-family: var(--sans);
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--faint);
}

/* ── Shared caption style ── */
.caption {
    font-family: var(--sans);
    font-size: 0.7rem;
    color: var(--faint);
    line-height: 1.5;
    padding-top: 6px;
    margin-top: 0;
}

/* ── Hero image ── */
.hero-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    margin-bottom: 0;
}

/* figcaption inherits caption style */
figcaption {
    font-family: var(--sans);
    font-size: 0.7rem;
    color: var(--faint);
    line-height: 1.5;
    padding-top: 6px;
    margin-top: 0;
}

/* ── Section headers ── */
.section-header {
    margin: var(--gap-lg) 0 var(--gap-md);
}

.section-header img {
    width: 100%;
    aspect-ratio: 16/7;
    object-fit: cover;
    object-position: bottom;
    display: block;
}

/* Costs section: keep image centered, not bottom-anchored */
.section-header--center img {
    object-position: center;
}

.section-title {
    font-family: var(--serif);
    font-size: clamp(22px, 3.5vw, 40px);
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0;
    line-height: 1.2;
    border-left: 2px solid var(--text);
    padding-left: 18px;
    margin-top: 18px;
    margin-bottom: 8px;
}

.section-caption {
    font-family: var(--sans);
    font-size: 0.7rem;
    color: var(--faint);
    line-height: 1.5;
    padding-left: 20px;
}

/* ── Body text ── */
p {
    margin-bottom: 1.5em;
}

/* ── Figures ── */
figure {
    margin: var(--gap-md) 0;
}

figure img {
    width: 100%;
    display: block;
}

/* ── Photo grids ── */
.photo-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin: var(--gap-md) 0 8px;
}

.photo-pair img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.photo-trio {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4px;
    height: clamp(180px, 30vw, 300px);
    margin: var(--gap-md) 0 8px;
}

.photo-trio img,
.photo-trio .trio-cell {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.trio-cell {
    position: relative;
    overflow: hidden;
}

.trio-cell img {
    position: absolute;
    top: 50%; left: 50%;
    height: 100%; width: auto;
    transform: translate(-50%, -50%) rotate(90deg);
}

/* ── Quotes ── */
blockquote.spoken {
    margin: var(--gap-md) 0;
    padding: 0 0 0 28px;
    max-width: 720px;
    background: none;
}

blockquote.spoken p {
    font-size: 1.05rem;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 14px;
}

blockquote.spoken cite {
    font-family: var(--sans);
    font-size: 0.55rem;
    color: var(--muted);
    font-style: normal;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    display: block;
}

/* ── Subsection headings ── */
h3.subsection {
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin: var(--gap-lg) 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

/* ── Stat rows ── */
.stat-row {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    margin: 0 0 var(--gap-sm);
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.stat { flex: 1 1 120px; }

.stat-n {
    font-family: var(--sans);
    font-size: clamp(20px, 2.8vw, 28px);
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-family: var(--sans);
    font-size: 0.67rem;
    color: var(--muted);
    line-height: 1.4;
}

/* ── Coda ── */
.story-coda {
    margin: var(--gap-lg) 0;
    padding: clamp(28px, 5vw, 48px) 0;
}

.story-coda blockquote {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
    padding: 0;
    border: none;
    background: none;
}

.story-coda blockquote::before {
    display: none;
}

.story-coda blockquote p {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 18px;
}

.story-coda blockquote cite {
    font-family: var(--sans);
    font-size: 0.55rem;
    color: var(--muted);
    font-style: normal;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.coda-closer {
    font-family: var(--serif);
    font-size: 0.95rem;
    color: var(--muted);
    margin-top: 36px;
    text-align: center;
    line-height: 1.9;
    letter-spacing: 0.01em;
}

/* ── Footer ── */
footer {
    margin-top: var(--gap-lg);
    padding: clamp(24px, 4vh, 40px) 0;
    border-top: 1px solid var(--border);
}

footer p {
    font-family: var(--sans);
    font-size: 0.72rem;
    color: var(--faint);
    line-height: 1.6;
    margin-bottom: 0.4em;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .photo-pair { grid-template-columns: 1fr; }
    .photo-trio { grid-template-columns: 1fr 1fr; height: auto; }
    .photo-trio .trio-cell, .photo-trio img { aspect-ratio: 1; height: auto; }
    .stat-row { gap: 16px; }
}
