@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("../fonts/caveat-latin.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }

:root {
  --night: #120a07;
  --ember: #2a140c;
  --cream: #fbf4e6;
  --paper: #fffaf0;
  --ink: #2a1f18;
  --ink-soft: #6a5a4c;
  --gold: #d8b35a;
  --gold-hi: #f7e3a1;
  --cranberry: #b3263a;
  --pine: #1d5a43;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --hand: "Caveat", "Segoe Print", cursive;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --tilt: 34deg;
  --spin: 0deg;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden; color: var(--cream); font-family: var(--sans); line-height: 1.5;
  background: radial-gradient(120% 70% at 50% 35%, #3a1d10 0%, #1f0f09 45%, var(--night) 80%) fixed, var(--night);
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; line-height: 1.1; }
p { margin: 0; }
button { font: inherit; color: inherit; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 3px; }

/* ---------- room: drifting bokeh lights ---------- */
.room { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.bokeh { position: absolute; border-radius: 50%; opacity: 0; transform: translate(-50%, -50%); animation: fadein 2.5s ease forwards; }
@keyframes drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(var(--dx), var(--dy), 0); } }
@keyframes fadein { to { opacity: var(--o); } }

/* ---------- hero ---------- */
.hero { position: relative; z-index: 2; text-align: center; padding: 48px 16px 8px; }
.eyebrow { font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.foil {
  font-size: clamp(46px, 10vw, 104px); font-weight: 600; letter-spacing: -.015em; margin-top: 8px; line-height: 1.02;
  background: linear-gradient(100deg, #a87a22 0%, #f7e3a1 18%, #c9962f 36%, #fff6d6 50%, #c9962f 64%, #f2d78a 82%, #a87a22 100%);
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 18px rgba(255, 190, 90, .25));
}
@keyframes shimmer { from { background-position: 0% 0; } to { background-position: -220% 0; } }
.date { font-family: var(--serif); font-style: italic; font-size: clamp(18px, 3.2vw, 24px); color: var(--gold-hi); margin-top: 6px; }
.date .dot { color: var(--gold); margin: 0 4px; }
.countdown { margin-top: 10px; font-size: 14px; letter-spacing: .06em; color: #e9d7b8; font-variant-numeric: tabular-nums; min-height: 1.5em; }
.countdown b { color: var(--gold-hi); font-weight: 600; }

/* ---------- controls ---------- */
.controls { position: relative; z-index: 3; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 16px; padding: 18px 16px 0; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.chip { border: 1px solid rgba(216, 179, 90, .45); background: rgba(255, 250, 240, .04); color: #f1e3c6; padding: 7px 14px; border-radius: 999px; font-size: 14px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.chip:hover { background: rgba(216, 179, 90, .14); }
.chip.on { background: var(--gold); color: #2a1a06; border-color: var(--gold); font-weight: 600; }
.tour-btn { display: inline-flex; align-items: center; gap: 9px; border: 0; cursor: pointer; padding: 10px 18px 10px 14px; border-radius: 999px; font-weight: 600; font-size: 15px;
  color: #2a1406; background: linear-gradient(180deg, #fbe7ad, #d8b35a); box-shadow: 0 6px 18px rgba(216, 179, 90, .35), inset 0 1px 0 rgba(255, 255, 255, .6); }
.tour-btn:hover { filter: brightness(1.06); }
.tour-icon { width: 0; height: 0; border-left: 9px solid #2a1406; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.touring .tour-icon { width: 10px; height: 11px; border: 0; border-left: 3px solid #2a1406; border-right: 3px solid #2a1406; }

/* ---------- stage: the 3D table ---------- */
main { position: relative; z-index: 1; }
.hint { text-align: center; font-size: 13.5px; color: #d9c39a; margin: 12px 16px 0; opacity: .85; }
.stage { position: relative; max-width: 1060px; margin: 0 auto; padding: 0 16px; perspective: 2600px; perspective-origin: 50% 40%; }
.swoop { margin: -5% 0 -6%; }
.swoop { transform-style: preserve-3d; }
.plane { position: relative; width: 100%; transform-style: preserve-3d; transform-origin: 50% 50%;
  transform: rotateX(var(--tilt)) rotateZ(var(--spin)); }
.plane > .cloth { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }

.glows { position: absolute; inset: 0; transform: translateZ(.5px); pointer-events: none; }
.pool { position: absolute; width: 34%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); opacity: 0;
  background: radial-gradient(circle, rgba(255, 196, 110, .38) 0%, rgba(255, 170, 80, .14) 35%, rgba(255, 150, 60, 0) 68%); transition: opacity 1.2s ease; }
.lit .pool, .pool.lit { opacity: 1; animation: pool 3.1s ease-in-out infinite alternate; }
@keyframes pool { 0% { opacity: .85; } 40% { opacity: 1; } 70% { opacity: .78; } 100% { opacity: .95; } }

.fairy { position: absolute; width: .75%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); background: #fff1c0;
  box-shadow: 0 0 6px 2px rgba(255, 214, 120, .85), 0 0 14px 4px rgba(255, 190, 90, .35); opacity: .3; transition: opacity 1s; }
.lit .fairy { opacity: 1; animation: twinkle 2.6s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

.shade { position: absolute; transform: translateZ(1px); pointer-events: none; background: rgba(10, 5, 2, .58); opacity: 0; transition: opacity .35s ease; }
.spotlight { position: absolute; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%) translateZ(1.5px); pointer-events: none; opacity: 0;
  background: radial-gradient(closest-side, rgba(255, 226, 160, .55), rgba(255, 210, 130, .22) 55%, rgba(255, 200, 120, 0)); transition: opacity .35s ease, left .3s ease, top .3s ease; }
.spot .spotlight { opacity: 1; }
.spot .shade { opacity: 1; }
.night .shade { opacity: 1; background: rgba(6, 3, 1, .92); transition: opacity 1.6s ease; }
.filtering .shade { opacity: .55; background: rgba(10, 5, 2, .6); }

/* candles */
.candle { position: absolute; width: 2.8%; aspect-ratio: 1; transform: translate(-50%, -50%) translateZ(3px); transform-style: preserve-3d; pointer-events: none; }
.candle .holder { position: absolute; inset: -30%; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff4c8 0%, #e6bd5c 30%, #a77a24 70%, #6e4f14 100%); box-shadow: 0 6px 10px rgba(0, 0, 0, .35); }
.upright { position: absolute; left: 50%; bottom: 50%; transform-origin: 50% 100%; transform-style: preserve-3d;
  transform: translateX(-50%) rotateZ(calc(-1 * var(--spin))) rotateX(calc(-1 * var(--tilt))); }
.candle .upright { width: 62%; height: 330%; }
.stick { position: absolute; left: 0; right: 0; bottom: 0; height: 74%; border-radius: 4px 4px 2px 2px;
  background: linear-gradient(90deg, #e8dcc2 0%, #fffaf0 35%, #f4ead4 60%, #cbbd9f 100%); box-shadow: inset 0 3px 3px rgba(255, 255, 255, .6); }
.stick::before { content: ""; position: absolute; left: 30%; top: -1px; width: 22%; height: 30%; border-radius: 0 0 4px 4px; background: #fffaf0; }
.flame { position: absolute; left: 50%; bottom: 74%; width: 50%; height: 26%; margin-left: -25%; border-radius: 50% 50% 45% 45% / 65% 65% 35% 35%;
  background: radial-gradient(ellipse at 50% 75%, #fff 0%, #fff2b0 25%, #ffc24a 55%, rgba(255, 120, 20, 0) 75%);
  transform-origin: 50% 100%; opacity: 0; transform: scale(.2); transition: opacity .4s, transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.halo { position: absolute; left: 50%; bottom: 70%; width: 420%; aspect-ratio: 1; transform: translate(-50%, 50%); border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, rgba(255, 214, 130, .55) 0%, rgba(255, 190, 90, .18) 35%, rgba(255, 170, 60, 0) 70%); transition: opacity .8s; }
.candle.lit .flame { opacity: 1; transform: scale(1); animation: flicker 1.3s ease-in-out infinite alternate; }
.candle.lit .halo { opacity: 1; animation: halo 2.2s ease-in-out infinite alternate; }
@keyframes flicker { 0% { transform: scale(1, 1) rotate(-2deg); } 35% { transform: scale(.94, 1.08) rotate(2deg); } 70% { transform: scale(1.05, .95) rotate(-1deg); } 100% { transform: scale(.98, 1.04) rotate(1deg); } }
@keyframes halo { from { opacity: .75; } to { opacity: 1; } }

/* dishes */
.dish { position: absolute; padding: 0; margin: 0; border: 0; background: none; cursor: pointer; aspect-ratio: 1;
  transform: translate(-50%, -50%) translateZ(2px); transform-style: preserve-3d; -webkit-tap-highlight-color: transparent; }
.dish:focus-visible { outline: none; }
.d-shadow { position: absolute; inset: 4% 2% -2% 6%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(20, 8, 2, .45), rgba(20, 8, 2, 0)); transition: transform .4s ease, opacity .4s ease; }
.d-drop { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.25, 1.5, .45, 1), opacity .35s ease; }
.d-lift { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .45s cubic-bezier(.3, 1.5, .5, 1); }
.d-art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; transition: filter .35s ease; }
.d-ring { position: absolute; inset: -7%; border-radius: 50%; border: 2px solid rgba(247, 227, 161, 0); transition: border-color .3s, box-shadow .3s; }
.intro .dish:not(.served) .d-drop { transform: translateZ(220px); opacity: 0; }
.intro .dish:not(.served) .d-shadow { opacity: 0; }

.dish:hover .d-lift, .dish:focus-visible .d-lift, .dish.on .d-lift { transform: translateZ(54px) scale(1.08); }
.dish:hover .d-shadow, .dish:focus-visible .d-shadow, .dish.on .d-shadow { transform: scale(1.18); opacity: .55; }
.dish.on .d-ring, .dish:focus-visible .d-ring { border-color: rgba(247, 227, 161, .9); box-shadow: 0 0 24px rgba(255, 214, 130, .55), inset 0 0 18px rgba(255, 214, 130, .35); }
.spot .dish:not(.on) .d-art, .filtering .dish:not(.match) .d-art { filter: brightness(.45) saturate(.7); }
.filtering .dish.match .d-lift { transform: translateZ(26px) scale(1.04); }
.filtering .dish.match .d-ring { border-color: rgba(247, 227, 161, .7); }

.steam { width: 46%; height: 70%; bottom: 55%; pointer-events: none; }
.steam i { position: absolute; bottom: 0; width: 22%; height: 100%; border-radius: 50%; opacity: 0;
  background: radial-gradient(ellipse at 50% 60%, rgba(255, 255, 255, .42), rgba(255, 255, 255, .12) 40%, rgba(255, 255, 255, 0) 68%);
  animation: steam 3.4s ease-in infinite; }
.steam i:nth-child(1) { left: 10%; }
.steam i:nth-child(2) { left: 40%; animation-delay: 1.1s; }
.steam i:nth-child(3) { left: 68%; animation-delay: 2.2s; }
@keyframes steam { 0% { opacity: 0; transform: translateY(20%) scaleX(.6); } 30% { opacity: .9; } 100% { opacity: 0; transform: translateY(-60%) scaleX(1.4) rotate(8deg); } }
.intro .steam { display: none; }

/* ---------- course banner ---------- */
.course-banner { text-align: center; font-family: var(--serif); font-size: 22px; color: var(--gold-hi); min-height: 34px; margin-top: 4px;
  opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s; }
.course-banner.show { opacity: 1; transform: none; }
.course-banner small { font-family: var(--sans); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-left: 10px; }

/* ---------- the dish card ---------- */
.mcard { position: fixed; z-index: 40; width: min(360px, calc(100vw - 32px)); padding: 26px 24px 20px; color: var(--ink); border-radius: 6px;
  background: radial-gradient(120% 80% at 30% 0%, #fffdf6 0%, var(--paper) 50%, #f6ebd4 100%);
  box-shadow: inset 0 0 0 6px var(--paper), inset 0 0 0 7px var(--gold), inset 0 0 0 9px var(--paper), inset 0 0 0 10px rgba(216, 179, 90, .5),
    0 30px 60px -18px rgba(0, 0, 0, .7), 0 6px 16px rgba(0, 0, 0, .35);
  opacity: 0; transform: translateY(10px) scale(.97); transition: opacity .2s ease, transform .25s cubic-bezier(.3, 1.4, .5, 1); pointer-events: none; }
.mcard.show { opacity: 1; transform: none; pointer-events: auto; }
.mcard.hover-only { pointer-events: none; }
.mc-icon { position: absolute; top: -34px; right: 14px; width: 92px; height: 92px; transform: rotate(8deg); filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .35)); }
.mc-course { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--cranberry); font-weight: 700; padding-right: 86px; }
.mc-name { font-size: 28px; margin-top: 6px; color: #2a160c; padding-right: 70px; }
.mc-line { font-family: var(--serif); font-style: italic; color: var(--ink-soft); font-size: 15.5px; margin-top: 4px; }
.mc-rule { display: block; width: 120px; height: 18px; margin: 10px 0 8px; color: var(--gold); }
.mc-desc { font-size: 15px; line-height: 1.55; }
.mc-note { font-family: var(--hand); font-size: 25px; line-height: 1; color: var(--cranberry); margin-top: 10px; transform: rotate(-2.5deg); transform-origin: left; }
.mc-note::before { content: "\2014 "; }
.mc-close { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-soft); font-size: 22px; line-height: 1; cursor: pointer; display: none; }
.mc-tour { display: none; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #eadcc0; font-size: 13px; color: var(--ink-soft); }
.touring .mc-tour { display: flex; }
.mc-tour button { border: 1px solid #dcc89a; background: #fff7e6; border-radius: 999px; padding: 5px 12px; cursor: pointer; color: #5a4220; font-size: 13px; }
.mc-progress { position: absolute; left: 10px; right: 10px; bottom: 10px; height: 2px; background: rgba(216, 179, 90, .25); display: none; }
.touring .mc-progress { display: block; }
.mc-progress i { display: block; height: 100%; width: 0; background: var(--gold); }
.mc-progress i.run { width: 100%; transition: width linear; }

@media (hover: none), (max-width: 700px) {
  .mcard { left: 12px !important; right: 12px; top: auto !important; bottom: calc(12px + env(safe-area-inset-bottom)); width: auto; max-width: 520px; margin: 0 auto;
    transform: translateY(30px); padding-top: 22px; }
  .mcard.show { transform: none; }
  .mc-icon { width: 76px; height: 76px; top: -30px; right: 48px; }
  .mc-close { display: block; }
  .mc-course { padding-right: 120px; }
  .mc-name { padding-right: 0; }
}

/* ---------- printed menu card ---------- */
.menu-card { position: relative; max-width: 620px; margin: 40px auto 0; padding: 44px 32px 34px; text-align: center; color: var(--ink);
  background: radial-gradient(120% 80% at 30% 0%, #fffdf6 0%, var(--paper) 50%, #f3e6cb 100%);
  box-shadow: inset 0 0 0 10px var(--paper), inset 0 0 0 11px var(--gold), inset 0 0 0 14px var(--paper), inset 0 0 0 15px rgba(216, 179, 90, .5), 0 30px 70px -20px rgba(0, 0, 0, .8);
  border-radius: 4px; }
.sprig { width: 120px; height: 30px; display: block; margin: 0 auto 6px; }
.menu-card h2 { font-size: 42px; letter-spacing: .02em; color: #2a160c; }
.menu-sub { font-family: var(--hand); font-size: 24px; color: var(--cranberry); margin-top: 2px; }
.mc-course-block { margin-top: 26px; }
.mc-course-block h3 { font-family: var(--sans); font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--cranberry); font-weight: 700; }
.mc-course-block h3 span { color: var(--ink-soft); font-weight: 500; letter-spacing: .12em; }
.mc-course-block ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 12px; }
.mc-course-block li b { display: block; font-family: var(--serif); font-size: 21px; font-weight: 600; color: #2a160c; }
.mc-course-block li span { font-family: var(--serif); font-style: italic; color: var(--ink-soft); font-size: 15px; }
.menu-card .divider { width: 60px; height: 1px; margin: 24px auto 0; background: var(--gold); }
.menu-foot { margin-top: 26px; }
.timeline { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0; margin: 0; }
.timeline li { display: flex; gap: 6px; align-items: baseline; padding: 5px 12px; border-radius: 999px; border: 1px solid #e3cf9c; font-size: 14px; background: #fff7e3; }
.timeline b { color: var(--cranberry); font-variant-numeric: tabular-nums; }
.cal { display: inline-block; margin-top: 18px; padding: 10px 20px; border-radius: 999px; background: var(--cranberry); color: #fff; text-decoration: none; font-weight: 600; font-size: 15px;
  box-shadow: 0 6px 14px rgba(140, 26, 43, .35); }
.cal:hover { background: #9e1f31; }

.site-foot { position: relative; z-index: 1; text-align: center; font-size: 13px; padding: 34px 16px 90px; color: #cdb68e; }

/* ---------- music + skip ---------- */
.music { position: fixed; z-index: 30; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(216, 179, 90, .5); background: rgba(18, 10, 7, .88); color: #f1e3c6; cursor: pointer;
  font-size: 14px; }
.music svg { width: 18px; height: 18px; }
.music[aria-pressed="true"] { background: var(--gold); color: #2a1406; border-color: var(--gold); }
.music[aria-pressed="true"] svg { animation: bob 1s ease-in-out infinite alternate; }
@keyframes bob { from { transform: translateY(1px) rotate(-6deg); } to { transform: translateY(-2px) rotate(6deg); } }
.skip { position: fixed; z-index: 60; right: 16px; top: 16px; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(0, 0, 0, .35);
  color: #eee; font-size: 13px; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .4s; }
.intro .skip { opacity: 1; pointer-events: auto; }

/* ---------- intro choreography ---------- */
.hero, .controls, .hint, .menu-card, .site-foot, .music { transition: opacity 1s ease, transform 1s ease; }
.intro .hero { opacity: 0; transform: translateY(-10px); }
.intro .controls, .intro .hint, .intro .menu-card, .intro .site-foot, .intro .music { opacity: 0; }
.intro.title-in .hero { opacity: 1; transform: none; }
.intro .swoop { animation: swoop 2.6s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes swoop { from { transform: translateY(6%) rotateX(24deg) scale(.9); } to { transform: none; } }
.title-in .foil { animation: rise 1.2s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }

@media (max-width: 700px) {
  :root { --tilt: 22deg; }
  .hero { padding-top: 40px; }
  .stage { margin-top: 0; padding: 0 10px; perspective: 1800px; }
  .menu-card { margin: 32px 12px 0; padding: 40px 22px 30px; }
  .menu-card h2 { font-size: 36px; }
  .controls { padding-top: 14px; }
  .chip { padding: 6px 11px; font-size: 13px; }
}

.still *, .still *::before, .still *::after { transition: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
