/* =============================================
   politics.bar - Neomorphic Political Salon
   Palette: Burgundy-Cream
   Typography: Commissioner (variable), IBM Plex Mono
   ============================================= */

:root {
    --deep-burgundy: #7A2E3A;
    --warm-cream: #F5EDE0;
    --aged-gold: #B8924A;
    --dark-cocoa: #3D2226;
    --dusty-mauve: #9A7A6A;
    --shadow-dark: rgba(90, 30, 40, 0.12);
    --shadow-light: rgba(255, 250, 245, 0.8);
    --muted-wine: #5A3040;
    --parchment-blush: #E8D5C4;
    --ottoman-teal: #3A6B6B;
    --bg-glow-y: 30%;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Commissioner', Georgia, serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    line-height: 1.72;
    color: var(--dark-cocoa);
    background-color: var(--warm-cream);
    background-image: radial-gradient(ellipse at 50% var(--bg-glow-y), rgba(120, 40, 50, 0.03), transparent 70%);
    background-attachment: fixed;
    overflow-x: hidden;
}

/* =============================================
   Atmospheric Background Layer
   ============================================= */

.atmosphere-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    opacity: 0;
    transition: opacity 1s ease;
}

.atmosphere-layer.visible {
    opacity: 1;
}

.atmo-shape {
    position: absolute;
    opacity: 0.04;
    will-change: transform;
}

.shape-1 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--deep-burgundy);
    top: 10%;
    left: -5%;
    animation: drift-1 60s linear infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    border-radius: 40%;
    background: var(--aged-gold);
    top: 60%;
    right: -3%;
    animation: drift-2 55s linear infinite;
    animation-delay: -8s;
}

.shape-3 {
    width: 250px;
    height: 150px;
    border-radius: 30% 70% 50% 50%;
    background: var(--ottoman-teal);
    top: 30%;
    left: 40%;
    animation: drift-3 65s linear infinite;
    animation-delay: -15s;
}

.shape-4 {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: var(--aged-gold);
    top: 75%;
    left: 15%;
    animation: drift-4 58s linear infinite;
    animation-delay: -22s;
}

.shape-5 {
    width: 220px;
    height: 220px;
    border-radius: 45% 55% 60% 40%;
    background: var(--deep-burgundy);
    top: 5%;
    right: 20%;
    animation: drift-5 62s linear infinite;
    animation-delay: -30s;
}

.shape-6 {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: var(--ottoman-teal);
    top: 50%;
    left: 70%;
    animation: drift-1 70s linear infinite;
    animation-delay: -40s;
}

.shape-7 {
    width: 280px;
    height: 140px;
    border-radius: 50% 50% 30% 70%;
    background: var(--deep-burgundy);
    top: 85%;
    left: 50%;
    animation: drift-2 63s linear infinite;
    animation-delay: -12s;
}

.shape-8 {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--aged-gold);
    top: 20%;
    left: 80%;
    animation: drift-3 57s linear infinite;
    animation-delay: -35s;
}

.shape-9 {
    width: 200px;
    height: 120px;
    border-radius: 60% 40% 50% 50%;
    background: var(--ottoman-teal);
    top: 40%;
    left: 10%;
    animation: drift-4 68s linear infinite;
    animation-delay: -5s;
}

.shape-10 {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: var(--muted-wine);
    top: 65%;
    right: 35%;
    animation: drift-5 59s linear infinite;
    animation-delay: -18s;
}

@keyframes drift-1 {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(5vw, -3vh) rotate(45deg); }
    50% { transform: translate(10vw, 2vh) rotate(90deg); }
    75% { transform: translate(3vw, 5vh) rotate(135deg); }
    100% { transform: translate(0, 0) rotate(180deg); }
}

@keyframes drift-2 {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-4vw, 4vh) rotate(-30deg); }
    50% { transform: translate(-8vw, -2vh) rotate(-60deg); }
    75% { transform: translate(-2vw, -5vh) rotate(-90deg); }
    100% { transform: translate(0, 0) rotate(-120deg); }
}

@keyframes drift-3 {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(6vw, 3vh) rotate(60deg); }
    66% { transform: translate(-4vw, -4vh) rotate(120deg); }
    100% { transform: translate(0, 0) rotate(180deg); }
}

@keyframes drift-4 {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-7vw, 5vh) rotate(90deg); }
    100% { transform: translate(0, 0) rotate(180deg); }
}

@keyframes drift-5 {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(3vw, 6vh) rotate(-45deg); }
    50% { transform: translate(-5vw, 2vh) rotate(-90deg); }
    75% { transform: translate(2vw, -4vh) rotate(-135deg); }
    100% { transform: translate(0, 0) rotate(-180deg); }
}

/* =============================================
   Navigation
   ============================================= */

.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(16px, 3vw, 40px);
    background: var(--warm-cream);
    box-shadow: 6px 6px 14px var(--shadow-dark), -4px -4px 10px var(--shadow-light);
}

.nav-brand {
    font-family: 'Commissioner', Georgia, serif;
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--deep-burgundy);
    letter-spacing: 0.01em;
}

.nav-items {
    display: flex;
    gap: 12px;
}

.nav-pill {
    font-family: 'Commissioner', Georgia, serif;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    color: var(--dark-cocoa);
    background: var(--warm-cream);
    border: none;
    cursor: pointer;
    padding: 8px 18px;
    border-radius: 50px;
    box-shadow: 4px 4px 10px var(--shadow-dark), -3px -3px 8px var(--shadow-light);
    transition: all 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-pill:hover {
    box-shadow: 6px 6px 14px var(--shadow-dark), -4px -4px 12px var(--shadow-light);
    transform: translateY(-1px);
}

.nav-pill.active {
    box-shadow: inset 4px 4px 8px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light);
    color: var(--deep-burgundy);
}

/* =============================================
   Hero Section
   ============================================= */

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 20px 40px;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    position: relative;
}

.hero-title {
    font-family: 'Commissioner', Georgia, serif;
    font-weight: 700;
    font-size: clamp(3rem, 8vw, 6.5rem);
    letter-spacing: -0.02em;
    color: var(--deep-burgundy);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 800ms ease, transform 800ms ease;
}

.hero-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-subtitle {
    font-family: 'Commissioner', Georgia, serif;
    font-weight: 300;
    font-size: 1.1rem;
    color: var(--dusty-mauve);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 16px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 800ms ease, transform 800ms ease;
}

.hero-subtitle.visible {
    opacity: 1;
    transform: translateY(0);
}

.cultural-svg {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.ottoman-flourish {
    max-width: 600px;
    height: 60px;
    margin-bottom: 20px;
}

.draw-path {
    stroke-dasharray: 0;
    stroke-dashoffset: 0;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 600ms ease;
}

.scroll-indicator.visible {
    opacity: 1;
}

.scroll-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--warm-cream);
    box-shadow: 4px 4px 10px var(--shadow-dark), -3px -3px 8px var(--shadow-light);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scroll-bounce 2s ease-in-out infinite;
}

.scroll-arrow {
    font-family: 'Commissioner', Georgia, serif;
    font-size: 1.2rem;
    color: var(--dusty-mauve);
    line-height: 1;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* =============================================
   Section Dividers
   ============================================= */

.section-divider {
    padding: 20px clamp(20px, 5vw, 80px);
    overflow: hidden;
}

.section-divider .cultural-svg {
    height: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

/* =============================================
   Content Sections
   ============================================= */

.content-section {
    padding: clamp(40px, 6vw, 80px) clamp(20px, 5vw, 80px);
    max-width: 1400px;
    margin: 0 auto;
}

.section-heading {
    font-family: 'Commissioner', Georgia, serif;
    font-weight: 600;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    letter-spacing: 0.01em;
    color: var(--deep-burgundy);
    margin-bottom: clamp(24px, 4vw, 48px);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 500ms cubic-bezier(0.16, 1, 0.3, 1), transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.section-heading.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   Card Grid
   ============================================= */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(280px, 30vw, 420px), 1fr));
    gap: clamp(24px, 3vw, 48px);
}

/* =============================================
   Pillow Cards
   ============================================= */

.pillow-card {
    background: var(--warm-cream);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 500ms cubic-bezier(0.16, 1, 0.3, 1),
                transform 500ms cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 250ms ease;
}

.pillow-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Grand Pillow */
.grand-pillow {
    grid-column: span 2;
    border-radius: clamp(20px, 3vw, 32px);
    padding: clamp(28px, 4vw, 48px);
    box-shadow: 12px 12px 24px rgba(90, 30, 40, 0.12), -8px -8px 20px rgba(255, 250, 245, 0.8);
}

.grand-pillow:hover {
    box-shadow: 16px 16px 32px rgba(90, 30, 40, 0.16), -10px -10px 26px rgba(255, 250, 245, 0.85);
    transform: translateY(-2px);
}

.grand-pillow:hover .card-accent-line {
    opacity: 1;
}

/* Standard Pillow */
.standard-pillow {
    border-radius: clamp(16px, 2.5vw, 24px);
    padding: clamp(20px, 3vw, 36px);
    box-shadow: 8px 8px 18px rgba(90, 30, 40, 0.10), -6px -6px 14px rgba(255, 250, 245, 0.75);
}

.standard-pillow:hover {
    box-shadow: 10px 10px 24px rgba(90, 30, 40, 0.13), -8px -8px 18px rgba(255, 250, 245, 0.8);
    transform: translateY(-2px);
}

.standard-pillow:hover .card-accent-line {
    opacity: 1;
}

/* Inset Pillow */
.inset-pillow {
    border-radius: clamp(16px, 2.5vw, 24px);
    padding: clamp(20px, 3vw, 36px);
    box-shadow: inset 6px 6px 12px rgba(90, 30, 40, 0.10), inset -4px -4px 10px rgba(255, 250, 245, 0.7);
}

.inset-pillow:hover {
    box-shadow: inset 8px 8px 14px rgba(90, 30, 40, 0.12), inset -5px -5px 12px rgba(255, 250, 245, 0.75);
    background-color: var(--parchment-blush);
}

/* Card Elements */
.card-emblem {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    opacity: 0.08;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.card-tag {
    display: inline-block;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    color: var(--muted-wine);
    background: var(--warm-cream);
    padding: 4px 12px;
    border-radius: 50px;
    box-shadow: inset 3px 3px 6px rgba(90, 30, 40, 0.06), inset -2px -2px 4px rgba(255, 250, 245, 0.6);
    margin-bottom: 16px;
}

.card-title {
    font-family: 'Commissioner', Georgia, serif;
    font-weight: 600;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--deep-burgundy);
    letter-spacing: 0.01em;
    margin-bottom: 12px;
    line-height: 1.3;
}

.card-body {
    font-family: 'Commissioner', Georgia, serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    line-height: 1.72;
    color: var(--dark-cocoa);
    margin-bottom: 16px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--parchment-blush);
}

.card-timestamp,
.card-category {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    color: var(--muted-wine);
}

.card-accent-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--aged-gold);
    opacity: 0;
    transition: opacity 250ms ease;
    border-radius: 0 0 clamp(16px, 2.5vw, 24px) clamp(16px, 2.5vw, 24px);
}

/* =============================================
   Neomorphic Button
   ============================================= */

.neo-button {
    font-family: 'Commissioner', Georgia, serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--deep-burgundy);
    background: var(--warm-cream);
    border: none;
    cursor: pointer;
    padding: 12px 28px;
    border-radius: 50px;
    box-shadow: 6px 6px 14px var(--shadow-dark), -4px -4px 10px var(--shadow-light);
    transition: all 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin-top: 8px;
}

.neo-button:hover {
    box-shadow: 8px 8px 18px var(--shadow-dark), -6px -6px 14px var(--shadow-light);
    transform: translateY(-1px);
}

.neo-button:active {
    box-shadow: inset 4px 4px 8px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light);
    transform: translateY(1px);
}

/* =============================================
   Card Emblems (SVG backgrounds inline via CSS)
   ============================================= */

[data-emblem="lion"] .card-emblem {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M24 4c-2 0-4 2-6 4-1 1-2 3-2 5 0 1 0 3 1 4l-3 2c-1 1-2 3-2 5 0 3 1 5 3 7l2 2v4c0 2-1 3-2 4l-1 2h4l1-2c1-1 2-2 2-4v-3l3 2c2 1 4 1 6 0l3-2v3c0 2 1 3 2 4l1 2h4l-1-2c-1-1-2-2-2-4v-4l2-2c2-2 3-4 3-7 0-2-1-4-2-5l-3-2c1-1 1-3 1-4 0-2-1-4-2-5-2-2-4-4-6-4zm-3 10c1 0 2 1 2 2s-1 2-2 2-2-1-2-2 1-2 2-2zm6 0c1 0 2 1 2 2s-1 2-2 2-2-1-2-2 1-2 2-2zm-3 6c2 0 3 1 3 2s-2 2-3 2-3-1-3-2 1-2 3-2z' fill='%237A2E3A'/%3E%3C/svg%3E");
}

[data-emblem="lotus"] .card-emblem {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M24 6c-2 6-6 10-6 16 0 4 2 7 4 9h4c2-2 4-5 4-9 0-6-4-10-6-16zm-10 12c-1 4 0 8 2 11 1 2 3 3 5 4-2-2-3-5-3-8 0-3-1-5-4-7zm20 0c-3 2-4 4-4 7 0 3-1 6-3 8 2-1 4-2 5-4 2-3 3-7 2-11zM14 36c0 2 4 4 10 4s10-2 10-4c-3 1-6 2-10 2s-7-1-10-2z' fill='%237A2E3A'/%3E%3C/svg%3E");
}

[data-emblem="compass"] .card-emblem {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Ccircle cx='24' cy='24' r='18' fill='none' stroke='%237A2E3A' stroke-width='1.5'/%3E%3Ccircle cx='24' cy='24' r='14' fill='none' stroke='%237A2E3A' stroke-width='0.75'/%3E%3Cpath d='M24 6v4m0 28v4M6 24h4m28 0h4' stroke='%237A2E3A' stroke-width='1'/%3E%3Cpath d='M20 28l-4-12 12 4-4 12-4-4z' fill='%237A2E3A' opacity='0.6'/%3E%3Cpath d='M28 20l4 12-12-4 4-12 4 4z' fill='%237A2E3A' opacity='0.3'/%3E%3C/svg%3E");
}

[data-emblem="scale"] .card-emblem {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M24 6v32M16 12h16M10 12l6 14h-12zM38 12l-6 14h12z' fill='none' stroke='%237A2E3A' stroke-width='1.5'/%3E%3Cpath d='M4 26c0 3 3 5 6 5s6-2 6-5M32 26c0 3 3 5 6 5s6-2 6-5' fill='none' stroke='%237A2E3A' stroke-width='1'/%3E%3Cpath d='M18 38h12' stroke='%237A2E3A' stroke-width='2'/%3E%3Ccircle cx='24' cy='8' r='2' fill='%237A2E3A'/%3E%3C/svg%3E");
}

/* =============================================
   Footer
   ============================================= */

.site-footer {
    padding: clamp(60px, 8vw, 120px) clamp(20px, 5vw, 80px) clamp(40px, 6vw, 80px);
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-brand {
    font-family: 'Commissioner', Georgia, serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--deep-burgundy);
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.footer-tagline {
    font-family: 'Commissioner', Georgia, serif;
    font-weight: 300;
    font-size: 1rem;
    color: var(--dusty-mauve);
    letter-spacing: 0.03em;
    margin-bottom: 24px;
}

.footer-divider {
    width: 80px;
    height: 2px;
    background: var(--parchment-blush);
    margin: 0 auto 24px;
}

.footer-note {
    font-family: 'Commissioner', Georgia, serif;
    font-weight: 300;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--dusty-mauve);
}

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

@media (max-width: 768px) {
    .nav-items {
        display: none;
    }

    .grand-pillow {
        grid-column: span 1;
    }

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

    .hero-section {
        padding-top: 80px;
    }
}

@media (max-width: 480px) {
    .nav-bar {
        padding: 0 16px;
    }
}
