/* ============================================================
   WINNOW — Design system · public.css
   Public / streaming pages only (landing, browse, story pages,
   for-writers, error pages). Dark cinematic canvas, wine
   gradients, marquee ribbon.
   Requires core.css loaded first. Never combine with private.css.
   ============================================================ */

/* .site-header is sticky, so an in-page anchor (#faq, #journey, …) would otherwise land
   underneath it. Keep this above the header's ~76px height. */
html { scroll-padding-top: 6rem; }

body {
    --focus-ring: var(--cream);
    background: var(--black);
    color: var(--cream);
}

/* light sections flip the focus ring back to wine */
.featured,
.how-voting,
.browse-results,
.features,
.journey--light,
.explainer,
.faq-section {
    --focus-ring: var(--wine);
}

/* ------------------------------------------------------------
   Layout helpers + section heads
   ------------------------------------------------------------ */
.section-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--space-3);
}

.section-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
}

.section-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2rem, 4.5vw, 3.1rem);
    line-height: 1.12;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--ink);
    max-width: 26ch;
}
.section-title--dark { color: var(--cream); }

.section-cta {
    display: flex;
    justify-content: center;
    margin-top: var(--space-5);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(19, 8, 12, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(253, 243, 222, 0.1);
}

.header-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0.7rem var(--space-3);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.brand img { width: 60px; height: auto; }

/* pill nav, centered — echoes the approved header */
.site-nav {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    margin: 0 auto;
    padding: 0.28rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(253, 243, 222, 0.08);
    border-radius: 999px;
}
.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--cream-70);
    padding: 0.42rem 1.05rem;
    border-radius: 999px;
    transition: color 0.15s ease, background-color 0.15s ease;
}
.nav-link:hover {
    color: var(--cream);
    background: rgba(253, 243, 222, 0.08);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}
.signin-link {
    font-size: 0.9rem;
    font-weight: 500;
    font-family: var(--font-body);
    text-decoration: none;
    color: var(--cream-70);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: color 0.15s ease;
}
.signin-link:hover { color: var(--cream); }

/* ============================================================
   HERO — wine gradient, like the approved landing
   ============================================================ */
.hero {
    text-align: center;
    background:
        radial-gradient(110% 90% at 50% 0%, rgba(133, 32, 56, 0.55), transparent 70%),
        linear-gradient(180deg, #5c1124 0%, var(--burgundy) 55%, var(--burgundy-deep) 100%);
}

.hero-inner {
    max-width: 820px;
    margin: 0 auto;
    padding: var(--space-6) var(--space-3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
}

.hero-logo {
    width: 190px;
    height: auto;
    margin-bottom: var(--space-2);
}

.hero-headline {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.6rem, 5.5vw, 4.4rem);
    line-height: 1.1;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.hero-sub {
    max-width: 580px;
    color: var(--cream-70);
    font-size: 1.05rem;
}

.hero-actions {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    justify-content: center;
    margin-top: var(--space-2);
}

/* ============================================================
   PAGE HERO — compact wine band for inner pages
   (browse, leaderboard, teaser detail head)
   ============================================================ */
.page-hero {
    background:
        radial-gradient(120% 130% at 50% 0%, rgba(133, 32, 56, 0.45), transparent 70%),
        linear-gradient(180deg, #4d0e1e 0%, var(--burgundy-deep) 100%);
}

.page-hero-inner {
    padding-top: var(--space-5);
    padding-bottom: var(--space-5);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
}

.page-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    line-height: 1.1;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.page-sub {
    max-width: 560px;
    color: var(--cream-70);
    font-size: 1rem;
}

.votes-remaining {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cream-70);
    border: 1px solid rgba(253, 243, 222, 0.32);
    border-radius: 999px;
    padding: 0.5rem 1.1rem;
    margin-top: var(--space-1);
    white-space: nowrap;
}
.votes-remaining svg { width: 16px; height: 16px; color: var(--cream); }
.votes-remaining strong { color: var(--cream); font-weight: 500; }

.page-hero .btn { margin-top: var(--space-1); }

/* ============================================================
   FEATURED TEASERS — cream section, unboxed cards
   ============================================================ */
.featured {
    background: var(--cream);
    color: var(--ink);
    padding: var(--space-6) 0;
}

.teaser-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-3);
}

.teaser-card {
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease;
}
.teaser-card:hover { transform: translateY(-4px); }

/* --- poster art --- */
.poster {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    aspect-ratio: 3 / 4;
    padding: 1.4rem 1rem;
    text-decoration: none;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(21, 8, 9, 0.12);
    transition: box-shadow 0.2s ease;
    /* default art for unmapped categories */
    background: linear-gradient(160deg, #5c3a45 0%, #2e1a20 60%, #1a0f13 100%);
}
.teaser-card:hover .poster {
    box-shadow: 0 14px 30px -14px rgba(21, 8, 9, 0.4);
}

/* per-category gradient art (class derived from the category name) */
.poster--drama     { background: linear-gradient(160deg, #35586a 0%, #16303c 60%, #102028 100%); }
.poster--sci-fi    { background: linear-gradient(160deg, #4d2c60 0%, #241539 60%, #150d24 100%); }
.poster--thriller  { background: linear-gradient(160deg, #632a33 0%, #2c1418 60%, #1a0c0f 100%); }
.poster--adventure { background: linear-gradient(160deg, #3c6153 0%, #1b332a 60%, #12211c 100%); }
.poster--crime     { background: linear-gradient(160deg, #3f4a5a 0%, #1d242e 60%, #12161d 100%); }
.poster--comedy    { background: linear-gradient(160deg, #8a6a2f 0%, #4a3416 60%, #2b1e0d 100%); }
.poster--horror    { background: linear-gradient(160deg, #3a2430 0%, #1c1018 60%, #100a0e 100%); }

/* --- real trailer thumbnail (Task 39), in place of a gradient poster --- */
.poster-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.poster--photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(16, 9, 11, 0.15) 0%, rgba(16, 9, 11, 0.8) 100%);
    z-index: 1;
}
.poster > .poster-presents,
.poster > .poster-title,
.poster > .poster-pen,
.poster > .poster-play {
    position: relative;
    z-index: 2;
}

.poster-presents {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--cream-45);
    margin-bottom: auto;
}

.poster-title {
    font-family: var(--font-poster);
    font-style: italic;
    font-weight: 700;
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    line-height: 1.12;
    color: var(--cream);
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.poster-pen {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 400;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--cream-45);
    margin-top: 0.75rem;
    margin-bottom: auto;
}

.poster-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(253, 243, 222, 0.5);
    color: var(--cream);
    background: rgba(12, 11, 12, 0.4);
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.poster-play svg { width: 17px; height: 17px; margin-left: 2px; }
.poster:hover .poster-play {
    background: var(--wine);
    border-color: var(--wine);
    transform: scale(1.08);
}

/* --- card body --- */
.teaser-body {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: var(--space-2) 0.25rem 0;
    flex: 1;
}

.teaser-title {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
}
.teaser-title a {
    text-decoration: none;
    transition: color 0.15s ease;
}
.teaser-title a:hover { color: var(--wine); }

.teaser-meta {
    font-size: 0.8rem;
    color: var(--ink-45);
}

.teaser-logline {
    font-size: 0.88rem;
    color: var(--ink-65);
    flex: 1;
}

.teaser-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-1);
    margin-top: 0.6rem;
}

.votes {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--wine);
}

.view-link {
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--wine);
    transition: color 0.15s ease;
}
.view-link:hover {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ============================================================
   BROWSE — filter bar + results on cream
   ============================================================ */
.browse-results {
    background: var(--cream);
    color: var(--ink);
    padding: var(--space-5) 0 var(--space-6);
}

.filter-bar {
    display: flex;
    gap: var(--space-2);
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--ink-line);
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-field label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-65);
}

.filter-field select,
.filter-field input {
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--ink);
    background: var(--card-bg);
    border: 1px solid var(--field-line);
    border-radius: 8px;
    padding: 0.6rem 0.9rem;
    min-width: 170px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.filter-field select:focus,
.filter-field input:focus {
    outline: none;
    border-color: var(--wine);
    box-shadow: 0 0 0 3px rgba(107, 21, 41, 0.12);
}

.filter-apply {
    background: transparent;
    color: var(--ink);
    border-color: rgba(21, 8, 9, 0.3);
}
.filter-apply:hover {
    border-color: var(--ink);
    background: rgba(21, 8, 9, 0.04);
}

/* empty results notice — cream context by default */
.empty-state {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    color: var(--ink-65);
    text-align: center;
    padding: var(--space-5) var(--space-3);
    border: 1.5px dashed var(--field-line);
    border-radius: var(--radius-card);
}
.empty-state--dark {
    color: var(--cream-70);
    border-color: var(--cream-line);
}

/* ============================================================
   HOW VOTING WORKS — plain columns on cream
   ============================================================ */
.how-voting {
    background: var(--cream);
    color: var(--ink);
    padding: var(--space-6) 0;
    border-top: 1px solid var(--ink-line);
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    max-width: 980px;
    margin: 0 auto;
}

.rule { text-align: center; }

.rule-no {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.24em;
    color: var(--wine);
    margin-bottom: 0.8rem;
}

.rule-title {
    font-size: 1.08rem;
    font-weight: 650;
    margin-bottom: 0.5rem;
}

.rule-desc {
    font-size: 0.9rem;
    color: var(--ink-65);
    max-width: 34ch;
    margin: 0 auto;
}

/* ============================================================
   LEADERBOARD — dark panel, FAQ-card styling
   ============================================================ */
.leaderboard {
    background: var(--maroon-ink);
    padding: var(--space-6) 0;
}

.lb-head { margin-bottom: var(--space-4); }

.lb-sub {
    color: var(--cream-70);
    font-size: 0.98rem;
    max-width: 560px;
    margin-top: var(--space-2);
}

.lb-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.lb-row {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: 1rem var(--space-3);
    background: var(--burgundy);
    border-radius: 12px;
    transition: background-color 0.15s ease;
}
.lb-row:hover { background: #4d0e1d; }

.rank {
    flex: 0 0 auto;
    width: 2.2rem;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.35rem;
    line-height: 1;
    text-align: center;
    color: var(--cream-45);
}
.rank--top { color: var(--cream); }

.lb-main { flex: 1; min-width: 0; }

.lb-title {
    font-size: 1.02rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease;
}
.lb-title:hover { text-decoration: underline; text-underline-offset: 3px; }

.lb-meta {
    font-size: 0.78rem;
    color: var(--cream-45);
    margin-top: 0.15rem;
}

.lb-votes {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cream-45);
    white-space: nowrap;
}
.lb-votes strong {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
    color: var(--cream);
    margin-right: 0.35rem;
}

.see-all-link {
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--cream-70);
    transition: color 0.15s ease;
}
.see-all-link:hover { color: var(--cream); }

/* ============================================================
   TEASER DETAIL — dark stage + info rail
   ============================================================ */
.detail-wrap {
    padding-top: var(--space-4);
    padding-bottom: var(--space-6);
}

.back-link {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-decoration: none;
    color: var(--cream-45);
    margin-bottom: var(--space-3);
    transition: color 0.15s ease;
}
.back-link:hover { color: var(--cream); }

.teaser-detail {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: var(--space-4);
    align-items: start;
}

.teaser-video {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    background:
        radial-gradient(120% 120% at 50% 0%, rgba(133, 32, 56, 0.35), transparent 70%),
        var(--maroon-ink);
    border: 1px solid var(--cream-line);
    border-radius: var(--radius-card);
    overflow: hidden;
    color: var(--cream-45);
}

/* --- real trailer embed (Task 39) --- */
.teaser-video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    background: var(--maroon-ink);
    border: 1px solid var(--cream-line);
    border-radius: var(--radius-card);
    overflow: hidden;
}
.teaser-video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- cover image standing in for a missing embed (Task 41) --- */
.teaser-video-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.watermark-chip {
    position: absolute;
    top: var(--space-2);
    right: var(--space-2);
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--cream-45);
}

.teaser-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 1px solid rgba(253, 243, 222, 0.5);
    background: rgba(12, 11, 12, 0.4);
    color: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
}
.teaser-video-play svg { width: 28px; height: 28px; margin-left: 3px; }

.teaser-video-note {
    position: absolute;
    bottom: var(--space-2);
    left: var(--space-2);
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--cream-45);
}

.teaser-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
}

.teaser-detail-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    line-height: 1.1;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.teaser-detail-pen {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cream-45);
}

.teaser-detail-logline {
    font-size: 1rem;
    color: var(--cream-70);
}

/* --- vote control --- */
.vote-control {
    width: 100%;
    margin-top: var(--space-2);
    padding: var(--space-3);
    background: var(--burgundy);
    border-radius: var(--radius-card);
    text-align: center;
}

.vote-btn {
    width: 100%;
}
.vote-btn svg { width: 18px; height: 18px; }

.vote-budget {
    margin-top: var(--space-2);
    font-size: 0.85rem;
    color: var(--cream-70);
}
.vote-budget strong { color: var(--cream); }

.vote-blocked .vote-budget { margin-top: 0; }

.vote-done-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9fd8b4;
    border: 1px solid rgba(159, 216, 180, 0.4);
    border-radius: 999px;
    padding: 0.5rem 1.1rem;
}
.vote-done-badge svg { width: 16px; height: 16px; }

/* ============================================================
   COMING SOON — black band
   ============================================================ */
.coming-soon { background: var(--black); }

.coming-soon-inner {
    text-align: center;
    padding-top: var(--space-6);
    padding-bottom: var(--space-6);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
}

.coming-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    line-height: 1.15;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.coming-sub {
    max-width: 620px;
    color: var(--cream-70);
    font-size: 0.98rem;
}

.coming-soon .btn { margin-top: var(--space-1); }

/* ============================================================
   MARQUEE RIBBON
   ============================================================ */
.ribbon {
    background: var(--wine);
    overflow: hidden;
}

.ribbon-track {
    display: flex;
    width: max-content;
    animation: ribbon-scroll 30s linear infinite;
}

.ribbon-group {
    display: flex;
    align-items: center;
    gap: 2.75rem;
    padding: 0.85rem 0 0.75rem 2.75rem;
}

.ribbon-item {
    font-family: var(--font-display);
    font-size: 1.02rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--cream);
    white-space: nowrap;
}

.ribbon-dot { color: var(--cream-45); }

@keyframes ribbon-scroll {
    to { transform: translateX(-50%); }
}

/* ============================================================
   WRITERS CTA — full-bleed burgundy band
   ============================================================ */
.writers {
    background:
        radial-gradient(90% 130% at 50% 0%, rgba(133, 32, 56, 0.5), transparent 70%),
        linear-gradient(180deg, #561122 0%, var(--burgundy) 60%, var(--burgundy-deep) 100%);
    background-color: var(--burgundy);
}

.writers-inner {
    text-align: center;
    padding-top: var(--space-6);
    padding-bottom: var(--space-6);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
}

.writers-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.1;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.writers-sub {
    max-width: 560px;
    color: var(--cream-70);
    font-size: 0.98rem;
}

.writers .btn { margin-top: var(--space-1); }

/* ============================================================
   FOR WRITERS — features on cream
   ============================================================ */
.features {
    background: var(--cream);
    color: var(--ink);
    padding: var(--space-6) 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
}

.feature-card { text-align: center; }

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(107, 21, 41, 0.08);
    color: var(--wine);
    margin-bottom: var(--space-2);
}
.feature-icon svg { width: 24px; height: 24px; }

.feature-title {
    font-size: 1.08rem;
    font-weight: 650;
    margin-bottom: 0.5rem;
}

.feature-desc {
    font-size: 0.9rem;
    color: var(--ink-65);
    max-width: 34ch;
    margin: 0 auto;
}

/* ============================================================
   JOURNEY — vertical pipeline timeline.
   Dark by default (/how-it-works); .journey--light flips it to
   cream for /for-writers. Each step is a dot on a connecting
   rule, which is also the hook for the staged reveal animation
   still to come from the Figma prototype.
   ============================================================ */
.journey {
    background: var(--burgundy-deep);
    padding: var(--space-6) 0;
}

.journey--light {
    background: var(--cream);
    color: var(--ink);
    border-top: 1px solid var(--ink-line);
}

.journey-list {
    list-style: none;
    max-width: 780px;
    margin: 0 auto;
    padding: 0;
}

.journey-step {
    position: relative;
    padding-left: var(--space-4);
    padding-bottom: var(--space-4);
    border-left: 1px solid var(--cream-line);
}
.journey--light .journey-step { border-left-color: var(--ink-line); }

/* Last step: keep the layout, drop the trailing rule. */
.journey-step--final {
    border-left-color: transparent;
    padding-bottom: 0;
}

.journey-step::before {
    content: "";
    position: absolute;
    left: -5px;
    top: 0.3rem;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--cream);
}
.journey--light .journey-step::before { background: var(--wine); }

.journey-marker {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--cream-45);
    margin-bottom: 0.5rem;
}
.journey--light .journey-marker { color: var(--wine); }

.journey-title {
    font-size: 1.15rem;
    font-weight: 650;
    margin-bottom: 0.4rem;
}

.journey-desc {
    font-size: 0.95rem;
    color: var(--cream-70);
    max-width: 60ch;
}
.journey--light .journey-desc { color: var(--ink-65); }

/* ============================================================
   EXPLAINER — compact band pointing home visitors at
   /how-it-works (where the full voting rules now live)
   ============================================================ */
.explainer {
    background: var(--cream);
    color: var(--ink);
    padding: var(--space-6) 0;
    border-top: 1px solid var(--ink-line);
}

.explainer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-3);
}

.explainer-sub {
    max-width: 60ch;
    font-size: 0.98rem;
    color: var(--ink-65);
}

.explainer .btn { margin-top: var(--space-1); }

/* ============================================================
   FOR WRITERS — community band (maroon panel)
   ============================================================ */
.vote-root {
    background: var(--maroon-ink);
}

.vote-root-inner {
    text-align: center;
    padding-top: var(--space-6);
    padding-bottom: var(--space-6);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
}

.vote-root-inner p {
    max-width: 620px;
    color: var(--cream-70);
    font-size: 0.98rem;
}

.vote-root .btn { margin-top: var(--space-1); }

/* ============================================================
   FAQ — card rows on cream
   ============================================================ */
.faq-section {
    background: var(--cream);
    color: var(--ink);
    padding: var(--space-6) 0;
    border-top: 1px solid var(--ink-line);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 860px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--card-line);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-2);
    padding: 1.1rem var(--space-3);
    cursor: pointer;
    font-size: 0.98rem;
    font-weight: 600;
    list-style: none;
    user-select: none;
}
.faq-question::-webkit-details-marker { display: none; }

.faq-chevron {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--ink-45);
    transition: transform 0.2s ease;
}
.faq-chevron svg { width: 100%; height: 100%; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }

.faq-answer {
    padding: 0 var(--space-3) var(--space-3);
    color: var(--ink-65);
    font-size: 0.9rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--black);
    border-top: 1px solid rgba(253, 243, 222, 0.08);
}

.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: var(--space-5) var(--space-3) var(--space-4);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
}

.footer-logo { width: 140px; height: auto; }

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3);
}
.footer-link {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-decoration: none;
    color: var(--cream-45);
    transition: color 0.15s ease;
}
.footer-link:hover { color: var(--cream); }

.footer-copy {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    color: rgba(253, 243, 222, 0.32);
}

/* ============================================================
   FLASH BANNERS (fragments/flash :: flash-banners)
   ============================================================ */
.flash-region {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--space-3);
}
.flash-region:not(:empty) { padding-top: var(--space-2); }

.flash {
    font-size: 0.9rem;
    padding: 0.75rem 1.1rem;
    margin-bottom: 0.75rem;
    border-radius: var(--radius);
    border: 1px solid;
}

.flash--success {
    background: rgba(46, 125, 79, 0.16);
    border-color: rgba(159, 216, 180, 0.4);
    color: #9fd8b4;
}

.flash--error {
    background: rgba(150, 40, 40, 0.22);
    border-color: rgba(240, 150, 150, 0.4);
    color: #f0a3a3;
}

.flash--warning {
    background: rgba(201, 146, 47, 0.16);
    border-color: rgba(233, 196, 128, 0.4);
    color: #e9c480;
}

.flash--info {
    background: rgba(253, 243, 222, 0.08);
    border-color: rgba(253, 243, 222, 0.28);
    color: var(--cream-70);
}

/* ============================================================
   ERROR PAGES (templates/error/*)
   ============================================================ */
.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-6) var(--space-3);
    min-height: 60vh;
}

.error-page-code {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(4rem, 10vw, 6.5rem);
    line-height: 1;
    color: var(--cream);
    margin-bottom: var(--space-2);
}

.error-page-title {
    font-size: 1.4rem;
    font-weight: 650;
    margin-bottom: var(--space-2);
}

.error-page-body {
    color: var(--cream-70);
    max-width: 480px;
    margin-bottom: var(--space-4);
}

.error-page-actions {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    justify-content: center;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1020px) {
    .teaser-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
    .rules-grid { grid-template-columns: 1fr; gap: var(--space-4); }
    .teaser-detail { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .header-inner {
        flex-wrap: wrap;
        gap: var(--space-2);
        justify-content: space-between;
    }
    .site-nav {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .hero-inner { padding-top: var(--space-5); padding-bottom: var(--space-5); }

    .teaser-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .poster { aspect-ratio: 16 / 10; }

    .lb-row {
        flex-wrap: wrap;
        gap: var(--space-2);
    }
    .lb-main { flex: 1 1 55%; }
    .lb-votes { margin-left: calc(2.2rem + var(--space-2)); }
}

@media (max-width: 479px) {
    .filter-field,
    .filter-field select,
    .filter-field input {
        width: 100%;
        min-width: 0;
    }
}
