/* T04 Gallery — a walk through rooms of framed dishes.
   Ground: a painted museum wall (sage), the only mid-tone ground in the library.
   Type: Schibsted Grotesk throughout — the plain, confident voice of a wall label.
   Geometry: frames are near-square (4px), everything you touch is soft (14–18px). */
:root {
  --bg: #C9CDBB;          /* the wall */
  --bg-2: #BCC1AC;        /* a deeper wall for alternating rooms */
  --bg-card: #FBFAF5;     /* mats, labels, cards */
  --wall-dark: #232C27;   /* the one dark room: tonight */
  --ink: #1B201C;
  --ink-soft: #313832;
  --ink-muted: #434B44;
  --on-dark: #EEF0E7;
  --on-dark-soft: #C9CFC2;
  --line: rgba(27,32,28,.2);
  --frame: #22231E;

  --brand: #0F5F5A;
  --brand-ink: #FFFFFF;
  --brand-readable: var(--brand);
  --brand-on-dark: var(--brand);
  --wa: #0F7A40;          /* white text needs 4.5:1; #128C4A gives 4.31 */

  --font-display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: var(--font-display);
  --r: 18px; --r-btn: 14px; --r-frame: 4px; --r-pill: 99px;
  --pad: clamp(20px, 4.5vw, 56px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; margin: 0; letter-spacing: -.02em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 700; margin-bottom: 22px; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
.wrap { width: min(1240px, 100% - 2 * var(--pad)); margin-inline: auto; }
section { padding-block: clamp(56px, 9vw, 110px); }
*:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; clip-path: inset(50%); }
.skip:focus { clip-path: none; inset-inline-start: 12px; top: 12px; z-index: 200; background: var(--bg-card); padding: 10px 16px; border-radius: 10px; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 20px;
  border-radius: var(--r-btn); border: 1.5px solid transparent; font-weight: 600; text-decoration: none; cursor: pointer; background: none; }
.btn svg { width: 20px; height: 20px; }
.btn-lg { min-height: 54px; padding: 14px 24px; font-size: 1.05rem; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #0B6534; }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--bg); }
.btn-quiet { color: var(--ink-muted); text-decoration: underline; text-underline-offset: 3px; }
.link { color: var(--ink); font-weight: 600; text-underline-offset: 3px; display: inline-flex; min-height: 44px; align-items: center; }

/* ── The doors ───────────────────────────────────────────────────────────── */
.doors { position: fixed; inset: 0; z-index: 150; display: grid; grid-template-columns: 1fr 1fr; pointer-events: none; }
.door { background: var(--bg-2); transition: transform 1.15s cubic-bezier(.7,0,.2,1); }
.door.l { border-inline-end: 1px solid var(--line); }
.doors.open .door.l { transform: translateX(-101%); }
.doors.open .door.r { transform: translateX(101%); }

/* ── Bar ─────────────────────────────────────────────────────────────────── */
.bar { position: sticky; top: 0; z-index: 40; background: var(--bg); border-bottom: 1px solid var(--line); }
.bar-in { display: flex; align-items: center; gap: 22px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; text-decoration: none; min-height: 44px; }
.brand img, .brand .generated-mark svg { width: 36px; height: 36px; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; overflow-x: auto; scrollbar-width: none; }
.nav a { text-decoration: none; padding: 10px 12px; font-weight: 500; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.lang { display: flex; gap: 2px; }
.lang button { min-height: 44px; min-width: 44px; padding: 8px 10px; border: 0; background: none; cursor: pointer; border-radius: 10px; font-size: .95rem; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* ── Frames and labels: the one vocabulary the whole template speaks ─────── */
.frame { margin: 0; display: grid; gap: 14px; align-content: start; }
.mat { display: block; width: 100%; padding: 9%; background: var(--bg-card); border: 7px solid var(--frame); border-radius: var(--r-frame);
  box-shadow: 0 14px 22px -14px rgba(20,24,20,.55); cursor: pointer; transition: transform .35s ease; }
.mat:hover { transform: translateY(-3px); }
.mat img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.nophoto { display: grid; place-items: center; aspect-ratio: 1; padding: 12px; text-align: center; font-weight: 700; color: var(--ink-muted); background: #EEEDE6; }
.label { background: var(--bg-card); padding: 12px 14px; border-radius: 6px; display: grid; gap: 4px; max-width: 34ch; font-size: .95rem; }
.l-name { font-weight: 700; font-size: 1.02rem; line-height: 1.25; }
.l-desc { color: var(--ink-soft); line-height: 1.4; }
.l-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.l-price { font-weight: 700; font-variant-numeric: lining-nums proportional-nums; }
.l-tag { font-size: .85rem; color: var(--ink-muted); }
.l-add { margin-inline-start: auto; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--brand); color: var(--brand-ink);
  font-size: 1.5rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.l-add:active { transform: scale(.92); }
.frame.soldout .mat { opacity: .55; }

/* ── Foyer ───────────────────────────────────────────────────────────────── */
.foyer { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 88px); align-items: center; padding-top: clamp(40px, 7vw, 90px); }
.foyer h1 { font-size: clamp(2.7rem, 6vw, 5rem); font-weight: 800; letter-spacing: -.035em; max-width: 13ch; text-wrap: balance; }
.lede { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--ink-soft); max-width: 46ch; margin: 22px 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.walltext { margin-top: 34px; max-width: 44ch; border-inline-start: 3px solid var(--ink); padding: 4px 0 4px 18px; }
.walltext h2 { font-size: 1.05rem; margin: 0 0 6px; letter-spacing: 0; }
.walltext p { margin: 0 0 6px; color: var(--ink-soft); }
.speaks b { font-weight: 600; color: var(--ink); }
.facts { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--ink-muted); font-size: .95rem; }
.facts b { color: var(--ink); }
.frame-hero .label { max-width: none; }

/* ── The salon wall ──────────────────────────────────────────────────────── */
.salon { background: var(--bg-2); }
.salon-wall { display: flex; flex-wrap: wrap; gap: 36px 32px; align-items: flex-end; justify-content: center; }
.salon-wall .frame { flex: 0 1 auto; }
.salon-wall .s-l { width: min(30%, 360px); } .salon-wall .s-m { width: min(22%, 270px); } .salon-wall .s-s { width: min(16%, 200px); }
.salon-wall .l-desc { display: none; }

/* ── Tonight: the dark room ──────────────────────────────────────────────── */
.tonight { background: var(--wall-dark); color: var(--on-dark); }
.tonight h2 { color: var(--on-dark); }
.signals { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.signals span { border: 1px solid rgba(238,240,231,.28); border-radius: var(--r-btn); padding: 10px 16px; color: var(--on-dark-soft); }
.signals .live { color: var(--on-dark); border-color: var(--on-dark); }
.signals .live::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #7BD69A; margin-inline-end: 8px; vertical-align: 1px; }
.rituals { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.ritual { border: 1px solid rgba(238,240,231,.22); border-radius: var(--r); padding: 18px; display: grid; gap: 6px; }
.ritual.today { border-color: var(--on-dark); }
.ritual .when { color: var(--on-dark-soft); font-size: .9rem; }
.ritual p { margin: 0; color: var(--on-dark-soft); }

/* ── The rooms ───────────────────────────────────────────────────────────── */
.rooms-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.rooms-head h2 { margin: 0; }
.search input { min-height: 48px; width: min(320px, 80vw); border-radius: var(--r-btn); border: 1.5px solid var(--ink); background: var(--bg-card);
  padding: 10px 16px; font: inherit; }
.roomtabs { position: relative; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 26px 0 8px; border-bottom: 1px solid var(--line); }
.roomtabs button { flex: none; min-height: 48px; padding: 10px 14px; border: 0; background: none; cursor: pointer; font-weight: 500;
  border-bottom: 3px solid transparent; margin-bottom: -1px; }
.roomtabs button[aria-pressed="true"] { border-bottom-color: var(--brand); font-weight: 700; }
.room { display: none; padding-top: 34px; }
.room.on { display: block; animation: roomin .6s ease; }
@keyframes roomin { from { opacity: 0; } }
.room-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 30px; }
.room-head h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; letter-spacing: -.02em; }
.room-head span { color: var(--ink-muted); }
.hang { display: grid; grid-template-columns: repeat(3, 1fr); gap: 52px 40px; align-items: start; }
.rooms.searching .room { display: none; }
.rooms.searching .room.hit { display: block; animation: none; }
.rooms.searching .roomtabs, .rooms.searching .walk { display: none; }
.walk { display: flex; justify-content: space-between; gap: 12px; margin-top: 44px; }
.noresult { font-size: 1.1rem; }

/* ── Curator ─────────────────────────────────────────────────────────────── */
.curator-grid { display: grid; grid-template-columns: 1fr minmax(260px, 380px); gap: clamp(28px, 5vw, 72px); align-items: start; }
.ask { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; }
.ask > span { width: 100%; color: var(--ink-muted); font-weight: 500; }
.ask button { min-height: 44px; padding: 8px 16px; border-radius: var(--r-btn); border: 1.5px solid var(--ink); background: none; cursor: pointer; }
.ask button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.why { color: var(--ink-soft); margin: 12px 0 0; }

/* ── Table, cards, reserve, catering, guests ─────────────────────────────── */
.note { color: var(--ink-soft); max-width: 56ch; margin-top: -8px; }
.card, .table-card { background: var(--bg-card); border-radius: var(--r); padding: clamp(20px, 3vw, 30px); }
.table-controls { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; margin-bottom: 18px; }
.party { display: flex; gap: 6px; }
.party button { width: 48px; height: 48px; border-radius: 12px; border: 1.5px solid var(--ink); background: none; cursor: pointer; font-weight: 600; }
.party button[aria-pressed="true"] { background: var(--ink); color: var(--bg-card); }
.budget { display: flex; align-items: center; gap: 12px; color: var(--ink-soft); }
.budget input { accent-color: var(--brand); width: 160px; }
.empty { color: var(--ink-muted); }
.tablelist { list-style: none; padding: 0; margin: 0; }
.tablelist li { display: grid; grid-template-columns: 1fr auto 90px; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tablelist .q { display: inline-flex; align-items: center; gap: 6px; }
.tablelist .q button { width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: none; cursor: pointer; font-size: 1.2rem; }
.tablelist .p { text-align: end; font-variant-numeric: lining-nums proportional-nums; }
.table-foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 18px; }
.total { margin-inline-end: auto; font-size: 1.1rem; } .total b { font-size: 1.35rem; }
.packs, .quotes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-bottom: 22px; }
.pack p { color: var(--ink-soft); }
.cat-points { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.cat-points li::before { content: "—  "; color: var(--ink-muted); }
.serves { color: var(--ink-muted) !important; margin: 0; }
.quote { margin: 0; background: var(--bg-card); border-radius: var(--r); padding: 22px; }
.quote blockquote { margin: 0 0 10px; font-size: 1.1rem; }
.quote figcaption { color: var(--ink-muted); }

/* ── Story ───────────────────────────────────────────────────────────────── */
.story { display: grid; grid-template-columns: minmax(240px, 400px) 1fr; gap: clamp(28px, 6vw, 88px); align-items: start; }
.story:not(:has(.frame-portrait:not([hidden]))) { grid-template-columns: 1fr; }
.frame-portrait .mat img { aspect-ratio: 2 / 3; }
.story-text p { font-size: 1.12rem; max-width: 58ch; color: var(--ink-soft); }
.story-text h3 { margin-top: 26px; }
.sign { font-weight: 700; color: var(--ink) !important; }

/* ── Visit, closing, foot ────────────────────────────────────────────────── */
.visit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.visit h3 { margin-bottom: 12px; }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 6px 0; border-bottom: 1px solid var(--line); }
.hours td + td { text-align: end; }
.hours .today td { font-weight: 700; }
.map iframe { width: 100%; height: 200px; border: 0; border-radius: 12px; margin-top: 12px; }
.qr img { background: #fff; padding: 8px; border-radius: 12px; margin: 6px 0 10px; }
.closing { text-align: center; }
.closing h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; }
.closing p { color: var(--ink-soft); max-width: 48ch; margin: 0 auto 26px; }
.foot { padding-block: 40px 120px; border-top: 1px solid var(--line); color: var(--ink-muted); }
.foot p { margin: 4px 0; }

/* ── Floating order: the button, then the order ──────────────────────────── */
.fab { position: fixed; inset-inline-end: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 45;
  display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 22px; border-radius: var(--r-pill);
  text-decoration: none; font-weight: 700; box-shadow: 0 10px 24px -10px rgba(0,0,0,.55); }
.fab svg { width: 22px; height: 22px; }
.fab { transition: opacity .3s ease, transform .3s ease; }
body.foyer-in .fab { opacity: 0; transform: translateY(12px); pointer-events: none; }
.dock { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 45;
  width: min(620px, calc(100% - 24px)); display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 20px;
  background: var(--frame); color: var(--on-dark); border-radius: var(--r); box-shadow: 0 16px 30px -14px rgba(0,0,0,.6); }
.dock-sum { margin-inline-start: auto; font-size: 1.15rem; font-variant-numeric: lining-nums proportional-nums; }

/* ── Floor overlays: the dish sheet and tonight's promo, hung on the wall ── */
.wsf-sheet, .wsf-promo { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; }
.wsf-sheet[hidden], .wsf-promo[hidden] { display: none !important; }
.wsf-sheet-back, .wsf-promo-back { position: absolute; inset: 0; background: rgba(27,32,28,.6); }
.wsf-sheet-card, .wsf-promo-card { position: relative; z-index: 1; background: var(--bg-card); border-radius: var(--r);
  width: min(860px, 100%); max-height: 88vh; overflow: auto; display: grid; grid-template-columns: 1fr 1fr; }
.wsf-promo-card { width: min(540px, 100%); grid-template-columns: 1fr; }
.wsf-sheet-close, .wsf-promo-close { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; width: 44px; height: 44px;
  border-radius: 50%; border: 0; background: var(--bg); font-size: 1.3rem; cursor: pointer; }
.wsf-sheet-media { padding: 22px; background: var(--bg); }
.wsf-sheet-media img, .wsf-promo-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 6px solid var(--frame); }
.wsf-sheet-media[hidden] + .wsf-sheet-body { grid-column: 1 / -1; }
.wsf-sheet-body, .wsf-promo-body { padding: 28px; display: grid; gap: 10px; align-content: start; }
.wsf-sh-cat { color: var(--ink-muted); margin: 0; }
.wsf-sheet-body h3, .wsf-promo-body h3 { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; }
.wsf-sh-alt { margin: 0; color: var(--ink-muted); } .wsf-sh-alt:empty { display: none; }
.wsf-sh-story, .wsf-promo-body p { margin: 0; color: var(--ink-soft); }
.wsf-facts { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; margin: 4px 0 0; }
.wsf-facts > div { display: grid; grid-template-columns: 100px 1fr; gap: 12px; align-items: center; }
.wsf-facts dt { color: var(--ink-muted); } .wsf-facts dd { margin: 0; }
.wsf-heat { display: inline-flex; gap: 4px; } .wsf-heat i { width: 16px; height: 5px; border-radius: 99px; background: var(--line); }
.wsf-heat i.on { background: var(--brand); }
.wsf-pairs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wsf-pairs button, .wsf-sh-sizes button { min-height: 44px; padding: 8px 14px; border-radius: 12px; border: 1.5px solid var(--ink); background: none; cursor: pointer; }
.wsf-sh-sizes { display: flex; gap: 8px; flex-wrap: wrap; width: 100%; }
.wsf-sh-sizes button[aria-pressed="true"] { background: var(--ink); color: var(--bg-card); }
.wsf-sh-sizes small { display: block; font-size: .8rem; opacity: .8; }
.wsf-sheet-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; border-top: 1px solid var(--line); padding-top: 14px; }
.wsf-sh-price, .wsf-promo-price { font-size: 1.35rem; font-weight: 700; }
.wsf-sh-add, .wsf-promo-cta { min-height: 48px; padding: 12px 22px; border-radius: var(--r-btn); border: 0; background: var(--brand);
  color: var(--brand-ink); font-weight: 700; cursor: pointer; margin-inline-start: auto; text-decoration: none; }
body.wsf-locked { overflow: hidden; }

/* ── Phones ──────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .foyer, .story, .curator-grid { grid-template-columns: 1fr; }
  .frame-hero { max-width: 460px; }
  .hang { grid-template-columns: 1fr 1fr; gap: 30px 18px; }
  .salon-wall .s-l, .salon-wall .s-m, .salon-wall .s-s { width: calc(50% - 16px); }
  .salon-wall .s-l:first-child { width: 100%; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .bar-in { flex-wrap: wrap; gap: 0 12px; padding-block: 6px; }
  .nav { order: 3; width: 100%; margin: 0 -8px; }
  .lang { margin-inline-start: auto; }
  .mat { padding: 7%; border-width: 5px; }
  .label { padding: 10px 12px; font-size: .9rem; }
  .l-desc { display: none; }
  .tablelist li { grid-template-columns: 1fr auto; } .tablelist .p { grid-column: 2; }
  .wsf-sheet, .wsf-promo { place-items: end center; padding: 0; }
  .wsf-sheet-card, .wsf-promo-card { grid-template-columns: 1fr; max-height: 92vh; border-radius: var(--r) var(--r) 0 0; }
  .wsf-sheet-media { padding: 14px; } .wsf-sheet-media img { max-height: 280px; }
  .fab span { display: none; } .fab { padding: 0; width: 58px; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .room.on { animation: none; } .mat { transition: none; } .mat:hover { transform: none; }
}
