/* yesang.xyz - Sincere Vaporwave / Burgundy-Cream */
/* Fonts: Playfair Display, Lato, Bungee Shade */

:root {
    --velvet-night: #1C0A1A;
    --burgundy-deep: #3A0E28;
    --champagne: #F0E4CC;
    --dusty-rose: #D4688A;
    --electric-lilac: #C084E8;
    --teal-horizon: #4ED8D4;
    --pale-cream: #FFF0E4;
    --mahogany: #5C1A30;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--velvet-night);
    color: var(--champagne);
    font-family: 'Lato', sans-serif;
    font-size: 1.125rem;
    line-height: 1.75;
    overflow-x: hidden;
}

/* ============================
   STICKY HEADER
   ============================ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(28, 10, 26, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(212, 104, 138, 0.15);
    transition: background 0.3s ease;
}

.header-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem clamp(1rem, 5vw, 4rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--dusty-rose);
    text-decoration: none;
    letter-spacing: 0.02em;
}

.site-nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    font-size: 0.875rem;
    color: var(--champagne);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.7;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.nav-link:hover {
    opacity: 1;
    color: var(--dusty-rose);
}

/* ============================
   HERO SECTION
   ============================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(180deg, var(--velvet-night) 0%, var(--burgundy-deep) 50%, var(--velvet-night) 100%);
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(192, 132, 232, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 60%, rgba(212, 104, 138, 0.06) 0%, transparent 60%);
}

.hero-scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(240, 228, 204, 0.02) 2px,
        rgba(240, 228, 204, 0.02) 3px
    );
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 clamp(1rem, 5vw, 4rem);
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.1;
    color: var(--champagne);
    margin-bottom: 1.5rem;
    font-variant-numeric: oldstyle-nums;
    font-feature-settings: "swsh" 1;
}

.hero-title-line {
    display: block;
}

.hero-title-line.accent {
    color: var(--dusty-rose);
    font-style: italic;
}

.hero-subtitle {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    font-size: 1.25rem;
    color: var(--champagne);
    opacity: 0.7;
    letter-spacing: 0.05em;
}

/* Hero SVG Shapes */
.hero-svg-shape {
    position: absolute;
    pointer-events: none;
    opacity: 0.4;
}

.hero-svg-rect {
    top: 10%;
    left: -5%;
    width: 300px;
    height: 150px;
    transform: rotate(-8deg);
}

.hero-svg-triangle {
    bottom: 15%;
    right: -3%;
    width: 180px;
    height: 180px;
    transform: rotate(12deg);
}

.hero-svg-star {
    bottom: 10%;
    left: 5%;
    width: 120px;
    height: 120px;
    transform: rotate(-5deg);
}

/* Draw Path Animation */
.draw-path {
    fill: none;
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    transition: stroke-dashoffset 1.2s ease-in-out;
}

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

/* ============================
   PATTERN DIVIDERS
   ============================ */

.pattern-divider {
    width: 100%;
    height: 40px;
    overflow: hidden;
    opacity: 0.6;
}

.pattern-divider svg {
    display: block;
}

/* ============================
   CONTENT SECTIONS (VHS)
   ============================ */

.content-section {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.vhs-section {
    position: relative;
}

.vhs-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, var(--burgundy-deep) 0%, var(--mahogany) 30%, var(--velvet-night) 70%);
    opacity: 0.5;
}

.vhs-bg-2 {
    background:
        linear-gradient(225deg, var(--mahogany) 0%, var(--burgundy-deep) 40%, var(--velvet-night) 80%);
}

.vhs-bg-3 {
    background:
        linear-gradient(315deg, var(--velvet-night) 0%, var(--mahogany) 50%, var(--burgundy-deep) 100%);
}

.vhs-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(28, 10, 26, 0.3) 30%,
        rgba(28, 10, 26, 0.6) 60%,
        var(--velvet-night) 100%
    );
}

.vhs-scanline-overlay {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(240, 228, 204, 0.04) 2px,
        rgba(240, 228, 204, 0.04) 3px
    );
    pointer-events: none;
}

.vhs-color-fringe {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.vhs-color-fringe::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(212, 104, 138, 0.03) 0%,
        transparent 20%,
        rgba(192, 132, 232, 0.02) 50%,
        transparent 80%,
        rgba(78, 216, 212, 0.03) 100%
    );
    mix-blend-mode: screen;
}

.vhs-color-fringe::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(212, 104, 138, 0.2),
        rgba(192, 132, 232, 0.15),
        rgba(78, 216, 212, 0.1),
        transparent
    );
    animation: vhsScanMove 8s linear infinite;
}

@keyframes vhsScanMove {
    0% { top: 0; }
    100% { top: 100%; }
}

.section-inner {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 5vw, 4rem);
}

/* Section Numbers - Bungee Shade */
.section-number-wrap {
    position: relative;
    margin-bottom: 1rem;
}

.section-number {
    font-family: 'Bungee Shade', cursive;
    font-size: clamp(5rem, 12vw, 10rem);
    color: var(--electric-lilac);
    opacity: 0.3;
    line-height: 1;
    display: block;
    transform: rotate(-3deg);
    transform-origin: left center;
    user-select: none;
}

/* Section SVG decorations */
.section-svg {
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: auto;
    opacity: 0.25;
    pointer-events: none;
}

.section-heading {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--champagne);
    margin-bottom: 2rem;
    font-variant-numeric: oldstyle-nums;
    font-feature-settings: "swsh" 1;
    position: relative;
}

.section-heading::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--dusty-rose);
    margin-top: 0.75rem;
}

.section-body {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--champagne);
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.section-callout {
    margin-top: 2.5rem;
    padding: 1.5rem 2rem;
    border-left: 3px solid var(--dusty-rose);
    background: rgba(58, 14, 40, 0.4);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.callout-mark {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--dusty-rose);
    flex-shrink: 0;
}

.callout-text {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--pale-cream);
    opacity: 0.9;
}

/* ============================
   SECTION REVEAL ANIMATIONS
   ============================ */

.section-inner {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ============================
   FOOTER
   ============================ */

.site-footer {
    padding: 80px 0 40px;
    text-align: center;
    position: relative;
}

.footer-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 5vw, 4rem);
}

.footer-svg {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 2rem;
    display: block;
    opacity: 0.4;
}

.footer-text {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--dusty-rose);
    margin-bottom: 0.5rem;
}

.footer-subtext {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    font-size: 0.875rem;
    color: var(--champagne);
    opacity: 0.5;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.footer-copy {
    font-family: 'Lato', sans-serif;
    font-size: 0.75rem;
    color: var(--champagne);
    opacity: 0.3;
}

/* ============================
   RETRO BACKGROUND TEXTURE
   ============================ */

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 20px,
            rgba(212, 104, 138, 0.015) 20px,
            rgba(212, 104, 138, 0.015) 21px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 20px,
            rgba(192, 132, 232, 0.01) 20px,
            rgba(192, 132, 232, 0.01) 21px
        );
    pointer-events: none;
    z-index: 0;
}

/* ============================
   PATTERN DIVIDER ANIMATION
   ============================ */

@keyframes patternSlide {
    0% { transform: translateX(0); }
    100% { transform: translateX(20px); }
}

.pattern-divider svg rect {
    animation: patternSlide 20s linear infinite;
}

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

@media (max-width: 640px) {
    .site-nav {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.75rem;
        letter-spacing: 0.05em;
    }

    .section-number {
        font-size: 4rem;
    }

    .hero-svg-shape {
        display: none;
    }

    .section-svg {
        display: none;
    }

    .section-callout {
        padding: 1rem 1.25rem;
    }
}