/* ============================================
   Denver Feed - Elevated Minimalist Design
   "Vogue meets Patagonia" - Warm, Earthy, Organized
   ============================================ */

/* CSS Custom Properties */
:root {
    /* Colors - Warm Earth Palette */
    --color-bg: #FAF8F5;
    --color-bg-warm: #F5F1EB;
    --color-surface: #FFFFFF;
    --color-text: #2D2A26;
    --color-text-muted: #6B665E;
    --color-text-light: #9A948A;
    
    /* Action Colors */
    --color-terracotta: #C4644A;
    --color-terracotta-dark: #A8523C;
    --color-teal: #2D6A6A;
    --color-teal-dark: #1E4F4F;
    
    /* Accents */
    --color-cream: #F0E9DE;
    --color-sage: #8FA589;
    --color-gold: #C9A962;
    
    /* Typography */
    --font-display: 'Lora', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing Scale */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(45, 42, 38, 0.08);
    --shadow-md: 0 4px 12px rgba(45, 42, 38, 0.1);
    --shadow-lg: 0 8px 30px rgba(45, 42, 38, 0.12);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    padding-top: 64px; /* Space for sticky bar */
}

/* ===========================================
   LAYER 0: THE ANALOG NOISE (FILM GRAIN)
   Creates tactile warmth without loading an image file.
   =========================================== */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 999; /* Below sticky nav (1000) */
    mix-blend-mode: overlay;
    opacity: 0.25; /* Tuned down from 0.4 for subtlety */
}

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

a {
    color: inherit;
    text-decoration: none;
}

/* ============================================
   Sticky Conversion Bar - Frosted Glass
   ============================================ */
.sticky-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    /* Solid fallback for browsers without backdrop-filter */
    background: rgba(250, 248, 245, 0.95);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Frosted glass for supported browsers */
@supports (backdrop-filter: blur(16px)) or (-webkit-backdrop-filter: blur(16px)) {
    .sticky-bar {
        background: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(16px) saturate(180%);
        -webkit-backdrop-filter: blur(16px) saturate(180%);
    }
}

.sticky-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-sm) var(--space-md);
    gap: var(--space-md);
}

.sticky-bar__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
    min-width: 44px;
}

.sticky-bar__month {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-terracotta);
}

.sticky-bar__day {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
}

.sticky-bar__event {
    flex: 1;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sticky-bar__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm) var(--space-xl);
    background: var(--color-terracotta);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 999px; /* Full Pill */
    white-space: nowrap;
    /* 3D Lighting Effects */
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.25),
        0 4px 12px rgba(196, 100, 74, 0.4);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sticky-bar__cta:hover {
    background: var(--color-terracotta-dark);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.25),
        0 8px 24px rgba(196, 100, 74, 0.5);
}

.sticky-bar__cta:active {
    transform: translateY(0) scale(1);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero__media {
    position: absolute;
    inset: 0;
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(45, 42, 38, 0.95) 0%,
        rgba(45, 42, 38, 0.7) 30%,
        rgba(45, 42, 38, 0.3) 60%,
        rgba(45, 42, 38, 0.1) 100%
    );
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    padding: var(--space-2xl) var(--space-lg);
    max-width: 600px;
}

.hero__eyebrow {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-gold);
    /* Visual Anchor with line */
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.hero__eyebrow::before {
    content: '';
    display: block;
    width: 2rem;
    height: 1px;
    background-color: var(--color-terracotta);
}

.hero__headline {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.04em;
    color: white;
    margin-bottom: var(--space-lg);
}

.hero__subhead {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-xl);
}

.hero__cta {
    display: inline-flex;
    align-items: center;
    padding: var(--space-md) var(--space-2xl);
    background: var(--color-terracotta);
    color: white;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 999px; /* Full Pill */
    /* 3D Lighting Effects */
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.25),
        0 4px 12px rgba(196, 100, 74, 0.4);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero__cta:hover {
    background: var(--color-terracotta-dark);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.25),
        0 8px 24px rgba(196, 100, 74, 0.5);
}

.hero__scarcity {
    margin-top: var(--space-md);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

/* ===========================================
   LIVE SCARCITY - The Pulsing Recording Light
   =========================================== */
.hero__status {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: var(--space-md);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    overflow: visible; /* Allow ripple to expand */
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #FF4444;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.status-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid #FF4444;
    animation: ripple 2s infinite ease-out;
}

@keyframes ripple {
    0% { 
        width: 100%; 
        height: 100%; 
        opacity: 1; 
    }
    100% { 
        width: 250%; 
        height: 250%; 
        opacity: 0; 
    }
}

/* ============================================
   Value Stack - Asymmetric "Broken" Grid
   ============================================ */
.value-stack {
    padding: var(--space-3xl) 0;
}

.value-block {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    padding: 0 var(--space-lg);
    margin-bottom: var(--space-4xl);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.value-block:last-child {
    margin-bottom: 0;
}

.value-block__media {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.value-block__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease-out;
}

.value-block:hover .value-block__media img {
    transform: scale(1.05);
}

.value-block__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.value-block__headline {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 500;
    line-height: 1.25;
    color: var(--color-text);
    margin-bottom: var(--space-md);
}

.value-block__body {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-muted);
}

/* Desktop: The "Editorial" Asymmetric Offset */
@media (min-width: 1024px) {
    .value-block {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-4xl);
        align-items: start; /* Prevents centering - enables offset */
        padding: 0 var(--space-3xl);
    }

    /* Force the text to sit lower than the image */
    .value-block__content {
        padding-top: 6rem;
    }

    /* Portrait crop for editorial feel */
    .value-block__media {
        aspect-ratio: 4 / 5;
    }

    /* Reversed blocks: flip the offset */
    .value-block--reverse {
        direction: rtl; /* Flip grid order */
    }
    
    .value-block--reverse > * {
        direction: ltr; /* Reset text direction */
    }

    .value-block--reverse .value-block__content {
        padding-top: 0;
        padding-bottom: 6rem; /* Offset goes to bottom instead */
    }
}

/* ============================================
   Maker Carousel (Google Pixel-style)
   ============================================ */
.makers {
    background: var(--color-bg-warm);
    padding: var(--space-3xl) 0;
}

.makers__header {
    text-align: center;
    padding: 0 var(--space-lg);
    margin-bottom: var(--space-xl);
}

.makers__title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.makers__subtitle {
    font-size: 1rem;
    color: var(--color-text-muted);
}

.makers__carousel-wrapper {
    position: relative;
}

.makers__carousel {
    display: flex;
    gap: var(--space-md);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 0 var(--space-lg) var(--space-lg);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.makers__carousel::-webkit-scrollbar {
    display: none;
}

.maker-card {
    flex: 0 0 180px;
    scroll-snap-align: start;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.maker-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.maker-card__image {
    aspect-ratio: 1;
    overflow: hidden;
}

.maker-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.maker-card:hover .maker-card__image img {
    transform: scale(1.05);
}

.maker-card__name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    padding: var(--space-sm) var(--space-md) var(--space-xs);
    color: var(--color-text);
}

.maker-card__category {
    font-size: 0.8rem;
    color: var(--color-text-light);
    padding: 0 var(--space-md) var(--space-md);
}

/* Custom Scroll Indicator */
.makers__scroll-indicator {
    padding: 0 var(--space-lg);
    margin-top: var(--space-sm);
}

.makers__scroll-track {
    height: 3px;
    background: rgba(45, 42, 38, 0.1);
    border-radius: 2px;
    position: relative;
    max-width: 200px;
    margin: 0 auto;
}

.makers__scroll-thumb {
    position: absolute;
    height: 100%;
    width: 30%;
    background: var(--color-terracotta);
    border-radius: 2px;
    transition: left var(--transition-fast);
    left: 0;
}

.makers__see-all {
    display: block;
    text-align: center;
    margin-top: var(--space-lg);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-terracotta);
    transition: color var(--transition-fast);
}

.makers__see-all:hover {
    color: var(--color-terracotta-dark);
}

/* ============================================
   Tickets Section
   ============================================ */
.tickets {
    padding: var(--space-4xl) var(--space-lg);
    background: var(--color-surface);
}

.tickets__container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.tickets__title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

.tickets__subtitle {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
}

.tickets__embed {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.tickets__embed-placeholder {
    text-align: center;
    padding: var(--space-xl);
    border: 2px dashed var(--color-cream);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
}

.tickets__embed-placeholder p {
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
}

.tickets__embed-placeholder code {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-light);
    background: var(--color-surface);
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-sm);
    word-break: break-all;
}

.tickets__embed-note {
    font-size: 0.8rem;
    font-style: italic;
}

.tickets__fallback-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: var(--space-md) var(--space-xl);
    background: var(--color-terracotta);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}

.tickets__fallback-cta:hover {
    background: var(--color-terracotta-dark);
}

.tickets__guarantee {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.tickets__guarantee svg {
    color: var(--color-sage);
}

/* ============================================
   FAQ Section
   ============================================ */
.faq {
    padding: var(--space-4xl) var(--space-lg);
    max-width: 700px;
    margin: 0 auto;
}

.faq__title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: var(--space-xl);
    text-align: center;
}

.faq__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.faq__item {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq__question {
    padding: var(--space-lg);
    font-weight: 500;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: var(--space-3xl);
    transition: background var(--transition-fast);
}

.faq__question:hover {
    background: var(--color-bg);
}

.faq__question::after {
    content: '+';
    position: absolute;
    right: var(--space-lg);
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-text-light);
    transition: transform var(--transition-base);
}

.faq__item[open] .faq__question::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq__question::-webkit-details-marker {
    display: none;
}

.faq__answer {
    padding: 0 var(--space-lg) var(--space-lg);
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* ============================================
   Other Events Section
   ============================================ */
.other-events {
    padding: var(--space-4xl) var(--space-lg);
    background: var(--color-bg-warm);
}

.other-events__title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: var(--space-xl);
    text-align: center;
}

.other-events__grid {
    display: grid;
    gap: var(--space-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.event-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.event-card__image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.event-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.event-card:hover .event-card__image img {
    transform: scale(1.05);
}

.event-card__badge {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    padding: var(--space-xs) var(--space-sm);
    background: var(--color-terracotta);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
}

.event-card__content {
    padding: var(--space-md);
}

.event-card__date {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-terracotta);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-xs);
}

.event-card__title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.event-card__location {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--color-text);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--space-4xl) var(--space-lg) var(--space-xl);
}

.footer__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer__brand {
    margin-bottom: var(--space-2xl);
}

.footer__logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: white;
    margin-bottom: var(--space-xs);
}

.footer__tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

.footer__nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.footer__col h4 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: var(--space-md);
}

.footer__col a {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    padding: var(--space-xs) 0;
    transition: color var(--transition-fast);
}

.footer__col a:hover {
    color: white;
}

.footer__bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablet (600px+) */
@media (min-width: 600px) {
    .sticky-bar__inner {
        padding: var(--space-md) var(--space-xl);
    }
    
    .sticky-bar__event {
        font-size: 1rem;
    }
    
    .hero__content {
        padding: var(--space-3xl) var(--space-xl);
    }
    
    .maker-card {
        flex: 0 0 200px;
    }
    
    .other-events__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer__nav {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    body {
        padding-top: 72px;
    }
    
    .sticky-bar__inner {
        padding: var(--space-md) var(--space-2xl);
    }
    
    .sticky-bar__date {
        min-width: 52px;
    }
    
    .sticky-bar__day {
        font-size: 1.75rem;
    }
    
    .sticky-bar__event {
        font-size: 1.1rem;
    }
    
    .sticky-bar__cta {
        padding: var(--space-md) var(--space-xl);
        font-size: 0.9rem;
    }
    
    .hero {
        min-height: 90vh;
    }
    
    .hero__content {
        padding: var(--space-4xl);
        max-width: 700px;
    }
    
    .maker-card {
        flex: 0 0 220px;
    }
    
    .makers__carousel {
        padding: 0 var(--space-3xl) var(--space-lg);
    }
    
    .other-events__grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer__inner {
        display: grid;
        grid-template-columns: 1fr 2fr;
        gap: var(--space-3xl);
    }
    
    .footer__brand {
        margin-bottom: 0;
    }
    
    .footer__nav {
        margin-bottom: 0;
    }
    
    .footer__bottom {
        grid-column: 1 / -1;
    }
}

/* Large Desktop (1400px+) */
@media (min-width: 1400px) {
    .value-block {
        max-width: 1400px;
    }
    
    .makers__carousel {
        max-width: 1400px;
        margin: 0 auto;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
