* {
    box-sizing: border-box;
}

.story-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: #181818;
    border-top: 1px solid #555;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.story-player[hidden] { display: none; }
.story-player a { color: #e0d2b8; white-space: nowrap; text-underline-offset: .2em; }
.story-player a:focus-visible { outline: 2px solid #e0d2b8; outline-offset: 4px; }
.story-player audio { width: min(480px, 100%); min-width: 0; }
.story-player button { background: none; color: white; border: 1px solid #777; border-radius: 4px; padding: 8px; cursor: pointer; }
.story-player [role="status"]:empty { display: none; }
.story-player-open { padding-bottom: 120px; }
@media (max-width: 600px) {
    .story-player { flex-wrap: wrap; gap: 8px; padding: 10px; }
    .story-player audio { order: 3; width: 100%; }
    .story-player-open { padding-bottom: 180px; }
}

body {
    margin: 0;
    background: #000;
    color: white;
    font-family: Arial, Helvetica, sans-serif;
}

.page-header {
    max-width: 1100px;
    margin: auto;
    padding: 60px 20px 30px;
}





.page-header h1 {
    margin: 35px 0 10px;
    font-size: clamp(3rem, 7vw, 5rem);
}

.page-header p {
    margin: 0;
    color: #aaa;
    font-size: 1.15rem;
}

main {
    max-width: 1100px;
    margin: auto;
    padding: 20px;
}


/* =========================
   INTRO
========================= */

.intro {
    margin-bottom: 80px;
}

.intro::after {
    content: "";
    display: block;
    clear: both;
}

.intro-image {
    float: left;
    width: 46%;
    margin: 0 40px 25px 0;
}

.intro-image img {
    width: 100%;
    display: block;
    border-radius: 12px;
}

.intro-text h2 {
    margin-top: 0;
    font-size: 2rem;
    line-height: 1.2;
}

.intro-text p {
    color: #bbb;
    line-height: 1.75;
    font-size: 1.05rem;
}

.intro-text strong {
    color: white;
}

.closing-line {
    color: white !important;
    font-size: 1.25rem !important;
    font-style: italic;
}


/* =========================
   STORIES
========================= */

.stories {
    margin-bottom: 80px;
}

.stories > h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
}


/* =========================
   STORY GRID
========================= */

.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 240px);
    gap: 22px;
    justify-content: start;
}


/* STORY CARD */

.story-card {
    display: block;
    overflow: hidden;

    background: #151515;
    border: 1px solid #292929;
    border-radius: 10px;

    color: white;
    text-decoration: none;

    transition: transform 0.25s ease, border-color 0.25s ease;
}

.story-card:hover {
    transform: translateY(-5px);
    border-color: #555;
}


/* PORTRAIT IMAGE */

.story-image {
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* CARD TEXT */

.story-info {
    padding: 18px;
}

.story-source {
    margin: 0 0 7px;

    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.08em;

    font-size: 0.7rem;
}

.story-info h3 {
    margin: 0 0 9px;
    font-size: 1.4rem;
}

.story-info p {
    margin: 0;

    color: #aaa;
    font-size: 0.9rem;
    line-height: 1.45;
}


/* =========================
   FOOTER
========================= */

footer {
    text-align: center;
    padding: 60px 20px 30px;
    color: #666;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 750px) {

    .page-header {
        padding-top: 35px;
    }

    .intro-image {
    float: none;
    width: 100%;
    margin: 0 0 30px 0;
}
    }


    /* STORY PHOTOS */

.story-photo {
    width: min(350px, 100%);
    margin: 35px 0;
}

.story-photo img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    border: 1px solid #333;
}

.zoomable {
    cursor: zoom-in;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.zoomable:hover {
    transform: scale(1.02);
    border-color: #666;
}

.photo-caption {
    margin: 8px 0 0;
    color: #777;
    font-size: 0.85rem;
    font-style: italic;
}


/* IMAGE LIGHTBOX */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.94);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
    z-index: 1000;
}

.lightbox.active {
    display: flex;
}

.lightbox-image {
    max-width: 95vw;
    max-height: 92vh;
    object-fit: contain;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    z-index: 1001;
}

/* =========================
   STORY ENTRY
========================= */

.story-entry {
    max-width: 900px;
}

.story-body {
    color: #bbb;
    font-size: 1.05rem;
    line-height: 1.75;
}

.story-body::after {
    content: "";
    display: block;
    clear: both;
}

.story-body p {
    margin: 0 0 20px;
}

.story-body em {
    color: #eee;
}

.story-body strong {
    color: white;
}


/* =========================
   STORY PHOTOS
========================= */

.story-photo {
    margin-top: 5px;
}

.story-photo img {
    width: 100%;
    height: auto;
    display: block;

    border-radius: 8px;
    border: 1px solid #333;
}

.story-photo figcaption {
    margin-top: 8px;

    color: #777;
    font-size: 0.85rem;
    font-style: italic;
    text-align: center;
}


/* First notebook image */

.story-photo-left {
    float: left;
    width: 340px;

    margin:
        0
        35px
        20px
        0;
}


/* Handwritten lyric page */

.story-photo-centre {
    width: min(500px, 100%);
    margin: 35px auto;
}


/* Clickable images */

.zoomable {
    cursor: zoom-in;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.zoomable:hover {
    transform: scale(1.015);
    border-color: #666;
}


/* =========================
   BLOCKQUOTE
========================= */

.story-body blockquote {
    margin: 25px 0;
    padding: 5px 0 5px 18px;

    border-left: 3px solid #777;

    color: #ddd;
    font-size: 1.1rem;
}


/* =========================
   ENDING
========================= */

.story-closing {
    margin-top: 28px !important;

    color: white;
    font-size: 1.15rem;
}


/* =========================
   LISTEN
========================= */

.story-listen {
    clear: both;

    margin-top: 45px;
    padding-top: 25px;

    border-top: 1px solid #333;
}

.story-listen h2 {
    margin: 0 0 10px;
    font-size: 2rem;
}

.story-listen p {
    color: #aaa;
}

.listen-link {
    display: inline-block;

    margin-top: 8px;
    padding: 11px 16px;

    border: 1px solid #555;
    border-radius: 6px;

    color: white;
    text-decoration: none;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.listen-link:hover {
    background: #181818;
    border-color: #888;
}


/* =========================
   LIGHTBOX
========================= */

.lightbox {
    position: fixed;
    inset: 0;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 30px;

    background: rgba(0, 0, 0, 0.95);

    z-index: 1000;
}

.lightbox.active {
    display: flex;
}

.lightbox-image {
    max-width: 95vw;
    max-height: 92vh;

    object-fit: contain;
}

.lightbox-close {
    position: fixed;

    top: 18px;
    right: 28px;

    color: white;

    font-size: 2.6rem;
    line-height: 1;

    cursor: pointer;

    z-index: 1001;
}


/* =========================
   STORY MOBILE
========================= */

@media (max-width: 750px) {

    .story-photo-left {
        float: none;

        width: min(380px, 100%);
        margin: 0 auto 30px;
    }

    .story-photo-centre {
        width: 100%;
    }

    .lightbox {
        padding: 15px;
    }

}


@media (max-width: 500px) {

    .story-grid {
        grid-template-columns: 1fr;
    }

}
/* Long-form archival stories and unfinished BTL entries. */
.btl-longform, .btl-placeholder { max-width: 780px; }
.btl-longform h2 { clear: both; color: #fff; line-height: 1.25; margin: 2.5em 0 1em; font-size: clamp(1.5rem, 4vw, 2rem); }
.btl-longform .story-body > p { max-width: 70ch; }
.btl-longform a:not(.listen-link), .btl-placeholder a { color: #e0d2b8; text-underline-offset: .2em; }
.btl-longform a:hover, .btl-placeholder a:hover { color: #fff; }
.btl-longform .archive-wide { width: min(580px, 100%); margin: 32px auto; }
.btl-longform .archive-aside { float: right; width: min(360px, 46%); margin: 4px 0 24px 30px; }
.btl-longform .story-photo img { height: auto; object-fit: contain; }
.btl-longform .story-photo figcaption { color: #aaa; }
.bridge-listen { clear: both; margin: 28px 0 40px !important; }
.listen-note { display: block; color: #aaa; font-size: .85rem; margin-top: 8px; }
.btl-longform .story-body > p:nth-last-child(-n+2) { color: #eee; }
.btl-placeholder { min-height: 45vh; }
a:focus-visible { outline: 2px solid #e0d2b8; outline-offset: 5px; }
@media (max-width: 750px) {
 .btl-longform .archive-aside { float: none; width: min(360px, 100%); margin: 28px auto; }
 .btl-longform .listen-link { max-width: 100%; }
}

/* The living lyric alongside its archival manuscript. */
.current-lyrics { margin: 36px 0; padding: clamp(18px, 4vw, 28px); border: 1px solid #333; border-radius: 6px; background: #111; }
.current-lyrics h3 { margin: 0 0 24px; color: #ddd; font-size: 1rem; font-weight: normal; }
.current-lyrics p { color: #ccc; font-size: 1rem; overflow-wrap: anywhere; }
.current-lyrics p:last-child { margin-bottom: 0; }
