/* The tasting menu that scrolls through a glass card. Colours in :root (the Playground palette): amber is the candle
   light, wine is the deep red of the late courses; the script mixes them with --tone, everything else is neutral.
   GSAP moves .frame, the CSS styles .card inside it; GSAP moves .lens, the CSS styles .lens__face. */
:root {
  --page: #0c0a09;          /* the page */
  --page-lift: #17120f;     /* the soft lift of the page behind the card */
  --ink: #f4eee6;           /* the words */
  --muted: #9a8f84;         /* the small words */
  --amber: #f0b465;         /* the candle light */
  --wine: #c2465d;          /* the wine light of the late courses */
  --button: #f3eadc;        /* the button */
  --button-ink: #15100c;    /* the words on the button */
  --tone: 0;                /* 0 amber, 1 wine (moved by the script) */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--page); }
html, body { overflow-x: clip; }
body {
  background: var(--page);
  color: var(--ink);
  font-family: 'Mona Sans Variable', 'Mona Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.muted { color: var(--muted); }

.menu { position: relative; height: 460vh; }
.stage {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 7vw, 110px);
  padding: clamp(10px, 3vh, 40px) clamp(12px, 5vw, 64px);
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(110% 90% at 64% 50%, var(--page-lift), var(--page) 64%);
}
@supports (height: 100lvh) {
  .stage { height: 100lvh; }
}

/* two candle lights behind the glass: amber fades out as the menu turns to wine */
.light {
  position: absolute;
  z-index: -1;
  left: 0;
  top: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(36px);
}
.light--a {
  background: radial-gradient(closest-side, color-mix(in srgb, var(--amber) 80%, transparent), color-mix(in srgb, var(--amber) 22%, transparent) 60%, transparent);
  opacity: calc(0.85 - 0.6 * var(--tone));
}
.light--b {
  background: radial-gradient(closest-side, color-mix(in srgb, var(--wine) 85%, transparent), color-mix(in srgb, var(--wine) 25%, transparent) 60%, transparent);
  opacity: calc(0.25 + 0.65 * var(--tone));
}
.grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

/* the words at the side */
.words { width: clamp(220px, 32vw, 420px); flex: none; }
.words__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(11px, 1.5vh, 13px);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: clamp(8px, 1.6vh, 14px);
}
.words__brand span { color: var(--muted); font-weight: 500; }
.words__logo { width: 15px; height: 15px; fill: none; stroke: var(--amber); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.words__title {
  font-family: 'Fraunces Variable', Georgia, serif;
  font-size: clamp(26px, min(4vw, 6.4vh), 54px);
  font-weight: 380;
  font-variation-settings: 'opsz' 96;
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.words__line { margin-top: clamp(10px, 2vh, 18px); font-size: clamp(13px, 1.9vh, 16px); line-height: 1.5; color: var(--muted); max-width: 30em; }

/* ---------------------------------------------------------------- the glass card */
.frame { flex: none; width: min(100%, 380px); }
.card {
  position: relative;
  border-radius: clamp(20px, 5vh, 28px);
  padding: clamp(12px, 3.2vh, 22px) clamp(12px, 3.6vw, 20px);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 250, 244, 0.085), rgba(255, 250, 244, 0.03) 46%, rgba(255, 250, 244, 0.045));
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  backdrop-filter: blur(26px) saturate(150%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    inset 0 -18px 30px -24px rgba(0, 0, 0, 0.5),
    0 1px 2px rgba(0, 0, 0, 0.3),
    0 12px 24px -10px rgba(0, 0, 0, 0.45),
    0 40px 80px -30px rgba(0, 0, 0, 0.75);
}
/* a slow sheen crossing the glass with the scroll (--sheen moved by the script) */
.card__sheen {
  --sheen: -30%;
  position: absolute;
  inset: -20%;
  pointer-events: none;
  background: linear-gradient(105deg, transparent calc(40% + var(--sheen)), rgba(255, 255, 255, 0.06) calc(48% + var(--sheen)), rgba(255, 255, 255, 0.015) calc(52% + var(--sheen)), transparent calc(60% + var(--sheen)));
}
/* the light under the pointer */
.card__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.5s ease;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, -30%), color-mix(in srgb, var(--amber) 14%, transparent), transparent 70%);
}
@media (hover: hover) {
  .card:hover .card__glow { opacity: 1; }
}

.head { position: relative; display: flex; align-items: center; gap: 10px; }
.head__mark {
  flex: none;
  display: grid;
  place-items: center;
  width: clamp(26px, 7vh, 32px);
  height: clamp(26px, 7vh, 32px);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.head__mark svg { width: 15px; height: 15px; fill: none; stroke: var(--amber); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.head__text { flex: 1; min-width: 0; }
.head__title { font-family: 'Fraunces Variable', Georgia, serif; font-size: clamp(14px, 3.6vh, 16px); font-weight: 520; font-variation-settings: 'opsz' 24; letter-spacing: 0.01em; }
.head__text .muted { font-size: clamp(10.5px, 2.8vh, 12px); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip {
  flex: none;
  font-size: clamp(10px, 2.7vh, 11.5px);
  font-weight: 500;
  color: var(--muted);
  padding: 4px 9px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* the serving time: four digit strips that roll */
.clock {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-top: clamp(8px, 2.6vh, 18px);
}
.clock__time {
  display: flex;
  font-size: clamp(30px, min(10vw, 9.6vh), 46px);
  font-weight: 560;
  font-variation-settings: 'wdth' 92;
  letter-spacing: -0.03em;
  line-height: 1;
}
.dg { display: block; height: 1em; overflow: hidden; width: 0.6em; }
.dg__strip { display: flex; flex-direction: column; will-change: transform; }
.dg__strip b { display: block; height: 1em; font-weight: inherit; text-align: center; }
.clock__colon { width: 0.3em; text-align: center; color: var(--muted); transform: translateY(-0.04em); }
.clock__side { min-width: 0; padding-bottom: 2px; }
.clock__label { font-size: clamp(10px, 2.6vh, 11.5px); }
.clock__course {
  font-size: clamp(12px, 3.2vh, 14px);
  font-weight: 560;
  white-space: nowrap;
  color: color-mix(in srgb, var(--amber) calc(100% - 100% * var(--tone)), var(--wine));
  filter: brightness(1.25);
}

/* ---------------------------------------------------------------- the window with the courses */
.window {
  --row: clamp(42px, 11.6vh, 58px);
  position: relative;
  height: calc(var(--row) * 3);
  margin-top: clamp(8px, 2.4vh, 16px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
}
.rail {
  position: absolute;
  left: 4px;
  top: 10%;
  bottom: 10%;
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
}
.rail__fill {
  position: absolute;
  inset: 0;
  transform-origin: 50% 0;
  transform: scaleY(0);
  background: linear-gradient(180deg, var(--amber), var(--wine));
}
.lens {
  position: absolute;
  left: 14px;
  right: 0;
  top: var(--row);
  height: var(--row);
}
.lens__face {
  position: absolute;
  inset: 3px 0;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.035));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 6px 18px -8px rgba(0, 0, 0, 0.6);
}
.lens__face::after {
  content: '';
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--amber) calc(100% - 100% * var(--tone)), var(--wine)), transparent);
  opacity: 0.8;
}
.list { position: relative; list-style: none; will-change: transform; }
.dish {
  height: var(--row);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 clamp(10px, 3vw, 14px) 0 clamp(24px, 6vw, 28px);
}
.dish__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dish__text b {
  font-family: 'Fraunces Variable', Georgia, serif;
  font-size: clamp(14px, min(4.6vw, 4vh), 17px);
  font-weight: 440;
  font-variation-settings: 'opsz' 24;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dish__text small { font-size: clamp(10px, 2.7vh, 11.5px); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dish__wine {
  flex: none;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: clamp(10px, 2.7vh, 11.5px);
  color: var(--muted);
}
.dish__wine svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.dish.is-here .dish__wine { color: var(--ink); }
.dish.is-here .dish__wine svg { stroke: color-mix(in srgb, var(--amber) calc(100% - 100% * var(--tone)), var(--wine)); }

/* ---------------------------------------------------------------- the foot */
.foot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: clamp(8px, 2.4vh, 16px);
  padding-top: clamp(8px, 2.4vh, 14px);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.foot__price { display: flex; flex-direction: column; min-width: 0; }
.foot__price b { font-size: clamp(16px, 4.4vh, 19px); font-weight: 600; font-variation-settings: 'wdth' 96; letter-spacing: -0.01em; }
.foot__price .muted { font-size: clamp(10px, 2.6vh, 11.5px); white-space: nowrap; }
.btn {
  position: relative;
  flex: none;
  width: clamp(148px, 46vw, 180px);
  height: clamp(44px, 12.6vh, 56px);
  padding: 0;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  background: var(--button);
  color: var(--button-ink);
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -2px 4px rgba(120, 80, 40, 0.12), 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 18px -8px rgba(0, 0, 0, 0.6);
}
.btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.btn__fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--amber), color-mix(in srgb, var(--amber) 60%, var(--wine)));
}
.btn__face {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 100%;
}
.btn__words {
  font-size: clamp(13px, 3.4vh, 14px);
  font-weight: 600;
  font-variation-settings: 'wdth' 100;
  white-space: nowrap;
  transition: font-variation-settings 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@media (hover: hover) {
  .btn:hover .btn__words { font-variation-settings: 'wdth' 112; }
}
.btn__icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.btn__check { stroke-dasharray: 1; stroke-dashoffset: 1; }

@media (max-width: 720px) {
  .stage { flex-direction: column; gap: clamp(8px, 2.4vh, 20px); }
  .words { width: 100%; text-align: center; }
  .words__brand { justify-content: center; margin-bottom: 4px; }
  .words__title { font-size: clamp(18px, min(5.6vw, 4.4vh), 30px); }
  .words__line { display: none; }
}
@media (max-width: 720px) and (max-height: 699px) {
  .words { display: none; }
}
@media (max-width: 340px) {
  .dish__wine { display: none; }
}
