:root {
  --page: #000000;
  --card: #16120e;          /* the card, a warm walnut black */
  --card-top: #1f1913;      /* the top of the card, where the light falls */
  --rail: #0d0a08;          /* the groove of the segmented control */
  --ink: #f4ece0;           /* cream, the chosen words */
  --ink-soft: #b3a796;      /* the ingredients */
  --ink-mute: #7d7265;      /* the courses not chosen */
  --line: rgba(255, 236, 210, 0.09);
  --accent: #e9a34a;        /* saffron: the one accent, chef's pick and the price */
  --pill-top: #3a3027;
  --pill-bottom: #2a221b;

  --w: min(460px, 92vw);
  --pad: clamp(12px, 3.4vh, 20px);
  --gap: clamp(8px, 2.4vh, 14px);
  --photo-h: clamp(104px, 34vh, 268px);
  --seg-h: clamp(34px, 9vh, 42px);
}

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

html, body { height: 100%; }

body {
  background: var(--page);
  color: var(--ink);
  font-family: "Mona Sans Variable", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.stage {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 8px;
}

/* ---- the card ---- */
.menu {
  position: relative;
  width: var(--w);
  padding: var(--pad);
  display: grid;
  gap: var(--gap);
  border-radius: 22px;
  background: linear-gradient(180deg, var(--card-top) 0%, var(--card) 38%, var(--card) 100%);
  border: 1px solid rgba(255, 232, 200, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 220, 0.09),
    0 1px 1px rgba(0, 0, 0, 0.5),
    0 4px 8px -2px rgba(0, 0, 0, 0.5),
    0 18px 36px -12px rgba(0, 0, 0, 0.7),
    0 40px 80px -24px rgba(60, 34, 10, 0.45);
  isolation: isolate;
}

/* a soft warm light on the top edge, as from a lamp over the table */
.menu__sheen {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  padding: 1px;
  background: radial-gradient(120% 60% at 30% 0%, rgba(255, 210, 150, 0.32), transparent 55%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  z-index: 2;
}

.menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.01em;
}
.menu__brand { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.menu__mark { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.menu__name {
  font-family: "Fraunces Variable", Georgia, serif;
  font-variation-settings: "opsz" 14;
  font-weight: 560;
  font-size: 14px;
  white-space: nowrap;
}
.menu__when { color: var(--ink-mute); white-space: nowrap; font-variation-settings: "wdth" 96; }
.menu__dot { padding: 0 2px; }

/* ---- the segmented control ---- */
.seg {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: var(--seg-h);
  padding: 3px;
  border-radius: 999px;
  background: var(--rail);
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.65),
    inset 0 0 0 1px rgba(0, 0, 0, 0.4),
    0 1px 0 rgba(255, 236, 210, 0.06);
}

.seg__pill, .seg__hover {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  width: 0;
  border-radius: 999px;
  pointer-events: none;
}
.seg__hover {
  background: rgba(255, 236, 210, 0.045);
  opacity: 0;
}
.seg__pill-face {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, var(--pill-top), var(--pill-bottom));
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 214, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 2px 4px rgba(0, 0, 0, 0.45),
    0 6px 14px -4px rgba(0, 0, 0, 0.6);
}

.seg__tab {
  position: relative;
  z-index: 1;
  border: 0;
  background: none;
  color: var(--ink-mute);
  font: inherit;
  font-size: clamp(12px, 3.4vw, 13.5px);
  font-weight: 500;
  font-variation-settings: "wdth" 100;
  letter-spacing: 0.005em;
  border-radius: 999px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  min-width: 0;
}
.seg__tab span { display: inline-block; white-space: nowrap; }
.seg__tab[aria-selected="true"] { color: var(--ink); }
.seg__tab:focus-visible { outline: 1.5px solid var(--accent); outline-offset: -2px; }

/* ---- the photo ---- */
.dish { display: grid; gap: var(--gap); }

.photo {
  position: relative;
  height: var(--photo-h);
  border-radius: 14px;
  overflow: hidden;
  background: #0b0907;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 10px 22px -10px rgba(0, 0, 0, 0.8);
  isolation: isolate;
}
.photo__layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  visibility: hidden;
  box-shadow: 0 0 34px 6px rgba(0, 0, 0, 0.55);
}
.photo__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  will-change: transform;
}
.photo__layer:nth-child(2) .photo__img { object-position: 60% 50%; }
.photo__layer:nth-child(3) .photo__img { object-position: 40% 60%; }

.photo__shade {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 7, 4, 0.28) 0%, transparent 30%, transparent 62%, rgba(10, 7, 4, 0.5) 100%),
    radial-gradient(130% 90% at 50% 45%, transparent 55%, rgba(8, 5, 2, 0.45) 100%);
}
.photo__grain {
  position: absolute;
  inset: -50%;
  z-index: 6;
  pointer-events: none;
  opacity: 0.2;
  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='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 1.4 -0.2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-7%, 4%); }
  40% { transform: translate(5%, -6%); }
  60% { transform: translate(-3%, -2%); }
  80% { transform: translate(6%, 5%); }
  100% { transform: translate(0, 0); }
}
.photo__edge {
  position: absolute;
  inset: 0;
  z-index: 7;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 240, 220, 0.1), inset 0 1px 0 rgba(255, 240, 220, 0.16);
}

.pick {
  position: absolute;
  z-index: 8;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 9px 0 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  font-variation-settings: "wdth" 104;
  letter-spacing: 0.01em;
  color: #22160a;
  background: linear-gradient(180deg, #f3bd6c, var(--accent));
  box-shadow: inset 0 1px 0 rgba(255, 246, 228, 0.6), 0 0 0 1px rgba(80, 44, 8, 0.35), 0 4px 10px -2px rgba(0, 0, 0, 0.55);
  visibility: hidden;
}
.pick__icon { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linejoin: round; stroke-linecap: round; }

.count {
  position: absolute;
  z-index: 8;
  right: 10px;
  bottom: 9px;
  height: 20px;
  overflow: hidden;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 244, 230, 0.86);
  font-variation-settings: "wdth" 96;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.count span { display: block; line-height: 20px; }

/* ---- the words ---- */
.info {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}
.info__text { min-width: 0; display: grid; gap: 3px; }
.info__mask { display: block; overflow: hidden; padding-bottom: 0.08em; }
.info__mask > span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.info__name {
  font-family: "Fraunces Variable", Georgia, serif;
  font-variation-settings: "opsz" 36;
  font-weight: 500;
  font-size: clamp(17px, 5.2vw, 22px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.info__line {
  font-size: clamp(11.5px, 3.3vw, 13px);
  color: var(--ink-soft);
  line-height: 1.35;
  font-variation-settings: "wdth" 96;
}

.price {
  display: inline-flex;
  align-items: flex-start;
  flex: none;
  font-family: "Fraunces Variable", Georgia, serif;
  font-variation-settings: "opsz" 48;
  font-weight: 460;
  font-size: clamp(24px, 7vw, 30px);
  line-height: 1.2;
  height: 1.2em;
  color: var(--ink);
  font-variant-numeric: lining-nums tabular-nums;
}
.price__cur { font-size: 0.5em; line-height: 1; color: var(--accent); margin: 0.36em 0.12em 0 0; font-weight: 520; }
.price__col { display: block; height: 1.2em; overflow: hidden; }
.price__col > span { display: block; }
.price__col > span > span { display: block; height: 1.2em; text-align: center; }

/* ---- the foot ---- */
.menu__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: var(--gap);
  border-top: 1px solid var(--line);
}
.menu__note {
  font-size: 11.5px;
  color: var(--ink-mute);
  font-variation-settings: "wdth" 96;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.menu__add {
  flex: none;
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  border-radius: 999px;
  -webkit-tap-highlight-color: transparent;
}
.menu__add-face {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: clamp(28px, 7.6vh, 32px);
  padding: 0 12px 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 560;
  font-variation-settings: "wdth" 100;
  color: #1b130b;
  background: linear-gradient(180deg, #fbf3e6, #e9dcc7);
  box-shadow: inset 0 1px 0 #ffffff, inset 0 -1px 0 rgba(90, 60, 20, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.4), 0 4px 10px -3px rgba(0, 0, 0, 0.6);
  transition: font-variation-settings 0.35s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.menu__add-face svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.menu__tick { stroke-dasharray: 1; stroke-dashoffset: 1; }
.menu__add:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 3px; }

@media (hover: hover) {
  .seg__tab:hover { color: #d8ccbb; }
  .seg__tab[aria-selected="true"]:hover { color: var(--ink); }
  .menu__add:hover .menu__add-face { font-variation-settings: "wdth" 112; }
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .photo__grain { animation: none; }
  .menu__add-face { transition: none; }
}
