/* MI 覓 · cucina contemporanea cinese
   Tokens first; every colour belongs to an object of the restaurant (DIRECTION.md). */

@font-face {
  font-family: "Archivo";
  src: url(fonts/archivo.woff2) format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url(fonts/archivo-ext.woff2) format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face { font-family: "MI Song"; src: url(fonts/noto-serif-sc-sub.woff2) format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "MI Song"; src: url(fonts/noto-serif-tc-mi.woff2) format("woff2"); font-weight: 900; font-display: swap; unicode-range: U+8993; } /* 覓, the mark on MI's menu and seal */
@font-face { font-family: "MI Brush"; src: url(fonts/yuji-brush.ttf) format("truetype"); font-display: block; } /* Yuji Syuku, subset to 覓食共訂座 */
@font-face { font-family: "Archivo Fallback"; src: local("Arial"), local("Liberation Sans"), local("Arimo"); size-adjust: 104%; ascent-override: 88%; descent-override: 21%; line-gap-override: 0%; }

:root {
  color-scheme: light;
  --cobalt: #1D3BC4;      /* the rim of MI's bowls */
  --cobalt-deep: #152C99;
  --porcelain: #F5F6FA;   /* the glaze */
  --chili: #F0471C;       /* red chili oil, the seal */
  --jade: #0B7550;        /* the brushed characters of MI's menu */
  --jade-line: #2C9670;
  --sage: #B9D9BF;        /* the cover of MI's printed menu */
  --sage-deep: #A6CDAE;
  --line: #F7FBF4;        /* the white line patterns on the covers */
  --jade-deep: #07583C;
  --tav-deep: #05301F;    /* the menu's jade at night: ground of «A tavola» */
  --ink: #0E1430;
  --ink-2: #3A4166;

  --font: "Archivo", "Archivo Fallback", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --brush: "MI Brush", "Yuji Syuku", "KaiTi", "STKaiti", serif;
  --han: "MI Song", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;

  --t-display: clamp(64px, 12vw, 200px);
  --t-h1: clamp(40px, 5.6vw, 96px);
  --t-h2: clamp(30px, 3.4vw, 54px);
  --t-h3: 22px;
  --t-body: 18px;
  --t-small: 15px;
  --t-meta: 13px;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 40px; --s-7: 64px; --s-8: 104px; --s-9: 168px;
  --gut: clamp(16px, 3vw, 44px);
  --grain: 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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--sage); color: var(--ink); font-family: var(--font); font-size: var(--t-body); line-height: 1.5; font-stretch: 100%; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, figure, address { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1.5px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--porcelain); }
button { font: inherit; color: inherit; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--gut); top: -60px; z-index: 50; background: var(--porcelain); color: var(--ink); padding: 10px 14px; }
.skip:focus { top: 10px; }
.zh-s { font-family: var(--han); font-weight: 600; }
.brush { font-family: var(--brush); font-weight: 400; color: var(--jade); line-height: .9; user-select: none; pointer-events: none; }
/* the label style of the menu covers: condensed, wide-spaced capitals */
.hero-label { font-stretch: 62%; font-weight: 500; text-transform: uppercase; }

/* ---------- nav: printed on the sage cover ---------- */
/* the bar follows the page: clear over the cover, then a slim sage strip with a hairline (taste-skill's split bar:
   links left, the mark in the middle, language and the call on the right) */
.top { position: fixed; z-index: 30; inset: 0 0 auto; }
.top::before { content: ""; position: absolute; inset: 0; background: var(--sage); border-bottom: 1px solid rgba(14, 20, 48, .14); opacity: 0; transition: opacity .3s var(--ease); }
.top.solid::before { opacity: 1; }
.nav { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s-5); height: 72px; padding: 0 var(--gut); color: var(--ink); }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); justify-self: center; }
.brand .seal { width: 32px; height: 40px; color: var(--chili); }
.brand b { font-stretch: 62%; font-weight: 500; font-size: 22px; letter-spacing: .5em; line-height: 1; margin-right: -.5em; }
.nav-links { display: flex; align-items: center; gap: var(--s-5); font-stretch: 62%; font-weight: 500; font-size: 17px; letter-spacing: .1em; text-transform: uppercase; }
.nav-links a { text-decoration: none; padding: 8px 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .3s var(--ease); }
.nav-links a:hover { background-size: 100% 2px; }
.nav-act { justify-self: end; display: flex; align-items: center; gap: var(--s-4); }
.nav .lang { font-stretch: 62%; font-size: 17px; font-weight: 700; letter-spacing: .14em; text-decoration: none; border: 1.5px solid currentColor; padding: 5px 4px 5px 8px; }
.nav-call { display: inline-flex; align-items: baseline; gap: 10px; background: var(--jade); color: var(--porcelain); text-decoration: none; padding: 11px 16px; font-stretch: 62%; font-weight: 600; font-size: 17px; letter-spacing: .1em; text-transform: uppercase; border: 1px solid transparent; white-space: nowrap; transition: background-color .2s var(--ease); }
.nav-call span { letter-spacing: .06em; font-variant-numeric: tabular-nums; font-weight: 500; }
.nav-call:hover { background: var(--ink); }

/* ---------- buttons: the chili seal colour is only for calling ---------- */
.btn { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; background: var(--chili); color: var(--ink); text-decoration: none; padding: 17px 24px; font-weight: 800; font-size: var(--t-body); border: 1px solid transparent; transition: background .15s, color .15s; }
.btn span { font-weight: 600; font-variant-numeric: tabular-nums; }
.btn:hover { background: var(--ink); color: var(--porcelain); }
.arrow { font-weight: 700; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.arrow::after { content: " →"; }

/* ---------- the sage field: menu cover with live line pattern ---------- */
.field { position: relative; background: var(--sage); isolation: isolate; overflow: hidden; }
.field::after { content: ""; position: absolute; inset: 0; z-index: 8; pointer-events: none; opacity: .07; background: var(--grain); }
canvas.lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }

/* ---------- hero ---------- */
.hero { min-height: max(100svh, 600px); }
.hero-stage { position: absolute; z-index: 2; left: 0; right: 0; top: 72px; height: calc(100% - 72px - 250px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-6); }
.hero .brush { display: flex; gap: .52em; font-size: min(44vh, 29vw); order: 2; }
.hero-label { order: 1; font-size: clamp(14px, 1.3vw, 19px); letter-spacing: .28em; margin-right: -.28em; }
.hero-bowl { position: absolute; z-index: 3; width: min(31vw, 50vh, 520px); left: 50%; top: calc(50% + 4vh); translate: -50% -50%; filter: drop-shadow(0 34px 30px rgba(10, 60, 34, .42)); will-change: transform; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.hero-stamp { position: absolute; z-index: 4; right: 9vw; top: 24vh; width: clamp(64px, 6vw, 92px); height: auto; color: var(--chili); rotate: -8deg; }
.hero-copy { position: absolute; z-index: 5; left: var(--gut); bottom: 36px; max-width: 40rem; }
.hero .sub { max-width: 52ch; }
.hero h1 { font-stretch: 112%; font-weight: 800; font-size: clamp(26px, 2.5vw, 40px); line-height: 1.02; letter-spacing: -.015em; text-wrap: balance; }
.hero .sub { margin-top: var(--s-3); font-size: var(--t-small); line-height: 1.5; max-width: 44ch; color: var(--ink); text-wrap: pretty; }
.hero .btn { margin-top: var(--s-5); }
.hero-price { position: absolute; z-index: 5; right: var(--gut); bottom: 36px; text-align: right; font-stretch: 62%; font-size: 18px; letter-spacing: .06em; }
.hero-price .zh-s { letter-spacing: .2em; }
.hero-price b { display: block; font-stretch: 100%; font-size: clamp(40px, 3.4vw, 54px); line-height: 1; letter-spacing: -.02em; font-weight: 800; font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: no-preference) {
  .hero-bowl img { animation: settle 1.2s var(--ease) both; }
  .hero .brush span { animation: ink 1.1s var(--ease) both; }
  .hero .brush span + span { animation-delay: .14s; }
  @keyframes settle { from { opacity: 0; translate: 0 50px; rotate: -24deg; scale: .9; } }
  @keyframes ink { from { opacity: 0; clip-path: inset(-20% -20% 120% -20%); } to { opacity: 1; clip-path: inset(-20% -20% -20% -20%); } }
}

/* short laptop screens (Windows at 150%): smaller characters so the button stays above the fold */
@media (min-width: 1081px) and (max-height: 820px) {
  .hero-stage { top: 72px; height: calc(100% - 72px - 250px); gap: var(--s-4); }
  .hero .brush { font-size: min(29vw, 34vh); }
  .hero-bowl { width: min(31vw, 41vh); top: calc(50% + 4vh); }
  .hero-label { font-size: 14px; }
}
/* tablet: the same cover, taller */
@media (min-width: 701px) and (max-width: 1080px) {
  .hero { min-height: 0; display: flex; flex-direction: column; }
  .hero-stage { position: relative; top: auto; height: auto; margin-top: 128px; gap: var(--s-5); }
  .hero .brush { font-size: 30vw; gap: .42em; }
  .hero-bowl { width: 36vw; top: calc(50% + 36px); }
  .hero-stamp { right: var(--gut); top: 108px; }
  .hero-copy { position: relative; left: auto; bottom: auto; padding: var(--s-6) var(--gut) var(--s-7); max-width: 28rem; box-sizing: content-box; }
  .hero-price { bottom: auto; top: calc(128px + 34vw + 64px); }
}
/* phone: the characters written top to bottom, the bowl crossing them */
@media (max-width: 700px) {
  .hero { min-height: 0; display: flex; flex-direction: column; }
  .hero-stage { position: relative; top: auto; height: auto; margin-top: 92px; align-items: flex-start; padding: 0 var(--gut); gap: var(--s-3); }
  .hero .brush { flex-direction: column; gap: 0; font-size: 50vw; line-height: .96; }
  .hero-label { font-size: 13px; letter-spacing: .24em; margin-right: 0; }
  .hero-bowl { width: 80vw; left: auto; right: -14vw; top: 58%; translate: 0 -50%; }
  .hero-stamp { display: none; }
  .hero-copy { position: relative; left: auto; bottom: auto; padding: var(--s-5) var(--gut) var(--s-6); }
  .hero .btn { width: 100%; justify-content: center; }
  .hero-price { right: auto; bottom: auto; top: auto; font-size: 15px; position: relative; order: 1; align-self: flex-end; margin: -28px var(--gut) 0 0; }
  .hero-copy { order: 2; }
  .hero-price b { font-size: 30px; }
}

/* ---------- cosa ordinare: four dishes, one at a time (taste-skill's photo chapters, on MI's plates) ---------- */
.cosa { background: var(--porcelain); color: var(--ink); }
.cosa-stick { max-width: 1440px; margin: 0 auto; padding: var(--s-8) var(--gut) var(--s-7); display: grid; gap: var(--s-6); }
.cosa-head { display: grid; gap: var(--s-3); }
.cosa h2 { font-stretch: 112%; font-weight: 800; font-size: var(--t-h2); line-height: 1.02; letter-spacing: -.018em; max-width: 20em; text-wrap: balance; }
.cosa-head > p { font-size: var(--t-body); color: var(--ink-2); max-width: 46ch; }
/* at rest (no script, reduced motion, a short screen): the four side by side */
.ch-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s-6) var(--s-5); }
.ch-art { position: relative; aspect-ratio: 1; display: grid; place-items: center; container-type: inline-size; background: radial-gradient(circle at 60% 50%, #FBFCFE 0, #E4E8F0 72%); overflow: hidden; }
.ch-zh { position: absolute; left: 4%; top: 2%; font-family: var(--han); font-weight: 900; color: var(--cobalt); font-size: calc(92cqi / var(--n, 4)); line-height: 1; white-space: nowrap; letter-spacing: -.02em; }
.ch-img { position: relative; width: 86%; } /* the shadow is in the file: a CSS filter on a turning layer is redrawn every frame */
.ch-words { margin-top: var(--s-4); display: grid; gap: var(--s-2); }
.ch-count { font-size: var(--t-meta); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.ch-words h3 { font-stretch: 112%; font-size: var(--t-h3); line-height: 1.15; font-weight: 750; text-wrap: balance; }
.ch-words h3 .zh-s { display: block; font-size: var(--t-meta); font-weight: 600; color: var(--cobalt); letter-spacing: .1em; margin-bottom: 4px; font-stretch: 100%; }
.ch-words p { font-size: var(--t-small); color: var(--ink-2); max-width: 40ch; }
.ch-price { color: var(--ink); font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.js-ch .ch-count { display: none; }
/* live (.run, site.js): the section holds while the dishes pass through one plate-sized stage, like a turning table */
.cosa.run { height: calc(100svh + var(--n-ch, 4) * 72svh); }
.run .cosa-stick { position: sticky; top: 0; height: 100svh; min-height: 560px; box-sizing: border-box; padding-top: calc(72px + var(--s-5)); padding-bottom: var(--s-5); grid-template-rows: auto minmax(0, 1fr); gap: var(--s-5); }
.run .ch-count { display: block; }
.run .ch-list { position: relative; display: block; min-height: 0; overflow: hidden; background: radial-gradient(circle at 66% 50%, #FBFCFE 0, #E4E8F0 70%); }
.run .ch { position: absolute; inset: 0; }
.run .ch-art { position: absolute; inset: 0; aspect-ratio: auto; background: none; overflow: visible; container-type: size; }
.run .ch-zh { left: 3%; top: 4%; font-size: min(calc(62cqi / var(--n, 4)), 44cqh, 280px); will-change: transform, opacity; }
.run .ch-img { position: absolute; width: auto; height: 94%; aspect-ratio: 1; right: 6%; top: 3%; will-change: transform; }
.run .ch-words { position: absolute; z-index: 2; left: var(--s-5); bottom: var(--s-5); width: min(440px, calc(100% - 2 * var(--s-5))); box-sizing: border-box; margin: 0; padding: var(--s-5) var(--s-5) var(--s-5); background: var(--porcelain); will-change: transform, opacity; }
.run .ch-words h3 { font-size: clamp(22px, 2vw, 28px); }

/* ---------- menu (taste-skill's layout: the section's characters and dish on the left, the dishes in two columns) ---------- */
.menu { position: relative; background: var(--jade-deep); color: var(--porcelain); overflow: hidden; isolation: isolate; }
.menu-pattern { position: absolute; bottom: var(--s-6); right: var(--gut); width: min(40%, 520px); height: 140px; z-index: -1; color: var(--porcelain); opacity: .16; }
.menu-in { max-width: 1440px; margin: 0 auto; padding: var(--s-7) var(--gut); }
/* the head on one row: title left, the note beside it */
.menu-head { display: grid; grid-template-columns: auto minmax(0, 52ch); justify-content: space-between; align-items: end; gap: var(--s-3) var(--s-6); }
.menu-head h2 { font-stretch: 125%; font-weight: 800; font-size: var(--t-h2); letter-spacing: -.01em; line-height: 1; }
.menu-head p { max-width: 52ch; }
.menu-head .menu-note { font-size: var(--t-small); color: #CFE3D6; }
.tabs { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-5); }
.tabs[hidden] { display: none; }
.tabs button { display: inline-flex; align-items: baseline; gap: 8px; background: transparent; border: 2px solid rgba(245, 246, 250, .7); padding: 8px 12px; cursor: pointer; font-size: var(--t-small); font-weight: 600; transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.tabs button .zh-s { font-weight: 900; font-size: var(--t-body); }
.tabs button:hover { background: rgba(245, 246, 250, .12); border-color: var(--porcelain); }
.tabs button[aria-selected="true"] { background: var(--porcelain); border-color: var(--porcelain); color: var(--jade-deep); }
.panels { margin-top: var(--s-6); }
.panel { position: relative; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s-6); align-items: start; }
.panel + .panel { margin-top: var(--s-8); }
/* the characters fit the column (--n: how many), the name above them, the dish over their lower right */
.panel-head { position: relative; container-type: inline-size; --zh: min(clamp(56px, 7.4vw, 112px), calc(100cqi / var(--n, 2) * .92)); }
.panel-head h3 { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-3); position: relative; z-index: 1; min-height: calc(var(--zh) * 1.4 + 64px); }
.panel-name { order: -1; }
.panel-zh { display: flex; font-family: var(--han); font-weight: 900; font-size: var(--zh); line-height: 1; color: var(--porcelain); letter-spacing: -.02em; white-space: nowrap; }
.panel-zh > span { display: inline-block; }
.panel-name { font-stretch: 112%; font-weight: 750; font-size: var(--t-h3); line-height: 1.1; }
/* the section's dish, served on MI's plate (porcelain, double cobalt rim), overlapping its characters */
.panel-dish { position: absolute; z-index: 2; width: min(clamp(140px, 15vw, 220px), 62cqi); right: 4cqi; top: calc(var(--zh) * .55 + 36px); }
.panel-dish::before { content: ""; position: absolute; inset: -6%; border-radius: 50%; background: var(--porcelain); box-shadow: inset 0 0 0 5px var(--cobalt), inset 0 0 0 9px var(--porcelain), inset 0 0 0 11px var(--cobalt), 0 24px 28px rgba(0, 20, 12, .45); }
.panel-dish img { position: relative; }
.dishes { columns: 2 260px; column-gap: var(--s-6); margin-top: -8px; }
.dishes li { break-inside: avoid; padding: 8px 0 9px; border-bottom: 1px solid rgba(245, 246, 250, .22); }
.dish { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--s-4); align-items: baseline; }
.dish .zh-s { grid-column: 1 / -1; font-size: var(--t-meta); margin-bottom: 2px; color: #CFE3D6; }
.dn { font-weight: 600; font-size: 17px; line-height: 1.3; }
.dp { grid-column: 2; grid-row: 2; font-weight: 800; font-variant-numeric: tabular-nums; font-stretch: 112%; white-space: nowrap; }
.ing { margin-top: 1px; font-size: var(--t-small); line-height: 1.35; color: #CFE3D6; }
/* tabs (site.js): every panel in the same cell, so the section keeps one height; the chosen one plays in */
.js-tabs .panels { display: grid; }
.js-tabs .panel { grid-area: 1 / 1; margin: 0; transition: opacity .28s var(--ease), visibility 0s linear .28s; }
.js-tabs .panel:not(.on) { opacity: 0; visibility: hidden; pointer-events: none; }
.js-tabs .panel.on { transition: opacity .2s var(--ease); }
@media (prefers-reduced-motion: no-preference) {
  .menu-pattern.redraw { animation: wipe 1.2s var(--ease); }
  @keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
  .panel.play .panel-zh > span { animation: zh-in .9s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--i, 0) * 70ms); }
  .panel.play .panel-name { animation: rise .7s cubic-bezier(.16, 1, .3, 1) .16s both; }
  .panel.play .panel-dish { animation: plate-in 1.1s cubic-bezier(.16, 1, .3, 1) .06s both; }
  .panel.play .dishes li { animation: rise .7s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(120ms + var(--i, 0) * 28ms); }
  @keyframes zh-in { from { opacity: 0; transform: translateY(36%) rotate(4deg); } }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
  @keyframes plate-in { from { opacity: 0; transform: translate(70px, 24px) rotate(-70deg) scale(.86); } }
}

/* ---------- a tavola (signature: one dish spins, the spiral opens onto the whole table) ---------- */
/* deep jade, lit from the plate: the same green family as the menu, the cobalt only on the porcelain */
.tavola { position: relative; background: var(--tav-deep); color: var(--porcelain); }
.tav-stick { background: radial-gradient(circle at 62% 50%, #0F6B4A 0, #0A4A34 38%, var(--tav-deep) 78%); }
.tav-stick { position: relative; height: 100svh; min-height: 620px; overflow: hidden; }
.tav-art { position: absolute; inset: 0; z-index: 1; }
/* without JS or with reduced motion: the whole table, still */
.tav-img { position: absolute; inset: 0; background: #2B2724 url(img/tavola-1536.webp) 50% 47% / cover no-repeat; }
@media (max-aspect-ratio: 1/1) { .tav-img { background-image: url(img/tavola-v-1024.webp); } }
/* while it runs, one canvas draws spiral, plate and table (site.js) */
.tav-canvas { display: none; position: absolute; inset: 0; width: 100%; height: 100%; }
.run .tav-canvas { display: block; }
.run .tav-img { display: none; }
.tav-final { position: absolute; inset: 0; opacity: 0; background-repeat: no-repeat; background-color: #2B2724; pointer-events: none; will-change: transform; }
.tav-stick::after { content: ""; position: absolute; inset: 0; z-index: 3; background: linear-gradient(90deg, rgba(3, 30, 21, .93) 0%, rgba(3, 30, 21, .85) 34%, rgba(3, 30, 21, .42) 46%, rgba(3, 30, 21, 0) 58%); opacity: var(--scrim, 1); pointer-events: none; will-change: opacity; }
.tav-copy { position: absolute; z-index: 4; left: var(--gut); bottom: var(--s-7); max-width: 38rem; }
.brush-sm { font-size: clamp(64px, 8vw, 120px); color: var(--line); margin-bottom: var(--s-5); }
.tavola h2 { font-stretch: 118%; font-weight: 800; font-size: clamp(40px, 5.6vw, 88px); line-height: .94; letter-spacing: -.022em; text-wrap: balance; }
.tav-copy p { margin-top: var(--s-4); max-width: 40ch; }
.tav-copy .tav-facts { margin-top: var(--s-5); font-size: var(--t-small); font-weight: 600; }
.tav-facts span { white-space: nowrap; }
.tavola.run { height: 320svh; }
.run .tav-stick { position: sticky; top: 0; }
/* without the scroll: the table is open from the start */

/* ---------- prenota: the back of the menu, a porcelain card on the sage cover ---------- */
.prenota { padding: var(--s-9) var(--gut) var(--s-8); }
.brush-pre { position: absolute; z-index: 1; left: calc(var(--gut) - .06em); top: var(--s-7); font-size: clamp(120px, 21vw, 340px); writing-mode: vertical-rl; letter-spacing: -.04em; }
.card { position: relative; z-index: 2; max-width: 1080px; margin: 0 0 0 auto; background: var(--porcelain); padding: clamp(32px, 5vw, 72px); box-shadow: 0 50px 80px -40px rgba(10, 60, 34, .55); }
/* the printed frame of MI's menu: two jade lines inset */
.card::before { content: ""; position: absolute; inset: 12px; border: 3px solid var(--jade); box-shadow: inset 0 0 0 4px var(--porcelain), inset 0 0 0 5.5px var(--jade); pointer-events: none; }
.stamp { position: absolute; z-index: 3; right: clamp(-28px, -1.6vw, -14px); top: clamp(-60px, -4vw, -36px); width: clamp(92px, 9vw, 136px); height: auto; color: var(--chili); background: var(--porcelain); border-radius: 50%; padding: 4px; rotate: 9deg; box-shadow: 0 14px 24px -12px rgba(120, 20, 0, .5); }
.card-head { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); }
.kicker { font-size: var(--t-body); font-weight: 750; color: var(--jade); }
/* open or closed right now (site.js, Rome time): a live dot only while the kitchen is open */
.status { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 10px; font-size: var(--t-small); font-weight: 600; color: var(--ink-2); background: rgba(240, 71, 28, .09); }
.status[hidden] { display: none; }
.status:empty { display: none; }
.hours-hook { font-size: var(--t-small); font-variant-numeric: tabular-nums; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--chili); }
.status.is-open { color: var(--jade-deep); background: rgba(11, 117, 80, .1); }
.status.is-open i { background: var(--jade); box-shadow: 0 0 0 0 rgba(11, 117, 80, .45); }
@media (prefers-reduced-motion: no-preference) { .status.is-open i { animation: live 2.4s ease-out infinite; } }
@keyframes live { 70% { box-shadow: 0 0 0 7px rgba(11, 117, 80, 0); } 100% { box-shadow: 0 0 0 0 rgba(11, 117, 80, 0); } }
.phone { position: relative; display: inline-block; white-space: nowrap; margin-top: var(--s-4); font-stretch: 125%; font-weight: 800; font-size: clamp(44px, 7.4vw, 116px); line-height: .9; letter-spacing: -.035em; text-decoration: none; font-variant-numeric: tabular-nums; color: var(--ink); }
.phone:hover { text-decoration: underline; text-decoration-thickness: 6px; text-decoration-color: var(--chili); }
.card-mid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-5) var(--s-6); margin-top: var(--s-5); align-items: start; }
.card-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); }
.card-cta .btn { white-space: nowrap; }
.card-tip { margin-top: var(--s-4); font-size: var(--t-small); color: var(--ink-2); }
.card-say { padding-left: var(--s-5); border-left: 2px solid var(--jade); }
.card h3 { font-weight: 750; font-size: var(--t-body); color: var(--jade); margin-bottom: var(--s-3); }
.steps { counter-reset: s; font-size: var(--t-small); }
.steps li { counter-increment: s; padding-left: 2.1em; position: relative; }
.steps li + li { margin-top: 6px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: .05em; width: 1.55em; height: 1.55em; border-radius: 50%; border: 2px solid var(--jade); color: var(--jade); display: grid; place-items: center; font-size: 12px; font-weight: 800; }
/* the strip at the foot of the card: the week, and the way from the metro */
/* the booking form of the Maiora kit (it fills this box itself) */
.card-book { position: relative; margin-top: var(--s-6); }
.card-strip { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--s-5) var(--s-6); margin-top: var(--s-6); padding: var(--s-5); background: #E3EFE6; }
.week { display: flex; gap: 6px; }
.week li { width: 40px; height: 40px; display: grid; place-items: center; border: 2px solid var(--jade); color: var(--jade); font-weight: 800; font-size: var(--t-small); }
.week li.off { border-style: dashed; border-color: rgba(14, 20, 48, .3); color: rgba(14, 20, 48, .45); text-decoration: line-through; }
.week li.today { background: var(--jade); color: var(--porcelain); }
.week li.off.today { background: transparent; color: var(--chili); border-color: var(--chili); border-style: solid; }
.hours-line { margin-top: var(--s-3); font-size: var(--t-small); font-variant-numeric: tabular-nums; }
.hours-line span { white-space: nowrap; }
.route { display: flex; align-items: center; gap: 10px; font-size: var(--t-small); font-weight: 700; }
.route-a { flex: none; width: 28px; height: 28px; display: grid; place-items: center; background: var(--chili); color: var(--ink); font-weight: 800; }
.route-walk { flex: 1; min-width: 64px; padding-bottom: 6px; text-align: center; font-size: var(--t-meta); font-weight: 500; color: var(--ink-2); background: repeating-linear-gradient(90deg, var(--jade) 0 6px, transparent 6px 11px) 0 100% / 100% 2px no-repeat; white-space: nowrap; }
.route .route-mi { flex: none; width: 24px; height: 30px; color: var(--chili); }
.card-strip address { margin-top: var(--s-3); font-size: var(--t-small); }
.card-strip p { margin-top: var(--s-3); }
.route-stop { white-space: nowrap; }
/* the card answers its own width (the booking page holds it narrower than the home page) */
.card { container-type: inline-size; }
@container (max-width: 760px) {
  .card-mid, .card-strip { grid-template-columns: 1fr; }
  .card-say { padding-left: 0; border-left: 0; padding-top: var(--s-4); border-top: 2px solid var(--jade); }
  .card-strip { padding: var(--s-4); }
  .week { gap: 4px; max-width: 420px; }
  .week li { width: auto; flex: 1; height: 38px; }
}
.pre-dish { position: absolute; z-index: 3; width: clamp(200px, 21vw, 320px); left: calc(var(--gut) - 2vw); bottom: clamp(40px, 6vw, 96px); filter: drop-shadow(0 30px 28px rgba(10, 60, 34, .45)); }

/* ---------- booking page (after the taste-skill trial): a cover with 訂座 across it, then the card beside the room ---------- */
.book { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: end; min-height: min(100svh, 980px); box-sizing: border-box; padding: 96px var(--gut) var(--s-8); }
.book-in { position: relative; z-index: 3; grid-column: 1; grid-row: 1; max-width: 40rem; }
.book-in h1 { font-stretch: 116%; font-weight: 800; font-size: var(--t-h1); line-height: .96; letter-spacing: -.022em; text-wrap: balance; }
.book-in .sub { margin-top: var(--s-4); max-width: 40ch; font-size: clamp(17px, 1.3vw, 20px); text-wrap: pretty; }
.book-cta { margin-top: var(--s-5); }
.book-art { position: relative; z-index: 2; grid-column: 1 / -1; grid-row: 1; justify-self: end; align-self: stretch; width: 62%; display: flex; flex-direction: column; justify-content: flex-end; }
.brush-book { position: relative; z-index: 1; text-align: right; font-size: clamp(150px, 24vw, 400px); line-height: 1; letter-spacing: -.04em; white-space: nowrap; margin-bottom: -.06em; }
.book-bowl { position: absolute; z-index: 2; width: clamp(180px, 17vw, 290px); left: 30%; top: 0; filter: drop-shadow(0 30px 26px rgba(10, 60, 34, .42)); }
.book-visit { padding: var(--s-8) var(--gut); }
.visit-head h2 { font-stretch: 118%; font-weight: 800; font-size: var(--t-h2); line-height: 1.02; letter-spacing: -.015em; }
.visit-head p { margin-top: var(--s-3); max-width: 52ch; font-size: clamp(17px, 1.3vw, 20px); text-wrap: pretty; }
.visit-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-5); align-items: start; margin-top: var(--s-6); }
.book-visit .card { margin: 0; max-width: none; }
@media (min-width: 761px) { .book-visit .phone { font-size: clamp(44px, 4.6vw, 84px); } }
.book-visit .stamp { top: -46px; right: -26px; width: 104px; }
/* the room develops once, like a print in the tray: pale and flat, then its darks, then its colour (site.js adds .in) */
.develop { position: sticky; top: calc(72px + var(--s-5)); margin: 0; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 50px 80px -40px rgba(10, 60, 34, .55); }
.develop img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .develop.js-dev img { filter: grayscale(1) contrast(.55) brightness(1.3); transform: scale(1.07); transition: filter 1.8s cubic-bezier(.3, 0, .2, 1), transform 2.2s cubic-bezier(.16, 1, .3, 1); }
  .develop.js-dev.in img { filter: none; transform: none; }
}
.book-links { display: flex; gap: var(--s-6); flex-wrap: wrap; margin-top: var(--s-6); }

/* ---------- footer (taste-skill's: the closing call, the brushed word, four columns) ---------- */
.foot { background: var(--jade-deep); color: var(--porcelain); }
.foot-in { max-width: 1440px; margin: 0 auto; padding: var(--s-8) var(--gut) 0; }
.foot-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-5) var(--s-6); }
.foot-cta h2 { font-stretch: 118%; font-weight: 800; font-size: var(--t-h2); line-height: 1.02; letter-spacing: -.015em; }
.foot-cta p { margin-top: var(--s-3); font-size: var(--t-body); max-width: 64ch; text-wrap: pretty; }
.foot-word { margin: var(--s-6) 0 var(--s-5); font-family: var(--brush); font-size: clamp(120px, 21vw, 300px); line-height: 1; color: #0E7A52; letter-spacing: .02em; user-select: none; }
.foot-cols { display: grid; grid-template-columns: 1.4fr 1.1fr 1.1fr .7fr; gap: var(--s-6); align-items: start; font-size: var(--t-small); }
.foot .brand { color: var(--porcelain); }
.foot .brand .seal { color: var(--porcelain); width: 40px; height: 50px; }
.foot .brand b { font-size: 22px; }
.foot-brand p { margin-top: var(--s-4); font-stretch: 112%; font-weight: 750; font-size: var(--t-h3); line-height: 1.2; }
.foot-cols h3 { font-size: var(--t-small); font-weight: 600; color: #CFE3D6; margin-bottom: var(--s-3); }
.foot-cols li + li { margin-top: var(--s-2); }
.foot-cols a { text-decoration: none; }
.foot-cols a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* the last line, with the legal links; 112px free below it for the chat button of the Maiora kit (bottom right) */
.foot-small { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3) var(--s-6); margin-top: var(--s-7); padding: var(--s-5) 0 112px; font-size: var(--t-meta); border-top: 1px solid rgba(245, 246, 250, .22); color: #CFE3D6; }
.foot-small .vat { white-space: nowrap; }
.foot-legal { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.foot-legal a { text-underline-offset: 3px; }
.foot-legal a:hover { color: var(--porcelain); }

/* ---------- phone ---------- */
@media (max-width: 1080px) {
  .visit-grid { grid-template-columns: 1fr; }
  .develop { position: relative; top: auto; aspect-ratio: 3 / 2; }
  .nav { grid-template-columns: auto 1fr; }
  .nav-links { display: none; }
  .brand { justify-self: start; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .panel { grid-template-columns: 1fr; }
  .panel-head h3 { min-height: 0; }
  .panel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); }
  .panel-dish { position: relative; right: auto; top: auto; width: clamp(130px, 26vw, 220px); flex: none; }
  .menu-head { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  :root { --t-body: 17px; }
  .nav { gap: var(--s-3); height: 64px; }
  .brand b { letter-spacing: .3em; }
  .nav-call span { display: none; }
  .book-in h1 { font-size: clamp(36px, 11vw, 46px); overflow-wrap: break-word; hyphens: auto; }
  .phone { font-size: clamp(32px, 11vw, 46px); font-stretch: 108%; letter-spacing: -.02em; }
  .cosa-stick { padding: var(--s-7) var(--gut); }
  .run .cosa-stick { padding-top: calc(64px + var(--s-4)); padding-bottom: var(--s-4); }
  .run .ch-zh { left: 4%; top: 3%; font-size: min(calc(88cqi / var(--n, 4)), 30cqh); }
  .run .ch-img { height: auto; width: 80%; right: 10%; top: 13%; }
  .run .ch-words { left: var(--s-3); right: var(--s-3); bottom: var(--s-3); width: auto; padding: var(--s-4); gap: var(--s-1); }
  .run .ch-words h3 { font-size: 20px; }
  .menu-in { padding: var(--s-6) var(--gut); }
  .tabs { flex-wrap: nowrap; overflow-x: auto; margin: var(--s-5) calc(var(--gut) * -1) 0; padding: 0 var(--gut) 6px; scrollbar-width: none; }
  .tabs button { flex: none; }
  .panel-dish { width: 34vw; margin-right: -2vw; }
  .panel-head { --zh: min(14vw, calc(60cqi / var(--n, 2))); }
  .menu-pattern { top: 12px; height: 44px; }
  .dishes { columns: 1; }
  .js-tabs .panels { display: block; }
  .js-tabs .panel:not(.on) { display: none; }
  .tav-copy { right: var(--gut); bottom: 96px; }
  .tav-stick { background: radial-gradient(circle at 50% 30%, #0F6B4A 0, #0A4A34 34%, var(--tav-deep) 72%); }
  .tav-stick::after { background: linear-gradient(0deg, rgba(3, 30, 21, .95) 0%, rgba(3, 30, 21, .88) 42%, rgba(3, 30, 21, .5) 54%, rgba(3, 30, 21, 0) 64%); }
  .prenota { padding: 150px var(--gut) var(--s-8); }
  .brush-pre { writing-mode: horizontal-tb; top: 28px; font-size: 34vw; }
  .card { padding: 40px 26px 32px; }
  .card-cta .btn { width: 100%; justify-content: center; }
  .stamp { right: 14px; top: -44px; width: 80px; }
  .pre-dish { position: relative; left: auto; bottom: auto; width: 58vw; margin: -16vw -6vw -10vw auto; z-index: 3; }
  .book { grid-template-columns: 1fr; min-height: 0; padding: 88px var(--gut) var(--s-7); }
  .book-art { grid-column: 1; grid-row: 1; width: 100%; justify-self: stretch; padding-top: 28vw; }
  .brush-book { font-size: 36vw; text-align: left; }
  .book-bowl { width: 46vw; left: auto; right: 0; }
  .book-in { grid-row: 2; margin-top: var(--s-5); }
  .book-cta .btn { width: 100%; justify-content: center; }
  .book-visit { padding: var(--s-7) var(--gut); }
  .book-visit .stamp { display: none; }
  .foot-cols { grid-template-columns: 1fr; gap: var(--s-5); }
  .foot-in { padding-top: var(--s-7); }
}

@media (max-width: 400px) {
  .hours td { white-space: normal; }
}

@media (forced-colors: active) {
  .btn, .nav-call, .tabs button { border: 2px solid ButtonText; }
  .top::before { border-bottom-color: CanvasText; }
  .brand .seal, .stamp, .hero-stamp { color: CanvasText; }
  canvas.lines { display: none; }
}
@media print {
  canvas.lines, .tav-stick, .tabs, .brush, .foot-word { display: none !important; }
  .top { position: static; }
  body, .menu, .field, .foot, .tavola { background: #fff; color: #000; }
  .panel[hidden] { display: block !important; }
}
