/* ========================================
   Blackberry Hollow — EPK Design System
   filamentlabs.io/blackberryhollow
   ======================================== */

/* ----------------------------------------
   Self-hosted Fonts
   ---------------------------------------- */
@font-face {
    font-family: 'Dramatico';
    src: url('fonts/DramaticoScript-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ----------------------------------------
   Design Tokens
   ---------------------------------------- */
:root {
    --bg-primary: #12100e;
    --bg-secondary: #1a1714;
    --bg-card: rgba(255, 245, 230, 0.03);
    --bg-card-hover: rgba(255, 245, 230, 0.06);
    --text-primary: #ede6dc;
    --text-secondary: rgba(237, 230, 220, 0.65);
    --text-muted: rgba(237, 230, 220, 0.45);
    --accent-amber: #c8915a;
    --accent-amber-glow: rgba(200, 145, 90, 0.15);
    --accent-warm: #a0734a;
    --border: rgba(237, 230, 220, 0.08);
    --border-hover: rgba(237, 230, 220, 0.14);
    --font-heading: 'Dramatico', 'Homemade Apple', cursive;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-accent: 'Special Elite', 'Courier New', monospace;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

/* ----------------------------------------
   Reset
   ---------------------------------------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ----------------------------------------
   Base
   ---------------------------------------- */
html {
    font-size: 17.6px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.7;
    min-height: 100vh;
}

/* Warm ambient gradient */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(200, 145, 90, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 70%, rgba(160, 115, 74, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(200, 145, 90, 0.02) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ----------------------------------------
   Scroll-reveal Animations
   ---------------------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(28px);
}

.animate-on-scroll.is-visible {
    animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ----------------------------------------
   Typography
   ---------------------------------------- */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 400;
    letter-spacing: 0.01em;
}

p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 16px;
}

a {
    color: var(--accent-amber);
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
    color: var(--text-primary);
}

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

.accent-text {
    font-family: var(--font-accent);
}

/* ----------------------------------------
   Layout
   ---------------------------------------- */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

section {
    padding: 56px 0;
}

section h2 {
    font-size: 1.75rem;
    margin-bottom: 24px;
    position: relative;
}

section h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--accent-amber);
    margin-top: 12px;
    border-radius: 1px;
}

.divider {
    display: flex;
    align-items: center;
    gap: 26px;
    margin: 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
}

.divider::before {
    background: linear-gradient(90deg, transparent, var(--border));
}

.divider::after {
    background: linear-gradient(90deg, var(--border), transparent);
}

.divider .sprig {
    flex: none;
    display: block;
    width: clamp(180px, 24vw, 220px);
    height: auto;
    opacity: 0.78;
}

.hero-branch {
    display: block;
    width: min(100%, 560px);
    height: auto;
    margin: 18px auto 0;
}

/* ----------------------------------------
   Hero
   ---------------------------------------- */
.hero {
    text-align: center;
    padding: 110px 0 8px;
}

.hero h1 {
    position: relative;
    z-index: 2;
    font-size: clamp(2.9rem, 8.5vw, 5.6rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    margin-bottom: 20px;
    padding-top: 40px;
    padding-bottom: 8px;
    overflow: visible;
    background: linear-gradient(135deg, #ede6dc, #c8915a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.7;
}

.hero .tagline {
    font-family: var(--font-accent);
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
    letter-spacing: 0.02em;
}

.hero .sub-tagline {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}

#listen {
    padding-top: 18px;
}

/* ----------------------------------------
   Listen Section — Video Grid
   ---------------------------------------- */
.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 32px 0;
}

.video-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.video-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.3), 0 0 25px var(--accent-amber-glow);
}

.video-card .video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 */
}

.video-card .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-card .video-label {
    padding: 14px 18px;
    font-family: var(--font-accent);
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.01em;
}

/* Featured sessions span the full grid width */
.video-featured {
    grid-column: 1 / -1;
}

/* Click-to-load facade: thumbnail + play badge, swapped for the
   iframe only when the visitor asks for it */
.video-facade {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    background: var(--bg-secondary);
}

.video-facade img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(60%) sepia(30%) saturate(1.1) brightness(0.85) contrast(1.05);
    transition: filter 0.3s ease;
}

.video-facade .play-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(18, 16, 14, 0.72);
    border: 1px solid var(--accent-amber);
    transition: background 0.25s ease, border-color 0.25s ease;
}

.video-facade .play-badge::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-40%, -50%);
    border-left: 18px solid var(--accent-amber);
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    transition: border-left-color 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
    .video-facade:hover img {
        filter: grayscale(30%) sepia(18%) saturate(1.05) brightness(0.95) contrast(1.05);
    }

    .video-facade:hover .play-badge {
        background: rgba(200, 145, 90, 0.9);
        border-color: var(--accent-amber);
    }

    .video-facade:hover .play-badge::after {
        border-left-color: var(--bg-primary);
    }
}

/* More sessions reveal */
.more-sessions {
    margin-top: 8px;
}

.more-sessions summary {
    display: inline-block;
    cursor: pointer;
    font-family: var(--font-accent);
    font-size: 0.95rem;
    color: var(--accent-amber);
    padding: 10px 22px;
    border: 1px dashed rgba(200, 145, 90, 0.4);
    border-radius: var(--radius-sm);
    letter-spacing: 0.03em;
    list-style: none;
    transition: border-color 0.25s ease, color 0.25s ease;
}

.more-sessions summary::-webkit-details-marker {
    display: none;
}

.more-sessions summary::before {
    content: '+ ';
}

.more-sessions[open] summary::before {
    content: '− ';
}

.more-sessions summary:hover {
    border-color: var(--accent-amber);
    color: var(--text-primary);
}

.more-sessions[open] summary {
    margin-bottom: 8px;
}

.noscript-note {
    font-family: var(--font-accent);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ----------------------------------------
   About Section
   ---------------------------------------- */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.about-text p {
    font-size: 0.95rem;
    line-height: 1.8;
}

.about-photos {
    display: grid;
    gap: 20px;
    align-content: start;
}

.open-note {
    font-family: var(--font-accent);
    font-size: 0.92rem;
    color: var(--text-muted);
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.about-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(100%) sepia(45%) saturate(1.2) contrast(1.05) brightness(0.95);
    transition: filter 0.5s ease;
}

@media (hover: hover) and (pointer: fine) {
    .about-image:hover {
        transform: translateY(-3px);
        box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
    }

    .about-image:hover img {
        filter: grayscale(55%) sepia(28%) saturate(1.05) contrast(1.05);
    }
}

/* ----------------------------------------
   Details Section — Rider (back-of-poster)
   ---------------------------------------- */
.rider {
    margin: 32px 0 8px;
    padding: 28px 32px;
    border: 1px dashed rgba(200, 145, 90, 0.35);
    border-radius: 2px;
}

.rider .rider-line {
    font-family: var(--font-accent);
    font-size: 1.1rem;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    line-height: 1.9;
    margin-bottom: 14px;
}

.rider .rider-small-print {
    font-family: var(--font-accent);
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.9;
    margin-bottom: 0;
}

/* ----------------------------------------
   Setlist Flavor — mood clusters
   ---------------------------------------- */
.setlist-groups {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin: 32px 0 8px;
}

.setlist-group h3 {
    font-family: var(--font-accent);
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--accent-amber);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 2px;
}

.setlist-group-note {
    font-family: var(--font-accent);
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: normal;
    margin-bottom: 14px;
}

.setlist-list {
    list-style: none;
    font-family: var(--font-accent);
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 2;
    letter-spacing: 0.01em;
}

/* ----------------------------------------
   Contact / CTA
   ---------------------------------------- */
.cta-section {
    text-align: center;
    padding: 64px 0;
}

/* Tonal inversion: the scroll's destination sits on a lifted warm panel */
.cta-panel {
    background: var(--bg-secondary);
    border: 1px solid rgba(200, 145, 90, 0.18);
    border-radius: var(--radius-md);
    padding: 48px 32px 52px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.cta-section h2::after {
    margin-left: auto;
    margin-right: auto;
}

.cta-section p {
    max-width: 520px;
    margin: 0 auto 28px;
    font-size: 0.95rem;
    line-height: 1.8;
}

.btn-contact {
    display: inline-block;
    padding: 14px 36px;
    background: transparent;
    color: var(--accent-amber);
    border: 1px solid var(--accent-amber);
    border-radius: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.25s, color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.btn-contact:hover {
    background: var(--accent-amber);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(200, 145, 90, 0.25);
}

/* ----------------------------------------
   Footer
   ---------------------------------------- */
footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid var(--border);
}

footer p {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-accent);
}

footer a {
    color: var(--accent-amber);
    text-decoration: none;
    letter-spacing: 0.06em;
}

footer a:hover,
footer a:focus-visible {
    text-decoration: underline;
}

/* ----------------------------------------
   Responsive — Tablet
   ---------------------------------------- */
@media (max-width: 768px) {
    .hero {
        padding: 70px 0 8px;
    }

    .hero-branch {
        width: min(100%, 510px);
        margin-bottom: 0;
    }

    .video-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .about-image {
        max-width: 400px;
        margin: 0 auto;
    }

    .setlist-groups {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* Each cluster folds into two typewriter columns on narrow screens */
    .setlist-list {
        columns: 2;
        column-gap: 24px;
    }
}

/* ----------------------------------------
   Responsive — Phone
   ---------------------------------------- */
@media (max-width: 480px) {
    html {
        font-size: 16px;
    }

    .hero {
        padding: 48px 0 4px;
    }

    .hero-branch {
        width: 100%;
        max-width: 480px;
        margin-left: auto;
        margin-top: 12px;
        margin-bottom: 0;
    }

    .divider .sprig {
        width: 180px;
    }

    section {
        padding: 40px 0;
    }

    .container {
        padding: 0 16px;
    }

    .rider {
        padding: 22px 20px;
    }

    .cta-panel {
        padding: 36px 20px 40px;
    }
}
