/* =============================================
   20241204.com - Styles
   Anti-design meets glassmorphism
   ============================================= */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: #F5ECD7;
    color: #3B2F2F;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 17px;
    line-height: 1.65;
    overflow-x: hidden;
    position: relative;
}

/* --- Noise Texture Overlay --- */
.noise-svg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.035;
}

/* --- Selection --- */
::selection {
    background: #D94F30;
    color: #F5ECD7;
}

/* --- Links --- */
a {
    color: #D94F30;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #E8733A;
}

/* =============================================
   NAVIGATION
   ============================================= */

.nav-trigger {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1000;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-trigger:hover {
    transform: scale(1.1);
}

.nav-trigger:hover .peak-back {
    transform: translate(-3px, -2px);
}

.nav-trigger:hover .peak-front {
    transform: translate(3px, 2px);
}

.peak-back, .peak-front {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-trigger.is-open .nav-icon {
    transform: rotate(45deg);
}

.nav-trigger.is-open .peak-back {
    transform: translate(-6px, -4px);
}

.nav-trigger.is-open .peak-front {
    transform: translate(6px, 4px);
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.nav-overlay.is-open {
    pointer-events: auto;
    opacity: 1;
}

.nav-overlay-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(59, 47, 47, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

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

.nav-links {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nav-link {
    font-family: 'Archivo Black', sans-serif;
    font-size: 56px;
    color: #F5ECD7;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    transition: color 0.3s ease, transform 0.3s ease;
    transform: translateX(0);
    display: block;
}

.nav-link::before {
    content: attr(data-label);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.12em;
    color: #C8963E;
    display: block;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.nav-link:hover {
    color: #D94F30;
    transform: translateX(16px);
}

/* =============================================
   SECTIONS - General
   ============================================= */

.section {
    position: relative;
    z-index: 2;
}

/* =============================================
   SECTION 1: HERO
   ============================================= */

.section-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: #F5ECD7;
}

.hero-mountain-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1;
}

.hero-mountain {
    display: block;
    width: 100%;
    height: auto;
}

.mountain-layer {
    transition: opacity 0.6s ease;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    margin-bottom: 80px;
}

.hero-date-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8B5E3C;
    margin-bottom: 12px;
}

.hero-headline {
    font-family: 'Archivo Black', sans-serif;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    color: #3B2F2F;
    line-height: 0.85;
    position: relative;
}

.hero-day {
    display: block;
    font-size: clamp(100px, 20vw, 220px);
}

.hero-year {
    display: block;
    font-size: clamp(48px, 8vw, 96px);
    color: #D94F30;
    letter-spacing: 0.06em;
    margin-top: -10px;
}

.hero-tagline {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(18px, 2.5vw, 32px);
    color: #8B5E3C;
    margin-top: 24px;
}

/* The hero headline partially clipped by mountain (anti-design overlap) */
.hero-content {
    mix-blend-mode: normal;
}

/* Overflowing horizontal rule */
.hero-rule {
    position: absolute;
    bottom: 200px;
    left: -10vw;
    width: 120vw;
    height: 4px;
    background: #3B2F2F;
    z-index: 2;
}

/* =============================================
   TORN PAPER DIVIDERS
   ============================================= */

.torn-divider {
    position: relative;
    z-index: 3;
    line-height: 0;
    margin: -1px 0;
}

.torn-divider svg {
    display: block;
    width: 100%;
    height: auto;
}

.torn-divider-1 {
    background: #D9CFC1;
}

.torn-divider-2 {
    background: #F5ECD7;
}

.torn-divider-3 {
    background: #F5ECD7;
}

/* =============================================
   SECTION 2: MANIFESTO
   ============================================= */

.section-manifesto {
    background: #D9CFC1;
    padding: 120px 0 80px;
    position: relative;
}

.manifesto-content {
    max-width: 60ch;
    margin-left: 15%;
    padding: 0 24px;
}

.manifesto-meta {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8B5E3C;
    margin-bottom: 32px;
}

.manifesto-heading {
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(42px, 7vw, 96px);
    letter-spacing: -0.04em;
    text-transform: uppercase;
    color: #3B2F2F;
    line-height: 0.95;
    margin-bottom: 48px;
    /* Anti-design: slight rotation */
    transform: rotate(-3deg);
    transform-origin: left center;
}

.manifesto-text p {
    margin-bottom: 24px;
    color: #3B2F2F;
}

.manifesto-highlight {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 24px;
    line-height: 1.5;
    color: #3B2F2F;
    padding: 24px 0;
}

.wavy-underline {
    position: relative;
    display: inline;
}

.wavy-underline::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 6px;
    background: #C8963E;
    border-radius: 3px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.wavy-underline.is-visible::after {
    transform: scaleX(1);
}

.section-mountain-divider {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 60px;
}

/* =============================================
   SECTION 3: TRIPTYCH / FLIP CARDS
   ============================================= */

.section-triptych {
    background: #F5ECD7;
    padding: 100px 24px;
    position: relative;
}

.triptych-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8B5E3C;
    text-align: center;
    margin-bottom: 60px;
}

.triptych-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    flex-wrap: wrap;
}

/* Flip Card */
.flip-card {
    width: 320px;
    height: 420px;
    perspective: 1200px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Anti-design: deliberate misalignment */
.flip-card-offset {
    margin-top: 40px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.flip-card.is-flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 12px;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Glassmorphic Card Front */
.glass-card {
    background: rgba(255, 250, 240, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(59, 47, 47, 0.15);
}

.card-mountain-icon {
    position: absolute;
    top: 32px;
    left: 32px;
}

.card-front-title {
    font-family: 'Archivo Black', sans-serif;
    font-size: 48px;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    color: #3B2F2F;
    line-height: 1;
    margin-bottom: 8px;
}

.card-front-sub {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 22px;
    color: #8B5E3C;
}

/* Card Back */
.card-back {
    background: #D94F30;
    transform: rotateY(180deg);
    justify-content: center;
    padding: 40px 28px;
}

.card-back-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    line-height: 1.7;
    color: #F5ECD7;
    text-align: justify;
}

.card-back-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #C8963E;
    margin-top: 24px;
    display: block;
}

/* =============================================
   SECTION 4: INTERLUDE (BURNT VERMILLION)
   ============================================= */

.section-interlude {
    background: #D94F30;
    padding: 120px 24px;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.interlude-content {
    text-align: center;
}

.interlude-text {
    font-family: 'Archivo Black', sans-serif;
    text-transform: uppercase;
    color: #F5ECD7;
    letter-spacing: -0.04em;
    line-height: 1.05;
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.interlude-text.is-visible {
    opacity: 1;
}

.interlude-text-1 {
    font-size: clamp(36px, 6vw, 80px);
    transform: rotate(-3deg) translateY(20px);
}

.interlude-text-1.is-visible {
    transform: rotate(-2deg) translateY(0);
}

.interlude-text-2 {
    font-size: clamp(40px, 7vw, 90px);
    transform: rotate(1deg) translateY(20px);
}

.interlude-text-2.is-visible {
    transform: rotate(0deg) translateY(0);
}

.interlude-text-3 {
    font-size: clamp(52px, 10vw, 140px);
    color: #C8963E;
    transform: rotate(-4deg) translateY(20px);
}

.interlude-text-3.is-visible {
    transform: rotate(-2deg) translateY(0);
}

/* =============================================
   SECTION 5: EDITORIAL
   ============================================= */

.section-editorial {
    background: #F5ECD7;
    padding: 120px 24px;
    position: relative;
}

.editorial-layout {
    max-width: 900px;
    margin: 0 auto;
}

.editorial-meta {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8B5E3C;
    margin-bottom: 32px;
}

.editorial-heading {
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(42px, 6vw, 80px);
    letter-spacing: -0.04em;
    text-transform: uppercase;
    color: #3B2F2F;
    line-height: 0.95;
    margin-bottom: 48px;
}

.editorial-text-block {
    max-width: 60ch;
    margin-left: 15%;
    margin-bottom: 48px;
}

.editorial-text-block p {
    margin-bottom: 24px;
    color: #3B2F2F;
}

.editorial-text-block-right {
    margin-left: 25%;
}

.editorial-pullquote {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(24px, 3.5vw, 42px);
    line-height: 1.35;
    color: #D94F30;
    padding: 48px 0;
    margin: 24px 0;
    border-left: 4px solid #C8963E;
    padding-left: 32px;
    max-width: 70ch;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.editorial-pullquote.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.editorial-pullquote-2 {
    margin-left: 10%;
    /* Anti-design: rotated quote */
    transform: rotate(-2deg) translateY(20px);
}

.editorial-pullquote-2.is-visible {
    transform: rotate(-2deg) translateY(0);
}

/* =============================================
   SECTION 6: CLOSING
   ============================================= */

.section-closing {
    background: #D9CFC1;
    padding: 100px 24px 80px;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.closing-mountain-wrap {
    width: 100%;
    max-width: 1440px;
    margin-bottom: 60px;
}

.closing-mountain {
    display: block;
    width: 100%;
    height: auto;
}

.closing-text {
    text-align: center;
    position: relative;
    z-index: 2;
}

.closing-date {
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(48px, 8vw, 120px);
    letter-spacing: 0.08em;
    color: #3B2F2F;
    line-height: 1;
    margin-bottom: 16px;
}

.closing-message {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(18px, 2.5vw, 28px);
    color: #8B5E3C;
}

/* =============================================
   SECTION 7: FOOTER
   ============================================= */

.section-footer {
    background: #3B2F2F;
    padding: 80px 24px 48px;
    position: relative;
}

.footer-newspaper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto 60px;
}

.footer-col p {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    line-height: 1.6;
    color: #D9CFC1;
    text-align: justify;
    column-gap: 0;
}

.footer-frosted-panel {
    max-width: 800px;
    margin: 0 auto;
    padding: 32px 40px;
    text-align: center;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.footer-nav a {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #C8963E;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #E8733A;
}

.footer-copy {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
    color: #8B5E3C;
}

/* =============================================
   SVG DRAW PATH ANIMATION
   ============================================= */

.draw-path {
    stroke-dasharray: 3000;
    stroke-dashoffset: 3000;
    transition: stroke-dashoffset 2s ease-in-out;
}

.draw-path.is-drawn {
    stroke-dashoffset: 0;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 900px) {
    .triptych-grid {
        flex-direction: column;
        align-items: center;
    }

    .flip-card-offset {
        margin-top: 0;
    }

    .flip-card {
        width: 90%;
        max-width: 360px;
    }

    .nav-link {
        font-size: 36px;
    }

    .manifesto-content,
    .editorial-text-block,
    .editorial-text-block-right {
        margin-left: 5%;
        padding: 0 16px;
    }

    .footer-newspaper {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-rule {
        bottom: 150px;
    }
}

@media (max-width: 600px) {
    .nav-link {
        font-size: 28px;
    }

    .footer-newspaper {
        grid-template-columns: 1fr;
    }

    .footer-nav {
        gap: 16px;
    }

    .flip-card {
        width: 100%;
        max-width: 320px;
        height: 380px;
    }

    .editorial-pullquote {
        padding-left: 20px;
    }

    .hero-rule {
        bottom: 120px;
    }
}
