/* =========================================
   THE INFINITE WHY
   Main stylesheet
   ========================================= */


/* ---------- Colour and spacing system ---------- */

:root {
    --black: #070707;
    --soft-black: #111111;
    --warm-white: #f7f4ee;
    --paper: #fffdf8;
    --gold: #c99a41;
    --gold-light: #e5c27b;
    --text-dark: #1d1d1d;
    --text-muted: #68645d;
    --border-light: #dcd5c9;

    --content-width: 1200px;
    --reading-width: 760px;
    --page-padding: 24px;
}


/* ---------- Basic reset ---------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--warm-white);
    color: var(--text-dark);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}


/* ---------- Reusable page container ---------- */

.section-inner {
    width: min(
        calc(100% - (var(--page-padding) * 2)),
        var(--content-width)
    );
    margin-inline: auto;
}


/* ---------- Navigation ---------- */

.site-header {
    background: var(--black);
}

.main-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(
        calc(100% - (var(--page-padding) * 2)),
        var(--content-width)
    );
    min-height: 88px;
    margin-inline: auto;
    gap: 32px;
}

.brand-link {
    flex: 0 0 auto;
}

.navigation-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.navigation-links {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.navigation-links a {
    color: var(--warm-white);
    font-size: 0.88rem;
    letter-spacing: 0.05em;
    transition:
        color 180ms ease,
        border-color 180ms ease;
}

.navigation-links a:hover,
.navigation-links a:focus-visible {
    color: var(--gold-light);
}

.menu-button {
    display: none;
    border: 1px solid var(--gold);
    background: transparent;
    color: var(--warm-white);
    padding: 8px 14px;
    cursor: pointer;
}


/* ---------- Branded homepage header ---------- */

.brand-header {
   display: flex;
    justify-content: center;
    padding: 10px var(--page-padding) 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-header img {
      width: min(100%, 1000px);
}


/* ---------- Shared editorial typography ---------- */

h1,
h2,
h3 {
    margin-top: 0;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.15;
    font-weight: 500;
}

h1 {
    font-size: clamp(2.3rem, 5vw, 5rem);
}

h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
}

h3 {
    font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.section-label,
.story-topic {
    margin-bottom: 10px;
    color: var(--gold);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}


/* ---------- Featured story ---------- */

.featured-story {
    padding: 90px 0;
    background: var(--paper);
    border-bottom: 1px solid var(--border-light);
}

.featured-story .section-inner {
    max-width: var(--reading-width);
    margin-left: max(
        var(--page-padding),
        calc((100% - var(--content-width)) / 2)
    );
}

.featured-story p:not(.section-label) {
    max-width: 650px;
    color: var(--text-muted);
    font-size: 1.12rem;
}

.text-link {
    display: inline-block;
    margin-top: 18px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--gold);
    color: var(--text-dark);
    font-weight: 700;
}

.text-link:hover,
.text-link:focus-visible {
    color: var(--gold);
}


/* ---------- Publication sections ---------- */

.publication-section {
    padding: 90px 0;
}

.publication-section:nth-of-type(even) {
    background: var(--paper);
}

.publication-section > .section-inner > p:not(.section-label) {
    max-width: 720px;
    margin-bottom: 42px;
    color: var(--text-muted);
    font-size: 1.08rem;
}


/* ---------- Story grid ---------- */

.story-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}

.story-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding-top: 18px;
    border-top: 1px solid var(--text-dark);
}

.story-image-placeholder {
    aspect-ratio: 16 / 10;
    margin-bottom: 24px;
    background:
        linear-gradient(
            135deg,
            #ded8cd,
            #bdb5a8
        );
}

.story-card h3 {
    margin-bottom: 12px;
}

.story-card p:last-child {
    margin-top: auto;
    color: var(--text-muted);
}


/* ---------- Topic section ---------- */

/* ---------- Search ---------- */

.search-section {
    padding: 5rem 0;
    background: #141414;
}

.site-search-form {
    max-width: 46rem;
    margin-top: 1.75rem;
}

.site-search-form label {
    display: block;
    margin-bottom: .65rem;
    color: var(--gold, #d9b85f);
    font-size: .85rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.site-search-input {
    width: 100%;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(217, 184, 95, .65);
    border-radius: 0;
    background: #0b0b0b;
    color: #fff;
    font: inherit;
}

.site-search-input:focus {
    outline: 2px solid var(--gold, #d9b85f);
    outline-offset: 3px;
}

.search-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.search-guidance {
    grid-column: 1 / -1;
    color: rgba(255, 255, 255, .72);
}

.topics-section {
    padding: 90px 0;
    background: var(--soft-black);
    color: var(--warm-white);
}

.topic-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.topic-links a {
    padding: 10px 18px;
    border: 1px solid rgba(229, 194, 123, 0.65);
    color: var(--warm-white);
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    transition:
        background-color 180ms ease,
        color 180ms ease;
}

.topic-links a:hover,
.topic-links a:focus-visible {
    background: var(--gold);
    color: var(--black);
}



/* ---------- Expanded topic chips ---------- */

.topic-links .topic-chip {
    padding: 10px 18px;
    border: 1px solid rgba(229, 194, 123, 0.4);
    color: #c9c3b9;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
}

.topic-links .topic-chip-upcoming {
    cursor: default;
}

/* ---------- Social links ---------- */

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .75rem;
    margin: 1.25rem 0;
}

.social-links a,
.social-link-pending {
    display: inline-flex;
    width: 2.35rem;
    height: 2.35rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(217, 184, 95, .65);
    border-radius: 50%;
    color: var(--gold, #d9b85f);
}

.social-links a:hover,
.social-links a:focus-visible {
    background: var(--gold, #d9b85f);
    color: #0b0b0b;
}

.social-link-pending {
    opacity: .55;
    cursor: default;
}

.social-links svg {
    width: 1.15rem;
    height: 1.15rem;
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 1.6;
}

.social-links svg text {
    fill: currentColor;
    stroke: none;
    font-family: Arial, sans-serif;
    font-size: 19px;
    font-weight: 700;
}

.social-icon-dot {
    fill: currentColor;
    stroke: none;
}

/* ---------- Simple placeholder pages ---------- */

.placeholder-page {
    min-height: 52vh;
    padding: 6rem 0;
}

.placeholder-page h1 {
    max-width: 18ch;
}

.topic-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

/* ---------- Footer ---------- */

.site-footer {
    padding: 58px 0;
    background: var(--black);
    color: var(--warm-white);
    text-align: center;
}

.footer-logo {
    width: 92px;
    margin: 0 auto 20px;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
    margin: 26px 0;
}

.site-footer a {
    color: var(--gold-light);
}

.site-footer p:last-child {
    color: #aaa39a;
    font-size: 0.84rem;
}


/* ---------- Keyboard accessibility ---------- */

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--gold-light);
    outline-offset: 4px;
}


/* ---------- Tablet layout ---------- */

@media (max-width: 900px) {

    .story-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .story-card:last-child {
        grid-column: 1 / -1;
        max-width: calc(50% - 16px);
    }

    .navigation-links {
        gap: 18px;
    }
}


/* ---------- Mobile layout ---------- */

@media (max-width: 700px) {

    :root {
        --page-padding: 18px;
    }

    .main-navigation {
        flex-wrap: wrap;
        padding-block: 12px;
    }

    .menu-button {
        display: block;
    }

    .navigation-links {
        display: none;
        flex-basis: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 12px 0 6px;
    }

    .navigation-links.is-open {
        display: flex;
    }

    .navigation-links li {
        width: 100%;
    }

    .navigation-links a {
        display: block;
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .brand-header {
        padding-top: 26px;
        padding-bottom: 32px;
    }

    .featured-story,
    .publication-section,
    .topics-section {
        padding: 62px 0;
    }

    .featured-story .section-inner {
        margin-inline: auto;
    }

    .story-grid {
        grid-template-columns: 1fr;
    }

    .story-card:last-child {
        grid-column: auto;
        max-width: none;
    }
}

/* =========================================
   ARTICLE PAGES
   ========================================= */

.article-page {
    background: var(--paper);
}

.article-header {
    padding: 64px var(--page-padding) 48px;
    text-align: center;
}

.article-header-inner {
    width: min(100%, 980px);
    margin-inline: auto;
}

.article-series {
    display: inline-block;
    margin-bottom: 22px;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.article-header h1 {
    margin-bottom: 26px;
    font-size: clamp(2.8rem, 6vw, 5.8rem);
}

.article-standfirst {
    max-width: 820px;
    margin: 0 auto;
    color: var(--text-muted);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.25rem, 2.4vw, 1.75rem);
    line-height: 1.45;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 32px;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.article-hero {
    width: min(
        calc(100% - (var(--page-padding) * 2)),
        1280px
    );
    margin: 0 auto 64px;
}

.article-hero img {
    width: 100%;
    max-height: 650px;
    object-fit: cover;
    object-position: center;
}

.article-hero figcaption,
.article-side-figure figcaption {
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.5;
}

.article-hero figcaption a,
.article-side-figure figcaption a {
    color: #8c6420;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-body {
    width: min(
        calc(100% - (var(--page-padding) * 2)),
        var(--reading-width)
    );
    margin-inline: auto;
    padding-bottom: 100px;
}

.article-body p {
    margin: 0 0 1.5em;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.08rem, 1.5vw, 1.25rem);
    line-height: 1.82;
}

.article-opening {
    font-size: clamp(1.25rem, 2vw, 1.55rem) !important;
}

.article-emphasis {
    margin: 50px 0 !important;
    color: #6e501f;
    font-size: clamp(1.55rem, 3vw, 2.3rem) !important;
    font-style: italic;
    line-height: 1.4 !important;
    text-align: center;
}

.article-body h2 {
    margin-top: 68px;
    margin-bottom: 24px;
    font-size: clamp(2rem, 3.4vw, 2.85rem);
}

.article-split {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
    gap: 42px;
    align-items: start;
    width: min(1080px, calc(100vw - (var(--page-padding) * 2)));
    margin: 42px 50%;
    transform: translateX(-50%);
}

.article-side-figure {
    margin: 0;
}

.article-side-figure img {
    width: 100%;
}

.article-body blockquote {
    margin: 38px 0;
    padding: 24px 32px;
    border-left: 3px solid var(--gold);
    color: #5f461c;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    font-style: italic;
    line-height: 1.45;
}

.article-reflection,
.article-takeaway {
    padding: 40px 48px;
}

.article-reflection {
    border: 1px solid var(--border-light);
    background: #f5efe3;
}

.article-takeaway {
    background: var(--soft-black);
    color: var(--warm-white);
}

.article-reflection h2,
.article-takeaway h2 {
    margin-top: 0;
}

.article-takeaway h2 {
    color: var(--gold-light);
}

.article-sources,
.article-credits {
    margin-top: 72px;
    padding-top: 38px;
    border-top: 1px solid var(--border-light);
}

.article-sources h2,
.article-credits h2 {
    margin-top: 0;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.article-sources li {
    margin-bottom: 16px;
    color: var(--text-muted);
    line-height: 1.65;
}

.article-credits p {
    color: var(--text-muted);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
}


/* ---------- Article tablet and mobile layout ---------- */

@media (max-width: 800px) {

    .article-header {
        padding-top: 62px;
    }

    .article-split {
        grid-template-columns: 1fr;
        width: 100%;
        margin: 42px 0;
        transform: none;
    }

    .article-side-figure {
        max-width: 420px;
        margin-inline: auto;
    }

    .article-reflection,
    .article-takeaway {
        padding: 30px;
    }
}

@media (max-width: 520px) {

    .article-header h1 {
        max-width: 1050px;
    margin: 0 auto 26px;
    font-size: clamp(2.8rem, 5vw, 4.9rem);
}

    .article-hero {
        width: 100%;
    }

    .article-hero figcaption {
        padding-inline: var(--page-padding);
    }

    .article-body blockquote {
        padding: 20px;
    }

    .article-reflection,
    .article-takeaway {
        margin-inline: calc(var(--page-padding) * -1);
        padding-inline: var(--page-padding);
    }
}

/* =========================================
   ARTICLE REFINEMENTS
   ========================================= */

/* Main article heading */
.article-header {
    padding: 58px var(--page-padding) 42px;
}

.article-header-inner {
    max-width: 1000px;
}

.article-header h1 {
    max-width: 900px;
    margin: 0 auto 22px;
    font-size: clamp(2.6rem, 4.4vw, 4.4rem);
    line-height: 1.06;
}

.article-standfirst {
    max-width: 780px;
    font-size: clamp(1.15rem, 1.8vw, 1.45rem);
    line-height: 1.45;
}

.article-meta {
    margin-top: 24px;
}


/* Hero image */
.article-hero {
    margin-bottom: 48px;
}

.article-hero img {
    max-height: 620px;
}


/* Main reading column */
.article-body {
    max-width: 820px;
}

.article-body p {
    margin-bottom: 1.25em;
    font-size: clamp(1.05rem, 1.25vw, 1.16rem);
    line-height: 1.72;
}


/* Opening paragraph */
.article-opening {
    font-size: clamp(1.08rem, 1.4vw, 1.22rem) !important;
}


/* The "People sitting together..." line */
.article-emphasis {
    margin: 28px 0 42px !important;
    font-size: clamp(1.3rem, 2vw, 1.7rem) !important;
    line-height: 1.4 !important;
    text-align: left;
}


/* Article subheadings */
.article-body h2 {
    margin-top: 52px;
    margin-bottom: 20px;
    font-size: clamp(1.8rem, 3vw, 2.55rem);
    line-height: 1.15;
}


/* Molly Melching section */
.article-split {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 38px;
    width: min(980px, calc(100vw - (var(--page-padding) * 2)));
    margin-top: 32px;
    margin-bottom: 38px;
}

.article-side-figure {
    width: 260px;
    justify-self: end;
}

.article-side-figure img {
    width: 100%;
    height: auto;
}


/* Captions */
.article-hero figcaption,
.article-side-figure figcaption {
    margin-top: 8px;
    font-size: 0.74rem;
    line-height: 1.4;
}


/* Reflection sections */
.article-reflection,
.article-takeaway {
    margin-top: 52px;
    padding: 32px 36px;
}

.article-reflection h2,
.article-takeaway h2 {
    margin: 0 0 22px;
    font-size: clamp(1.8rem, 3vw, 2.45rem);
}

.article-reflection p,
.article-takeaway p {
    margin-bottom: 1.15em;
    font-size: 1.06rem;
    line-height: 1.65;
}


/* Questions inside "Why this story matters" */
.article-body blockquote {
    margin: 22px 0 26px;
    padding: 12px 0 12px 24px;
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    line-height: 1.4;
}


/* Sources and credits */
.article-sources,
.article-credits {
    margin-top: 52px;
    padding-top: 30px;
}

.article-sources h2,
.article-credits h2 {
    font-size: clamp(1.6rem, 2.5vw, 2.1rem);
}

.article-sources li {
    margin-bottom: 10px;
    line-height: 1.5;
}

.article-credits p {
    margin-bottom: 12px;
}


/* Mobile */
@media (max-width: 800px) {

    .article-header {
        padding-top: 44px;
    }

    .article-split {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .article-side-figure {
        width: min(260px, 100%);
        justify-self: start;
        margin: 16px 0 8px;
    }

    .article-reflection,
    .article-takeaway {
        padding: 28px;
    }
}

/* =========================================
   ARTICLE FLOW FIXES
   ========================================= */

/* Keep ordinary section headings restrained */
.article-body h2 {
    margin-top: 44px;
    margin-bottom: 18px;
    font-size: clamp(1.65rem, 2.4vw, 2.2rem);
    line-height: 1.18;
}

/* Keep the Molly Melching section aligned with the article */
.article-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 30px;

    width: 100%;
    margin: 28px 0 34px;
    transform: none;

    align-items: start;
}

/* Make sure the text does not stretch strangely */
.article-split-text {
    min-width: 0;
}

/* Small archival image, not a feature image */
.article-side-figure {
    width: 220px;
    margin: 0;
    justify-self: end;
}

.article-side-figure img {
    display: block;
    width: 220px;
    height: auto;
}

/* Keep the visible caption short and neat */
.article-side-figure figcaption {
    margin-top: 7px;
    font-size: 0.72rem;
    line-height: 1.35;
}

/* Reduce spacing around major sections */
.article-body h2 + p {
    margin-top: 0;
}

.article-body p {
    margin-bottom: 1.1em;
}

/* Keep the opening emphasis connected to the article */
.article-emphasis {
    margin: 20px 0 34px !important;
    font-size: clamp(1.2rem, 1.8vw, 1.5rem) !important;
    text-align: left;
}

/* Mobile */
@media (max-width: 760px) {
    .article-split {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .article-side-figure {
        width: min(220px, 100%);
        justify-self: start;
    }

    .article-side-figure img {
        width: 100%;
    }
}

/* Final adjustment — reflection box spacing */
.article-reflection {
    padding: 26px 30px;
}

/* Final adjustment — takeaway text weight */
.article-takeaway p {
    font-weight: 400;
}

/* =========================================
   FINAL ARTICLE TYPOGRAPHY + SPACING CLEANUP
   ========================================= */


/* Main article text */
.article-body p {
    font-size: 1rem;
    line-height: 1.62;
    margin-bottom: 1em;
}


/* All normal article section headings */
.article-body h2 {
    font-size: clamp(1.45rem, 2vw, 1.8rem);
    line-height: 1.2;
    margin-top: 38px;
    margin-bottom: 15px;
    font-weight: 400;
}


/* Opening statement:
   keep it different, but stop making it look like another design element */
.article-emphasis {
    margin: 18px 0 30px !important;
    font-size: 1.08rem !important;
    line-height: 1.5 !important;
    font-style: italic;
    color: #3d3933;
    text-align: left;
}


/* Molly section */
.article-split {
    margin-top: 24px;
    margin-bottom: 30px;
    gap: 28px;
}

.article-side-figure {
    width: 200px;
}

.article-side-figure img {
    width: 200px;
}

.article-side-figure figcaption {
    margin-top: 6px;
    font-size: 0.68rem;
    line-height: 1.3;
}


/* Hero caption */
.article-hero figcaption {
    margin-top: 6px;
    font-size: 0.7rem;
    line-height: 1.35;
}


/* WHY THIS STORY MATTERS */
.article-reflection {
    margin-top: 36px;
    margin-bottom: 26px;
    padding: 24px 28px;
}

.article-reflection h2 {
    margin: 0 0 16px;
    font-size: 1.65rem;
}

.article-reflection p {
    font-size: 0.98rem;
    line-height: 1.58;
    margin-bottom: 0.85em;
}

.article-reflection blockquote,
.article-body .article-reflection blockquote {
    margin: 16px 0 20px;
    padding: 8px 0 8px 18px;
    font-size: 1.12rem;
    line-height: 1.45;
}


/* A THOUGHT FOR TODAY */
.article-takeaway {
    margin-top: 26px;
    margin-bottom: 34px;
    padding: 25px 28px;
}

.article-takeaway h2 {
    margin: 0 0 16px;
    font-size: 1.65rem;
}

.article-takeaway p {
    font-size: 0.98rem;
    line-height: 1.58;
    margin-bottom: 0.85em;
    font-weight: 400;
}

/* In case the HTML contains strong tags */
.article-takeaway strong {
    font-weight: 400;
}


/* SOURCES */
.article-sources {
    margin-top: 32px;
    padding-top: 25px;
}

.article-sources h2 {
    font-size: 1.45rem;
    margin: 0 0 16px;
}

.article-sources ul {
    margin-top: 0;
}

.article-sources li {
    margin-bottom: 7px;
    font-size: 0.9rem;
    line-height: 1.45;
}


/* IMAGE CREDITS */
.article-credits {
    margin-top: 30px;
    padding-top: 25px;
}

.article-credits h2 {
    font-size: 1.45rem;
    margin: 0 0 14px;
}

.article-credits p {
    margin: 0 0 7px;
    font-size: 0.88rem;
    line-height: 1.4;
}


/* Slightly tighter spacing before the footer */
.article-credits {
    margin-bottom: 34px;
}


/* Mobile */
@media (max-width: 760px) {

    .article-body p {
        font-size: 1rem;
    }

    .article-body h2 {
        font-size: 1.45rem;
    }

    .article-reflection,
    .article-takeaway {
        padding: 22px;
    }

    .article-side-figure {
        width: min(200px, 100%);
    }

    .article-side-figure img {
        width: 100%;
    }
}

/* =========================================
   ARTICLE FLOW REFINEMENT
   ========================================= */


/* Opening emphasis:
   same scale and colour as the surrounding prose */
.article-emphasis {
    font-size: 1rem !important;
    line-height: 1.62 !important;
    color: inherit !important;
    margin: 18px 0 28px !important;
    font-style: italic;
    text-align: left;
}


/* -----------------------------------------
   MOLLY MELCHING IMAGE
   Turn rigid columns into editorial wrapping
   ----------------------------------------- */

.article-split {
    display: block !important;
    margin-top: 18px !important;
    margin-bottom: 18px !important;
}


/* Let the photograph sit inside the prose */
.article-side-figure {
    float: right !important;
    width: 175px !important;
    margin: 4px 0 14px 26px !important;
}


/* Do not enlarge the original image */
.article-side-figure img {
    display: block;
    width: 175px !important;
    height: auto !important;
    max-width: 100%;
}


/* Tiny, unobtrusive caption */
.article-side-figure figcaption {
    margin-top: 5px !important;
    font-size: 0.64rem !important;
    line-height: 1.25 !important;
    color: #6a655e;
}


/* Allow following content to rise naturally instead
   of reserving a large empty two-column row */
.article-split::after {
    content: "";
    display: table;
    clear: none;
}


/* -----------------------------------------
   NORMAL ARTICLE HEADINGS
   ----------------------------------------- */

.article-body h2 {
    font-size: 1.45rem !important;
    line-height: 1.22 !important;
    margin-top: 30px !important;
    margin-bottom: 12px !important;
    font-weight: 400;
}


/* -----------------------------------------
   REFLECTION BOX
   ----------------------------------------- */

.article-reflection {
    margin-top: 30px !important;
    margin-bottom: 22px !important;
    padding: 22px 26px !important;
}

.article-reflection h2 {
    font-size: 1.45rem !important;
    margin: 0 0 14px !important;
}

.article-reflection p {
    font-size: 0.96rem !important;
    line-height: 1.55 !important;
    margin: 0 0 12px !important;
}

.article-reflection blockquote,
.article-body .article-reflection blockquote {
    font-size: 1rem !important;
    line-height: 1.45 !important;
    margin: 14px 0 16px !important;
    padding: 5px 0 5px 16px !important;
}


/* -----------------------------------------
   THOUGHT FOR TODAY
   ----------------------------------------- */

.article-takeaway {
    margin-top: 20px !important;
    margin-bottom: 28px !important;
    padding: 22px 26px !important;
}

.article-takeaway h2 {
    font-size: 1.45rem !important;
    margin-bottom: 14px !important;
}

.article-takeaway p,
.article-takeaway strong {
    font-size: 0.96rem !important;
    line-height: 1.55 !important;
    font-weight: 400 !important;
}


/* -----------------------------------------
   SOURCES + IMAGE CREDITS
   ----------------------------------------- */

.article-sources {
    margin-top: 26px !important;
    padding-top: 20px !important;
}

.article-sources h2,
.article-credits h2 {
    font-size: 1.3rem !important;
    margin-bottom: 12px !important;
}

.article-sources li {
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
    margin-bottom: 5px !important;
}


.article-credits {
    margin-top: 22px !important;
    margin-bottom: 20px !important;
    padding-top: 20px !important;
}

.article-credits p {
    font-size: 0.82rem !important;
    line-height: 1.35 !important;
    margin: 0 0 5px !important;
}


/* -----------------------------------------
   FOOTER — remove excessive black depth
   ----------------------------------------- */

.site-footer {
    padding-top: 34px !important;
    padding-bottom: 26px !important;
}


/* Mobile:
   stop floating the image on narrow screens */
@media (max-width: 700px) {

    .article-side-figure {
        float: none !important;
        width: min(175px, 100%) !important;
        margin: 18px auto !important;
    }

    .article-side-figure img {
        width: 100% !important;
    }
}

/* =========================================================
   ARTICLE EVIDENCE STRIP
   ========================================================= */

.evidence-strip {
    margin: 38px 0 34px;
    padding: 28px 30px 24px;
    border-top: 1px solid #c99632;
    border-bottom: 1px solid #d9d1c3;
    background: #f5f0e6;
}

.evidence-kicker {
    margin: 0 0 7px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    color: #b77b16;
}

.evidence-title {
    margin: 0 0 24px;
    font-size: 1.55rem;
    line-height: 1.2;
    font-weight: 400;
    color: #1e1e1e;
}

.evidence-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.evidence-stat {
    padding: 4px 22px;
    text-align: center;
    border-right: 1px solid #d9d1c3;
}

.evidence-stat:first-child {
    padding-left: 0;
}

.evidence-stat:last-child {
    padding-right: 0;
    border-right: 0;
}

.evidence-number {
    display: block;
    margin-bottom: 7px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.15rem;
    line-height: 1;
    font-weight: 400;
    color: #1e1e1e;
}

.evidence-label {
    display: block;
    max-width: 190px;
    margin: 0 auto;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #5f5a52;
}

.evidence-source {
    margin: 20px 0 0;
    padding-top: 13px;
    border-top: 1px solid #ddd5c8;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.7rem;
    line-height: 1.4;
    color: #777168;
}

/* Evidence strip on smaller screens */
@media (max-width: 700px) {
    .evidence-strip {
        padding: 24px 22px 20px;
    }

    .evidence-stats {
        grid-template-columns: 1fr;
    }

    .evidence-stat,
    .evidence-stat:first-child,
    .evidence-stat:last-child {
        padding: 16px 0;
        border-right: 0;
        border-bottom: 1px solid #d9d1c3;
    }

    .evidence-stat:first-child {
        padding-top: 4px;
    }

    .evidence-stat:last-child {
        padding-bottom: 4px;
        border-bottom: 0;
    }
}

/* =========================================================
   HOMEPAGE PUBLICATION LAYOUT
   ========================================================= */


/* ---------- Signature ripple ---------- */

.section-heading-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.section-heading-line .section-label {
    margin: 0;
}

.why-mark {
    position: relative;
    display: inline-block;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    border: 1px solid var(--gold);
    border-radius: 50%;
}

.why-mark::before {
    content: "";
    position: absolute;
    inset: 4px;
    border: 1px solid var(--gold);
    border-radius: 50%;
}

.why-mark::after {
    content: "";
    position: absolute;
    width: 3px;
    height: 3px;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    background: var(--gold);
    transform: translate(-50%, -50%);
}


/* ---------- Featured lead story ---------- */

.featured-story {
    padding: 64px 0;
}

.featured-story .featured-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.3fr);
    align-items: center;
    gap: 64px;

    width: min(
        calc(100% - (var(--page-padding) * 2)),
        var(--content-width)
    );

    max-width: var(--content-width);
    margin-inline: auto;
}

.featured-copy {
    min-width: 0;
}

.featured-copy h1 {
    margin-bottom: 22px;
    font-size: clamp(2.3rem, 3.6vw, 3.8rem);
    line-height: 1.05;
}

.featured-standfirst {
    max-width: 560px !important;
    margin-bottom: 6px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.08rem, 1.5vw, 1.3rem) !important;
    line-height: 1.55;
}

.featured-image-link {
    display: block;
}

.featured-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}


/* ---------- Real story cards ---------- */

.story-image-link {
    display: block;
    margin-bottom: 24px;
    overflow: hidden;
}

.story-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 220ms ease;
}

.story-image-link:hover .story-image {
    transform: scale(1.015);
}

.story-card h3 a:hover,
.story-card h3 a:focus-visible {
    color: #8c6420;
}


/* ---------- Newsletter ---------- */

.newsletter-signup {
    padding: 58px 0;
    background: var(--soft-black);
    color: var(--warm-white);
}

.newsletter-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
    align-items: center;
    gap: 70px;
}

.newsletter-copy h2 {
    margin-bottom: 14px;
    color: var(--warm-white);
    font-size: clamp(2rem, 3vw, 2.8rem);
}

.newsletter-copy > p {
    max-width: 610px;
    margin: 0;
    color: #d9d4cc;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.05rem;
    line-height: 1.6;
}

.newsletter-embed-wrap {
    width: min(100%, 500px);
    justify-self: end;
    overflow: hidden;
}

.newsletter-embed {
    display: block;
    width: 100%;
    height: 320px;
    border: 0;
    background: transparent;
}

/* ---------- Homepage tablet ---------- */

@media (max-width: 900px) {

    .featured-story .featured-layout {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .featured-copy h1 {
        font-size: clamp(2.3rem, 5vw, 3.7rem);
    }

    .newsletter-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}


/* ---------- Homepage mobile ---------- */

@media (max-width: 700px) {

    .featured-story .featured-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .featured-copy {
        order: 2;
    }

    .featured-image-link {
        order: 1;
    }

    .featured-copy h1 {
        font-size: 2.5rem;
    }
    .newsletter-embed-wrap {
        width: 100%;
        justify-self: stretch;
    }

    .newsletter-embed {
        height: 340px;
    }
}

/* =========================================
   ABOUT PAGE
   ========================================= */

.about-page {
    background: var(--paper);
}

.about-introduction,
.about-strands,
.about-closing {
    padding: 82px var(--page-padding);
}

.about-introduction {
    padding-top: 96px;
}

.about-strands {
    background: var(--warm-white);
}

.about-inner {
    width: min(100%, 860px);
    margin-inline: auto;
}

.about-introduction h1 {
    max-width: 780px;
    margin-bottom: 28px;
    font-size: clamp(2.7rem, 6vw, 4.8rem);
}

.about-lead {
    max-width: 760px;
    margin: 0 0 48px;
    color: var(--text-muted);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.35rem, 2.4vw, 1.8rem);
    line-height: 1.55;
}

.about-copy {
    max-width: var(--reading-width);
}

.about-copy p {
    margin: 0 0 1.45em;
    font-size: 1.08rem;
    line-height: 1.85;
}

.about-copy p:last-child {
    margin-bottom: 0;
}

.about-divider {
    width: 64px;
    height: 1px;
    margin-bottom: 42px;
    background: var(--gold);
}

.about-strand-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 72px;
    margin-top: 34px;
}

.about-strand h2 {
    margin-bottom: 22px;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.about-strand p {
    margin: 0 0 1.3em;
    line-height: 1.8;
}

.about-strand .text-link {
    display: inline-block;
    margin-top: 8px;
    color: var(--text-dark);
    font-weight: 700;
    border-bottom: 1px solid var(--gold);
}

.about-strand .text-link:hover,
.about-strand .text-link:focus-visible {
    color: var(--gold);
}

.about-signature {
    margin-top: 46px;
    padding-top: 26px;
    border-top: 1px solid var(--border-light);
}

.about-signature p {
    margin-bottom: 4px;
    font-family: Georgia, "Times New Roman", serif;
}

.navigation-links a[aria-current="page"] {
    color: var(--gold-light);
}


/* ---------- About page mobile ---------- */

@media (max-width: 700px) {

    .about-introduction,
    .about-strands,
    .about-closing {
        padding: 62px var(--page-padding);
    }

    .about-introduction {
        padding-top: 70px;
    }

    .about-lead {
        margin-bottom: 38px;
    }

    .about-strand-grid {
        grid-template-columns: 1fr;
        gap: 52px;
    }

    .about-copy p {
        font-size: 1rem;
        line-height: 1.75;
    }

}
