@import url('https://fonts.googleapis.com/css2?family=Libre+Franklin:wght@400;500;600;700;800&family=Source+Serif+4:ital,wght@0,400;0,600;1,400&display=swap');

* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #2e2e2e;
    -webkit-font-smoothing: antialiased;
}

.hero,
main > section {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* ====== Hero ====== */
.hero {
    padding-top: 72px;
    padding-bottom: 28px;
    border-bottom: 1px solid #d8d8d8;
}

.kicker {
    font-family: "Libre Franklin", sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #888;
    margin: 0 0 24px 0;
}

h1 {
    font-family: "Libre Franklin", sans-serif;
    font-weight: 800;
    font-size: 64px;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 20px 0;
    color: #111;
}

.dek {
    font-family: "Source Serif 4", serif;
    font-style: italic;
    font-size: 22px;
    line-height: 1.45;
    color: #555;
    margin: 0 0 28px 0;
    max-width: 640px;
}

.byline {
    font-family: "Libre Franklin", sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #777;
    margin: 0 0 0 14px;
}

.hero-img {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 8px;
    margin-bottom: 0;
}

/* ====== Sections ====== */
main > section {
    padding-top: 56px;
    padding-bottom: 8px;
}

section.intro {
    padding-top: 56px;
}

/* Clearfix so floated charts stay contained inside the section */
.intro::after {
    content: "";
    display: table;
    clear: both;
}

p {
    font-family: "Source Serif 4", serif;
    font-size: 19px;
    line-height: 1.65;
    margin: 0 0 22px 0;
    color: #2e2e2e;
}

/* ====== Signposts ====== */
.signpost {
    font-family: "Libre Franklin", sans-serif;
    font-style: italic;
    font-weight: 500;
    font-size: 16px;
    color: #666;
    margin: 0 0 12px 0;
    letter-spacing: 0.01em;
}

/* ====== Images ====== */
img {
    display: block;
    width: 100%;
    height: auto;
    margin: 56px auto 32px auto;
}

/* ====== Stretched line chart (chart 1) ====== */
.chart-stretched {
    width: 100%;
    aspect-ratio: 1.4 / 1;
    object-fit: fill;
}

/* ====== Magazine-style float wrap for narrow charts ====== */
.chart-float-left {
    float: left;
    width: 60%;
    max-width: 420px;
    margin: 6px 28px 14px 0;
    clear: both;
}

.chart-float-right {
    float: right;
    width: 60%;
    max-width: 420px;
    margin: 6px 0 14px 28px;
    clear: both;
}

/* ====== Closing ====== */
.closing {
    padding-top: 64px;
    padding-bottom: 24px;
    clear: both;
}

.closing h2 {
    font-family: "Libre Franklin", sans-serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #111;
    margin: 0 0 16px 0;
}

.callout {
    font-family: "Source Serif 4", serif;
    background: #f0f0f0;
    border-left: 3px solid #2e2e2e;
    padding: 18px 22px;
    font-size: 17px;
    line-height: 1.55;
    margin-top: 32px;
}

/* ====== Sources ====== */
.sources {
    padding-top: 56px;
    padding-bottom: 80px;
    border-top: 1px solid #e0e0e0;
    margin-top: 64px;
}

.sources h2 {
    font-family: "Libre Franklin", sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin: 0 0 14px 0;
}

.sources p,
.sources li {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

.references-heading {
    font-family: "Libre Franklin", sans-serif;
    font-weight: 600;
    color: #2e2e2e !important;
    margin-top: 24px;
    margin-bottom: 8px;
    font-size: 15px !important;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.ref-list {
    padding-left: 18px;
    margin: 0 0 24px 0;
}

.ref-list li {
    margin-bottom: 8px;
    font-family: "Source Serif 4", serif;
}

.footer-note {
    font-family: "Libre Franklin", sans-serif;
    font-size: 12px !important;
    color: #999 !important;
    margin-top: 32px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ====== Links ====== */
a {
    color: #2e2e2e;
    text-decoration: underline;
    text-decoration-color: #999;
    text-underline-offset: 3px;
}

a:hover {
    text-decoration-color: #2e2e2e;
}

/* ====== Mobile ====== */
@media (max-width: 640px) {
    h1 { font-size: 44px; }
    .dek { font-size: 18px; }
    p { font-size: 17px; }
    .closing h2 { font-size: 24px; }
    .hero { padding-top: 56px; }

    /* Float charts stack to full width on mobile */
    .chart-float-left,
    .chart-float-right {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 16px auto 24px auto;
    }
}    background-color: #000000;
    margin-top: 18px;
    margin-bottom: 30px;
}

/* Images */
img {
    display: block;
    padding: 24px 0;
}

/* Links */
a {
    text-decoration: underline;
}
