/* ==========================================================================
   historygrapher.net - The Nocturnal Edition
   A vintage newspaper / dark-academia editorial layout.
   Palette: burgundy-cream + sepia-nostalgic.
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
    /* Palette (exact hex values from DESIGN.md) */
    --paper:        #f4ede0;   /* Warm cream paper stock */
    --ink:          #1e1814;   /* Deep sepia-black ink */
    --copper:       #8a6840;   /* Aged copper - rules */
    --burgundy:     #6a2c38;   /* Muted burgundy - drop caps, pull quotes */
    --plate-gray:   #7a746a;   /* Faded plate gray - captions */
    --gold:         #c4a050;   /* Antique gold - highlights */
    --hairline:     #c4baa8;   /* Hairline gray - column rules */
    --vellum:       #ebe4d4;   /* Light vellum - tint blocks */

    /* Typography stacks */
    --font-masthead: "Playfair Display SC", "Playfair Display", Georgia, serif;
    --font-body:     "Lora", Georgia, "Times New Roman", serif;
    --font-accent:   "Spectral", "Lora", Georgia, serif;
    --font-dropcap:  "Cormorant Garamond", "Playfair Display", Georgia, serif;

    /* Layout */
    --max-page:     1280px;
    --gutter:       clamp(1.25rem, 4vw, 4rem);
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

html {
    background: var(--ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.8;
    font-size: clamp(1rem, 1.15vw, 1.2rem);
    overflow-x: hidden;
    /* Subtle paper texture using layered gradients */
    background-image:
        radial-gradient(circle at 12% 18%, rgba(138, 104, 64, 0.06) 0, transparent 38%),
        radial-gradient(circle at 88% 72%, rgba(106, 44, 56, 0.05) 0, transparent 42%),
        radial-gradient(circle at 50% 100%, rgba(30, 24, 20, 0.05) 0, transparent 60%);
    background-attachment: fixed;
}

/* Page wrapper with deckle-edge feel */
.paper {
    max-width: var(--max-page);
    margin: 0 auto;
    padding: 0 var(--gutter);
    position: relative;
}

/* ---------- Shared Type Utilities ---------- */
p {
    margin: 0 0 1.1em 0;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

p + p {
    text-indent: 1.5em;
}

em, i {
    font-style: italic;
}

a {
    color: var(--burgundy);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    text-decoration-color: rgba(106, 44, 56, 0.45);
    transition: color 220ms ease, text-decoration-color 220ms ease;
}

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

::selection {
    background: var(--gold);
    color: var(--ink);
}

/* ==========================================================================
   MASTHEAD - The newspaper front page
   ========================================================================== */
.masthead {
    min-height: 85vh;
    padding: clamp(2rem, 5vh, 4rem) 0 clamp(2rem, 4vh, 3rem);
    display: flex;
    flex-direction: column;
    position: relative;
}

.masthead-upper {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-family: var(--font-accent);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--plate-gray);
    margin-bottom: clamp(1.5rem, 4vh, 2.5rem);
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
}

.masthead-upper .masthead-folio {
    font-style: italic;
    color: var(--copper);
    letter-spacing: 0.12em;
}

/* The double rule: 1px top + 3px bottom, separated by 2px gap */
.masthead-rule {
    width: 100%;
    height: 6px;
    position: relative;
}

.masthead-rule::before,
.masthead-rule::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    background: var(--copper);
}

.masthead-rule-top::before {
    top: 0;
    height: 1px;
}
.masthead-rule-top::after {
    top: 3px;
    height: 3px;
}

.masthead-rule-bottom::before {
    top: 0;
    height: 3px;
}
.masthead-rule-bottom::after {
    top: 5px;
    height: 1px;
}

/* The Title - the hero */
.masthead-title {
    font-family: var(--font-masthead);
    font-weight: 900;
    font-size: clamp(4rem, 10vw, 10rem);
    line-height: 0.95;
    letter-spacing: 0.04em;
    color: var(--ink);
    text-align: center;
    margin: clamp(1rem, 2vh, 1.75rem) 0;
    padding: 0;
    text-transform: lowercase;
    /* Slightly extended to push outside the text-block feeling */
    width: 100%;
}

.masthead-prefix {
    color: var(--ink);
}

.masthead-suffix {
    color: var(--burgundy);
    font-style: italic;
}

/* Dateline - small caps, copper accents */
.masthead-dateline {
    margin-top: clamp(1rem, 2.5vh, 1.5rem);
    text-align: center;
    font-family: var(--font-accent);
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink);
    display: flex;
    justify-content: center;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.4rem 0.9rem;
}

.dateline-sep {
    color: var(--copper);
    font-size: 0.7rem;
}

.dateline-place,
.dateline-weather {
    font-style: italic;
    color: var(--plate-gray);
    letter-spacing: 0.14em;
}

/* Masthead nav - subtle underlined links */
.masthead-nav {
    margin-top: clamp(1.25rem, 3vh, 2rem);
    text-align: center;
    font-family: var(--font-accent);
    font-size: 0.95rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
}

.masthead-link {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 6px;
    text-decoration-color: var(--copper);
    padding: 0.15rem 0.05rem;
    transition: color 220ms ease, text-decoration-color 220ms ease, letter-spacing 280ms ease;
}

.masthead-link:hover {
    color: var(--burgundy);
    text-decoration-color: var(--burgundy);
    letter-spacing: 0.18em;
}

.nav-sep {
    color: var(--copper);
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Masthead pull - epigraph beneath nav */
.masthead-pull {
    margin: clamp(2rem, 5vh, 3.5rem) auto 0;
    max-width: 48rem;
    text-align: center;
    font-family: var(--font-accent);
    font-style: italic;
    font-size: clamp(1rem, 1.3vw, 1.25rem);
    color: var(--ink);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.9rem;
}

.pull-glyph {
    color: var(--gold);
    font-size: 1.2em;
    line-height: 1;
}

.pull-text {
    flex: 0 1 auto;
}

/* The fold line - referencing the physical fold of a broadsheet */
.fold-line {
    position: absolute;
    top: 100vh;
    left: 0;
    right: 0;
    pointer-events: none;
    z-index: 1;
}

.fold-line::before {
    content: "";
    position: absolute;
    left: var(--gutter);
    right: var(--gutter);
    top: 0;
    height: 1px;
    background: repeating-linear-gradient(
        to right,
        var(--copper) 0,
        var(--copper) 6px,
        transparent 6px,
        transparent 12px
    );
    opacity: 0.55;
}

.fold-marker {
    position: absolute;
    top: -0.7rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--paper);
    padding: 0 0.7rem;
    font-family: var(--font-accent);
    font-size: 0.62rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--copper);
}

/* ==========================================================================
   SHARED Section header
   ========================================================================== */
.section-header {
    margin: clamp(2rem, 6vh, 4rem) 0 clamp(1.25rem, 3vh, 2rem);
}

.kicker {
    display: block;
    font-family: var(--font-accent);
    font-size: 0.78rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--copper);
    margin-bottom: 0.75rem;
}

.headline {
    font-family: var(--font-masthead);
    font-weight: 700;
    font-size: clamp(1.8rem, 3.6vw, 3rem);
    line-height: 1.05;
    color: var(--ink);
    margin: 0 0 0.6rem;
    letter-spacing: 0.01em;
    text-transform: lowercase;
}

.byline {
    display: block;
    font-family: var(--font-accent);
    font-size: 0.85rem;
    color: var(--plate-gray);
    letter-spacing: 0.04em;
    font-style: italic;
}

.byline em {
    color: var(--ink);
    font-style: italic;
}

/* Broadsheet double rule between sections */
.section-divider {
    position: relative;
    height: 6px;
    margin: clamp(2.5rem, 6vh, 4rem) 0 0;
    width: 100%;
}

.section-divider::before,
.section-divider::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    background: var(--copper);
}

.section-divider::before {
    top: 0;
    height: 1px;
}

.section-divider::after {
    top: 3px;
    height: 3px;
}

/* ==========================================================================
   MARGINALIA - left-margin annotation notes (desktop)
   ========================================================================== */
.marginalia {
    display: none;
}

@media (min-width: 1080px) {
    .marginalia {
        display: block;
        position: absolute;
        left: 0;
        width: clamp(8rem, 12vw, 11rem);
        font-family: var(--font-accent);
        font-style: italic;
        font-size: 0.78rem;
        line-height: 1.55;
        color: var(--ink);
        opacity: 0.5;
        padding-right: 0.75rem;
        border-right: 1px solid var(--hairline);
        text-align: right;
        transform: translateX(-100%);
    }

    .section-lead,
    .section-folio,
    .section-gallery,
    .section-colophon {
        position: relative;
    }

    .marginalia-lead    { top: 5rem; }
    .marginalia-folio   { top: 6rem; }
    .marginalia-gallery { top: 7rem; }
}

/* ==========================================================================
   SECTION 1 - THE LEAD - Two-column editorial spread
   ========================================================================== */
.section-lead {
    padding-top: clamp(2rem, 6vh, 4rem);
}

.lead-spread {
    display: grid;
    grid-template-columns: 60fr 35fr;
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: start;
    margin-top: clamp(1rem, 2vh, 2rem);
}

@media (max-width: 880px) {
    .lead-spread {
        grid-template-columns: 1fr;
    }
}

.lead-narrative {
    text-align: justify;
    text-justify: inter-word;
    max-width: 32em;
}

.lead-narrative p {
    text-indent: 1.5em;
}

.lead-narrative .lead-opening {
    text-indent: 0;
}

/* Drop cap - 7 lines tall, Cormorant Garamond, burgundy */
.dropcap {
    font-family: var(--font-dropcap);
    font-weight: 700;
    color: var(--burgundy);
    font-size: 6em;
    line-height: 0.85;
    float: left;
    margin: 0.05em 0.15em 0 -0.05em;
    padding: 0;
    /* shape-outside provides snug text wrap */
    shape-outside: margin-box;
}

/* Pull quote column - ruled box with top + bottom borders only */
.lead-pullquote {
    font-family: var(--font-accent);
    color: var(--ink);
    padding: 1rem 0;
    position: sticky;
    top: 2rem;
}

.pullquote-rule {
    height: 1px;
    background: var(--copper);
    margin: 0;
}

.pullquote-rule-top {
    margin-bottom: 1.25rem;
}

.pullquote-rule-bottom {
    margin-top: 1.25rem;
    margin-bottom: 1.5rem;
}

.pullquote-body {
    font-family: var(--font-accent);
    font-style: italic;
    font-weight: 400;
    color: var(--burgundy);
    font-size: clamp(1.25rem, 1.8vw, 1.75rem);
    line-height: 1.4;
    margin: 0 0 1rem 0;
    padding: 0;
}

.pullquote-cite {
    display: block;
    font-family: var(--font-accent);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--plate-gray);
    font-style: normal;
}

.pullquote-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-family: var(--font-accent);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    color: var(--ink);
    border-bottom: 1px dotted var(--hairline);
    padding: 0.4rem 0;
}

.pullquote-meta:last-child {
    border-bottom: none;
}

.meta-label {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--copper);
    font-size: 0.7rem;
}

.meta-value {
    font-style: italic;
    color: var(--ink);
}

/* ==========================================================================
   SECTION 2 - THE FOLIO - Three-column broadsheet
   ========================================================================== */
.section-folio {
    /* diagonal-section: gentle 3-5vh angle suggesting a fold */
    clip-path: polygon(0 4vh, 100% 0, 100% calc(100% - 0vh), 0 100%);
    -webkit-clip-path: polygon(0 4vh, 100% 0, 100% calc(100% - 0vh), 0 100%);
    background: var(--paper);
    padding: clamp(4rem, 9vh, 7rem) 0 clamp(2rem, 5vh, 4rem);
    margin-top: -2vh;
    position: relative;
}

/* subtle vellum tint to differentiate the folio interior */
.section-folio::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--vellum);
    opacity: 0.55;
    pointer-events: none;
    z-index: -1;
    clip-path: inherit;
    -webkit-clip-path: inherit;
}

.folio-columns {
    column-count: 3;
    column-gap: clamp(1.5rem, 3vw, 3rem);
    column-rule: 1px solid var(--hairline);
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    margin-top: clamp(1rem, 2vh, 2rem);
}

@media (max-width: 1100px) {
    .folio-columns {
        column-count: 2;
    }
}

@media (max-width: 700px) {
    .folio-columns {
        column-count: 1;
    }
}

.folio-columns p {
    text-indent: 1.5em;
    break-inside: avoid;
}

.folio-opening {
    text-indent: 0 !important;
    column-span: all;
    max-width: 50em;
    margin: 0 auto 1.6rem;
    font-size: 1.05em;
    line-height: 1.85;
    text-align: justify;
}

.folio-opening .dropcap {
    color: var(--burgundy);
}

.folio-subhead {
    font-family: var(--font-accent);
    font-weight: 500;
    font-size: 0.82rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--copper);
    margin: 1.3rem 0 0.6rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--copper);
    break-after: avoid;
    -webkit-column-break-after: avoid;
    page-break-after: avoid;
}

/* The first subhead following the opening shouldn't get a top margin */
.folio-columns p + .folio-subhead {
    margin-top: 1.5rem;
}

/* ==========================================================================
   SECTION 3 - THE GALLERY - Filmstrip horizontal scroll
   ========================================================================== */
.section-gallery {
    padding: clamp(2rem, 6vh, 4rem) 0;
    position: relative;
}

.filmstrip-wrapper {
    width: 100%;
    margin: clamp(1rem, 2vh, 2rem) 0 0;
    position: relative;
    /* break out of the page padding for that full-bleed strip feel */
    margin-left: calc(var(--gutter) * -1);
    margin-right: calc(var(--gutter) * -1);
    padding: 0 var(--gutter);
}

.filmstrip {
    display: flex;
    gap: clamp(1rem, 2vw, 2rem);
    overflow-x: auto;
    overflow-y: hidden;
    height: 50vh;
    min-height: 26rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 0 1.5rem 0;
    scroll-padding-left: var(--gutter);

    /* Visible, styled scrollbar - part of the editorial vocabulary */
    scrollbar-width: thin;
    scrollbar-color: var(--copper) var(--vellum);
}

.filmstrip::-webkit-scrollbar {
    height: 10px;
}
.filmstrip::-webkit-scrollbar-track {
    background: var(--vellum);
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
}
.filmstrip::-webkit-scrollbar-thumb {
    background: var(--copper);
    border-radius: 0;
    border: 2px solid var(--vellum);
}
.filmstrip::-webkit-scrollbar-thumb:hover {
    background: var(--burgundy);
}

.plate {
    flex: 0 0 auto;
    width: clamp(14rem, 26vw, 20rem);
    margin: 0;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    transition: transform 320ms ease;
}

.plate:hover {
    transform: translateY(-3px);
}

.plate-image {
    aspect-ratio: 3 / 4;
    background: var(--vellum);
    border: 1px solid var(--hairline);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 1px 0 rgba(30, 24, 20, 0.06);
}

/* eight tints across the strip - subtle differences in sepia warmth */
.plate-tone-1 { background: linear-gradient(155deg, #ebe4d4 0%, #d8cdb6 100%); }
.plate-tone-2 { background: linear-gradient(155deg, #e8dec8 0%, #cdb89a 100%); }
.plate-tone-3 { background: linear-gradient(155deg, #ecdfc3 0%, #c4a888 100%); }
.plate-tone-4 { background: linear-gradient(155deg, #e7d9bf 0%, #b89a78 100%); }
.plate-tone-5 { background: linear-gradient(155deg, #ddc9aa 0%, #a88a6c 100%); }
.plate-tone-6 { background: linear-gradient(155deg, #d4bfa0 0%, #8a6840 100%); }
.plate-tone-7 { background: linear-gradient(155deg, #c4baa8 0%, #7a746a 100%); }
.plate-tone-8 { background: linear-gradient(155deg, #ebe4d4 0%, #c4a050 100%); }

.plate-roman {
    font-family: var(--font-masthead);
    font-weight: 900;
    font-size: clamp(3rem, 6vw, 4.5rem);
    color: var(--ink);
    opacity: 0.18;
    letter-spacing: 0.05em;
    z-index: 2;
    position: relative;
    user-select: none;
}

.plate-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at center,
        rgba(30, 24, 20, 0) 0%,
        rgba(30, 24, 20, 0) 55%,
        rgba(30, 24, 20, 0.15) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.plate-caption {
    margin: 0.85rem 0 0;
    font-family: var(--font-accent);
    font-style: italic;
    color: var(--ink);
    line-height: 1.5;
    display: flex;
    flex-direction: column;
}

.caption-date {
    font-family: var(--font-accent);
    font-style: normal;
    font-weight: 500;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--copper);
    margin-bottom: 0.2rem;
}

.caption-place {
    font-size: 0.92rem;
    color: var(--ink);
    opacity: 0.82;
}

/* Filmstrip meta row - counter + hint */
.filmstrip-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 0.6rem;
    padding: 0 0.25rem;
    font-family: var(--font-accent);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--plate-gray);
}

.filmstrip-counter {
    color: var(--copper);
    font-weight: 500;
}

.filmstrip-hint {
    font-style: italic;
    letter-spacing: 0.1em;
    text-transform: none;
    color: var(--plate-gray);
}

/* ==========================================================================
   SECTION 4 - THE COLOPHON
   ========================================================================== */
.section-colophon {
    padding: clamp(2rem, 6vh, 4rem) clamp(1rem, 20vw, 18rem);
    text-align: center;
    position: relative;
}

.section-colophon .section-header {
    text-align: center;
}

.section-colophon .kicker {
    display: block;
}

.colophon-mission {
    margin: clamp(1.5rem, 4vh, 3rem) auto;
    max-width: 36em;
}

.mission-statement {
    font-family: var(--font-accent);
    font-style: italic;
    font-size: clamp(1.15rem, 1.8vw, 1.6rem);
    line-height: 1.55;
    color: var(--ink);
    margin: 0;
    text-indent: 0;
}

.colophon-rule {
    margin: clamp(1.5rem, 4vh, 2.5rem) auto;
    width: 60%;
    max-width: 28rem;
    height: 1px;
    background: var(--copper);
    position: relative;
}

.colophon-fleuron {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--paper);
    padding: 0 0.9rem;
    color: var(--gold);
    font-size: 1.25rem;
    line-height: 1;
}

.colophon-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.25rem, 3vw, 2.5rem);
    text-align: left;
    margin: clamp(1.5rem, 4vh, 3rem) auto;
}

@media (max-width: 800px) {
    .colophon-details {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.colophon-block {
    /* nothing extra */
}

.colophon-label {
    font-family: var(--font-accent);
    font-weight: 500;
    font-size: 0.78rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--copper);
    margin: 0 0 0.6rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--hairline);
}

.colophon-block p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--ink);
    margin: 0;
    text-indent: 0;
}

.colophon-marks {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(2rem, 6vw, 4rem);
    margin: clamp(2rem, 5vh, 3rem) auto;
    color: var(--copper);
    opacity: 0.2;
}

.printers-mark {
    width: clamp(2.4rem, 4vw, 3.2rem);
    height: clamp(2.4rem, 4vw, 3.2rem);
    color: var(--ink);
}

.colophon-imprint {
    margin: clamp(1.5rem, 4vh, 2.5rem) auto 0.75rem;
    font-family: var(--font-accent);
    font-size: 0.85rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.6rem 1rem;
}

.imprint-sep {
    color: var(--gold);
    font-size: 0.85rem;
}

.colophon-final {
    font-family: var(--font-accent);
    font-style: italic;
    color: var(--plate-gray);
    font-size: 0.9rem;
    margin: 0.5rem auto 2rem;
    letter-spacing: 0.04em;
}

/* ==========================================================================
   Animations & subtle motion
   ========================================================================== */
@keyframes ink-bleed {
    from {
        opacity: 0;
        transform: translateY(0.6rem);
        filter: blur(2px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.section-lead .section-header,
.section-folio .section-header,
.section-gallery .section-header,
.section-colophon .section-header,
.lead-narrative,
.lead-pullquote,
.folio-columns,
.filmstrip-wrapper,
.colophon-mission,
.colophon-details {
    opacity: 0;
    transform: translateY(0.6rem);
    transition: opacity 800ms ease, transform 800ms ease, filter 800ms ease;
    filter: blur(1px);
}

.is-revealed {
    opacity: 1 !important;
    transform: translateY(0) !important;
    filter: blur(0) !important;
}

/* Avoid hiding above-the-fold masthead */
.masthead {
    opacity: 1;
}

/* Gentle press-print pulse on hover for the masthead title */
.masthead-title {
    transition: letter-spacing 480ms ease, color 480ms ease;
}

.masthead-title:hover .masthead-suffix {
    color: var(--gold);
}

/* ==========================================================================
   Small viewport tweaks
   ========================================================================== */
@media (max-width: 640px) {
    body {
        font-size: 1rem;
    }

    .masthead-upper {
        justify-content: center;
        font-size: 0.7rem;
    }

    .masthead-upper .masthead-edition,
    .masthead-upper .masthead-price {
        flex: 1 1 auto;
        text-align: center;
    }

    .masthead-nav {
        font-size: 0.78rem;
        gap: 0.3rem 0.6rem;
    }

    .filmstrip {
        height: 60vh;
        min-height: 22rem;
    }

    .plate {
        width: 70vw;
    }
}
