/* ===== mujun.cafe Styles ===== */
/* Palette:
   Cafe Cream:    #F8F0E0 (primary bg)
   Toast Brown:   #8A6840 (primary accent)
   Espresso Dark: #2A1810 (headline text)
   Latte Warm:    #D8C0A0 (secondary surfaces)
   Butter Yellow: #F0D888 (highlight accent)
   Cinnamon:      #A07040 (secondary text)
   Steam White:   rgba(248,240,224,0.8)
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: clamp(14px, 1vw, 17px);
    line-height: 1.75;
    color: #2A1810;
    background-color: #F8F0E0;
    overflow-x: hidden;
}

/* ===== HERO SECTION ===== */
#hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #F8F0E0;
    overflow: hidden;
}

/* Wood-panel side accents */
.hero-wood-panel {
    position: absolute;
    top: 0;
    bottom: 0;
    width: clamp(30px, 5vw, 80px);
    background: linear-gradient(180deg, #D8C0A0 0%, #A07040 40%, #8A6840 70%, #D8C0A0 100%);
    opacity: 0.35;
}

.hero-wood-left {
    left: 0;
    border-right: 1px solid rgba(138, 104, 64, 0.2);
}

.hero-wood-right {
    right: 0;
    border-left: 1px solid rgba(138, 104, 64, 0.2);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 2;
    padding: 2rem;
}

/* Logotype */
.logotype {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: clamp(32px, 5vw, 64px);
    color: #2A1810;
    letter-spacing: 0.02em;
    opacity: 0;
    animation: fadeInWarm 600ms ease-out forwards;
}

.tagline {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: clamp(14px, 1.5vw, 20px);
    color: #A07040;
    margin-top: 0.5em;
    opacity: 0;
    animation: fadeInWarm 600ms ease-out 300ms forwards;
}

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

/* Hero Illustration */
.hero-illustration {
    margin-top: 2rem;
    width: clamp(180px, 30vw, 320px);
    opacity: 0;
    animation: fadeInWarm 800ms ease-out 200ms forwards;
}

.coffee-cup {
    width: 100%;
    height: auto;
}

/* Scroll Hint */
.scroll-hint {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: fadeInWarm 600ms ease-out 800ms forwards;
}

.scroll-hint span {
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    color: #8A6840;
    text-transform: lowercase;
    letter-spacing: 0.1em;
}

.scroll-hint svg {
    animation: gentleBounce 2s ease-in-out infinite;
}

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

/* ===== STEAM WISP ANIMATIONS ===== */
.steam-wisp {
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: steamRise 3s ease-in-out infinite;
}

.steam-1 { animation-delay: 0s; }
.steam-2 { animation-delay: 0.8s; }
.steam-3 { animation-delay: 1.6s; }
.steam-4 { animation-delay: 0.3s; }
.steam-5 { animation-delay: 1.2s; }
.steam-6 { animation-delay: 0.5s; }
.steam-7 { animation-delay: 1.4s; }
.steam-8 { animation-delay: 0.2s; }
.steam-9 { animation-delay: 1.0s; }
.steam-10 { animation-delay: 0.6s; }
.steam-11 { animation-delay: 1.5s; }

@keyframes steamRise {
    0% {
        stroke-dashoffset: 40;
        opacity: 0;
        transform: translateY(0);
    }
    30% {
        opacity: 0.7;
    }
    70% {
        opacity: 0.4;
    }
    100% {
        stroke-dashoffset: 0;
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* ===== MAGAZINE EDITORIAL GRID ===== */
#magazine {
    padding: clamp(40px, 6vw, 80px) clamp(20px, 5vw, 60px);
    background-color: #F8F0E0;
}

.magazine-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: clamp(24px, 3vw, 40px);
    max-width: 1000px;
    margin: 0 auto;
}

/* ===== PRIMARY COLUMN ===== */
.primary-column {
    display: flex;
    flex-direction: column;
    gap: clamp(32px, 4vw, 56px);
}

/* Feature Articles */
.feature-article {
    opacity: 0;
    transform: translateY(20px);
}

.feature-article.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 500ms ease-out, transform 500ms ease-out;
}

.article-illustration {
    max-width: 280px;
    margin: 0 auto 1.5rem;
}

.food-illustration {
    width: 100%;
    height: auto;
}

.article-title {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: clamp(24px, 3.5vw, 44px);
    color: #2A1810;
    margin-bottom: 0.75em;
    line-height: 1.25;
}

.article-body {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: clamp(14px, 1vw, 17px);
    line-height: 1.75;
    color: #2A1810;
    margin-bottom: 1em;
}

.article-body:last-child {
    margin-bottom: 0;
}

/* Pull Quotes */
.pull-quote {
    font-family: 'Quicksand', sans-serif;
    font-size: clamp(20px, 2.5vw, 32px);
    font-weight: 600;
    color: #8A6840;
    border-left: 3px solid #D8C0A0;
    padding-left: 20px;
    margin: 2em 0;
    line-height: 1.5;
    opacity: 0;
    transform: translateX(-10px);
}

.pull-quote.visible {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 600ms ease-out, transform 600ms ease-out;
}

/* ===== SIDEBAR COLUMN ===== */
.sidebar-column {
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 2.5vw, 32px);
}

/* Recipe Cards */
.recipe-card {
    background: #F8F0E0;
    border: 1px solid #D8C0A0;
    border-radius: 12px;
    padding: clamp(16px, 2vw, 24px);
    box-shadow: 0 2px 12px rgba(42, 24, 16, 0.06);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55), box-shadow 0.3s ease;
    cursor: default;
    opacity: 0;
    transform: translateY(15px);
}

.recipe-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 400ms ease-out, transform 400ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.recipe-card:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 16px rgba(42, 24, 16, 0.1);
}

.recipe-illustration {
    max-width: 120px;
    margin: 0 auto 0.75rem;
}

.food-illustration-small {
    width: 100%;
    height: auto;
}

.recipe-title {
    font-family: 'Lora', serif;
    font-weight: 600;
    font-size: clamp(16px, 1.2vw, 20px);
    color: #2A1810;
    margin-bottom: 0.5em;
}

.recipe-desc {
    font-family: 'Nunito', sans-serif;
    font-size: clamp(13px, 0.9vw, 15px);
    color: #A07040;
    line-height: 1.6;
    margin-bottom: 0.75em;
}

.recipe-details {
    list-style: none;
    display: flex;
    gap: 1em;
    flex-wrap: wrap;
}

.recipe-details li {
    font-family: 'Nunito', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #8A6840;
    background: rgba(240, 216, 136, 0.3);
    padding: 0.2em 0.6em;
    border-radius: 20px;
}

/* Menu Cards */
.menu-card {
    background: linear-gradient(135deg, rgba(216, 192, 160, 0.3) 0%, rgba(240, 216, 136, 0.15) 100%);
    border: 1px solid #D8C0A0;
    border-radius: 12px;
    padding: clamp(16px, 2vw, 24px);
    box-shadow: 0 2px 12px rgba(42, 24, 16, 0.06);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55), box-shadow 0.3s ease;
    cursor: default;
    opacity: 0;
    transform: translateY(15px);
}

.menu-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 400ms ease-out, transform 400ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.menu-card:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 16px rgba(42, 24, 16, 0.1);
}

.menu-heading {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: clamp(18px, 1.5vw, 24px);
    color: #2A1810;
    margin-bottom: 1em;
    padding-bottom: 0.5em;
    border-bottom: 1px solid #D8C0A0;
}

.menu-list {
    list-style: none;
}

.menu-item {
    display: flex;
    flex-direction: column;
    padding: 0.6em 0;
    border-bottom: 1px dotted rgba(138, 104, 64, 0.2);
}

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

.menu-name {
    font-family: 'Lora', serif;
    font-weight: 600;
    font-size: clamp(14px, 1.1vw, 17px);
    color: #2A1810;
}

.menu-note {
    font-family: 'Nunito', sans-serif;
    font-size: 0.8rem;
    color: #A07040;
    font-style: italic;
}

/* Tip Card */
.tip-card {
    background: rgba(240, 216, 136, 0.2);
    border: 1px dashed #8A6840;
    border-radius: 12px;
    padding: clamp(16px, 2vw, 24px);
    opacity: 0;
    transform: translateY(15px);
}

.tip-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 400ms ease-out, transform 400ms ease-out;
}

.tip-heading {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: clamp(16px, 1.3vw, 20px);
    color: #8A6840;
    margin-bottom: 0.5em;
}

.tip-text {
    font-family: 'Nunito', sans-serif;
    font-size: clamp(13px, 0.9vw, 15px);
    color: #A07040;
    line-height: 1.7;
}

/* ===== FOOTER ===== */
#footer {
    background: #2A1810;
    padding: clamp(40px, 5vw, 60px) 2rem;
    text-align: center;
}

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

.footer-illustration {
    width: 60px;
    margin: 0 auto 1rem;
}

.footer-cup {
    width: 100%;
    height: auto;
}

.footer-text {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: clamp(14px, 1.2vw, 18px);
    color: #D8C0A0;
    margin-bottom: 0.5em;
}

.footer-hours {
    font-family: 'Nunito', sans-serif;
    font-size: 0.85rem;
    color: #8A6840;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .magazine-grid {
        grid-template-columns: 1fr;
    }

    .sidebar-column {
        order: 2;
    }

    .hero-wood-panel {
        display: none;
    }

    .article-illustration {
        max-width: 200px;
    }

    .recipe-illustration {
        max-width: 80px;
    }

    .recipe-details {
        gap: 0.5em;
    }
}

@media (max-width: 480px) {
    .logotype {
        font-size: clamp(28px, 8vw, 48px);
    }

    .hero-illustration {
        width: clamp(150px, 50vw, 250px);
    }

    .pull-quote {
        font-size: clamp(18px, 4vw, 26px);
        padding-left: 14px;
    }
}
