/* ─────────────────────────────────────────────────────────────────────────
   De Oude Krantenlezer — kleurenpalet behouden uit oude site (2017)
   Cream:    #F8F8DA   (achtergrond)
   Burgundy: #89040D   (accent / links / titels)
   Gold:     #B49D34   (secundair accent / borders)
───────────────────────────────────────────────────────────────────────── */

:root {
    --cream: #F8F8DA;
    --cream-light: #FCFCEC;
    --cream-deep: #EFEBC7;
    --paper: #FAF7E6;
    --burgundy: #89040D;
    --burgundy-dark: #6B030A;
    --burgundy-soft: #B33A42;
    --gold: #B49D34;
    --gold-soft: #D4BD5F;
    --ink: #2A2520;
    --ink-soft: #5A5448;
    --ink-mute: #8B8472;
    --line: rgba(180, 157, 52, 0.25);

    --font-serif: "EB Garamond", "Slabo 27px", Georgia, "Times New Roman", serif;
    --font-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --shadow-sm: 0 2px 6px rgba(42, 37, 32, 0.08);
    --shadow-md: 0 6px 22px rgba(42, 37, 32, 0.12);
    --shadow-lg: 0 12px 40px rgba(42, 37, 32, 0.16);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
    font-family: var(--font-serif);
    font-size: 18px;
    line-height: 1.6;
    color: var(--ink);
    background-color: var(--cream);
    background-image:
        radial-gradient(circle at 50% -200px, rgba(180, 157, 52, 0.07), transparent 60%),
        radial-gradient(circle at 90% 110%, rgba(137, 4, 13, 0.04), transparent 50%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    /* Fullscreen-friendly layout: header staat vast, main pakt rest */
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--burgundy);
    text-decoration: none;
    transition: color 0.15s ease;
}
a:hover { color: var(--burgundy-dark); }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--burgundy);
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.2;
}
h1 { font-size: 2.5rem; margin: 0 0 1rem; }
h2 { font-size: 1.9rem; margin: 0 0 0.8rem; }
h3 { font-size: 1.4rem; margin: 0 0 0.6rem; }

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

/* ── Layout container ─────────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}
@media (max-width: 720px) {
    .container { padding: 0 1.25rem; }
}

/* ── Header ───────────────────────────────────────────────────────────── */
.site-header {
    background: linear-gradient(180deg, var(--cream-light) 0%, var(--cream) 100%);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(8px);
    background-color: rgba(248, 248, 218, 0.92);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 0;
    gap: 2rem;
}

.brand {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    white-space: nowrap;
}
.brand:hover { color: var(--burgundy); }
.brand__sub {
    font-family: var(--font-serif);
    font-size: 0.85rem;
    font-style: italic;
    color: var(--ink-mute);
    font-weight: 400;
    letter-spacing: 0;
}

/* ── Navigation ───────────────────────────────────────────────────────── */
.site-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.site-nav__list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.25rem;
}
.site-nav__link {
    display: inline-block;
    padding: 0.5rem 0.95rem;
    font-family: var(--font-sans);
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 999px;
    transition: all 0.18s ease;
    white-space: nowrap;
}
.site-nav__link:hover {
    color: var(--burgundy);
    background: rgba(137, 4, 13, 0.06);
}
.site-nav__link.is-active {
    color: var(--burgundy);
    background: rgba(180, 157, 52, 0.18);
}

/* Language switcher */
.lang-switcher {
    display: flex;
    gap: 2px;
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px solid var(--line);
}
.lang-switcher__link {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--ink-mute);
    padding: 0.35rem 0.55rem;
    border-radius: 4px;
    transition: all 0.15s ease;
    text-decoration: none;
}
.lang-switcher__link:hover {
    color: var(--burgundy);
    background: rgba(137, 4, 13, 0.06);
}
.lang-switcher__link.is-active {
    color: var(--burgundy);
    background: rgba(180, 157, 52, 0.18);
}
@media (max-width: 960px) {
    .lang-switcher {
        margin: 1rem 0 0;
        padding: 1rem 0 0;
        border-left: 0;
        border-top: 1px solid var(--line);
        justify-content: center;
    }
}

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--ink);
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 960px) {
    .nav-toggle { display: block; }
    .site-nav {
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: var(--cream-light);
        border-bottom: 1px solid var(--line);
        padding: 1rem 1.5rem 1.5rem;
        display: none;
        box-shadow: var(--shadow-md);
    }
    .site-nav.is-open { display: block; }
    .site-nav__list {
        flex-direction: column;
        gap: 0.25rem;
        align-items: stretch;
    }
    .site-nav__link {
        padding: 0.75rem 1rem;
        text-align: left;
    }
}

/* ── Hero (homepage) ──────────────────────────────────────────────────── */
.hero {
    padding: 4rem 0 3rem;
    text-align: center;
}

/* Hero met sfeer-banner van de oude header.png */
.hero--with-banner {
    position: relative;
    padding: 0 0 3rem;
    overflow: hidden;
}
.hero__banner {
    position: relative;
    width: 100%;
    aspect-ratio: 6 / 1;
    max-height: 320px;
    overflow: hidden;
}
.hero__banner-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 35%;
    background-repeat: no-repeat;
    filter: sepia(0.15) saturate(0.85);
}
.hero__banner-fade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(248, 248, 218, 0.05) 0%, rgba(248, 248, 218, 0.0) 30%, rgba(248, 248, 218, 0.65) 80%, var(--cream) 100%),
        linear-gradient(90deg, rgba(248, 248, 218, 0.45) 0%, rgba(248, 248, 218, 0.0) 25%, rgba(248, 248, 218, 0.0) 75%, rgba(248, 248, 218, 0.45) 100%);
}
.hero__banner-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(320px, 50%, 720px);
    height: auto;
    z-index: 1;
    /* Witte halo achter het goud-logo voor leesbaarheid op donkere delen
       van de banner — exact zoals de oude site (semi-transparante witte band) */
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.55);
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(2px);
    box-sizing: content-box;
}
.hero--with-banner .hero__inner {
    margin-top: -1rem;          /* overlap met onderkant van banner-fade */
    position: relative;
    z-index: 2;
    padding-top: 2.5rem;
}
.hero__badge {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--gold);
    margin-bottom: 1.5rem;
    padding: 0.4rem 1rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--cream-light);
}
.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--ink);
    margin: 0 0 1rem;
    line-height: 1.05;
    font-weight: 500;
}
.hero__title em {
    color: var(--burgundy);
    font-style: italic;
    font-weight: 500;
}
.hero__lede {
    max-width: 640px;
    margin: 0 auto 2.5rem;
    font-size: 1.15rem;
    color: var(--ink-soft);
    font-style: italic;
}

.hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    background: var(--burgundy);
    color: var(--cream-light);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 999px;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}
.hero__cta:hover {
    background: var(--burgundy-dark);
    color: var(--cream-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.quote-block {
    max-width: 760px;
    margin: 4rem auto;
    padding: 2.5rem 3rem;
    text-align: center;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 4px;
    position: relative;
}
.quote-block::before {
    content: "“";
    position: absolute;
    top: -0.5rem;
    left: 1.5rem;
    font-family: var(--font-display);
    font-size: 5rem;
    color: var(--gold);
    line-height: 1;
    opacity: 0.4;
}
.quote-block__text {
    font-style: italic;
    font-size: 1.2rem;
    color: var(--ink);
    margin: 0;
}
.quote-block__attr {
    display: block;
    margin-top: 1rem;
    font-style: normal;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ── Content pages ────────────────────────────────────────────────────── */
.page-section {
    padding: 3rem 0 4rem;
}
.page-section__title {
    text-align: center;
    margin-bottom: 0.5rem;
}
.page-section__lead {
    text-align: center;
    color: var(--ink-mute);
    font-style: italic;
    margin-bottom: 3rem;
}

.prose {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.05rem;
}
.prose p { margin: 0 0 1rem; }
.prose a { border-bottom: 1px solid currentColor; }

/* ── Books grid ───────────────────────────────────────────────────────── */
.books-section { padding: 3rem 0 5rem; }
.books-section + .books-section { padding-top: 1rem; }

.books-section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
    gap: 1rem;
    flex-wrap: wrap;
}
.books-section__head h2 { margin: 0; }
.books-section__count {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-mute);
}

/* Boekenkast — plank-PNG (1200×171) op 1:1, herhaalt verticaal. Cover staat
   bovenop, titel valt op de witte plank-rand onder de cover. */
/* Flex-layout: elke cover behoudt zijn aspect (vaste hoogte, width volgt
   verhouding), alle bottom-aligned op de plank-strip. */
.books-grid {
    --shelf-row-height: 171px;
    --shelf-cover-height: 138px;
    --shelf-top-offset: 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;            /* boeken op de plank uitlijnen */
    column-gap: 18px;
    row-gap: 0;
    padding: 0 4.5rem;
    background-image: url('/img/bookshelf.png');
    background-repeat: repeat-y;
    background-size: 100% var(--shelf-row-height);
    background-position: top left;
}

.book-card {
    flex: 0 0 auto;                    /* intrinsieke breedte = cover-breedte */
    height: var(--shelf-row-height);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    transition: transform 0.18s ease;
}

.book-card__cover {
    margin-top: var(--shelf-top-offset);
    height: var(--shelf-cover-height); /* alle covers exact even hoog */
    display: block;
}
.book-card__cover img {
    height: 100%;                      /* = 138px, gelijk voor alle */
    width: auto;                       /* breedte volgt verhouding */
    display: block;
    /* Schaduw alleen aan de zijkanten + bovenkant (geen drop onder cover-bottom) */
    filter:
        drop-shadow(-1px -1px 2px rgba(42, 37, 32, 0.18))
        drop-shadow(1px -1px 2px rgba(42, 37, 32, 0.18));
    transition: filter 0.18s ease, transform 0.18s ease;
}
.book-card:hover .book-card__cover img {
    filter:
        drop-shadow(-2px -2px 4px rgba(42, 37, 32, 0.28))
        drop-shadow(2px -2px 4px rgba(42, 37, 32, 0.28));
    transform: translateY(-2px);
}
.book-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-mute);
    font-family: var(--font-display);
    font-size: 1.4rem;
    background: linear-gradient(135deg, var(--cream-deep), var(--paper));
}

.book-card__name {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    color: var(--ink-soft);
    margin-top: 5px;        /* op de witte plank-strip */
    line-height: 1.15;
    letter-spacing: 0.02em;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-transform: lowercase;
}
.book-card:hover .book-card__name { color: var(--burgundy); }

@media (max-width: 720px) {
    .books-grid {
        --shelf-cover-height: 110px;
        column-gap: 12px;
        padding: 0 1.5rem;
    }
}

/* ── Poems alphabetical list ──────────────────────────────────────────── */
.poems-grid {
    columns: 4;
    column-gap: 2.5rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
}
.poems-grid li {
    break-inside: avoid;
    padding: 0.15rem 0;
}
.poems-grid ul { list-style: none; padding: 0; margin: 0; }
.poems-grid a {
    color: var(--burgundy);
    text-decoration: none;
}
.poems-grid a:hover { text-decoration: underline; }
.poems-grid .indent { padding-left: 1.5rem; }
.poems-grid .italic { font-style: italic; }
.poems-grid .header-only {
    color: var(--ink-mute);
    font-weight: 600;
}

@media (max-width: 1024px) {
    .poems-grid { columns: 3; }
}
@media (max-width: 720px) {
    .poems-grid { columns: 2; }
}
@media (max-width: 480px) {
    .poems-grid { columns: 1; }
}

/* ── Poem detail ──────────────────────────────────────────────────────── */
.poem-page {
    max-width: 980px;
    margin: 0 auto;
    padding: 2.5rem 0 4rem;
}

.poem-page__head {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--line);
}
.poem-page__back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-mute);
    margin-bottom: 1.5rem;
}
.poem-page__back:hover { color: var(--burgundy); }
.poem-page__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--burgundy);
    margin: 0 0 0.25rem;
    font-weight: 500;
    font-style: italic;
}
.poem-page__sub {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--ink-mute);
    margin: 0;
}

.poem-text {
    font-family: Arial, Helvetica, "Liberation Sans", sans-serif;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #1E2A8C;                /* klassiek poem-blauw zoals op oude site */
    column-gap: 3rem;
    margin: 2rem auto 3rem;
    white-space: pre-wrap;
}
.poem-text--cols-1 { column-count: 1; max-width: 540px; }
.poem-text--cols-2 { column-count: 2; }
.poem-text--cols-3 { column-count: 3; }
.poem-text--cols-4 { column-count: 4; }
.poem-text--cols-5 { column-count: 5; }
.poem-text--cols-6 { column-count: 6; }
@media (max-width: 960px) {
    .poem-text--cols-3, .poem-text--cols-4, .poem-text--cols-5, .poem-text--cols-6 {
        column-count: 2;
    }
}
@media (max-width: 600px) {
    .poem-text { column-count: 1 !important; }
}
.poem-empty {
    text-align: center;
    color: var(--ink-mute);
    font-style: italic;
    padding: 2rem 0;
}

.poem-media {
    margin: 3rem 0;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}
.poem-media__title {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--gold);
    margin: 0 0 1.5rem;
    font-weight: 600;
}
.poem-media__title svg { color: var(--gold); }

.poem-media__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.5rem;
}
.poem-media__item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1rem;
    align-items: center;
    padding: 0.6rem 1rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 6px;
}
.poem-media__label {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.poem-media__item audio {
    width: 100%;
    height: 36px;
}
@media (max-width: 600px) {
    .poem-media__item {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }
}

.poem-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.poem-video {
    margin: 0;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
}
.poem-video video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    display: block;
}
.poem-video figcaption {
    padding: 0.6rem 1rem;
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--ink-soft);
}

.poem-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}
.poem-image {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 0;
    cursor: zoom-in;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}
.poem-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}
.poem-image:hover img { transform: scale(1.04); }

/* ── Gallery (chique image-viewer voor poem-illustraties) ─────────────── */
.no-scroll { overflow: hidden; }

.gallery {
    position: fixed;
    inset: 0;
    z-index: 100;
    background:
        radial-gradient(ellipse at center, rgba(28, 24, 20, 0.96) 0%, rgba(12, 10, 8, 0.99) 100%);
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
        "header header header"
        "prev   stage  next"
        "strip  strip  strip";
    color: var(--cream-light);
}

.gallery__header {
    grid-area: header;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 4rem 1rem 2rem;
    border-bottom: 1px solid rgba(180, 157, 52, 0.15);
}
.gallery__title {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.25rem;
    color: var(--cream-light);
    letter-spacing: 0.01em;
}
.gallery__counter {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--gold-soft);
}

.gallery__close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(180, 157, 52, 0.25);
    color: var(--cream-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
}
.gallery__close:hover {
    background: rgba(180, 157, 52, 0.12);
    border-color: var(--gold);
    color: var(--gold-soft);
}

.gallery__nav {
    background: transparent;
    border: 0;
    color: rgba(248, 248, 218, 0.6);
    cursor: pointer;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.18s ease, transform 0.18s ease;
    width: 80px;
}
.gallery__nav:hover:not(:disabled) {
    color: var(--gold-soft);
    transform: scale(1.1);
}
.gallery__nav:disabled {
    opacity: 0.2;
    cursor: not-allowed;
}
.gallery__nav--prev { grid-area: prev; }
.gallery__nav--next { grid-area: next; }

.gallery__stage {
    grid-area: stage;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    min-height: 0;
    min-width: 0;
    cursor: zoom-out;
}
.gallery__image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.55),
        0 4px 12px rgba(0, 0, 0, 0.35);
    border-radius: 2px;
    cursor: default;
    animation: galleryFadeUp 0.3s ease-out;
}
@keyframes galleryFadeUp {
    from { opacity: 0; transform: translateY(10px) scale(0.99); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.gallery__strip {
    grid-area: strip;
    display: flex;
    gap: 0.6rem;
    padding: 0.85rem 1.5rem;
    overflow-x: auto;
    scrollbar-width: thin;
    border-top: 1px solid rgba(180, 157, 52, 0.15);
    background: rgba(0, 0, 0, 0.3);
    justify-content: center;
}
.gallery__thumb {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    background: transparent;
    border: 1px solid transparent;
    padding: 2px;
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.18s ease;
    opacity: 0.55;
}
.gallery__thumb:hover { opacity: 0.85; border-color: rgba(180, 157, 52, 0.3); }
.gallery__thumb.is-active {
    opacity: 1;
    border-color: var(--gold);
    box-shadow: 0 0 0 1px var(--gold);
}
.gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
}

@media (max-width: 700px) {
    .gallery {
        grid-template-areas:
            "header header header"
            "stage  stage  stage"
            "prev   strip  next";
    }
    .gallery__nav { width: 56px; padding: 0.5rem; }
    .gallery__strip { padding: 0.5rem; }
    .gallery__thumb { width: 48px; height: 48px; }
    .gallery__title { font-size: 1rem; }
    .gallery__header { padding: 1rem 3.5rem 0.75rem 1rem; }
}

.poem-nav {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.poem-nav__link {
    display: flex;
    flex-direction: column;
    padding: 1rem 1.25rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 6px;
    transition: all 0.18s ease;
}
.poem-nav__link:hover {
    border-color: var(--gold);
    background: var(--cream-light);
    transform: translateY(-1px);
}
.poem-nav__link--prev { text-align: left; }
.poem-nav__link--next { text-align: right; }
.poem-nav__label {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ink-mute);
    margin-bottom: 0.25rem;
}
.poem-nav__title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--burgundy);
    font-style: italic;
}

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer {
    margin-top: 4rem;
    padding: 2rem 0;
    border-top: 1px solid var(--line);
    text-align: center;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    color: var(--ink-mute);
    letter-spacing: 0.04em;
}
.site-footer a { color: var(--ink-mute); }
.site-footer a:hover { color: var(--burgundy); }

/* ── Errors ───────────────────────────────────────────────────────────── */
.error-page {
    text-align: center;
    padding: 6rem 0;
}
.error-page__code {
    font-family: var(--font-display);
    font-size: 6rem;
    color: var(--gold);
    margin: 0;
    line-height: 1;
}
