/* political.bar - Alpine Lodge Political Discourse */
/* Palette: #2D2A26 #7A756E #A3D4C7 #B8A9D4 #C4B8D9 #D6CBE8 #E4A5A0 #EDE7E3 #F0C4A8 #F7F3F0 #FDFCFB */
/* Fonts: Commissioner, Nunito Sans */

/* === Color Tokens === */
:root {
    --bg-top: #F7F3F0;
    --bg-bottom: #EDE7E3;
    --text-primary: #2D2A26;
    --text-secondary: #7A756E;
    --card-surface: #FDFCFB;
    --accent-lavender: #B8A9D4;
    --accent-rose: #E4A5A0;
    --accent-mint: #A3D4C7;
    --accent-peach: #F0C4A8;
    --hover-glow: #D6CBE8;
    --shadow-color: #C4B8D9;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 400;
    color: #2D2A26;
    background: linear-gradient(to bottom, #F7F3F0, #EDE7E3);
    line-height: 1.65;
    overflow-x: hidden;
    position: relative;
}

/* Noise texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(to bottom, #B8A9D4, #A3D4C7);
}

::-webkit-scrollbar-thumb {
    background: #C4B8D9;
    border-radius: 4px;
}

/* === Navigation === */
.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: rgba(253, 252, 251, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 2rem;
    overflow: hidden;
    transition: height 400ms ease-out, padding 400ms ease-out;
}

.nav-bar:hover {
    height: 56px;
    padding-top: 0;
    align-items: center;
}

.nav-wordmark {
    font-family: 'Commissioner', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #2D2A26;
    letter-spacing: 0.02em;
    opacity: 0;
    transition: opacity 400ms ease-out;
}

.nav-bar:hover .nav-wordmark {
    opacity: 1;
}

.nav-topics {
    position: relative;
    opacity: 0;
    transition: opacity 400ms ease-out;
}

.nav-bar:hover .nav-topics {
    opacity: 1;
}

.nav-topics-label {
    font-family: 'Commissioner', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    color: #2D2A26;
    cursor: pointer;
    padding: 0.5rem 0;
}

.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(253, 252, 251, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 0.5rem 0;
    box-shadow: 0 4px 16px rgba(196, 184, 217, 0.2);
    min-width: 160px;
}

.nav-topics:hover .nav-dropdown {
    display: block;
}

.nav-link {
    display: block;
    padding: 0.5rem 1.2rem;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    color: #2D2A26;
    text-decoration: none;
    transition: background 200ms ease;
}

.nav-link:hover {
    background: rgba(184, 169, 212, 0.15);
}

/* === Hero Section === */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(to bottom, #F7F3F0, #EDE7E3);
}

.hero-mountains {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    pointer-events: none;
}

.mountain-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.mountain-back {
    transform: scale(1.05);
    opacity: 0.5;
}

.mountain-mid {
    transform: scale(1.02);
    opacity: 0.7;
}

.mountain-front {
    transform: scale(1);
    opacity: 0.9;
}

/* Drifting clouds */
.cloud {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(253, 252, 251, 0.6) 0%, transparent 70%);
    pointer-events: none;
}

.cloud-1 {
    width: 400px;
    height: 120px;
    top: 15%;
    left: -200px;
    animation: drift 60s linear infinite;
}

.cloud-2 {
    width: 300px;
    height: 90px;
    top: 25%;
    left: -150px;
    animation: drift 75s linear infinite;
    animation-delay: -20s;
}

.cloud-3 {
    width: 350px;
    height: 100px;
    top: 10%;
    left: -175px;
    animation: drift 90s linear infinite;
    animation-delay: -45s;
}

@keyframes drift {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(calc(100vw + 100%));
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.hero-title {
    font-family: 'Commissioner', sans-serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 6vw, 5rem);
    letter-spacing: 0.02em;
    color: #2D2A26;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.hero-title .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(12px);
    animation: charReveal 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

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

.hero-subtitle {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    color: #7A756E;
    letter-spacing: 0.04em;
    margin-top: 1rem;
    opacity: 0;
    transform: translateY(12px);
}

.hero-subtitle.revealed {
    animation: fadeReveal 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* === Fade Reveal Animation === */
@keyframes fadeReveal {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Shelves Container === */
.shelves-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* === Shelf === */
.shelf {
    padding: 4rem 0;
}

.shelf-header {
    margin-bottom: 2.5rem;
    position: relative;
}

.shelf-label {
    font-family: 'Commissioner', sans-serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    letter-spacing: 0.02em;
    color: #2D2A26;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.shelf-label.visible {
    opacity: 1;
    transform: translateY(0);
}

.ridgeline {
    width: 100%;
    height: 20px;
    margin-top: 0.5rem;
}

.shelf-divider-mountain {
    width: 80px;
    height: 32px;
    margin-top: 0.75rem;
}

/* === Coaster Grid === */
.coaster-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.coaster-grid .coaster-wide {
    grid-column: span 2;
}

.intro-grid {
    grid-template-columns: 1fr;
}

.intro-grid .coaster-wide {
    grid-column: span 1;
}

/* === Coaster (Card) === */
.coaster {
    position: relative;
    background: #FDFCFB;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(196, 184, 217, 0.2);
    overflow: hidden;
    transition: transform 300ms ease, box-shadow 300ms ease;
    display: flex;
    min-height: 200px;
}

.coaster:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(196, 184, 217, 0.3), 0 0 0 1px #D6CBE8;
}

.coaster-accent {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    transition: opacity 2s ease-in-out;
}

.coaster:hover .coaster-accent {
    animation: accentPulse 2s ease-in-out infinite;
}

@keyframes accentPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.coaster-body {
    flex: 1;
    padding: 1.5rem 1.5rem 1.5rem 1.8rem;
    display: flex;
    flex-direction: column;
}

.coaster-title {
    font-family: 'Commissioner', sans-serif;
    font-weight: 500;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    line-height: 1.25;
    color: #2D2A26;
    margin-bottom: 0.75rem;
}

.coaster-text {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(0.9rem, 1.8vw, 1.05rem);
    line-height: 1.65;
    color: #2D2A26;
    flex: 1;
    margin-bottom: 0.75rem;
}

.coaster-meta {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 300;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    color: #7A756E;
}

.coaster-vignette {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 120px;
    height: 80px;
    pointer-events: none;
    opacity: 0.6;
}

.mini-mountain {
    width: 100%;
    height: 100%;
}

/* === Closing === */
.closing {
    padding: 8rem 0 6rem;
    text-align: center;
    background: linear-gradient(to bottom, transparent, #EDE7E3);
}

.closing-text {
    font-family: 'Commissioner', sans-serif;
    font-weight: 300;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: #7A756E;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.closing-text.visible {
    opacity: 1;
}

.closing-text.fading {
    opacity: 0;
}

/* === Tablet (2 columns) === */
@media (max-width: 900px) {
    .coaster-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .coaster-grid .coaster-wide {
        grid-column: span 2;
    }

    .shelves-container {
        padding: 0 1.5rem;
    }
}

/* === Mobile (1 column) === */
@media (max-width: 600px) {
    .coaster-grid {
        grid-template-columns: 1fr;
    }

    .coaster-grid .coaster-wide {
        grid-column: span 1;
    }

    .shelves-container {
        padding: 0 1rem;
    }

    .shelf {
        padding: 3rem 0;
    }

    .coaster-vignette {
        width: 80px;
        height: 53px;
    }

    .nav-bar:hover {
        height: 48px;
    }
}
