/* ============================================================
   FONTS
   Self-hosted variable fonts. Place files in assets/fonts/:
     PlayfairDisplay-VariableFont_wght.ttf
     PlayfairDisplay-Italic-VariableFont_wght.ttf
     SourceSerif4-VariableFont.ttf          (rename: remove the comma from original filename)
     SourceSerif4-Italic-VariableFont.ttf   (rename: remove the comma from original filename)
   ============================================================ */

@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/PlayfairDisplay-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/PlayfairDisplay-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Source Serif 4';
    src: url('../fonts/SourceSerif4-VariableFont.ttf') format('truetype');
    font-weight: 200 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Source Serif 4';
    src: url('../fonts/SourceSerif4-Italic-VariableFont.ttf') format('truetype');
    font-weight: 200 900;
    font-style: italic;
    font-display: swap;
}


/* ============================================================
   DESIGN TOKENS
   ============================================================ */

:root {
    /* Colors — light mode (warm off-white paper) */
    --color-bg:          #F8F5F0;
    --color-bg-nav:      rgba(248, 245, 240, 0.95);
    --color-text:        #1A1917;
    --color-text-muted:  #6B6560;
    --color-border:      #DDD8D0;
    --color-link:        #1A1917;
    --color-accent:      #B85C38; /* terracotta — links and signature details */

    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body:    'Source Serif 4', Georgia, serif;

    /* Type scale */
    --text-xs:   0.75rem;
    --text-sm:   0.875rem;
    --text-base: 1.2rem;
    --text-lg:   1.375rem;
    --text-xl:   clamp(1.5rem, 3vw, 2.25rem);
    --text-2xl:  clamp(2rem, 4vw, 3rem);
    --text-hero: clamp(2.5rem, 5.5vw, 4.5rem);

    /* Leading */
    --leading-body:    1.85;
    --leading-display: 1.15;

    /* Measure — fixed rem, not ch, to avoid layout shift during font swap.
       74ch in Source Serif 4 ≈ 42rem. ch units recalculate when the font loads,
       causing a visible column-width jump with font-display: swap. */
    --measure:       42rem;
    --measure-wide:  960px;

    /* Spacing */
    --space-xs:  0.5rem;
    --space-sm:  1rem;
    --space-md:  2rem;
    --space-lg:  4rem;
    --space-xl:  6rem;
    --space-2xl: 10rem;

    /* Nav */
    --nav-height: 64px;

    /* Transitions */
    --transition: 200ms ease;
}

/* Dark mode — manual toggle only. Light mode is the permanent default.
   System preference is intentionally ignored — the warm paper background
   is a signature of the publication. Readers can toggle via the nav button. */
[data-theme="dark"] {
    --color-bg:         #111010;
    --color-bg-nav:     rgba(17, 16, 16, 0.95);
    --color-text:       #E8E3DB;
    --color-text-muted: #8A8480;
    --color-border:     #2C2926;
    --color-link:       #E8E3DB;
}


/* ============================================================
   RESET & BASE
   ============================================================ */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scrollbar-gutter: stable; /* prevents layout shift when scrollbar appears/disappears */
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: var(--leading-body);
    font-variation-settings: 'opsz' 18;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--transition), color var(--transition);
}

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

a {
    color: var(--color-link);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--color-border);
    transition: text-decoration-color var(--transition);
}

a:hover {
    text-decoration-color: var(--color-text);
}


/* ============================================================
   READING PROGRESS
   ============================================================ */

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background-color: var(--color-text-muted);
    z-index: 200;
    pointer-events: none;
    transition: width 80ms linear;
}


/* ============================================================
   NAVIGATION
   ============================================================ */

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background-color: var(--color-bg-nav);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    z-index: 100;
    transform: translateY(0);
    transition: transform 320ms cubic-bezier(0.4, 0, 0.2, 1);
}

.site-nav.nav-hidden {
    transform: translateY(-100%);
}

.site-nav-inner {
    max-width: var(--measure-wide);
    margin: 0 auto;
    padding: 0 var(--space-md);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

.site-nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

/* SVG logo — transparent background, no blend mode needed.
   Dark mode: invert flips the black logo to white.
   NOTE: If regenerating the SVG from Canva, the exported file will have a bloated viewBox
   with the artwork offset inside a larger canvas. Fix by editing the SVG opening tag to:
   width="1492" height="134" viewBox="90 160 1492 134"
   Alternatively, open in Inkscape → File → Document Properties → Resize page to drawing. */
.site-logo {
    height: 28px;
    width: auto;
    display: block;
    transition: filter var(--transition);
}

[data-theme="dark"] .site-logo {
    filter: invert(1);
}

.site-nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav-link {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0.01em;
    text-decoration: none;
    color: var(--color-text-muted);
    transition: color var(--transition);
    white-space: nowrap;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 1px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 280ms ease;
}

.nav-link:hover {
    color: var(--color-text);
    text-decoration: none;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.dark-mode-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-muted);
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition);
    line-height: 1;
    flex-shrink: 0;
}

.dark-mode-toggle:hover {
    color: var(--color-text);
}

/* Show sun (to switch to light) when in dark mode; show moon when in light mode */
.icon-sun  { display: none; }
.icon-moon { display: block; }

[data-theme="dark"] .icon-sun  { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

/* Hamburger toggle — hidden on desktop, shown on mobile */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-muted);
    padding: 6px;
    align-items: center;
    justify-content: center;
    transition: color var(--transition);
    line-height: 1;
    flex-shrink: 0;
}

.nav-toggle:hover {
    color: var(--color-text);
}

/* Swap hamburger ↔ close icon when menu is open */
.nav-toggle .icon-close              { display: none; }
.site-nav.nav-open .nav-toggle .icon-menu  { display: none; }
.site-nav.nav-open .nav-toggle .icon-close { display: block; }

/* Mobile slide-down nav panel — hidden on desktop */
.mobile-menu {
    display: none;
}



/* ============================================================
   ARTICLE HERO
   ============================================================ */

.article-hero {
    width: 100%;
    height: 85vh;
    min-height: 420px;
    max-height: 900px;
    overflow: hidden;
    margin: 0;
}

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


/* ============================================================
   ARTICLE META STRIP
   Sits immediately below hero image (or at top for no-image posts).
   Centred. Author name is primary; tag and secondary details are muted.
   ============================================================ */

.article-meta-strip {
    max-width: var(--measure-wide);
    margin: 0 auto;
    padding: var(--space-md) var(--space-md);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    text-align: center;
}

.article-meta-strip.no-image {
    padding-top: calc(var(--nav-height) + var(--space-xl));
    border-top: none;
}

.article-meta-strip-inner {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
}

/* Author name — primary identity, full text colour, body size */
.meta-author-name {
    font-size: var(--text-base);
    color: var(--color-text);
    text-decoration: none;
    font-weight: 400;
    transition: color var(--transition);
}

.meta-author-name:hover {
    color: var(--color-text-muted);
}

/* Reading time, date — secondary, smaller, muted */
.meta-secondary {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.article-tag {
    font-size: var(--text-xs);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--color-text-muted);
    transition: color var(--transition);
}

.article-tag:hover {
    color: var(--color-text);
    text-decoration: none;
}

.article-sep {
    margin: 0 0.5em;
    opacity: 0.4;
}


/* ============================================================
   ARTICLE HEADER
   Title only — meta and tag live in the strip above.
   ============================================================ */

.article-header {
    padding: var(--space-lg) var(--space-md) var(--space-md);
    text-align: center;
    max-width: var(--measure-wide);
    margin: 0 auto;
}

.article-header-inner {
    max-width: 760px;
    margin: 0 auto;
}

.article-title {
    font-family: var(--font-display);
    font-size: var(--text-hero);
    font-weight: 700;
    line-height: var(--leading-display);
    letter-spacing: -0.025em;
    color: var(--color-text);
    margin-bottom: 0;
}


/* ============================================================
   ARTICLE BODY
   ============================================================ */

.article-body {
    max-width: var(--measure);
    margin: 0 auto;
    padding: 0 var(--space-md) var(--space-xl);
}

/* Paragraphs */
.article-body p {
    margin-bottom: 1.6em;
    hyphens: auto;
    hanging-punctuation: first last;
}

/* Drop cap on opening paragraph */
.article-body > p:first-of-type::first-letter {
    font-family: var(--font-display);
    font-size: 4.2em;
    font-weight: 700;
    line-height: 0.82;
    float: left;
    margin-right: 0.07em;
    margin-top: 0.06em;
    color: var(--color-text);
}

/* Headings within content */
.article-body h2 {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    line-height: var(--leading-display);
    letter-spacing: -0.015em;
    margin: 2.5em 0 0.8em;
    color: var(--color-text);
}

.article-body h3 {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 600;
    font-style: italic;
    line-height: 1.3;
    margin: 2em 0 0.75em;
    color: var(--color-text);
}

.article-body h4 {
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 2em 0 0.75em;
    color: var(--color-text-muted);
}

/* Blockquote — a moment, not a note */
.article-body blockquote {
    margin: 3em 0;
    padding: 0;
    border: none;
    text-align: center;
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.5vw, 1.8rem);
    font-style: italic;
    font-weight: 400;
    line-height: 1.55;
    color: var(--color-text);
}

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

.article-body blockquote p:last-child {
    margin-bottom: 0;
}

/* Section divider */
.article-body hr {
    border: none;
    height: 1px;
    background-color: var(--color-border);
    width: 60px;
    margin: var(--space-xl) auto;
}

/* Inline elements */
.article-body strong { font-weight: 700; }
.article-body em     { font-style: italic; }

.article-body a {
    color: var(--color-text);
    text-decoration: underline;
    text-decoration-color: var(--color-accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    transition: color var(--transition), text-decoration-thickness var(--transition);
}

.article-body a:hover {
    color: var(--color-accent);
    text-decoration-thickness: 2px;
}

/* Lists */
.article-body ul,
.article-body ol {
    padding-left: 1.5em;
    margin-bottom: 1.6em;
}

.article-body li {
    margin-bottom: 0.4em;
}

/* Captions */
.article-body figcaption {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 0.75rem;
    font-style: italic;
    line-height: 1.5;
}

/* Code */
.article-body code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    background-color: var(--color-border);
    padding: 0.15em 0.35em;
    border-radius: 2px;
}

.article-body pre {
    background-color: var(--color-border);
    padding: var(--space-md);
    overflow-x: auto;
    margin-bottom: 1.6em;
    border-radius: 2px;
}

.article-body pre code {
    background: none;
    padding: 0;
    font-size: 0.85em;
}


/* ============================================================
   GHOST CONTENT CARDS
   ============================================================ */

/* Inline image */
.article-body .kg-image-card {
    margin: var(--space-lg) 0;
}

.article-body .kg-image-card img {
    border-radius: 1px;
}

/* Wide image — breaks out of measure */
.article-body .kg-width-wide {
    width: min(var(--measure-wide), calc(100vw - var(--space-md) * 2));
    margin-left: 50%;
    transform: translateX(-50%);
}

/* Full-bleed inline image */
.article-body .kg-width-full {
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
}

/* Gallery */
.article-body .kg-gallery-card {
    margin: var(--space-lg) 0;
}

.article-body .kg-gallery-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.article-body .kg-gallery-row {
    display: flex;
    gap: 4px;
    width: 100%;
}

.article-body .kg-gallery-image {
    flex: 1;
    overflow: hidden;
    min-height: 200px;
}

.article-body .kg-gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Callout card */
.article-body .kg-callout-card {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-md);
    border-left: 2px solid var(--color-border);
    margin: var(--space-lg) 0;
    font-size: 0.95em;
    color: var(--color-text-muted);
}

.article-body .kg-callout-emoji {
    font-size: 1.25em;
    line-height: 1.5;
    flex-shrink: 0;
}

/* HTML card — wrapper for custom modules.
   Ghost adds a grey background by default; we reset it and style each module individually. */
.article-body .kg-html-card,
.article-body .kg-html-card-inner {
    margin: var(--space-lg) 0;
    background: transparent !important;
    padding: 0 !important;
}


/* ============================================================
   ARTICLE FOOTER
   ============================================================ */

.article-footer {
    max-width: var(--measure);
    margin: 0 auto;
    padding: 0 var(--space-md) var(--space-2xl);
}


/* ============================================================
   MEMBERSHIP CTA
   ============================================================ */

.membership-cta {
    border-top: 1px solid var(--color-border);
    padding: var(--space-xl) 0 0;
    text-align: center;
}

.membership-cta-label {
    font-size: var(--text-xs);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.membership-cta-heading {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: var(--leading-display);
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

.membership-cta-body {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    max-width: 46ch;
    margin: 0 auto var(--space-lg);
    line-height: 1.65;
}

.membership-cta-button {
    display: inline-block;
    background-color: var(--color-text);
    color: var(--color-bg);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 0.9em 2.25em;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: opacity var(--transition);
    font-variation-settings: 'opsz' 14;
}

.membership-cta-button:hover {
    opacity: 0.75;
    text-decoration: none;
    color: var(--color-bg);
}


/* ============================================================
   HOMEPAGE  (Phase 1 — functional; full editorial redesign Phase 5)
   ============================================================ */

.home-wrap {
    max-width: var(--measure-wide);
    margin: calc(var(--nav-height) + var(--space-xl)) auto var(--space-2xl);
    padding: 0 var(--space-md);
}

.post-feed {
    display: grid;
    gap: var(--space-lg);
}

.post-card {
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
}

.post-card-tag {
    display: block;
    font-size: var(--text-xs);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: color var(--transition);
}

.post-card-tag:hover {
    color: var(--color-text);
}

.post-card-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    line-height: var(--leading-display);
    letter-spacing: -0.015em;
    margin-bottom: var(--space-sm);
}

.post-card-title a {
    text-decoration: none;
    color: var(--color-text);
}

.post-card-title a:hover {
    text-decoration: underline;
    text-decoration-color: var(--color-border);
}

.post-card-excerpt {
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
    line-height: 1.65;
    font-size: 1.05rem;
}

.post-card-meta {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}


/* ============================================================
   PAGE TEMPLATE
   ============================================================ */

.page-wrap {
    max-width: var(--measure);
    margin: calc(var(--nav-height) + var(--space-xl)) auto var(--space-2xl);
    padding: 0 var(--space-md);
}

.page-title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: var(--leading-display);
    margin-bottom: var(--space-xl);
    color: var(--color-text);
}


/* ============================================================
   ERROR PAGE
   ============================================================ */

.error-wrap {
    max-width: var(--measure);
    margin: calc(var(--nav-height) + var(--space-2xl)) auto var(--space-2xl);
    padding: 0 var(--space-md);
    text-align: center;
}

.error-code {
    font-family: var(--font-display);
    font-size: 6rem;
    font-weight: 700;
    line-height: 1;
    color: var(--color-border);
    margin-bottom: var(--space-md);
    letter-spacing: -0.04em;
}

.error-title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
}

.error-body {
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
    :root {
        --text-base: 1.1rem;
        --text-hero: clamp(1.75rem, 6.5vw, 3rem); /* ~27px at 390px wide — was 40px floor */
        --space-xl:  4rem;
        --space-2xl: 6rem;
    }

    .site-logo {
        height: 22px;
    }

    .article-hero {
        height: 56vw;
        min-height: 260px;
    }

    .article-meta-strip {
        padding: var(--space-sm) var(--space-md);
    }

    .article-header {
        padding: 1.5rem var(--space-sm) var(--space-sm);
        text-align: center;
    }

    .article-header.no-image {
        padding-top: calc(var(--nav-height) + var(--space-xl));
    }

    .article-body blockquote {
        margin: 1.5em 0;
        font-size: 1.1rem; /* was clamp(1.35rem…) — was dwarfing the heading */
    }

    .article-body > p:first-of-type::first-letter {
        font-size: 3.5em;
    }

    .site-nav-links {
        gap: var(--space-sm);
    }

    /* Hide nav text links on small screens — burger menu handles navigation */
    .nav-link {
        display: none;
    }

    /* Show hamburger toggle on mobile */
    .nav-toggle {
        display: flex;
    }

    /* Mobile slide-down nav panel */
    .mobile-menu {
        display: flex;
        flex-direction: column;
        background-color: var(--color-bg-nav);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--color-border);
        padding: 0 var(--space-md);
        max-height: 0;
        overflow: hidden;
        transition: max-height 280ms cubic-bezier(0.4, 0, 0.2, 1), padding 280ms ease;
    }

    .site-nav.nav-open .mobile-menu {
        max-height: 300px;
        padding: var(--space-sm) var(--space-md);
    }

    .mobile-nav-link {
        font-family: var(--font-display);
        font-size: 1.1rem;
        font-style: italic;
        color: var(--color-text);
        text-decoration: none;
        padding: 0.65em 0;
        border-bottom: 1px solid var(--color-border);
        transition: color var(--transition);
        display: block;
    }

    .mobile-nav-link:last-child {
        border-bottom: none;
    }

    .mobile-nav-link:hover {
        color: var(--color-text-muted);
        text-decoration: none;
    }
}


/* ============================================================
   MODULES
   Reusable HTML card snippets, saved as Ghost Snippets.
   All prefixed .mi- to avoid clashing with Ghost's own classes.
   ============================================================ */

.mi-section-break {
    text-align: center;
    margin: var(--space-xl) 0;
    color: var(--color-text-muted);
    font-size: 1.25rem;
    letter-spacing: 0.5em;
    padding-left: 0.5em; /* compensate for letter-spacing gap after last dot */
    line-height: 1;
    user-select: none;
}

/* Drop cap override — forces drop cap on any paragraph inside an HTML card.
   Use after a section break to restart the drop cap treatment for a new chapter. */
.mi-drop-cap::first-letter {
    font-family: var(--font-display);
    font-size: 4.2em;
    font-weight: 700;
    line-height: 0.82;
    float: left;
    margin-right: 0.07em;
    margin-top: -0.1em;
    color: var(--color-text);
}

/* Epigraph — opening quote with attribution, used before body text begins */
.mi-epigraph {
    max-width: 38rem;
    margin: var(--space-lg) auto;
    text-align: center;
}

.mi-epigraph-text {
    font-family: var(--font-display);
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-style: italic;
    line-height: 1.65;
    color: var(--color-text);
    margin-bottom: 0.75em;
}

.mi-epigraph-attribution {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    letter-spacing: 0.02em;
    margin-bottom: 0;
}

/* Pull quote — dramatic mid-article highlight with decorative opening mark */
.mi-pull-quote {
    margin: var(--space-xl) auto;
    text-align: center;
    max-width: 36rem;
}

.mi-pull-quote::before {
    content: '\201C';
    font-family: var(--font-display);
    font-size: 4.5rem;
    line-height: 0.8;
    color: var(--color-accent);
    display: block;
    margin-bottom: var(--space-sm);
}

.mi-pull-quote p {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.8vw, 1.9rem);
    font-style: italic;
    line-height: 1.45;
    color: var(--color-text);
    margin-bottom: 0;
    hyphens: none;
}

/* Poem block — preserves line breaks and indentation exactly as written.
   Width is full measure-wide to accommodate long lines. Weight 300 (lighter
   than prose) creates a subtle visual distinction without changing the face. */
.mi-poem {
    /* Break out of .article-body's 42rem constraint, same technique as wide images */
    width: min(var(--measure-wide), calc(100vw - var(--space-md) * 2));
    margin-left: 50%;
    transform: translateX(-50%);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.mi-poem .mi-poem-text {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-style: normal;
    font-weight: 300;
    line-height: 1.85;
    color: var(--color-text);
    white-space: pre-wrap;
    hyphens: none;
    font-variation-settings: 'opsz' 18;
    /* reset <pre> browser defaults — needs .mi-poem parent to beat .article-body pre specificity */
    background: none;
    border: none;
    padding: 0;
    margin: 0 0 var(--space-md) 0;
    overflow-x: visible;
}

.mi-poem-attribution {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: 0;
}

/* Stat callout — large number with label, for match stats, records, figures */
.mi-stat {
    text-align: center;
    margin: var(--space-xl) 0;
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.mi-stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--color-text);
    margin-bottom: 0.2em;
}

.mi-stat-label {
    display: block;
    font-size: var(--text-sm);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

@media (max-width: 480px) {
    :root {
        --text-base: 1.05rem;
    }

    .site-nav-inner {
        padding: 0 var(--space-sm);
    }

    .article-body,
    .article-footer {
        padding-left: var(--space-sm);
        padding-right: var(--space-sm);
    }

    .article-body .kg-width-wide {
        width: 100vw;
    }
}
