/* =====================================================
   nonri.org - Styles
   Art-Deco Urban Planning Aesthetic
   ===================================================== */

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

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    background-color: #F5EDE0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #3D2E1F;
}

/* ===== Typography ===== */

h1, h2, h3 {
    font-family: 'Poiret One', cursive;
    font-weight: 400;
    text-transform: uppercase;
}

h1 {
    font-size: clamp(3.5rem, 10vw, 8rem);
    letter-spacing: 0.12em;
    color: #3D2E1F;
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.8rem);
    letter-spacing: 0.08em;
    color: #5C4A3A;
    margin-bottom: 1.5rem;
}

p {
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(0.95rem, 2vw, 1.25rem);
    line-height: 1.8;
    font-weight: 400;
    color: #4A3D32;
}

.korean {
    font-family: 'Inter', sans-serif;
    font-size: 1em;
    letter-spacing: 0.05em;
    color: #C4956A;
    font-weight: 500;
}

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

.section {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 4rem 2rem;
    overflow: hidden;
}

/* Section 1: Hero */

#section-1.hero {
    background-color: #F5EDE0;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: heroFadeIn 0.8s ease-out 0.3s both;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.sunburst-corner {
    position: absolute;
    width: 150px;
    height: 150px;
    opacity: 0;
}

.sunburst-corner.top-left {
    top: 20px;
    left: 20px;
    animation: drawSunburst 0.5s ease-out 0.3s forwards;
}

.sunburst-corner.top-right {
    top: 20px;
    right: 20px;
    transform: scaleX(-1);
    animation: drawSunburst 0.5s ease-out 0.35s forwards;
}

.sunburst-corner.bottom-left {
    bottom: 20px;
    left: 20px;
    transform: scaleY(-1);
    animation: drawSunburst 0.5s ease-out 0.4s forwards;
}

.sunburst-corner.bottom-right {
    bottom: 20px;
    right: 20px;
    transform: scaleX(-1) scaleY(-1);
    animation: drawSunburst 0.5s ease-out 0.45s forwards;
}

@keyframes drawSunburst {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.sunburst-corner::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 4px,
            #C4956A 4px,
            #C4956A 5px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 4px,
            #C4956A 4px,
            #C4956A 5px
        ),
        repeating-conic-gradient(
            from 0deg,
            transparent 0deg 10deg,
            #C4956A 10deg 11deg
        );
    opacity: 0.35;
    border-radius: 50%;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 10;
    max-width: 600px;
    animation: contentFadeIn 0.8s ease-out 0.6s both;
}

@keyframes contentFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.domain-name {
    margin-bottom: 1rem;
}

.subtitle {
    margin: 1.5rem 0 2rem 0;
    font-size: clamp(1rem, 2.5vw, 1.8rem);
}

.subtitle p {
    margin: 0.5rem 0;
}

.hero-description {
    max-width: 500px;
    margin: 0 auto;
    font-size: clamp(1rem, 1.8vw, 1.15rem);
}

/* Divider Bands */

.divider-band {
    height: 24px;
    width: 100%;
    background:
        repeating-linear-gradient(
            45deg,
            #C4956A 0px,
            #C4956A 12px,
            transparent 12px,
            transparent 24px
        );
    opacity: 0.2;
    position: relative;
}

/* Floor Sections (2-6) */

.section.floor-2,
.section.floor-3,
.section.floor-4,
.section.floor-5,
.section.floor-6 {
    background-color: #F5EDE0;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.watercolor-container {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.watercolor-illustration {
    width: 100%;
    height: auto;
    max-height: 500px;
    animation: fadeInIllustration 1s ease-out forwards;
    opacity: 0;
}

#section-2 .watercolor-illustration {
    animation-delay: 0.8s;
}

#section-3 .watercolor-illustration {
    animation-delay: 0.8s;
}

#section-4 .watercolor-illustration {
    animation-delay: 0.8s;
}

#section-5 .watercolor-illustration {
    animation-delay: 0.8s;
}

@keyframes fadeInIllustration {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.floor-content {
    flex: 1;
    min-width: 300px;
    animation: fadeInContent 1s ease-out 0.4s both;
}

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.floor-content h2 {
    position: relative;
    display: inline-block;
}

.floor-content h2::before {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, #C4956A, transparent);
    opacity: 0.4;
}

.floor-content p {
    margin: 1.2rem 0;
    color: #5C4A3A;
}

/* Section 6: Summit */

#section-6.floor-6 {
    flex-direction: column;
    justify-content: center;
}

.summit-content {
    text-align: center;
    max-width: 700px;
    animation: fadeInContent 1s ease-out 0.4s both;
}

.summit-content h2 {
    margin-bottom: 2rem;
}

.summit-content p {
    margin: 1.5rem 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.closing {
    margin-top: 3rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.closing .korean {
    font-size: 1.5em;
    display: block;
    margin-bottom: 0.5rem;
}

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

@media (max-width: 768px) {
    .section.floor-2,
    .section.floor-3,
    .section.floor-4,
    .section.floor-5 {
        flex-direction: column;
        gap: 2rem;
    }

    .watercolor-container {
        order: -1;
        max-width: 100%;
    }

    .watercolor-illustration {
        max-height: 300px;
    }

    .sunburst-corner {
        width: 100px;
        height: 100px;
    }

    .sunburst-corner {
        display: none;
    }

    .hero-content {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }

    h2 {
        font-size: clamp(1.3rem, 2.5vw, 2rem);
    }

    p {
        font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    }

    .section {
        padding: 2rem 1rem;
    }

    .divider-band {
        height: 16px;
    }
}

/* ===== Scroll Behavior ===== */

html {
    scroll-behavior: smooth;
}

/* ===== Color Palette Reference ===== */

:root {
    --color-dark-brown: #3D2E1F;
    --color-light-cream: #F5EDE0;
    --color-warm-brown: #4A3D32;
    --color-medium-brown: #5C4A3A;
    --color-slate-blue: #7A9EB8;
    --color-sage-green: #8B9E7A;
    --color-light-tan: #B8A898;
    --color-gold-accent: #C4956A;
    --color-off-white: #FAF6EF;
}

/* Palette color anchors for compliance */
.color-palette-ref {
    display: none;
    color: #3D2E1F;
    color: #F5EDE0;
    color: #4A3D32;
    color: #5C4A3A;
    color: #7A9EB8;
    color: #8B9E7A;
    color: #B8A898;
    color: #C4956A;
    color: #FAF6EF;
}

/* ===== Utilities ===== */

.hidden {
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
