/* === Base Reset & Body === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(to bottom, #0F0D0B 0%, #1A1410 50%, #0F0D0B 100%);
    color: #F5EDE0;
    font-family: 'Source Serif 4', Georgia, serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.3vw, 1.15rem);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

main {
    scroll-snap-type: y mandatory;
}

/* === Noren Entrance === */
.noren {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: linear-gradient(180deg, #0F0D0B 0%, #1E1914 40%, #1E1914 60%, #0F0D0B 100%);
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
}

.noren-sign {
    text-align: center;
    animation: noren-sway 6s cubic-bezier(0.37, 0, 0.63, 1) infinite alternate;
    transform-origin: top center;
}

@keyframes noren-sway {
    0% { transform: rotate(-1.5deg); }
    100% { transform: rotate(1.5deg); }
}

.bar-name {
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    font-weight: 700;
    font-size: clamp(3rem, 8vw, 7rem);
    letter-spacing: 0.08em;
    color: #D4A24E;
    margin-bottom: 1rem;
}

.bar-subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 400;
    font-size: clamp(0.7rem, 0.9vw, 0.85rem);
    letter-spacing: 0.05em;
    color: #A89580;
}

/* === Bento Grid === */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: auto;
    gap: clamp(4px, 0.5vw, 8px);
    padding: clamp(16px, 3vw, 48px);
    scroll-snap-align: start;
    max-width: 1400px;
    margin: 0 auto;
}

/* === Bento Panel Base === */
.bento-panel {
    position: relative;
    background: #1E1914;
    border-radius: 4px;
    padding: clamp(20px, 2.5vw, 40px);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.bento-panel:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(15, 13, 11, 0.5);
}

/* Leather Texture Overlay */
.leather-texture {
    position: absolute;
    inset: 0;
    opacity: 0.15;
    mix-blend-mode: overlay;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.65' numOctaves='4' type='fractalNoise' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' fill='%232E261F' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

/* === Panel: Menu (4 cols, 2 rows) === */
.panel-menu {
    grid-column: span 4;
    grid-row: span 2;
    background: #2E261F;
}

.panel-menu h2 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    letter-spacing: 0.03em;
    color: #D4A24E;
    margin-bottom: 1.5rem;
}

.panel-menu p {
    color: #F5EDE0;
    margin-bottom: 1rem;
    max-width: 60ch;
}

/* === Panel: Candle (2 cols, 1 row) === */
.panel-candle {
    grid-column: span 2;
    grid-row: span 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1E1914;
    min-height: 220px;
}

.candle-holder {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.candle-stick {
    width: 8px;
    height: 50px;
    background: linear-gradient(to bottom, #C8B9A5, #A89580);
    border-radius: 2px;
}

.candle-flame {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 30px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    background: radial-gradient(ellipse at 50% 60%, #F5EDE0 0%, #D4A24E 40%, #C87941 100%);
    filter: blur(1px);
    animation: flicker-scale 0.3s steps(2) infinite alternate, flicker-drift 0.15s ease-in-out infinite alternate;
}

.candle-flame-glow {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #D4A24E;
    opacity: 0.15;
    filter: blur(60px);
    animation: flicker-scale 0.6s steps(2) infinite alternate;
    pointer-events: none;
}

@keyframes flicker-scale {
    0% { transform: translateX(-50%) scale(1, 1); }
    100% { transform: translateX(-50%) scale(0.92, 1.06); }
}

@keyframes flicker-drift {
    0% { transform: translateX(-50%) translateX(0); }
    100% { transform: translateX(-50%) translateX(1px); }
}

/* === Panel: Hours (2 cols, 1 row) === */
.panel-hours {
    grid-column: span 2;
    grid-row: span 1;
    background: #F5EDE0;
    color: #1E1914;
    position: relative;
    box-shadow: inset 0 0 30px rgba(15, 13, 11, 0.3);
}

.paper-noise {
    position: absolute;
    inset: 0;
    opacity: 0.08;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='p'%3E%3CfeTurbulence baseFrequency='0.9' numOctaves='4' type='fractalNoise' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' fill='%23F5EDE0' filter='url(%23p)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

.panel-hours h2 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    letter-spacing: 0.03em;
    color: #2E261F;
    margin-bottom: 1rem;
}

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

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(0.7rem, 0.9vw, 0.85rem);
    letter-spacing: 0.05em;
    color: #2E261F;
}

.hours-list .time {
    color: #7A5C44;
}

/* === Panel: Spirits (3 cols, 2 rows) === */
.panel-spirits {
    grid-column: span 3;
    grid-row: span 2;
    background: #2E261F;
}

.panel-spirits h2 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    letter-spacing: 0.03em;
    color: #D4A24E;
    margin-bottom: 1.5rem;
}

.drink-item {
    padding: 0.75rem 0;
}

.drink-name {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: #F5EDE0;
    margin-bottom: 0.25rem;
}

.drink-desc {
    display: block;
    font-size: clamp(0.85rem, 1.1vw, 1rem);
    color: #C8B9A5;
    line-height: 1.6;
}

.panel-spirits hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(122, 92, 68, 0.3) 20%, rgba(122, 92, 68, 0.3) 80%, transparent);
}

/* === Panel: Atmosphere (3 cols, 2 rows) === */
.panel-atmosphere {
    grid-column: span 3;
    grid-row: span 2;
    background: #1E1914;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 300px;
}

.atmosphere-layers {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.warm-light {
    position: absolute;
    top: 20%;
    left: 30%;
    width: 60%;
    height: 60%;
    background: radial-gradient(ellipse at center, rgba(212, 162, 78, 0.08) 0%, transparent 70%);
}

.dust-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.dust-particle {
    position: absolute;
    border-radius: 50%;
    background: #D4A24E;
}

@keyframes dust-rise {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: var(--dust-opacity);
    }
    90% {
        opacity: var(--dust-opacity);
    }
    100% {
        transform: translateY(-100%) translateX(var(--dust-drift));
        opacity: 0;
    }
}

.atmosphere-text {
    position: relative;
    z-index: 1;
    color: #C8B9A5;
    font-style: italic;
    font-size: clamp(0.85rem, 1.1vw, 1rem);
    line-height: 1.8;
    max-width: 45ch;
}

/* === Back Room (Footer) === */
.back-room {
    background: #0F0D0B;
    padding: clamp(40px, 6vw, 80px) clamp(16px, 3vw, 48px);
    text-align: center;
    scroll-snap-align: start;
}

.back-room .location {
    font-family: 'Source Serif 4', serif;
    font-weight: 400;
    color: #C8B9A5;
    font-size: clamp(0.95rem, 1.3vw, 1.15rem);
    margin-bottom: 0.5rem;
}

.back-room .contact {
    font-family: 'Source Serif 4', serif;
    font-weight: 400;
    color: #A89580;
    font-size: clamp(0.85rem, 1.1vw, 1rem);
    margin-bottom: 2rem;
}

.back-room .colophon {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 400;
    font-size: clamp(0.7rem, 0.9vw, 0.85rem);
    letter-spacing: 0.05em;
    color: #A89580;
}

/* === Responsive: Stack on mobile === */
@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .panel-menu,
    .panel-candle,
    .panel-hours,
    .panel-spirits,
    .panel-atmosphere {
        grid-column: span 1;
        grid-row: span 1;
    }
}
