/* ============================================================================
   base.css — the single source of truth for ALL structure, layout, and
   typography. Theme-INVARIANT. Every color/font is a var(--token); the three
   theme-*.css files define those tokens (and a few per-theme overrides).
   Load order on every page: base.css THEN theme-<name>.css.
   Refactored 2026-06-15 (was 3x ~1160-line parallel copies that had drifted).
   ============================================================================ */

/* ── Theme Switcher ──────────────────────────────────── */
.theme-switcher {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 12px 0 4px;
}

.theme-switcher-label {
    font-family: var(--font-accent);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-right: 4px;
}

.theme-btn {
    display: inline-block;
    text-decoration: none;
    border: 2px solid var(--border-light);
    padding: 4px 12px;
    font-family: var(--font-accent);
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    cursor: pointer;
    background: none;
    -webkit-appearance: none;
    appearance: none;
    line-height: inherit;
}

.theme-btn:hover {
    border-color: var(--border-accent);
    color: var(--text-primary);
}

.theme-btn.active {
    border-color: var(--border-accent);
    color: var(--text-primary);
    background: var(--bg-detail);
}

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

body {
    background: var(--bg-page);
    font-family: 'Libre Baskerville', serif;
    color: var(--text-primary);
    line-height: 1.7;
}

/* ── Inline links (narrative prose, anything unclassed) ──────────────────
   Without this, browser-default blue/purple links appear — unreadable on the
   dark theme. Tokenized so each theme picks a readable accent. */
a { color: var(--link); }
a:visited { color: var(--link); }
a:hover { color: var(--link-hover); }
.narrative a, .secondary-narrative a, .poster-details-callout a {
    color: var(--link);
    text-decoration: underline;
    text-decoration-color: var(--border-accent);
    text-underline-offset: 2px;
}
.narrative a:visited, .secondary-narrative a:visited, .poster-details-callout a:visited { color: var(--link); }
.narrative a:hover, .secondary-narrative a:hover, .poster-details-callout a:hover { color: var(--link-hover); text-decoration-color: var(--link-hover); }

/* ── Masthead logo (ON THIS DAY badge) ───────────────────
   Two colorways: dark-ink art (light/umber themes) + light-ink art (dark theme),
   toggled by [data-theme]. */
.masthead-logo {
    display: block;
    margin-bottom: 12px;
    line-height: 0;
}
.masthead-logo img {
    width: 116px;
    height: 116px;
    display: block;
}
.masthead-logo .logo-light { display: none; }
[data-theme="dark"] .masthead-logo .logo-dark { display: none; }
[data-theme="dark"] .masthead-logo .logo-light { display: block; }

/* ── Masthead ─────────────────────────────────────────── */

.masthead {
    width: 100%;
    background: var(--masthead-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 40px 20px;
    text-align: center;
    border-bottom: 6px solid var(--border-accent);
}

.top-rule {
    width: 900px;
    max-width: 90%;
    height: 2px;
    background: var(--border-accent);
    margin-bottom: 12px;
}

.masthead-title {
    font-family: 'Playfair Display', serif;
    font-size: 52px;
    font-weight: 900;
    font-style: italic;
    color: var(--text-primary);
    letter-spacing: 2px;
    line-height: 1.1;
}

.subtitle {
    font-family: var(--font-accent);
    font-size: 16px;
    color: var(--text-secondary);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-top: 8px;
}

.bottom-rule {
    width: 950px;
    max-width: 95%;
    height: 3px;
    background: var(--border-accent);
    margin-top: 12px;
}

.tagline {
    font-family: var(--font-accent);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-style: italic;
    margin-top: 10px;
}

.site-nav {
    margin-top: 16px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.site-nav a {
    font-family: var(--font-accent);
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 4px 8px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s, color 0.2s;
}

.site-nav a:visited { color: var(--text-secondary); }

.site-nav a:hover {
    border-bottom-color: var(--border-accent);
}

.site-nav a.active {
    border-bottom-color: var(--border-accent);
    color: var(--text-primary);
    font-weight: bold;
}

/* ── Breadcrumb ───────────────────────────────────────── */
.breadcrumb {
    max-width: 1000px;
    margin: 0 auto;
    padding: 18px 40px 0;
    font-family: var(--font-accent);
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:visited { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--link-hover); text-decoration: underline; }
.breadcrumb .sep { margin: 0 8px; opacity: 0.6; }
.breadcrumb .current { color: var(--text-secondary); }

/* ── Page Content ─────────────────────────────────────── */

.page-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 40px;
}

.date-display {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 900;
    color: var(--text-secondary);
    margin-bottom: 40px;
    letter-spacing: 1px;
}

/* ── Featured Event Grid ─────────────────────────────── */

.event-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    align-items: start;
}

.poster-frame {
    background: var(--bg-card);
    padding: 20px;
    border: 3px solid var(--border-accent);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.poster-frame img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.poster-caption {
    font-size: 12px;
    color: var(--text-secondary);
    font-style: italic;
    text-align: center;
    letter-spacing: 0.5px;
}

.poster-placeholder {
    width: 100%;
    aspect-ratio: 7/10;
    background: var(--placeholder-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-accent);
    color: var(--text-muted);
    font-size: 14px;
    font-style: italic;
    letter-spacing: 1px;
}

/* ── Event Details Sidebar ────────────────────────────── */

.event-details {
    background: var(--detail-bg);
    padding: 30px;
    border-left: 6px solid var(--border-accent);
}

.detail-row {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-light);
}

.detail-row:first-child { padding-top: 0; }
.detail-row:last-child { border-bottom: none; padding-bottom: 0; }

.detail-label {
    font-family: var(--font-accent);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-label);
    font-weight: bold;
    margin-bottom: 6px;
}

.detail-value {
    font-size: 16px;
    color: var(--text-primary);
    line-height: 1.5;
}

.detail-value strong { color: var(--text-primary); }
.detail-value em { color: var(--text-secondary); }

/* ── Narrative Section ────────────────────────────────── */

.narrative {
    background: var(--bg-card);
    padding: 40px;
    border: 3px solid var(--border-card);
    margin-bottom: 40px;
}

.narrative h2 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.narrative p {
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.8;
    text-align: justify;
}

.narrative p:last-child {
    margin-bottom: 0;
}

.poster-details-callout {
    background: var(--callout-bg);
    padding: 25px;
    border-top: 3px solid var(--border-accent);
    border-bottom: 3px solid var(--border-accent);
    margin: 20px 0;
    font-size: 13px;
    line-height: 1.7;
}

/* ── Secondary Events ─────────────────────────────────── */

.secondary-events {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--border-light);
}

.secondary-events h2 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 900;
    color: var(--text-secondary);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.secondary-event {
    background: var(--bg-card);
    border: 2px solid var(--border-card);
    padding: 24px 30px;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 24px;
    align-items: start;
}

/* Carousel — when a day has 2+ "also on" events, lay the cards in a horizontal
   scroll-snap strip: each ~60% wide so the prev/next peek on the sides. */
.secondary-events.is-carousel .carousel-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    /* side padding lets the first/last card sit centered-ish with a peek */
    padding: 4px 20% 16px 0;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
.secondary-events.is-carousel .secondary-event {
    flex: 0 0 60%;
    margin-bottom: 0;
    scroll-snap-align: start;
}
.secondary-events.is-carousel .carousel-track::-webkit-scrollbar { height: 8px; }
.secondary-events.is-carousel .carousel-track::-webkit-scrollbar-thumb {
    background: var(--border-card); border-radius: 4px;
}
@media (max-width: 768px) {
    .secondary-events.is-carousel .secondary-event { flex-basis: 85%; }
    .secondary-events.is-carousel .carousel-track { padding-right: 12%; }
}

.secondary-poster {
    width: 120px;
}

.secondary-poster img {
    width: 100%;
    height: auto;
    border: 2px solid var(--border-accent);
}

.secondary-poster .poster-placeholder {
    width: 120px;
    height: 170px;
    font-size: 10px;
}

.secondary-details h3 {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.secondary-meta {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.5;
}

.secondary-meta strong {
    color: var(--text-primary);
}

.secondary-narrative {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-primary);
}

/* Secondary-event CTA — lighter label than the hero's "Read the full story" */
.secondary-cta {
    font-family: var(--font-accent);
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--link);
    text-decoration: none;
    display: inline-block;
    margin-top: 8px;
}
.secondary-cta:visited { color: var(--link); }
.secondary-cta:hover { color: var(--link-hover); }

/* ── Were You There Footer ────────────────────────────── */

.were-you-there {
    background: var(--werethere-bg);
    padding: 40px;
    text-align: center;
    border-top: 4px solid var(--border-accent);
    margin-top: 60px;
}

.were-you-there h2 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.were-you-there p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.were-you-there em {
    color: var(--border-accent);
    font-style: italic;
}

/* ── Site Footer ──────────────────────────────────────── */

.site-footer {
    text-align: center;
    padding: 20px;
    font-family: var(--font-accent);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 2px;
}

.footer-note {
    color: var(--text-muted);
}

/* ── Year Page ────────────────────────────────────────── */

.year-title {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 900;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.year-subtitle {
    text-align: center;
    font-family: var(--font-accent);
    font-size: 14px;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 40px;
}

.month-group {
    margin-bottom: 40px;
}

.month-name {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 900;
    color: var(--text-secondary);
    letter-spacing: 1px;
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 8px;
    margin-bottom: 20px;
}

.event-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.event-card {
    background: var(--bg-card);
    border: 2px solid var(--border-card);
    overflow: hidden;
    transition: border-color 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.event-card:hover {
    border-color: var(--border-accent);
}

.event-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.event-card .poster-placeholder {
    height: 200px;
    aspect-ratio: auto;
}

.event-card-info {
    padding: 12px;
}

.event-card-date {
    font-family: var(--font-accent);
    font-size: 12px;
    color: var(--text-label);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.event-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 4px;
    line-height: 1.3;
}

.event-card-venue {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.event-card .featured-badge {
    display: inline-block;
    font-family: var(--font-accent);
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--border-accent);
    border: 1px solid var(--border-accent);
    padding: 1px 6px;
    margin-top: 6px;
}

/* ── Week Page ────────────────────────────────────────── */

.week-title {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    font-weight: 900;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.week-subtitle {
    text-align: center;
    font-family: var(--font-accent);
    font-size: 14px;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 40px;
}

.week-day-group {
    margin-bottom: 40px;
}

.week-day-label {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 16px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-light);
}

/* ── Pipeline Dashboard ───────────────────────────────── */

.pipeline-header {
    text-align: center;
    margin-bottom: 40px;
}

.pipeline-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.status-bar {
    display: flex;
    gap: 0;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
}

.status-bar-segment {
    height: 100%;
    transition: width 0.3s;
}

.status-counts {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.status-count {
    text-align: center;
}

.status-count .count {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
}

.status-count .label {
    font-family: var(--font-accent);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 4px;
}

.status-draft .count { color: var(--status-draft); }
.status-researched .count { color: var(--status-researched); }
.status-verified .count { color: var(--status-verified); }
.status-published .count { color: var(--status-published); }
.status-flagged .count { color: var(--status-flagged); }

.color-draft { background: var(--status-draft); }
.color-researched { background: var(--status-researched); }
.color-verified { background: var(--status-verified); }
.color-published { background: var(--status-published); }
.color-flagged { background: var(--status-flagged); }

.pipeline-section {
    margin-bottom: 40px;
}

.pipeline-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pipeline-section h2 .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.pipeline-event {
    background: var(--bg-card);
    border: 2px solid var(--border-card);
    padding: 20px 24px;
    margin-bottom: 12px;
}

.pipeline-event-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.pipeline-event-title {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.pipeline-event-date {
    font-family: var(--font-accent);
    font-size: 13px;
    color: var(--text-muted);
}

.pipeline-event-meta {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.pipeline-notes {
    margin-top: 12px;
    padding: 12px 16px;
    background: var(--bg-detail);
    border-left: 3px solid var(--border-accent);
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.pipeline-notes strong {
    color: var(--text-primary);
    display: block;
    font-family: var(--font-accent);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

/* ── Home Page ────────────────────────────────────────── */

.home-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.home-intro h2 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.home-intro p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.home-see-all {
    text-align: center;
    margin: 30px 0 50px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.home-see-all a {
    font-family: var(--font-accent);
    font-size: 15px;
    letter-spacing: 1px;
    color: var(--link);
    text-decoration: none;
}

.home-see-all a:visited { color: var(--link); }
.home-see-all a:hover {
    color: var(--link-hover);
}

.home-years {
    margin-top: 40px;
    text-align: center;
}

.year-nav {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.year-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 24px;
    background: var(--bg-card);
    border: 2px solid var(--border-card);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s;
}

.year-pill:hover {
    border-color: var(--border-accent);
}

.year-num {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 900;
    color: var(--text-primary);
}

.year-count {
    font-family: var(--font-accent);
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 4px;
}

.home-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 900;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

/* ── Read More Links ──────────────────────────────────── */

.read-more, .read-more-link {
    font-family: var(--font-accent);
    font-size: 13px;
    letter-spacing: 1px;
    color: var(--link);
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
}

.read-more:visited, .read-more-link:visited { color: var(--link); }

.read-more-link {
    font-size: 15px;
    margin-top: 20px;
    padding: 8px 0;
    border-top: 1px solid var(--border-light);
    display: block;
}

.read-more:hover, .read-more-link:hover {
    color: var(--link-hover);
}

a.secondary-event {
    text-decoration: none;
    color: inherit;
}

a.secondary-event:hover {
    border-color: var(--border-accent);
}

a.poster-frame {
    text-decoration: none;
}

/* ── Event Detail Page ───────────────────────────────── */

.back-nav {
    margin-bottom: 20px;
}

.back-nav a {
    font-family: var(--font-accent);
    font-size: 13px;
    letter-spacing: 1px;
    color: var(--text-muted);
    text-decoration: none;
}

.back-nav a:visited { color: var(--text-muted); }
.back-nav a:hover {
    color: var(--link-hover);
}

.poster-frame-large {
    min-height: 400px;
}

.poster-frame-large img {
    max-height: 600px;
    width: 100%;
    object-fit: contain;
}

.detail-notes {
    background: var(--bg-detail);
    border-left: 3px solid var(--border-accent);
    padding: 16px 20px;
    margin: 20px 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.detail-notes h3 {
    font-family: var(--font-accent);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 6px;
}

/* ── Home footer (Terms/copyright + cFletchAI pill) ────────
   No gradient. The pill CONTRASTS the page: dark pill on light/umber themes,
   light pill on the dark theme. Home page only. */
.home-footer {
    margin-top: 56px;
    padding: 32px 24px 48px;
    border-top: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}
.home-footer-meta {
    font-family: var(--font-accent);
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}
.home-footer-link { color: var(--link); text-decoration: none; }
.home-footer-link:visited { color: var(--link); }
.home-footer-link:hover { color: var(--link-hover); text-decoration: underline; }
.home-footer-sep { opacity: 0.5; }

/* The pill — contrasts the background. Default (light/umber) = dark pill. */
.design-credit-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    padding: 12px 22px 12px 14px;
    border-radius: 40px;
    background: #111;
    border: 1px solid #2a2218;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    transition: border-color 0.15s, transform 0.1s;
}
.design-credit-link:hover { border-color: var(--border-accent); transform: translateY(-1px); }
.design-credit-link img { width: 44px; height: 44px; display: block; }
.design-credit-text {
    font-family: var(--font-accent);
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #cbb89e;
}
.design-credit-text strong { color: #fff; }

/* Dark theme: light pill (contrasts the near-black page) */
[data-theme="dark"] .design-credit-link {
    background: #f3ede1;
    border-color: #d8cbb4;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}
[data-theme="dark"] .design-credit-text { color: #5a4a3a; }
[data-theme="dark"] .design-credit-text strong { color: #1a1410; }

/* ── Welcome box (home) + Welcome page intro ──────────── */
.welcome-box {
    display: block;
    text-align: center;
    text-decoration: none;
    background: var(--bg-detail);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--border-accent);
    padding: 18px 24px;
    margin-bottom: 40px;
    transition: border-color 0.15s;
}
.welcome-box:hover { border-color: var(--border-accent); }
.welcome-box-kicker {
    display: block;
    font-family: var(--font-accent);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--border-accent);
    margin-bottom: 6px;
}
.welcome-box-text { display: block; color: var(--text-secondary); font-size: 15px; line-height: 1.6; }
.welcome-box-cta {
    display: inline-block;
    margin-top: 8px;
    font-family: var(--font-accent);
    font-size: 13px;
    letter-spacing: 1px;
    color: var(--link);
}
.welcome-box:hover .welcome-box-cta { color: var(--link-hover); }

.welcome-intro { max-width: 720px; margin: 0 auto 48px; }
.welcome-callout {
    background: var(--bg-detail);
    border-left: 4px solid var(--border-accent);
    padding: 24px 28px;
    margin-bottom: 36px;
}
.welcome-callout h1 {
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 10px;
}
.welcome-callout p { color: var(--text-secondary); font-size: 16px; line-height: 1.7; margin: 0; }
.welcome-intro h2 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 900;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    margin: 32px 0 12px;
}
.welcome-intro p { font-size: 16px; line-height: 1.8; color: var(--text-primary); margin-bottom: 14px; }
.welcome-intro ul { margin: 0 0 16px 0; padding-left: 24px; }
.welcome-intro li { font-size: 16px; line-height: 1.7; color: var(--text-primary); margin-bottom: 6px; }
.welcome-signoff { font-style: italic; color: var(--text-secondary); margin-top: 28px; }

/* ── Comments ─────────────────────────────────────────── */
.comments {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 2px solid var(--border-light);
}
.comments-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 900;
    color: var(--text-secondary);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.comments-count { color: var(--text-muted); font-size: 16px; }
.comments-list { margin-bottom: 28px; }
.comments-empty { color: var(--text-muted); font-style: italic; }
.comment {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}
.comment:last-child { border-bottom: none; }
.comment-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 6px;
}
.comment-name {
    font-family: var(--font-accent);
    font-weight: bold;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}
.comment-date {
    font-family: var(--font-accent);
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.comment-body { color: var(--text-primary); line-height: 1.7; white-space: pre-wrap; }

.comments-form {
    background: var(--bg-card);
    border: 2px solid var(--border-card);
    padding: 24px;
}
.comment-field { margin-bottom: 16px; }
.comment-field label {
    display: block;
    font-family: var(--font-accent);
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-label);
    margin-bottom: 6px;
}
.comment-field input,
.comment-field textarea {
    width: 100%;
    padding: 10px 12px;
    font-family: 'Libre Baskerville', serif;
    font-size: 15px;
    color: var(--text-primary);
    background: var(--bg-page);
    border: 1px solid var(--border-light);
    border-radius: 4px;
}
.comment-field input:focus,
.comment-field textarea:focus { outline: none; border-color: var(--border-accent); }
.comment-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.comment-actions { display: flex; align-items: center; gap: 16px; }
.comment-actions button {
    font-family: var(--font-accent);
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--bg-card);
    background: var(--border-accent);
    border: none;
    padding: 10px 22px;
    border-radius: 4px;
    cursor: pointer;
}
.comment-actions button:disabled { opacity: 0.5; cursor: default; }
.comment-status { font-size: 13px; color: var(--text-muted); }
.comment-status.is-error { color: var(--status-flagged); }
.comment-status.is-ok { color: var(--status-published); }

/* ── Responsive ───────────────────────────────────────── */

@media (max-width: 768px) {
    .event-grid { grid-template-columns: 1fr; }
    .secondary-event { grid-template-columns: 80px 1fr; gap: 16px; }
    .secondary-poster { width: 80px; }
    .secondary-poster .poster-placeholder { width: 80px; height: 112px; }
    .masthead-title { font-size: 36px; }
    .page-content { padding: 30px 20px; }
    .breadcrumb { padding: 14px 20px 0; }
    .event-card-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .status-counts { gap: 16px; }
}

/* ── Two-image gallery + media links (#two-image launch feature) ───────── */
.poster-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: 18px;
    align-items: start;
}
.poster-gallery-wrap { margin-bottom: 24px; }
.event-details-full { margin-bottom: 40px; }
.media-link-row { margin: 0 0 40px; text-align: center; }
.media-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    color: var(--text-primary);
    text-decoration: none;
    border: 2px solid var(--border-accent);
    padding: 9px 18px;
    background: var(--bg-card);
    transition: background 0.15s;
}
.media-link:visited { color: var(--text-primary); }
.media-link:hover { background: var(--bg-detail); color: var(--text-primary); }
.media-link .play { color: var(--play-color); font-size: 15px; }
.media-link-text { /* the description */ }
/* Source badge — a clear "YouTube ↗" chip so it's obvious the link leaves the site */
.media-src {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: 6px;
    padding: 3px 9px;
    border-radius: 4px;
    background: var(--border-accent);
    color: var(--bg-card);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}
.media-src .ext-icon {
    color: inherit;
    margin-left: 0;
    vertical-align: baseline;
    font-size: 1em;
}
@media (max-width: 720px) {
    .poster-gallery { grid-template-columns: 1fr; }
}

/* gallery caption: label on its own line above the sub-caption */
.poster-caption strong {
    display: block;
    color: var(--text-primary);
    font-style: normal;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 3px;
}
/* keep empty gallery placeholders from towering before images arrive */
.poster-gallery .poster-placeholder { aspect-ratio: 3/4; max-height: 420px; }

/* External-link marker — distinguishes outbound links from internal ones */
.ext-link { white-space: normal; }
.ext-icon {
    display: inline-block;
    font-size: 0.78em;
    margin-left: 2px;
    vertical-align: super;
    color: var(--border-accent);
    font-weight: 700;
}
a.ext-link:hover .ext-icon { color: var(--link-hover); }

/* ── Launch feature: the "first psychedelic poster?" debate ───────────── */
.launch-feature {
    background: var(--launch-bg);
    border: 3px double var(--border-accent);
    padding: 36px 40px;
    margin-bottom: 48px;
    text-align: center;
}
.launch-kicker {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--link);
    margin-bottom: 10px;
}
.launch-title {
    font-family: 'IM Fell English', Georgia, serif;
    font-size: 32px;
    margin: 0 0 16px;
    color: var(--text-primary);
}
.launch-lede {
    max-width: 640px;
    margin: 0 auto 28px;
    color: var(--text-secondary);
    line-height: 1.75;
}
.launch-contenders {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 680px;
    margin: 0 auto;
}
.launch-card {
    display: block;
    text-decoration: none;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-left: 5px solid var(--border-accent);
    padding: 18px 20px;
    text-align: left;
    transition: border-color 0.15s, transform 0.1s;
}
.launch-card:hover { border-left-color: var(--text-primary); transform: translateY(-2px); }
.launch-card-date {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--text-muted);
}
.launch-card-name {
    font-family: 'IM Fell English', Georgia, serif;
    font-size: 22px;
    color: var(--text-primary);
    margin: 4px 0 6px;
}
.launch-card-sub { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.launch-card-flag {
    display: inline-block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--link);
    border: 1px solid var(--border-accent);
    padding: 1px 6px;
    margin-left: 4px;
}
@media (max-width: 720px) {
    .launch-contenders { grid-template-columns: 1fr; }
    .launch-feature { padding: 28px 22px; }
}

/* "Coming soon" years — visible (scent of information) but not yet revealed */
.nav-soon {
    color: var(--text-muted);
    opacity: 0.55;
    cursor: default;
    font-style: italic;
}
.year-pill-soon {
    opacity: 0.5;
    cursor: default;
    border-style: dashed !important;
}
.year-pill-soon .year-count { font-style: italic; }

/* ── Artists section ──────────────────────────────────────────────────── */
.artists-intro { text-align: center; margin-bottom: 40px; }
.artists-intro h1 { font-family: 'IM Fell English', Georgia, serif; font-size: 38px; margin: 0 0 12px; }
.artists-intro p { max-width: 620px; margin: 0 auto; color: var(--text-secondary); line-height: 1.7; }
.artists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 22px;
}
.artist-card {
    display: block;
    text-decoration: none;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-top: 4px solid var(--border-accent);
    padding: 22px;
    transition: transform 0.1s, border-color 0.15s;
}
.artist-card:hover { transform: translateY(-3px); border-top-color: var(--text-primary); }
.artist-card-name { font-family: 'IM Fell English', Georgia, serif; font-size: 24px; color: var(--text-primary); margin-bottom: 8px; }
.artist-card-teaser { font-size: 14px; color: var(--text-secondary); line-height: 1.55; }

.artist-name { font-family: 'IM Fell English', Georgia, serif; font-size: 40px; text-align: center; margin: 10px 0 30px; }
.artist-body { max-width: 720px; margin: 0 auto; }
.artist-section { margin-bottom: 36px; }
.artist-section h2 { font-family: 'IM Fell English', Georgia, serif; font-size: 24px; margin: 0 0 14px; border-bottom: 1px solid var(--border-light); padding-bottom: 6px; }
.artist-section p { margin: 0 0 16px; line-height: 1.75; }
.artist-works { margin: 0; padding-left: 22px; }
.artist-works li { margin-bottom: 12px; line-height: 1.6; }
.artist-events { display: flex; flex-direction: column; gap: 10px; }
.artist-event-card {
    display: flex; flex-direction: column;
    text-decoration: none;
    background: var(--bg-card);
    border-left: 4px solid var(--border-accent);
    padding: 12px 16px;
    transition: background 0.15s;
}
.artist-event-card:hover { background: var(--bg-detail); }
.artist-event-name { font-family: 'IM Fell English', Georgia, serif; font-size: 18px; color: var(--text-primary); }
.artist-event-sub { font-size: 13px; color: var(--text-secondary); }
.artist-link { color: var(--text-primary); text-decoration: underline; text-decoration-color: var(--border-accent); text-underline-offset: 2px; }
.artist-link:visited { color: var(--text-primary); }
.artist-link:hover { text-decoration-color: var(--link-hover); }

/* ── Venue-specific bits (reuse artist styles otherwise) ──────────────── */
.venue-loc { text-align: center; font-family: 'IBM Plex Mono', monospace; font-size: 13px; letter-spacing: 1px; color: var(--text-muted); margin: -18px 0 30px; text-transform: uppercase; }
.venue-card-loc { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 1px; color: var(--text-muted); text-transform: uppercase; margin-bottom: 8px; }
.venue-facts .detail-row { padding: 12px 0; }

/* ── Poster detail page: NAME is the headline, date is a subline ──────── */
.poster-title { font-family: 'IM Fell English', Georgia, serif; font-size: 38px; text-align: center; margin: 14px 0 6px; line-height: 1.1; }
.poster-subline { text-align: center; font-family: 'IBM Plex Mono', monospace; font-size: 13px; letter-spacing: 1px; color: var(--text-muted); text-transform: uppercase; margin-bottom: 34px; }
.plain-link { color: inherit; text-decoration: none; }
.plain-link:hover { text-decoration: underline; text-decoration-color: var(--link-hover); }

/* ── Calendar (anniversary month grid) ───────────────────────────────── */
.cal-head { text-align: center; margin-bottom: 32px; }
.cal-month-title { font-family: 'IM Fell English', Georgia, serif; font-size: 44px; margin: 0 0 8px; }
.cal-month-sub { color: var(--text-secondary); font-style: italic; margin: 0; }
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}
.cal-cell {
    position: relative;
    aspect-ratio: 3/4;
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}
.cal-empty { background: transparent; opacity: 0.55; }
.cal-num {
    position: absolute; top: 4px; left: 6px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px; color: var(--text-muted); z-index: 2;
}
.cal-empty .cal-num { font-size: 13px; }
.cal-filled { background: var(--bg-card); border-color: var(--border-accent); transition: transform 0.1s, box-shadow 0.15s; }
.cal-filled:hover { transform: translateY(-2px); box-shadow: 0 3px 10px rgba(0,0,0,0.12); }
.cal-thumb { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.cal-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cal-thumb-ph {
    width: 100%; height: 100%;
    background: var(--placeholder-bg);
    display: flex; align-items: center; justify-content: center;
    font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: var(--text-muted);
    text-align: center; padding: 4px;
}
.cal-count {
    position: absolute; bottom: 4px; right: 4px; z-index: 2;
    background: var(--border-accent); color: var(--cal-count-text);
    font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 700;
    min-width: 18px; height: 18px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center; padding: 0 5px;
}
@media (max-width: 640px) {
    .cal-grid { grid-template-columns: repeat(5, 1fr); }
    .cal-month-title { font-size: 34px; }
}

/* ── Profile portraits (artists/venues) + image credit ───────────────── */
.profile-portrait { text-align: center; margin: 0 auto 30px; max-width: 320px; }
.profile-portrait-wide { max-width: 560px; }
.profile-portrait img { width: 100%; height: auto; display: block; border: 3px solid var(--border-accent); }
.img-credit { font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: var(--text-muted); margin: 6px 0 0; letter-spacing: 0.5px; }

/* Launch CTA (single, Seed-as-origin — replaces the old contender cards) */
.launch-cta {
    display: inline-block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    letter-spacing: 1px;
    color: var(--text-primary);
    text-decoration: none;
    border: 2px solid var(--border-accent);
    padding: 10px 24px;
    margin-top: 8px;
    transition: background 0.15s;
}
.launch-cta:visited { color: var(--text-primary); }
.launch-cta:hover { background: var(--bg-detail); color: var(--text-primary); }

/* Poster gallery column counts (2 = poster+art; 3 = +handbill / the three formats) */
.poster-gallery-2 { grid-template-columns: 1fr 1fr; }
.poster-gallery-3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 720px) {
    .poster-gallery-2, .poster-gallery-3 { grid-template-columns: 1fr; }
}
