/* Hallmark · custom by brief: one kraft placemat as a broadside · Josefin Sans + Libre Caslon (one line) + Noto Sans TC · signature: the ribeye slice that cooks to the doneness you press */
/* critique: ink on kraft, structure only from printed rules and boxes; cobalt is the dining-room wall and appears only on booking, the primary button, open state and the two coasters */
/* waive 54/67: the menu's English is set in tracked capitals because the placemat prints it that way */
/* waive 63: the footnote line joins with • and the wine line with · because the placemat (and data.ts) print them that way */
/* waive 19: – appears only in clock and price ranges (11:30–14:30, 1,200–2,000), where it is the range sign */
/* waive 29: the lamp glow is light from a lit globe, not a depth shadow */
/* waive 24b: spacing follows the printed sheet's rules, not a 4px grid */

/* ---------- tokens ---------- */

@property --core { syntax: '<color>'; inherits: true; initial-value: #cf6a72; }
@property --mid { syntax: '<color>'; inherits: true; initial-value: #c18a83; }
@property --s1 { syntax: '<number>'; inherits: true; initial-value: 0.74; }
@property --s2 { syntax: '<number>'; inherits: true; initial-value: 0.5; }

:root {
  --paper: #e4cba3;
  --paper-deep: #d6b98c;
  --ink: #1c1915;
  --cobalt: #1f2f8f;
  --cobalt-deep: #18247a;
  --felt: #2a4fd0;
  --chalk: #f5f1e6;
  --lamp: #fdf8e9;
  --lamp-glow: rgb(255 244 210 / 0.55);
  --lamp-off: #8f98c8;
  --fry: #ebc25f;
  --fry-edge: #c98f2e;
  --crust: #3b2115;
  --band: #8c6b5a;
  --fat: #f0e2c6;
  --char: #1f110a;
  /* the five doneness steps: centre colour and the ring around it */
  --d0-core: #8e1426; --d0-mid: #a8303c;
  --d1-core: #b0283a; --d1-mid: #bb4b54;
  --d2-core: #cf6a72; --d2-mid: #c18a83;
  --d3-core: #c99a90; --d3-mid: #a98273;
  --d4-core: #937465; --d4-mid: #8c6b5a;
  --felt-edge: rgb(0 0 0 / 0.12);
  --felt-lip: rgb(255 255 255 / 0.06);
  --ink-wash: rgb(28 25 21 / 0.06);
  --lamp-glow-far: rgb(255 244 210 / 0.22);
  --chalk-rule: rgb(245 241 230 / 0.45);
  --chalk-wash: rgb(245 241 230 / 0.12);

  --f-lat: 'Josefin Sans', 'Noto Sans TC', system-ui, sans-serif;
  --f-quote: 'Libre Caslon Text', Georgia, 'Times New Roman', serif;
  --f-zh: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', system-ui, sans-serif;
  --f-body: system-ui, -apple-system, 'PingFang TC', 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;

  --gut: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --rule: 1px;
  --rule-b: 3px;
  --box: 3px;

  /* paper fibres: ink-coloured noise at a few percent */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .11 0 0 0 0 .09 0 0 0 0 .07 .16 .05 0 0 -.02'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --mottle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .3 0 0 0 0 .12 0 0 .12 0 -.03'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E");
  /* felt on the coasters: light fuzz on cobalt */
  --fuzz: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='turbulence' baseFrequency='1.4' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .85 0 0 0 0 .9 0 0 0 0 1 0 0 .35 0 -.05'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  /* the floor: white 12px tiles, grey grout, four black tiles set as a diamond every ten tiles */
  --floor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Crect width='120' height='120' fill='%23f2f0ea'/%3E%3Cg fill='%231c1915'%3E%3Crect x='60' y='36' width='12' height='12'/%3E%3Crect x='48' y='48' width='12' height='12'/%3E%3Crect x='72' y='48' width='12' height='12'/%3E%3Crect x='60' y='60' width='12' height='12'/%3E%3C/g%3E%3Cpath stroke='%23b4afa4' stroke-width='1.2' d='M0 .5h120M0 12.5h120M0 24.5h120M0 36.5h120M0 48.5h120M0 60.5h120M0 72.5h120M0 84.5h120M0 96.5h120M0 108.5h120M.5 0v120M12.5 0v120M24.5 0v120M36.5 0v120M48.5 0v120M60.5 0v120M72.5 0v120M84.5 0v120M96.5 0v120M108.5 0v120'/%3E%3C/svg%3E");

  color-scheme: light;
  accent-color: var(--cobalt);
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: var(--grain), var(--mottle);
  font: 500 1.0625rem/1.75 var(--f-body);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { text-decoration-thickness: 2px; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }
.book :focus-visible { outline-color: var(--chalk); }
.snt { display: inline-block; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; padding: 12px 16px; background: var(--ink); color: var(--paper); font: 700 1rem/1.4 var(--f-zh); }
.skip:focus { top: 12px; }
.num { font-family: var(--f-lat); font-variant-numeric: lining-nums tabular-nums; }
.ic { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- buttons: printed slugs, square ---------- */

.acts { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.55em 1.15em 0.5em;
  border: 2px solid var(--cobalt);
  background: var(--cobalt); color: var(--chalk);
  font: 700 1rem/1.2 var(--f-zh); letter-spacing: 0.08em; text-decoration: none;
  transition: background-color 0.18s, color 0.18s, border-color 0.18s;
}
.btn:hover { background: var(--cobalt-deep); border-color: var(--cobalt-deep); }
.btn:active, .d-btn:active { translate: 0 1px; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn .num { letter-spacing: 0.04em; padding-top: 0.12em; }

/* ---------- printed rules ---------- */

.rules, .sh-r { display: flex; flex-direction: column; justify-content: center; gap: 6px; min-width: 0; }
.rules i, .sh-r i { display: block; height: var(--rule-b); background: var(--ink); }
.rules i:nth-child(2) { height: 2px; }
.rules i:nth-child(3) { height: 1px; }
.sh-r i:nth-child(2) { height: 1px; }

/* section title: the word between rules, like the masthead */
.sh {
  display: grid; grid-template-columns: minmax(24px, 1fr) auto minmax(24px, 1fr); align-items: center; gap: clamp(14px, 2.4vw, 32px);
  margin-inline: calc(-1 * var(--gut));
}
.sh h2 {
  font: 700 clamp(1.75rem, 1.2rem + 2.4vw, 3rem)/1.2 var(--f-zh);
  letter-spacing: 0.42em; margin-right: -0.42em;
  overflow-wrap: break-word; min-width: 0; text-wrap: balance;
}
.sec-copy { margin-top: 14px; text-align: center; font: 500 1.0625rem/1.7 var(--f-zh); letter-spacing: 0.06em; text-wrap: balance; }

.sec { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 9vw, 120px) var(--gut) 0; }

/* ---------- masthead ---------- */

.mast { position: relative; overflow: clip; padding-top: clamp(44px, 4.6vw, 68px); }
.coaster {
  position: absolute; z-index: 2; top: calc(-0.36 * var(--cd)); width: var(--cd); aspect-ratio: 1; border-radius: 50%;
  --cd: clamp(118px, 17vw, 240px);
  background-color: var(--felt); background-image: var(--fuzz);
  box-shadow: inset 0 0 0 calc(var(--cd) * 0.035) var(--felt-edge), inset 0 0 0 calc(var(--cd) * 0.05) var(--felt-lip);
}
.c-l { left: calc(-0.3 * var(--cd)); }
.c-r { right: calc(-0.34 * var(--cd)); top: calc(-0.3 * var(--cd)); }

.mast-name { display: grid; grid-template-columns: minmax(18px, 1fr) auto minmax(18px, 1fr); align-items: center; gap: clamp(12px, 2.2vw, 36px); }
.mast h1 { min-width: 0; }
.mast-en {
  display: block; padding-top: 0.12em;
  font: 700 clamp(2.9rem, 12.6vw, 11.5rem)/0.86 var(--f-lat); text-transform: uppercase;
  letter-spacing: 0.035em; margin-right: -0.035em; white-space: nowrap;
}
.mast-in {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gut);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 4.4fr) minmax(0, 1fr); column-gap: clamp(12px, 2.5vw, 40px);
  grid-template-areas: 'q q q' 'zh zh zh' 'cow ph lob' 'st st st';
}
.mast-quote { grid-area: q; margin-top: clamp(14px, 1.6vw, 22px); text-align: center; font: italic 400 clamp(0.95rem, 0.8rem + 0.6vw, 1.3rem)/1.5 var(--f-quote); text-wrap: balance; }
.mast-zh { grid-area: zh; margin-top: 4px; text-align: center; font: 700 clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem)/1.25 var(--f-zh); letter-spacing: 0.9em; margin-right: -0.9em; }
/* the scans carry light grey smudges; push everything but the ink to white so multiply drops it */
.eng { mix-blend-mode: multiply; filter: grayscale(1) brightness(1.22) contrast(2.2); }
.eng-l { grid-area: cow; align-self: center; justify-self: end; width: min(100%, 210px); }
.eng-r { grid-area: lob; align-self: center; justify-self: start; width: min(88%, 170px); }
.mast-photo { grid-area: ph; margin-top: clamp(12px, 1.4vw, 20px); }

/* the newspaper picture: hairline frame, a gap, a second hairline */
.frame { border: var(--rule) solid var(--ink); padding: 5px; }
.frame img { border: var(--rule) solid var(--ink); width: 100%; }
.ph figcaption, .mast-photo figcaption { margin-top: 6px; font: 500 0.8125rem/1.4 var(--f-zh); letter-spacing: 0.08em; }
.mast-photo img { aspect-ratio: 2.35; object-fit: cover; object-position: 50% 58%; }
/* short laptop screens: a wider crop keeps the buttons on the first screen */
@media (min-width: 700px) and (max-height: 840px) { .mast-photo img { aspect-ratio: 2.7; } }

.mast-strip {
  grid-area: st; margin-top: clamp(14px, 1.6vw, 22px); padding: 14px 0 0;
  border-top: var(--rule-b) solid var(--ink);
  display: grid; grid-template-columns: minmax(0, 1.25fr) auto auto; align-items: center; gap: 12px clamp(18px, 2.4vw, 36px);
}
.mast-copy { font: 700 clamp(1.0625rem, 0.95rem + 0.4vw, 1.3rem)/1.6 var(--f-zh); letter-spacing: 0.04em; text-wrap: balance; }
.status { display: inline-flex; align-items: center; gap: 0.5em; font: 700 1rem/1.5 var(--f-zh); letter-spacing: 0.04em; }
.status.is-open { color: var(--cobalt); }
.st-hero { padding-inline: clamp(18px, 2.4vw, 36px); border-inline: var(--rule) solid var(--ink); align-self: stretch; }

/* ---------- menu: the sheet ---------- */

.sheet {
  margin-top: clamp(28px, 4vw, 48px);
  display: grid; gap: 0 clamp(20px, 2.4vw, 36px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.25fr) minmax(0, 1fr);
  grid-template-areas: 'l m r' 'l row r' 'fn fn fn'; grid-template-rows: 1fr auto auto;
}
.box-l { grid-area: l; }
.mains { grid-area: m; }
.box-r { grid-area: r; }
.row3 { grid-area: row; }
.fn { grid-area: fn; }

.box { border: var(--box) solid var(--ink); padding: clamp(16px, 1.6vw, 22px); display: flex; flex-direction: column; gap: 26px; }
.cat h3, .cell h3, .cork h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.cat-en { font: 700 clamp(1.3rem, 1.1rem + 0.6vw, 1.65rem)/1.1 var(--f-lat); text-transform: uppercase; letter-spacing: 0.06em; padding-top: 0.15em; }
.cat-zh { font: 700 0.875rem/1.4 var(--f-zh); letter-spacing: 0.2em; }
.cat-sub { margin-top: 4px; font: 500 0.8125rem/1.55 var(--f-zh); }
.items { margin-top: 10px; display: flex; flex-direction: column; gap: 9px; }
.it { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 12px; }
.it-n { display: flex; flex-direction: column; min-width: 0; }
.it-en { font: 600 0.9375rem/1.3 var(--f-lat); text-transform: uppercase; letter-spacing: 0.05em; padding-top: 0.1em; overflow-wrap: break-word; }
.it-note { text-transform: none; letter-spacing: 0.02em; font-weight: 600; font-size: 0.8125rem; }
.it-zh { font: 500 0.8125rem/1.45 var(--f-zh); letter-spacing: 0.06em; }
.it-p { font: 700 1.0625rem/1 var(--f-lat); }

/* the two mains, split by the COMES WITH line */
.mains { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 0 clamp(14px, 1.8vw, 26px); text-align: center; }
.main { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; }
/* the pen sketches: black ink on white, printed onto the kraft by multiply */
.sk { mix-blend-mode: multiply; filter: grayscale(1) contrast(1.12) brightness(1.04); }
.sk-plate { width: 88%; margin-bottom: 8px; }
.sk-pop { width: 100%; max-width: 170px; margin-bottom: 4px; }
.sk-esp { width: 150px; align-self: center; margin-top: auto; }
.rv-art { break-inside: avoid; margin-bottom: 26px; padding-bottom: 20px; border-bottom: var(--rule) solid var(--ink); }
.sk-cow { width: min(100%, 300px); margin-inline: auto; }
.main h3 { display: flex; flex-direction: column; align-items: center; }
.m-en { display: flex; flex-direction: column; align-items: center; font-family: var(--f-lat); text-transform: uppercase; }
.m-l { padding-top: 0.12em; overflow-wrap: break-word; max-width: 100%; }
.m-l0 { font-weight: 700; font-size: clamp(1.4rem, 1.1rem + 0.8vw, 1.8rem); line-height: 1.02; letter-spacing: 0.04em; }
.m-l1 { font-weight: 700; font-size: clamp(1.2rem, 0.95rem + 0.6vw, 1.5rem); line-height: 1.08; letter-spacing: 0.05em; }
.m-l2 { font-weight: 600; font-size: 0.9375rem; line-height: 1.3; letter-spacing: 0.07em; margin-top: 6px; }
.m-l3 { font-weight: 600; font-size: 0.875rem; line-height: 1.3; letter-spacing: 0.08em; }
.m-zh { margin-top: 10px; font: 700 1.125rem/1.4 var(--f-zh); letter-spacing: 0.12em; }
.m-sub { font: 500 0.875rem/1.5 var(--f-zh); letter-spacing: 0.1em; }
.m-price { margin-top: 12px; font: 700 clamp(1.9rem, 1.4rem + 1.4vw, 2.7rem)/1 var(--f-lat); letter-spacing: 0.04em; padding-block: 10px 6px; border-block: var(--rule) solid var(--ink); }
.m-price [lang] { font-size: max(0.5em, 0.8125rem); vertical-align: 0.55em; letter-spacing: 0.08em; }
.m-note { margin-top: 12px; display: flex; flex-direction: column; gap: 2px; max-width: 30ch; }
.m-note-en { font: 600 0.8125rem/1.35 var(--f-lat); text-transform: uppercase; letter-spacing: 0.06em; padding-top: 0.1em; }
.m-note-zh { font: 500 0.8125rem/1.5 var(--f-zh); }
.m-note-p { white-space: nowrap; font: 700 0.9375rem/1 var(--f-lat); }
.m-note-p [lang] { font-size: 0.8125rem; }

.cw { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cw-line { flex: 1; width: var(--rule-b); min-height: 40px; background: var(--ink); }
.cw-box { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cw-h { display: flex; flex-direction: column; align-items: center; font: 700 1.0625rem/1.1 var(--f-lat); text-transform: uppercase; letter-spacing: 0.14em; }
.cw-h [lang] { padding-top: 0.15em; }
.cw-zh { margin-top: 4px; font: 700 0.8125rem/1.4 var(--f-zh); letter-spacing: 0.12em; text-transform: none; }
.cw-box ul { display: flex; flex-direction: column; gap: 8px; }
.cw-box li { display: flex; flex-direction: column; }
.cw-en { font: 600 0.8125rem/1.2 var(--f-lat); text-transform: uppercase; letter-spacing: 0.06em; padding-top: 0.1em; }
.cw-it { font: 500 0.8125rem/1.45 var(--f-zh); }

/* the row of three under the mains */
.row3 {
  margin-top: clamp(26px, 3vw, 40px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr);
  border-top: var(--rule-b) solid var(--ink); border-bottom: var(--rule) solid var(--ink);
}
.cell { padding: 18px clamp(12px, 1.4vw, 22px) 20px; }
.row3 .cat-en { font-size: clamp(1.1rem, 0.95rem + 0.3vw, 1.3rem); }
.cell + .cell { border-left: var(--rule) solid var(--ink); }
/* SURF N’ TURF ADD ON is printed between a rule above and a rule below */
.cell h3.ruled { justify-content: center; text-align: center; padding: 6px 0 4px; border-block: var(--rule) solid var(--ink); }

.fn { margin-top: clamp(22px, 2.6vw, 34px); padding: 12px 0; border-block: var(--rule) solid var(--ink); text-align: center; font: 500 0.8125rem/1.7 var(--f-zh); letter-spacing: 0.06em; text-wrap: balance; }
.fn > span:not(.fn-dot) { white-space: nowrap; }

/* ---------- the fries band ---------- */

.fries { position: relative; margin-top: clamp(72px, 9vw, 120px); height: clamp(180px, 22vw, 280px); overflow: clip; border-block: var(--rule-b) solid var(--ink); display: grid; place-items: center; }
.fries-bg { position: absolute; inset: 0; }
.fry {
  position: absolute; left: var(--x); top: var(--y); width: var(--l); height: 11px; border-radius: 3px;
  background: linear-gradient(90deg, var(--fry-edge), var(--fry) 10%, var(--fry) 86%, var(--fry-edge));
  rotate: var(--r);
}
.fry:nth-child(3n) { height: 9px; }
.fry:nth-child(4n+1) { height: 13px; }
.fries-t {
  position: relative; z-index: 1; padding: 10px clamp(16px, 3vw, 34px) 8px; background-color: var(--paper); background-image: var(--grain);
  border: var(--rule) solid var(--ink); outline: var(--rule) solid var(--ink); outline-offset: 4px;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 18px; text-align: center;
  margin-inline: var(--gut);
}
.fries-t [lang] { font: 700 clamp(1.45rem, 1rem + 2.2vw, 2.8rem)/1.1 var(--f-lat); text-transform: uppercase; letter-spacing: 0.08em; padding-top: 0.15em; }
.fries-zh { font: 700 clamp(1rem, 0.85rem + 0.7vw, 1.4rem)/1.4 var(--f-zh); letter-spacing: 0.3em; }

/* ---------- doneness ---------- */

.done-grid {
  margin-top: clamp(28px, 4vw, 48px);
  display: grid; gap: clamp(24px, 3vw, 44px) clamp(24px, 4vw, 64px);
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  grid-template-areas: 'fig side' 'note side' 'cut b20';
  --core: var(--d2-core); --mid: var(--d2-mid); --s1: 0.74; --s2: 0.5;
  transition: --core 0.9s cubic-bezier(.22,.7,.2,1), --mid 0.9s cubic-bezier(.22,.7,.2,1), --s1 0.9s cubic-bezier(.22,.7,.2,1), --s2 0.9s cubic-bezier(.22,.7,.2,1);
}
.done-grid[data-done="0"] { --core: var(--d0-core); --mid: var(--d0-mid); --s1: 0.9; --s2: 0.74; }
.done-grid[data-done="1"] { --core: var(--d1-core); --mid: var(--d1-mid); --s1: 0.84; --s2: 0.64; }
.done-grid[data-done="2"] { --core: var(--d2-core); --mid: var(--d2-mid); --s1: 0.74; --s2: 0.5; }
.done-grid[data-done="3"] { --core: var(--d3-core); --mid: var(--d3-mid); --s1: 0.62; --s2: 0.36; }
.done-grid[data-done="4"] { --core: var(--d4-core); --mid: var(--d4-mid); --s1: 0.5; --s2: 0.28; }
@media (prefers-reduced-motion: reduce) { .done-grid { transition-duration: 0.2s; } }

.done-fig { grid-area: fig; align-self: center; }
.steak { display: block; width: 100%; height: auto; overflow: visible; }
.steak path { transform-box: fill-box; transform-origin: 50% 50%; }
.s-ink { fill: none; stroke: var(--ink); stroke-width: 14; stroke-linejoin: round; }
.s-crust { fill: var(--crust); stroke: var(--crust); stroke-width: 10; stroke-linejoin: round; }
.s-char { fill: none; stroke: var(--char); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 2 13 9 21 4 17 1 9; opacity: 0.5; }
.s-band { fill: var(--band); scale: 0.955; }
.s-mid { fill: var(--mid); scale: var(--s1); }
.s-core { fill: var(--core); scale: var(--s2); }
.s-fat { fill: none; stroke: var(--fat); stroke-width: 5; stroke-linecap: round; opacity: 0.9; }
.s-fat.thin { stroke-width: 2.2; opacity: 0.6; }
.s-kernel { fill: var(--fat); opacity: 0.9; }
.s-marb { fill: none; stroke: var(--fat); stroke-width: 2; stroke-linecap: round; opacity: 0.55; }

.done-side { grid-area: side; align-self: center; display: flex; flex-direction: column; gap: 26px; }
.done-read { display: flex; flex-direction: column; padding-bottom: 18px; border-bottom: var(--rule-b) solid var(--ink); }
.dr-zh { font: 700 clamp(2.6rem, 1.8rem + 3.2vw, 4.6rem)/1.1 var(--f-zh); letter-spacing: 0.08em; }
.dr-desc { font: 700 clamp(1.15rem, 1rem + 0.7vw, 1.6rem)/1.5 var(--f-zh); letter-spacing: 0.12em; }
.dr-en { margin-top: 6px; font: 600 1rem/1.4 var(--f-lat); text-transform: uppercase; letter-spacing: 0.08em; padding-top: 0.1em; }

.d-list { display: flex; flex-direction: column; }
.d-btn {
  display: grid; grid-template-columns: 22px 6.2em minmax(0, 1fr); align-items: center; gap: 12px;
  width: 100%; min-height: 48px; padding: 6px 4px; border: 0; border-bottom: var(--rule) solid var(--ink);
  background: none; color: var(--ink); cursor: pointer; text-align: left; font: inherit;
  transition: background-color 0.18s;
}
.d-list li:first-child .d-btn { border-top: var(--rule) solid var(--ink); }
.d-btn:hover { background: var(--ink-wash); }
.bul { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; justify-self: center; }
.d-zh { font: 700 1.0625rem/1.3 var(--f-zh); letter-spacing: 0.08em; }
.d-en { font: 600 0.9375rem/1.3 var(--f-lat); text-transform: uppercase; letter-spacing: 0.08em; padding-top: 0.12em; }
.d-btn[aria-pressed="true"] .bul { fill: currentColor; }
.d-btn[aria-pressed="true"] .d-zh, .d-btn[aria-pressed="true"] .d-en { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.3em; }

.done-note { grid-area: note; padding: 18px 0 0; border-top: var(--rule) solid var(--ink); }
.note-zh { font: 500 1.0625rem/1.85 var(--f-zh); letter-spacing: 0.04em; max-width: 40em; }
.note-en { margin-top: 10px; font: italic 400 0.9375rem/1.6 var(--f-quote); max-width: 62ch; }
.d-cut { grid-area: cut; }
.d-20 { grid-area: b20; }
.d-cut img { aspect-ratio: 960 / 668; object-fit: cover; object-position: 50% 80%; }
.d-20 img { aspect-ratio: 960 / 668; object-fit: cover; }

/* ---------- photos: a picture page ---------- */

.gallery {
  margin-top: clamp(28px, 4vw, 48px);
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: clamp(120px, 12.6vw, 176px);
  gap: clamp(14px, 1.6vw, 22px);
}
.ph { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.gallery .ph { grid-column: span 2; grid-row: span 2; }
.gallery .frame { flex: 1; min-height: 0; display: flex; }
.gallery .frame img { width: 100%; height: 100%; object-fit: cover; }
.gallery .g-steak-frites { grid-column: span 3; }
.gallery .g-truffled-mac, .gallery .g-soup, .gallery .g-storefront { grid-column: span 1; }
.gallery .g-dining-room { grid-row: span 4; }
.g-truffled-mac img { object-position: 50% 60%; }
.g-storefront img { object-position: 22% 50%; }

/* ---------- reviews: newspaper columns ---------- */

.rv-cols { margin-top: clamp(28px, 4vw, 48px); columns: 3; column-gap: clamp(28px, 3.6vw, 52px); column-rule: var(--rule) solid var(--ink); }
.rv { break-inside: avoid; padding-bottom: 26px; margin-bottom: 26px; border-bottom: var(--rule) solid var(--ink); }
.rv-by { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.rv-name { font: 700 0.9375rem/1.3 var(--f-lat); text-transform: uppercase; letter-spacing: 0.08em; padding-top: 0.12em; }
.rv-when { font: 500 0.8125rem/1.4 var(--f-zh); }
.stars { display: flex; gap: 2px; margin: 6px 0 8px; }
.star { width: 15px; height: 15px; fill: currentColor; }
.rv-t { font: 500 1rem/1.85 var(--f-body); }
.rv[lang="en"] .rv-t { font: italic 400 1rem/1.7 var(--f-quote); }
.reviews .sec-copy a { display: inline-block; padding-block: 10px; font-weight: 700; }

/* ---------- booking: the cobalt wall ---------- */

.book { position: relative; overflow: clip; margin-top: clamp(72px, 9vw, 120px); background: var(--cobalt); color: var(--chalk); }
.book .sh-r i { background: var(--chalk); }
.lamps { display: flex; justify-content: space-around; padding: 0 var(--gut); height: clamp(96px, 11vw, 150px); }
.lamps i { position: relative; display: block; width: clamp(30px, 3.4vw, 46px); height: 100%; }
.lamps i::before { content: ''; position: absolute; left: 50%; top: 0; width: 1.5px; height: calc(100% - clamp(30px, 3.4vw, 46px)); background: var(--chalk); opacity: 0.7; }
.lamps i::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 100%; aspect-ratio: 1; border-radius: 50%;
  background: var(--lamp); box-shadow: 0 0 22px 8px var(--lamp-glow), 0 0 70px 24px var(--lamp-glow-far);
  transition: background-color 0.5s, box-shadow 0.5s;
  transition-delay: calc(var(--i) * 0.16s);
}
.lamps i:nth-child(even) { height: 82%; }
.lamps.off i::after { background: var(--lamp-off); box-shadow: none; }
.js .lamps:not(.in) i::after { background: var(--lamp-off); box-shadow: none; transition: none; }

.lamps .fan-slot { flex: none; width: clamp(120px, 15vw, 210px); height: auto; display: flex; flex-direction: column; align-items: center; }
.lamps .fan-slot::before { content: ''; width: 1.5px; flex: 1; min-height: 14px; background: var(--chalk); opacity: 0.7; }
.fan { display: block; width: 100%; height: auto; color: var(--chalk); opacity: 0.85; margin-bottom: -18%; }
.fan-r { transform-origin: 100px 100px; }
@media (prefers-reduced-motion: no-preference) { .fan-r { animation: spin 16s linear infinite; } }
@keyframes spin { to { rotate: 360deg; } }

.book-in { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; padding: clamp(36px, 5vw, 64px) var(--gut) clamp(56px, 7vw, 96px); }
.book .sec-copy { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); }
.book-grid { margin-top: clamp(32px, 4vw, 52px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 4vw, 64px); }
.b-act { display: flex; flex-direction: column; gap: 26px; }
.book .status { font-size: 1.125rem; }
.book .status.is-open { color: var(--chalk); }
.book .btn { background: var(--chalk); color: var(--cobalt); border-color: var(--chalk); }
.book .btn:hover { background: var(--paper); border-color: var(--paper); }
.book .btn.ghost { background: transparent; color: var(--chalk); border-color: var(--chalk); }
.book .btn.ghost:hover { background: var(--chalk); color: var(--cobalt); }
.facts { display: flex; flex-direction: column; border-top: var(--rule) solid currentColor; }
.facts > div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: var(--rule) solid currentColor; }
.facts dt { font: 700 0.9375rem/1.6 var(--f-zh); letter-spacing: 0.08em; }
.facts dd { font: 500 1rem/1.6 var(--f-zh); }
.tags { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.cork { border: var(--box) solid var(--chalk); padding: 18px 20px; }
.cork ul { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; font: 500 0.9375rem/1.6 var(--f-zh); }
.cork li::before { content: '—'; margin-right: 0.5em; }
.b-hours { display: flex; flex-direction: column; gap: 26px; }
.week { width: 100%; border-collapse: collapse; font: 500 1rem/1.5 var(--f-zh); }
.week caption { text-align: left; padding-bottom: 8px; font: 700 0.9375rem/1.6 var(--f-zh); letter-spacing: 0.08em; }
.week th, .week td { padding: 9px 0; border-bottom: var(--rule) solid var(--chalk-rule); text-align: left; vertical-align: baseline; }
.week tr:first-child > * { border-top: var(--rule) solid currentColor; }
.week th { width: 8.5em; font-weight: 700; letter-spacing: 0.06em; }
.week td > span { display: inline-block; margin-right: 18px; }
.week td .num { font-size: 1.0625rem; padding-top: 0.1em; display: inline-block; }
.week .is-today { background: var(--chalk-wash); }
.week .is-today th, .week .is-today td { border-bottom-color: currentColor; }
.today-tag { margin-left: 10px; padding: 1px 7px; border: var(--rule) solid currentColor; font-size: 0.8125rem; }
.map { border: var(--rule) solid var(--chalk); padding: 5px; }
.map iframe { display: block; width: 100%; height: clamp(260px, 26vw, 380px); border: 0; filter: grayscale(0.35) contrast(1.05); }

.floor { height: clamp(84px, 10vw, 140px); background-image: var(--floor); background-size: 120px 120px; border-top: 6px solid var(--chalk); }

/* ---------- footer ---------- */

.foot { padding: clamp(40px, 5vw, 64px) var(--gut) clamp(48px, 6vw, 72px); }
.foot-in { max-width: 46rem; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; font: 500 0.9375rem/1.75 var(--f-zh); text-align: center; }
.foot-in a { display: inline-flex; align-items: center; gap: 0.35em; min-height: 44px; }
.foot .warn { margin-block: 8px; padding-block: 8px; border-block: var(--rule) solid var(--ink); font-weight: 700; letter-spacing: 0.12em; }

/* ---------- tablet ---------- */

@media (max-width: 1099px) {
  .mast-strip { grid-template-columns: auto minmax(0, 1fr); }
  .mast-copy { grid-column: 1 / -1; }
  .st-hero { padding-left: 0; border-left: 0; }
  .sheet { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: 'm m' 'r l' 'row row' 'fn fn'; grid-template-rows: none; gap: 32px clamp(18px, 3vw, 28px); }
  .row3, .fn { margin-top: 0; }
  .mains { max-width: 820px; justify-self: center; width: 100%; }
  .done-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-areas: 'fig side' 'note note' 'cut b20'; }
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(110px, 17vw, 170px); grid-auto-flow: dense; }
  .gallery .g-steak-frites, .gallery .g-bar { grid-column: span 4; }
  .gallery .g-scallops { grid-column: span 3; }
  .rv-cols { columns: 2; }
  .book-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* ---------- phone ---------- */

@media (max-width: 699px) {
  .mast { padding-top: 66px; }
  .coaster { --cd: 104px; top: calc(-0.5 * var(--cd)); }
  .c-l { left: calc(-0.42 * var(--cd)); }
  .c-r { right: calc(-0.46 * var(--cd)); top: calc(-0.44 * var(--cd)); }
  .mast-in { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-areas: 'q q q' 'cow zh lob' 'ph ph ph' 'st st st'; column-gap: 10px; }
  .mast-zh { align-self: center; font-size: 1.6rem; letter-spacing: 0.6em; margin-right: -0.6em; }
  .eng-l { width: min(100%, 92px); }
  .eng-r { width: min(100%, 70px); }
  .mast-photo { margin-top: 12px; }
  .mast-photo img { aspect-ratio: 16 / 10; }
  .mast-strip { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-top: 14px; }
  .st-hero { border: 0; padding: 0; order: -1; }
  .mast-copy { font-size: 1.0625rem; }
  .mast .acts .btn { flex: 1 1 auto; }

  .sheet { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'm' 'row' 'r' 'l' 'fn'; gap: 28px; }
  .mains { grid-template-columns: minmax(0, 1fr); }
  .cw { flex-direction: row; align-items: flex-start; gap: 14px; padding-block: 26px; }
  .cw-line { width: auto; height: var(--rule-b); min-height: 0; min-width: 20px; margin-top: 0.5rem; }
  .sk-plate { width: min(88%, 320px); }
  .sk-pop { max-width: 150px; }
  .row3 { grid-template-columns: minmax(0, 1fr); border-bottom: 0; }
  .cell { padding-inline: 0; border-bottom: var(--rule) solid var(--ink); }
  .cell + .cell { border-left: 0; }
  .fn { border-top: var(--rule) solid var(--ink); }

  .done-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'fig' 'side' 'note' 'cut' 'b20'; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 31vw; }
  .gallery .ph, .gallery .g-steak-frites { grid-column: span 2; }
  .gallery .g-truffled-mac, .gallery .g-soup, .gallery .g-storefront, .gallery .g-dining-room { grid-column: span 1; }
  .gallery .g-dining-room { grid-row: span 3; }
  .rv-cols { columns: 1; }
  .book-grid { grid-template-columns: minmax(0, 1fr); }
  .facts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .lamps i:nth-child(3), .lamps i:nth-child(4), .lamps i:nth-child(6), .lamps i:nth-child(7) { display: none; }
  .lamps .fan-slot { width: 112px; }
}

/* ---------- motion ---------- */

/* The masthead prints once on load: rules run out from the name, the name is pressed in, the engravings take ink,
   the coasters are set down last. 1.35s in all. */
@media (prefers-reduced-motion: no-preference) {
  .js .rules i { animation: rule-out 0.6s cubic-bezier(.2,.75,.2,1) both; animation-delay: calc(0.08s + var(--k, 0) * 0.07s); }
  .js .rules.l i { transform-origin: 100% 50%; }
  .js .rules.r i { transform-origin: 0 50%; }
  .js .rules i:nth-child(2) { --k: 1; }
  .js .rules i:nth-child(3) { --k: 2; }
  .js .mast-en { animation: press 0.6s cubic-bezier(.2,.7,.2,1) 0.1s both; }
  .js .mast-quote, .js .mast-zh { animation: ink-in 0.5s ease-out 0.45s both; }
  .js .mast .eng { animation: take-ink 0.6s ease-out 0.4s both; }
  .js .coaster { animation: set-down 0.4s cubic-bezier(.2,.8,.25,1) 0.95s both; }
}
@keyframes rule-out { from { transform: scaleX(0); } }
@keyframes press { from { opacity: 0.12; translate: 0 3px; } 60% { opacity: 0.85; } }
@keyframes ink-in { from { opacity: 0; } }
@keyframes take-ink { from { opacity: 0; filter: contrast(0.35) brightness(1.3); } }
@keyframes set-down { from { opacity: 0; scale: 1.08; } }

/* the popovers rise once when they come into view */
@media (prefers-reduced-motion: no-preference) {
  .js .puff .frame img { transform-origin: 50% 100%; scale: 1 0.9; transition: scale 1.1s cubic-bezier(.2,.75,.25,1); }
  .js .puff.in .frame img { scale: 1 1; }
}

/* Scroll-driven, only where supported (the .sda class) and motion is allowed: section rules draw out,
   the fries slide past at their own speeds, the picture page goes from halftone grey to colour. */
@media (prefers-reduced-motion: no-preference) {
  .sda .sh-r i { animation: rule-out linear both; animation-timeline: view(); animation-range: entry 10% cover 35%; }
  .sda .sh-r.l i { transform-origin: 100% 50%; }
  .sda .sh-r.r i { transform-origin: 0 50%; }
  .sda .sk { animation: take-ink linear both; animation-timeline: view(); animation-range: entry 0% entry 90%; }
  .sda .fry { animation: fry-slide linear both; animation-timeline: view(); animation-range: cover; }
  .sda .gallery .frame img, .sda .done-grid .frame img { animation: develop linear both; animation-timeline: view(); animation-range: entry calc(var(--k, 0) * 6%) cover 45%; }
  .sda .gallery .ph:nth-child(3n+2) .frame img { --k: 1; }
  .sda .gallery .ph:nth-child(3n) .frame img { --k: 2; }
}
@keyframes fry-slide {
  from { translate: calc(var(--s) * -90px) calc(var(--s) * 50px); }
  to { translate: calc(var(--s) * 90px) calc(var(--s) * -50px); }
}
@keyframes develop { from { filter: grayscale(1) contrast(1.6) brightness(1.05); } }
