/* yongzoon.com - Editorial Mountain Journal */
/* Color Palette (Analogous) */
/* #2b1d1a Deep Umber (primary text) */
/* #5c3d2e Warm Chestnut (secondary text, heading accents) */
/* #c47a5a Terracotta Blush (primary accent, links) */
/* #d4a574 Amber Sand (highlight, hover states) */
/* #e8cdb5 Parchment (card backgrounds) */
/* #f5ede4 Warm Linen (page background) */
/* #1a1210 Obsidian (overlays, footer) */
/* #8b6952 Dusk Stone (borders, rules) */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #2b1d1a;
    background-color: #f5ede4;
    overflow-x: hidden;
}

/* ================================
   NAVIGATION
   ================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(245, 237, 228, 0.95);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-logo {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #5c3d2e;
}

.nav-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.nav-menu-btn:hover {
    transform: rotate(90deg);
}

.nav-menu-icon {
    display: block;
    width: 20px;
    height: 2px;
    background-color: #5c3d2e;
    position: relative;
}

.nav-menu-icon::before,
.nav-menu-icon::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background-color: #5c3d2e;
    left: 0;
}

.nav-menu-icon::before {
    top: -6px;
}

.nav-menu-icon::after {
    top: 6px;
}

.nav-rule {
    height: 1px;
    background: linear-gradient(to right, transparent, #8b6952, transparent);
    opacity: 0.4;
}

/* ================================
   HERO SECTION
   ================================ */
.hero {
    min-height: 100vh;
    padding-top: 80px;
    display: flex;
    align-items: center;
}

.hero-content {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 2.5rem;
    gap: 2rem;
}

.hero-text {
    flex: 0 0 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 2rem;
}

.section-number {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    color: #8b6952;
    display: block;
    margin-bottom: 1.5rem;
}

.hero-headline {
    font-family: 'Libre Baskerville', serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #2b1d1a;
    margin-bottom: 1.5rem;
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-headline.revealed {
    clip-path: inset(0 0% 0 0);
}

.hero-subhead {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    font-size: 1.15rem;
    line-height: 1.7;
    color: #5c3d2e;
    max-width: 480px;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s,
                transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s;
}

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

.hero-photo {
    flex: 0 0 38%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.photo-frame {
    width: 100%;
    max-width: 320px;
    overflow: hidden;
    position: relative;
}

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

/* ================================
   RIDGELINE DIVIDERS
   ================================ */
.ridgeline-divider {
    padding: 0 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.ridgeline-divider svg {
    width: 100%;
    height: 80px;
}

.ridge-path {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    transition: stroke-dashoffset 1.5s ease-in-out;
}

.ridgeline-divider.visible .ridge-path {
    stroke-dashoffset: 0;
}

/* ================================
   EDITORIAL SECTIONS
   ================================ */
.editorial-section {
    padding: 120px 0;
}

.section-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2.5rem;
    position: relative;
}

.section-headline {
    font-family: 'Libre Baskerville', serif;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #2b1d1a;
    margin-bottom: 2rem;
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-headline.revealed {
    clip-path: inset(0 0% 0 0);
}

.editorial-text {
    max-width: 680px;
}

.lead-paragraph {
    font-family: 'Libre Baskerville', serif;
    font-weight: 400;
    font-size: 1.25rem;
    line-height: 1.6;
    color: #5c3d2e;
    margin-bottom: 2rem;
}

.body-text {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #2b1d1a;
    margin-bottom: 1.5rem;
}

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* ================================
   PHOTO BREAKS (Full-Bleed)
   ================================ */
.photo-break {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.photo-break-inner {
    width: 100%;
    position: relative;
}

.landscape-photo {
    width: 100%;
    height: auto;
    display: block;
}

.photo-caption {
    position: absolute;
    bottom: 1.5rem;
    right: 2.5rem;
}

.caption-text {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    color: #e8cdb5;
    opacity: 0.7;
}

/* ================================
   FEATURE LIST
   ================================ */
.feature-list {
    list-style: none;
    margin-top: 3rem;
    max-width: 680px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(139, 105, 82, 0.15);
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-thumb {
    flex-shrink: 0;
    width: 48px;
    height: 64px;
    border-radius: 2px;
    overflow: hidden;
    transition: filter 0.3s ease;
}

.feature-item:hover .feature-thumb {
    filter: hue-rotate(15deg);
}

.feature-thumb svg {
    width: 100%;
    height: 100%;
}

.feature-content {
    flex: 1;
}

.feature-title {
    font-family: 'Libre Baskerville', serif;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.3;
    color: #2b1d1a;
    margin-bottom: 0.4rem;
}

.feature-desc {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #5c3d2e;
}

/* ================================
   PULL QUOTE
   ================================ */
.pullquote-section {
    padding: 80px 0;
}

.pull-quote {
    max-width: 800px;
    padding-left: 2rem;
    border-left: 2px solid #c47a5a;
}

.pull-quote p {
    font-family: 'Libre Baskerville', serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    line-height: 1.5;
    color: #5c3d2e;
    margin-bottom: 1rem;
}

.quote-attribution {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    color: #8b6952;
    display: block;
}

/* Slide-in-right animation */
.slide-in-right {
    opacity: 0;
    transform: translateX(40px) rotate(2deg);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0) rotate(0deg);
}

/* ================================
   GLITCH EFFECT
   ================================ */
.glitch-target {
    position: relative;
}

.glitch-target::before,
.glitch-target::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
}

.glitch-target::before {
    background: linear-gradient(transparent 0%, rgba(196, 122, 90, 0.08) 50%, transparent 51%, transparent 100%);
    background-size: 100% 4px;
}

.glitch-target::after {
    background: linear-gradient(transparent 0%, rgba(212, 165, 116, 0.06) 50%, transparent 51%, transparent 100%);
    background-size: 100% 6px;
}

@keyframes glitchIn {
    0% {
        opacity: 0;
        clip-path: inset(0 0 100% 0);
    }
    10% {
        opacity: 0.8;
        clip-path: inset(30% 0 40% 0);
        transform: translateX(3px);
    }
    20% {
        clip-path: inset(60% 0 10% 0);
        transform: translateX(-2px);
    }
    30% {
        clip-path: inset(10% 0 70% 0);
        transform: translateX(4px);
    }
    40% {
        clip-path: inset(0 0 0 0);
        transform: translateX(-1px);
    }
    50% {
        opacity: 0.4;
        transform: translateX(2px);
    }
    100% {
        opacity: 0;
        clip-path: inset(0 0 0 0);
        transform: translateX(0);
    }
}

.glitch-target.glitching::before {
    animation: glitchIn 0.4s ease-out forwards;
}

.glitch-target.glitching::after {
    animation: glitchIn 0.5s ease-out 0.05s forwards;
}

/* ================================
   FOOTER
   ================================ */
.site-footer {
    background-color: #1a1210;
    padding: 3rem 2.5rem;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.footer-text {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #8b6952;
}

/* ================================
   LINK HOVER ANIMATIONS
   ================================ */
a {
    color: #c47a5a;
    text-decoration: none;
    position: relative;
}

a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: #c47a5a;
    transition: width 0.3s ease;
}

a:hover::after {
    width: 100%;
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        padding: 1.5rem;
    }

    .hero-text {
        flex: 1;
        padding-right: 0;
    }

    .hero-photo {
        flex: 1;
        justify-content: center;
    }

    .photo-frame {
        max-width: 240px;
    }

    .nav-inner {
        padding: 1rem 1.5rem;
    }

    .section-inner {
        padding: 0 1.5rem;
    }

    .editorial-section {
        padding: 80px 0;
    }

    .ridgeline-divider {
        padding: 0 1.5rem;
    }

    .photo-caption {
        right: 1.5rem;
        bottom: 1rem;
    }

    .feature-item {
        flex-direction: column;
        gap: 1rem;
    }

    .pull-quote {
        padding-left: 1.5rem;
    }
}