/* =====================================================================
   xity.bar  --  Dark-Academia Speakeasy
   Palette:
     #1a1410  Deep Tobacco        (primary background, dark wood bar)
     #c9a84c  Honeyed Amber       (primary accent, brass/gold)
     #d4c5a9  Aged Parchment      (secondary background panels)
     #f0e6d3  Warm Ivory          (body text on dark)
     #8b5e5e  Dried Rose          (secondary accent, hover)
     #3d4a3a  Forest Shadow       (botanical leaves, subtle details)
     #7a6a52  Sepia Wash          (captions, metadata)
     #b8860b  Brass Border        (frame edges in cabinet)
   Type:
     Cinzel Decorative   (display)
     Cormorant Garamond  (body)
     Josefin Sans        (accent / labels)
   ===================================================================== */

:root {
    --c-tobacco: #1a1410;
    --c-amber: #c9a84c;
    --c-parchment: #d4c5a9;
    --c-ivory: #f0e6d3;
    --c-rose: #8b5e5e;
    --c-forest: #3d4a3a;
    --c-sepia: #7a6a52;
    --c-brass: #b8860b;

    --font-display: "Cinzel Decorative", "Lora", serif;
    --font-body: "Cormorant Garamond", "Lora", Georgia, serif;
    --font-accent: "Josefin Sans", "Inter", sans-serif;

    --tilt-left: -2deg;
    --tilt-right: 2deg;
    --tilt-shallow: -1deg;

    --rule-color: rgba(201, 168, 76, 0.55);
}

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

html {
    scroll-behavior: smooth;
    background: var(--c-tobacco);
}

body {
    background: var(--c-tobacco);
    color: var(--c-ivory);
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.75;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

img, svg {
    display: block;
    max-width: 100%;
}

/* ============================================
   GRAIN OVERLAY  --  Aged paper noise on top
   ============================================ */
.grain-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.06;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.85  0 0 0 0 0.78  0 0 0 0 0.62  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    background-repeat: repeat;
    background-size: 200px 200px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.kicker,
.section-eyebrow,
.hero-meta,
.footer-meta,
.menu-price,
.day,
.time {
    font-family: var(--font-accent);
    font-weight: 300;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: var(--c-amber);
}

.hero-title,
.section-title {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--c-amber);
    letter-spacing: 0.14em;
    line-height: 1.1;
}

.lede,
.body-text,
.menu-desc,
.address-line,
.last-call-text,
.footer-fine {
    font-family: var(--font-body);
    color: var(--c-ivory);
}

em { font-style: italic; color: var(--c-parchment); }

a.link {
    color: var(--c-amber);
    text-decoration: none;
    border-bottom: 1px dotted rgba(201, 168, 76, 0.5);
    transition: color 0.4s ease, border-color 0.4s ease;
    padding-bottom: 1px;
}

a.link:hover {
    color: var(--c-rose);
    border-bottom-color: var(--c-rose);
}

/* ============================================
   HERO  --  THE ENTRANCE
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% 20%, rgba(201, 168, 76, 0.05) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 100%, rgba(0, 0, 0, 0.55) 0%, transparent 60%),
        var(--c-tobacco);
}

.hero-flare {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(120vmin, 1100px);
    height: min(120vmin, 1100px);
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: flare-drift 9s ease-in-out infinite;
}

.flare-core,
.flare-bloom,
.flare-halo {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    mix-blend-mode: screen;
}

.flare-core {
    background: radial-gradient(circle at 50% 50%,
        rgba(255, 220, 140, 0.45) 0%,
        rgba(201, 168, 76, 0.30) 18%,
        rgba(201, 168, 76, 0.12) 32%,
        transparent 55%);
    animation: flare-pulse 4s ease-in-out infinite;
}

.flare-bloom {
    background: radial-gradient(circle at 50% 50%,
        rgba(184, 134, 11, 0.18) 0%,
        rgba(184, 134, 11, 0.08) 28%,
        transparent 55%);
    transform: scale(1.4);
}

.flare-halo {
    background: radial-gradient(circle at 50% 50%,
        rgba(139, 94, 94, 0.10) 0%,
        rgba(139, 94, 94, 0.04) 35%,
        transparent 65%);
    transform: scale(1.85);
}

@keyframes flare-drift {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50%      { transform: translate(calc(-50% + 6px), calc(-50% - 4px)) scale(1.05); }
}

@keyframes flare-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.78; }
}

.hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 4rem 1.5rem;
    max-width: 880px;
}

.kicker {
    margin-bottom: 2.4rem;
    color: var(--c-sepia);
}

.hero-title {
    font-size: clamp(3rem, 9vw, 7.5rem);
    color: var(--c-amber);
    text-shadow:
        0 0 28px rgba(201, 168, 76, 0.35),
        0 0 8px rgba(255, 220, 140, 0.25);
    letter-spacing: 0.18em;
    margin-bottom: 0;
    animation: pulse-soft 6s ease-in-out infinite;
}

@keyframes pulse-soft {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.015); opacity: 0.92; }
}

.ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2.5rem auto;
    max-width: 380px;
}

.ornament .rule {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--c-amber), transparent);
}

.ornament-leaf {
    width: 80px;
    height: 32px;
    fill: none;
    stroke: var(--c-amber);
    stroke-width: 1.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.hero-tagline {
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
    color: var(--c-parchment);
    max-width: 600px;
    margin: 0 auto 3rem;
    font-style: italic;
    line-height: 1.7;
}

.hero-meta {
    color: var(--c-sepia);
    font-size: 0.7rem;
    letter-spacing: 0.32em;
    animation: pulse-soft 3s ease-in-out infinite;
}

/* ============================================
   DIAGONAL SECTION SYSTEM
   ============================================ */
.diagonal-section {
    position: relative;
    overflow: hidden;
    margin: -2rem 0;
    padding: 8rem 0;
    background:
        linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.25) 50%, transparent 100%),
        var(--c-tobacco);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.section-tilt-left { transform: rotate(var(--tilt-left)); }
.section-tilt-right { transform: rotate(var(--tilt-right)); }
.section-shallow { transform: rotate(var(--tilt-shallow)); }

.diagonal-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-tilt-left .diagonal-inner { transform: rotate(calc(-1 * var(--tilt-left))); }
.section-tilt-right .diagonal-inner { transform: rotate(calc(-1 * var(--tilt-right))); }
.section-shallow .diagonal-inner { transform: rotate(calc(-1 * var(--tilt-shallow))); }

.panel {
    position: relative;
    background:
        linear-gradient(160deg, rgba(212, 197, 169, 0.04) 0%, rgba(26, 20, 16, 0.0) 70%),
        rgba(26, 20, 16, 0.55);
    border: 1px solid rgba(201, 168, 76, 0.18);
    padding: 4rem clamp(1.5rem, 4vw, 4rem);
    border-radius: 2px;
    backdrop-filter: blur(0.5px);
}

.panel-wide { padding: 4rem clamp(1.5rem, 5vw, 5rem); }

.section-eyebrow {
    display: inline-block;
    margin-bottom: 1.4rem;
    color: var(--c-sepia);
}

.section-title {
    font-size: clamp(2rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
}

.section-title.small-title {
    font-size: clamp(1.6rem, 3.2vw, 2.6rem);
}

.rule-thin {
    width: 80px;
    height: 1px;
    background: linear-gradient(to right, var(--c-amber), transparent);
    margin: 0 0 2rem;
}

.rule-thin.small-rule {
    margin: 1.5rem 0;
}

.lede {
    font-size: clamp(1.15rem, 1.7vw, 1.4rem);
    line-height: 1.7;
    margin-bottom: 1.6rem;
    color: var(--c-parchment);
    font-style: italic;
    max-width: 70ch;
}

.lede.center-text { margin-left: auto; margin-right: auto; text-align: center; }

.body-text {
    font-size: 1.08rem;
    line-height: 1.8;
    margin-bottom: 1.2rem;
    max-width: 65ch;
    color: var(--c-ivory);
}

/* corner flourishes */
.corner-flourish {
    position: absolute;
    width: 60px;
    height: 60px;
    fill: none;
    stroke: var(--c-amber);
    stroke-width: 1.2;
    stroke-linecap: round;
    opacity: 0.7;
    pointer-events: none;
}

.corner-tl { top: 14px; left: 14px; }
.corner-br { bottom: 14px; right: 14px; }

/* ambient flares between sections */
.ambient-flare {
    position: absolute;
    pointer-events: none;
    width: 60vmin;
    height: 60vmin;
    border-radius: 50%;
    mix-blend-mode: screen;
    opacity: 0.8;
}

.ambient-flare.flare-amber {
    top: -10%;
    right: -10%;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.18) 0%, transparent 60%);
    animation: flare-drift-2 11s ease-in-out infinite;
}

.ambient-flare.flare-rose {
    bottom: -15%;
    left: -10%;
    background: radial-gradient(circle, rgba(139, 94, 94, 0.16) 0%, transparent 60%);
    animation: flare-drift-2 13s ease-in-out infinite reverse;
}

.ambient-flare.flare-forest {
    top: 40%;
    left: -15%;
    background: radial-gradient(circle, rgba(61, 74, 58, 0.22) 0%, transparent 60%);
    animation: flare-drift-2 15s ease-in-out infinite;
}

.ambient-flare.soft { opacity: 0.5; }

@keyframes flare-drift-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(8px, -10px) scale(1.08); }
}

/* ============================================
   MENU LIST  (No.II)
   ============================================ */
.menu-list {
    display: flex;
    flex-direction: column;
    gap: 2.4rem;
    margin-top: 1rem;
}

.menu-entry {
    position: relative;
    padding-left: 0.25rem;
}

.menu-head {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.menu-name {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--c-parchment);
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    letter-spacing: 0.06em;
}

.menu-dots {
    flex: 1;
    border-bottom: 1px dotted rgba(201, 168, 76, 0.35);
    transform: translateY(-4px);
    min-width: 30px;
}

.menu-price {
    color: var(--c-amber);
    font-size: 0.95rem;
    letter-spacing: 0.2em;
    flex-shrink: 0;
}

.menu-desc {
    color: var(--c-ivory);
    font-size: 1.04rem;
    line-height: 1.7;
    max-width: 60ch;
}

/* ============================================
   BOTANICAL CABINET  (No.III)
   ============================================ */
.botanical-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.botanical-frame {
    position: relative;
    border: 1px solid var(--c-brass);
    background:
        radial-gradient(circle at 50% 35%, rgba(201, 168, 76, 0.08) 0%, transparent 70%),
        rgba(26, 20, 16, 0.6);
    padding: 1.4rem 1rem 1rem;
    text-align: center;
    transition: transform 0.6s ease, border-color 0.6s ease;
}

.botanical-frame::before,
.botanical-frame::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    border: 1px solid var(--c-brass);
}

.botanical-frame::before {
    top: -1px;
    left: -1px;
    border-right: none;
    border-bottom: none;
}

.botanical-frame::after {
    bottom: -1px;
    right: -1px;
    border-left: none;
    border-top: none;
}

.botanical-frame:hover {
    transform: translateY(-3px) rotate(-0.4deg);
    border-color: var(--c-amber);
}

.botanical {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    fill: none;
    stroke: var(--c-amber);
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    margin: 0 auto 0.6rem;
    max-width: 130px;
}

.botanical-frame[data-bot="rose-hip"] .botanical { stroke: var(--c-rose); }
.botanical-frame[data-bot="ivy"] .botanical,
.botanical-frame[data-bot="thyme"] .botanical { stroke: var(--c-forest); }
.botanical-frame[data-bot="oak"] .botanical { stroke: var(--c-amber); }
.botanical-frame[data-bot="lavender"] .botanical { stroke: #8a7ba8; }
.botanical-frame[data-bot="bergamot"] .botanical { stroke: var(--c-brass); }

.bot-path {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    transition: stroke-dashoffset 1.4s ease;
}

.botanical-frame.in-view .bot-path {
    stroke-dashoffset: 0;
}

.botanical-frame figcaption {
    font-family: var(--font-accent);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-sepia);
    margin-top: 0.4rem;
}

.botanical-frame figcaption em {
    text-transform: none;
    letter-spacing: 0.04em;
    color: var(--c-parchment);
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-style: italic;
}

/* ============================================
   HOURS / LOCATION  (No.IV / V)
   ============================================ */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.col {
    position: relative;
}

.col-divider {
    border-left: 1px solid rgba(201, 168, 76, 0.18);
    padding-left: 3rem;
}

.hours-list {
    list-style: none;
    margin-top: 0.8rem;
}

.hours-list li {
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
    padding: 0.45rem 0;
    border-bottom: 1px dashed rgba(201, 168, 76, 0.10);
}

.hours-list li:last-child { border-bottom: none; }

.hours-list .day {
    color: var(--c-parchment);
    font-size: 0.78rem;
    flex-shrink: 0;
    min-width: 84px;
}

.hours-list .dots {
    flex: 1;
    border-bottom: 1px dotted rgba(201, 168, 76, 0.25);
    transform: translateY(-3px);
}

.hours-list .time {
    color: var(--c-amber);
    font-size: 0.78rem;
    flex-shrink: 0;
}

.hours-list li.closed .time {
    color: var(--c-sepia);
    text-transform: none;
    letter-spacing: 0.04em;
}

.address-line {
    font-size: 1.08rem;
    line-height: 1.85;
    color: var(--c-ivory);
}

.address-line.muted {
    color: var(--c-sepia);
    font-size: 0.95rem;
}

/* ============================================
   LAST CALL FOOTER
   ============================================ */
.last-call {
    position: relative;
    padding: 8rem 1.5rem 5rem;
    text-align: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% 100%, rgba(0,0,0,0.7) 0%, transparent 70%),
        var(--c-tobacco);
}

.footer-flare {
    position: absolute;
    top: 30%;
    left: 50%;
    width: 70vmin;
    height: 70vmin;
    border-radius: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    background: radial-gradient(circle,
        rgba(201, 168, 76, 0.16) 0%,
        rgba(201, 168, 76, 0.05) 30%,
        transparent 60%);
    mix-blend-mode: screen;
    animation: flare-gutter 6s ease-in-out infinite;
}

@keyframes flare-gutter {
    0%, 100% { opacity: 0.85; transform: translateX(-50%) scale(1); }
    20%      { opacity: 0.55; transform: translateX(-49%) scale(0.97); }
    50%      { opacity: 0.95; transform: translateX(-50%) scale(1.03); }
    70%      { opacity: 0.4;  transform: translateX(-51%) scale(0.95); }
}

.footer-inner {
    position: relative;
    max-width: 540px;
    margin: 0 auto;
}

.footer-ornament {
    width: 120px;
    height: 24px;
    margin: 0 auto 2rem;
    fill: none;
    stroke: var(--c-amber);
    stroke-width: 1;
    stroke-linecap: round;
    opacity: 0.75;
}

.last-call-text {
    font-family: var(--font-body);
    font-style: italic;
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    line-height: 1.7;
    color: var(--c-parchment);
    margin-bottom: 2.2rem;
}

.footer-meta {
    color: var(--c-sepia);
    margin-bottom: 0.8rem;
    font-size: 0.7rem;
}

.footer-fine {
    color: var(--c-sepia);
    font-size: 0.9rem;
    font-style: italic;
}

/* ============================================
   PULSE-ATTENTION (links, hero flare)
   ============================================ */
[data-pulse="true"] {
    animation: pulse-link 3s ease-in-out infinite;
    display: inline-block;
}

@keyframes pulse-link {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.02); opacity: 0.85; }
}

/* ============================================
   ENTER-ON-SCROLL (used by JS)
   ============================================ */
.fade-in-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 1s ease, transform 1s ease;
}

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 760px) {
    .two-column {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .col-divider {
        border-left: none;
        border-top: 1px solid rgba(201, 168, 76, 0.18);
        padding-left: 0;
        padding-top: 2.5rem;
    }
    .panel { padding: 3rem 1.5rem; }
    .diagonal-section { padding: 5rem 0; }
    .menu-head { flex-wrap: wrap; }
    .menu-dots { min-width: 0; }
    .hero-inner { padding: 3rem 1.2rem; }
}

@media (max-width: 480px) {
    .botanical-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .corner-flourish { width: 40px; height: 40px; }
}
