/* reiwa.bar - Japanese Minimal Bar */

:root {
    --lacquer-black: #0D0B0E;
    --paper-lantern: #E8E0D0;
    --amber: #C9A84C;
    --smoke: #7A7268;
    --warm-sake: #D4A574;
    --charcoal: #1A1714;
    --faded-gold: #A08C5A;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'EB Garamond', serif;
    background-color: var(--lacquer-black);
    color: var(--paper-lantern);
    overflow-x: hidden;
}

/* Ambient Vertical Light */
.ambient-light {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(201, 168, 76, 0.06) 30%,
        rgba(201, 168, 76, 0.06) 70%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 0;
}

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

/* ========== SECTION 1: THE NOREN ========== */

.section--noren {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--lacquer-black);
    position: relative;
    overflow: hidden;
}

/* Noren curtain lines */
.noren__curtain-left,
.noren__curtain-right {
    position: absolute;
    top: 0;
    width: 1px;
    height: 70%;
    background: linear-gradient(
        to bottom,
        rgba(201, 168, 76, 0.15) 0%,
        rgba(201, 168, 76, 0.15) 80%,
        transparent 100%
    );
}

.noren__curtain-left {
    left: calc(50% - 60px);
}

.noren__curtain-right {
    left: calc(50% + 60px);
}

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

.noren__title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: var(--paper-lantern);
    letter-spacing: 0.15em;
    margin-bottom: 3rem;
}

.noren__dot {
    color: var(--smoke);
}

.noren__bar {
    text-shadow: 0 0 20px rgba(201, 168, 76, 0.4), 0 0 40px rgba(201, 168, 76, 0.15);
}

.noren__era {
    font-family: 'Noto Serif JP', serif;
    font-weight: 400;
    font-size: clamp(4rem, 10vw, 8rem);
    color: var(--amber);
    opacity: 0.7;
    line-height: 1;
}

/* ========== SECTION 2: THE COUNTER ========== */

.section--counter {
    padding: 10rem 2rem;
    background-color: var(--lacquer-black);
}

.counter__column {
    max-width: 640px;
    margin: 0 auto;
}

.counter__block {
    padding: 0;
}

.counter__text {
    font-family: 'EB Garamond', serif;
    font-size: 1.1rem;
    line-height: 2.0;
    color: var(--paper-lantern);
}

.counter__rule {
    border: none;
    width: 60px;
    height: 1px;
    background: rgba(201, 168, 76, 0.2);
    margin: 120px auto;
}

/* ========== SECTION 3: THE CRAFT ========== */

.section--craft {
    padding: 8rem 2rem;
    background-color: var(--lacquer-black);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.craft__frames {
    position: relative;
    width: 320px;
    height: 420px;
    max-width: 90vw;
}

.craft__frame {
    position: absolute;
    border: 1px solid rgba(201, 168, 76, 0.4);
}

.craft__frame--back {
    top: 0;
    left: 0;
    width: 240px;
    height: 340px;
    background: transparent;
}

.craft__frame--front {
    top: 40px;
    left: 40px;
    width: 260px;
    height: 360px;
    background: var(--lacquer-black);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
}

.craft__text {
    font-family: 'EB Garamond', serif;
    font-size: 1rem;
    line-height: 2.0;
    color: var(--paper-lantern);
}

/* ========== SECTION 4: THE LAST SIP ========== */

.section--lastsip {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--lacquer-black);
    padding: 6rem 2rem;
}

.lastsip__content {
    text-align: center;
}

.lastsip__phrase {
    font-family: 'Noto Serif JP', serif;
    font-weight: 400;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--paper-lantern);
    letter-spacing: 0.2em;
    margin-bottom: 0.75rem;
}

.lastsip__translation {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 1rem;
    color: var(--smoke);
    letter-spacing: 0.1em;
    font-style: italic;
    margin-bottom: 4rem;
}

.lastsip__cup {
    display: block;
    margin: 0 auto 4rem;
    animation: sakePulse 3s ease-in-out infinite;
}

@keyframes sakePulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

.lastsip__era-years {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 0.9rem;
    color: var(--faded-gold);
    letter-spacing: 0.2em;
    display: block;
}

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

@media (max-width: 768px) {
    .counter__rule {
        margin: 80px auto;
    }

    .section--counter {
        padding: 6rem 1.5rem;
    }

    .craft__frames {
        width: 280px;
        height: 380px;
    }

    .craft__frame--back {
        width: 200px;
        height: 300px;
    }

    .craft__frame--front {
        width: 220px;
        height: 320px;
        top: 30px;
        left: 30px;
        padding: 1.5rem;
    }

    .ambient-light {
        width: 60px;
    }
}
