/* Tornamesa (demo) by Corlo Studio. Plain CSS, no build step. */

:root {
  --ink: #FFFFFF;        /* reading text on the colour field; set by wheel.js render() from the blended colour */
  --accent: #FFD23F;     /* price, notch, rule, dots, Book fill */
  --dish-bg: #C2371B;    /* the selected dish colour (map stand-in) */
  --on-accent: #14110E;  /* Book text on the accent fill; set by wheel.js on index change */
  --night: #14110E;
  --cream: #F4EBDD;
  --brass: #C9A24A;
  --f-display: "Bricolage Grotesque", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "DM Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  position: relative;
  background: var(--night);
  color: var(--cream);
  font: 400 1rem/1.5 var(--f-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

.no-js .js-only { display: none !important; }

:focus { outline: none; }
:focus-visible { outline: 3px solid var(--cream); outline-offset: 3px; }
.top :focus-visible, .hero :focus-visible { outline-color: var(--ink); }

.skip {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  background: var(--night); color: var(--cream);
  padding: 12px 16px; border-radius: 999px;
  font: 600 0.9375rem/1 var(--f-text); text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- circular crop: exact maths from cx, cy, r (r is a fraction of natural WIDTH) ---------- */
.crop { overflow: hidden; border-radius: 50%; }
.crop img {
  position: absolute;
  display: block;
  max-width: none;
  width: calc(100% / (2 * var(--r)));
  height: calc(100% / (2 * var(--r)) * var(--h) / var(--w));
  left: calc(50% - var(--cx) * 100% / (2 * var(--r)));
  top: calc(50% - var(--cy) * 100% / (2 * var(--r)) * var(--h) / var(--w));
}

/* ---------- header (sits over the colour field) ---------- */
.top {
  position: absolute; left: 0; right: 0; top: 0; z-index: 10;
  height: 48px;
  padding: 0 20px;
  display: flex; align-items: center; gap: 24px;
  color: var(--ink);
  transition: color .15s linear;
}
.brand { margin-right: auto; min-width: 0; }
.wordmark {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 100, "wght" 700;
  font-weight: 700;
  font-size: 1.125rem; line-height: 1;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.wordmark a { position: relative; text-decoration: none; }
.wordmark a::after { content: ""; position: absolute; inset: -13px 0; }  /* 44px hit area, no layout change */
.tagline { display: none; font-size: 0.8125rem; line-height: 1.2; margin-top: 5px; }
.nav { display: none; gap: 28px; }
.nav a { font-weight: 600; font-size: 0.9375rem; text-decoration: none; padding: 12px 0; }
.nav a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }

.book {
  position: relative;
  height: 40px; padding: 0 18px;
  border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  font: 600 0.9375rem/1 var(--f-text);
  white-space: nowrap;
  transition: background-color .15s linear, color .15s linear, transform .15s ease-out;
}
.book::after { content: ""; position: absolute; inset: -4px 0; }  /* 48px hit area */
.book:hover { transform: translateY(-1px); }
.book:active { transform: translateY(0); }
.book__more { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  height: 100vh; height: 100svh;
  min-height: 520px;
  overflow: hidden; overflow: clip;
  color: var(--ink);
  --D: 600px;            /* disc diameter, written by wheel.js on resize */
}
.field {
  position: absolute; inset: 0; z-index: -1;
  contain: strict;
  background-color: #C2371B;
}
/* starting colour of the first-load sweep (OKLab midpoint of pink and amber) so there is no flash */
.js .hero.is-loading .field { background-color: #E87053; }

.demo-band {
  position: absolute; left: 0; right: 0; top: 48px; z-index: 6;
  height: 24px; line-height: 24px;
  background: var(--night); color: #fff;
  font: 500 0.6875rem/24px var(--f-mono);
  font-size: min(0.6875rem, 3.3vw);
  text-align: center; white-space: nowrap; overflow: hidden;
}

.wheel, .plates {
  position: absolute; inset: 0;
  overflow: hidden;
  pointer-events: none;
  transition: opacity .3s ease-out;
}
.wheel { z-index: 0; }
.plates { z-index: 3; }
.panel, .rail { transition: opacity .3s ease-out; }
.js .hero.is-loading .wheel,
.js .hero.is-loading .plates,
.js .hero.is-loading .panel,
.js .hero.is-loading .rail { opacity: 0; }
.hero.is-dip .wheel, .hero.is-dip .plates { opacity: .4; transition-duration: .15s; }

/* comal: a darker shade of whatever colour is underneath, no colour writes */
.comal-wrap {
  position: absolute; left: 0; top: 0;
  width: var(--D); height: var(--D);
  border-radius: 50%;
  background: rgba(0, 0, 0, .22);
}
.comal {
  position: absolute; inset: 0; border-radius: 50%;
  will-change: transform;
  background:
    conic-gradient(from 0deg,
      rgba(255,255,255,.05), rgba(0,0,0,.07) 12%, rgba(255,255,255,0) 25%,
      rgba(255,255,255,.04) 50%, rgba(0,0,0,.07) 62%, rgba(255,255,255,0) 75%, rgba(255,255,255,.05)),
    repeating-radial-gradient(circle at 50% 50%, transparent 0 3px, rgba(255,255,255,.05) 3px 4px);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.18);
}
/* seats: one shallow well under each plate, riding with the comal so the spin reads */
.well {
  position: absolute; left: 50%; top: 50%;
  width: 23.5%; height: 23.5%; margin: -11.75% 0 0 -11.75%;
  border-radius: 50%;
  background: rgba(0,0,0,.12);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
  transform: rotate(calc(var(--i) * 51.428571deg)) translateX(153.1915%);   /* 0.36 D / 0.235 D */
}
/* a still light the grooves pass under */
.comal-light {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 280deg,
    rgba(255,255,255,0) 0deg, rgba(255,255,255,.08) 35deg, rgba(255,255,255,0) 70deg,
    rgba(255,255,255,0) 180deg, rgba(255,255,255,.04) 215deg, rgba(255,255,255,0) 250deg, rgba(255,255,255,0) 360deg);
}
.hub {
  position: absolute; left: 44%; top: 44%; width: 12%; height: 12%;
  border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 0 2px #8A6A22, calc(var(--D) * .006) calc(var(--D) * .008) 0 2px rgba(0,0,0,.3);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #17130F;
  font: 500 calc(var(--D) * .0125)/1.35 var(--f-mono);
  letter-spacing: .08em; text-transform: uppercase; text-align: center;
}
.hub span { display: block; }

/* drag surface; wheel.js sets its top (and left on desktop) */
.stage {
  position: absolute; left: 20px; right: 20px; top: 46%; bottom: 0; z-index: 1;
  touch-action: pan-y;
  cursor: grab;
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
.stage.is-dragging { cursor: grabbing; }

/* ---------- plates ---------- */
.plate {
  position: absolute; left: 0; top: 0; z-index: 1;
  width: calc(var(--D) * .31); height: calc(var(--D) * .31);   /* drawn at selected size, scaled DOWN when not selected so photos stay sharp */
  border-radius: 50%;
  will-change: transform;
}
.plate::before {   /* hard print-style shadow, no blur */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: rgba(0,0,0,.38); transform: translate(5%, 6%);
}
.plate::after {    /* soft shadow, strengthened on settle */
  content: ""; position: absolute; inset: -6%; border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, rgba(0,0,0,.45) 70%, transparent 100%);
  transform: translate(4%, 7%);
  opacity: .6;
}
.plate.is-settled::after { opacity: 1; transition: opacity .2s ease-out; }
.plate__rim {
  position: absolute; inset: 0; border-radius: 50%;
  background: #F6EEDF;
  box-shadow: 0 0 0 2px #17130F, inset 0 0 0 1px rgba(0,0,0,.12);
}
.plate__photo {
  position: absolute; inset: 6%;
  background: var(--pa);
  will-change: transform;
}
.plate__initial {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--pb);
  font-family: var(--f-display);
  font-variation-settings: "wdth" 75, "wght" 800; font-weight: 800;
  font-size: calc(var(--D) * .14); line-height: 1; text-transform: uppercase;
}
.plate__photo img {
  filter: contrast(1.05) saturate(1.1);   /* static, never animated */
  opacity: 0; transition: opacity .25s linear;
}
.plate__photo img.is-loaded { opacity: 1; }
.plate__light {
  position: absolute; inset: 6%; border-radius: 50%;
  background:
    radial-gradient(circle at 28% 24%, rgba(255,255,255,.16), transparent 46%),
    radial-gradient(circle at 50% 50%, transparent 62%, rgba(0,0,0,.22) 100%);
}
.plate__keyline { position: absolute; inset: 6%; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.35); }
.plate__dim { position: absolute; inset: 0; border-radius: 50%; background: #000; opacity: 0; }

/* ---------- ingredient ring, notch, hint ---------- */
.ring {
  position: absolute; left: 0; top: 0;
  width: calc(var(--D) * .37); height: calc(var(--D) * .37);
}
.ring svg {
  display: block; width: 100%; height: 100%; overflow: visible;
  animation: drift 90s linear infinite; animation-play-state: paused;
}
.ring.live svg { animation-play-state: running; }
.ring text {
  font-family: var(--f-mono); font-weight: 400;
  text-transform: uppercase;
  fill: var(--ink);
  opacity: 0;
}
.ring text.is-on { opacity: 1; }
.ring .dot { fill: var(--accent); }
@keyframes drift { to { transform: rotate(360deg); } }

.notch { position: absolute; left: 0; top: 0; width: 10px; height: 10px; }
.notch i {
  display: block; width: 100%; height: 100%;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: 50% 100%;
  transition: transform 90ms ease-out;
}
.notch.tick i { transform: rotate(6deg); }

.hint {
  position: absolute; left: 0; top: 0;
  transform: translate(-50%, -50%);
  color: var(--ink);
  font: 400 0.75rem/1.5 var(--f-mono);
  letter-spacing: .14em; text-transform: uppercase; text-align: center;
  white-space: nowrap;
  opacity: .9;
  transition: opacity .3s linear;
}
.hint.is-gone { opacity: 0; }

/* ---------- text panel (phone first) ---------- */
.panel { padding: 72px 20px 0; }
.panel__text { position: relative; z-index: 2; padding-top: 12px; pointer-events: none; }

.counter {
  display: flex; align-items: center; gap: 12px;
  font: 400 0.8125rem/1 var(--f-mono); letter-spacing: .12em;
}
.counter__rule { display: block; width: 32px; height: 2px; background: var(--accent); }

.panel { --name-size: clamp(2.5rem, min(13.5vw, 8vh), 4rem); --name-gap: 8px; }
/* the block always reserves the counter plus two lines of name; a one-line name sits on the bottom
   with its counter directly above it, so nothing below ever moves */
.lead {
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: calc(0.8125rem + var(--name-gap) + 1.84 * var(--name-size));
}
.dish-name {
  margin-top: var(--name-gap);
  font-family: var(--f-display);
  font-variation-settings: "wdth" 75, "wght" 800; font-weight: 800;
  font-stretch: 75%;
  font-size: var(--name-size);
  line-height: .92; letter-spacing: -.02em; text-transform: uppercase;
  text-wrap: balance;
}

.detail { margin-top: 10px; }
.meta { display: flex; align-items: center; gap: 14px; min-height: 30px; }
.price { font: 500 1.5rem/1 var(--f-mono); color: var(--accent); }
.tags { display: flex; flex-wrap: nowrap; gap: 6px; min-width: 0; }
.tags li {
  font: 500 0.75rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 8px; border: 1px solid currentColor; border-radius: 999px; white-space: nowrap;
}
.desc {
  margin-top: 8px;
  font-size: 1rem; line-height: 1.45;
  min-height: 4.35em;                       /* always 3 lines, so nothing below moves */
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
}
.ingr { margin-top: 8px; }

.ingredients { display: flex; flex-wrap: wrap; font: 400 0.6875rem/1.65 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.ingredients li { white-space: nowrap; }
.ingredients li:not(:last-child)::after { content: "/"; margin: 0 .6em; opacity: .6; }
.panel .ingredients { min-height: 3.3em; max-height: 3.3em; overflow: hidden; }   /* always 2 rows */

.controls {
  position: absolute; left: 20px; right: 20px; bottom: 12px; z-index: 5;
  display: flex; justify-content: space-between; align-items: center;
  pointer-events: none;
}
.round {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid currentColor;
  display: inline-flex; align-items: center; justify-content: center;
  pointer-events: auto;
  touch-action: manipulation;
  transition: color .15s linear, background-color .15s linear, transform .15s ease-out;
}
.round:hover { background: rgba(0,0,0,.14); }
.round:active { transform: scale(.94); }
/* phone: the arrows sit over the neighbouring plates, so give them a solid seat */
@media (max-width: 1023px) {
  .round { background: rgba(0,0,0,.32); }
  .round:hover { background: rgba(0,0,0,.44); }
}
.full-menu { display: none; }

/* dish rail: on phone the buttons are hidden until one takes keyboard focus */
.rail { position: absolute; left: 20px; top: 104px; z-index: 6; }
.rail button {
  position: absolute; left: 0; top: 0;
  width: 48px; height: 48px;
  font: 500 0.75rem/1 var(--f-mono);
  background: var(--night); color: #fff; border-radius: 999px;
  opacity: 0; pointer-events: none;
}
.rail button:focus-visible { opacity: 1; outline-color: #fff; }

/* demo chip: fixed */
.demo-chip {
  position: fixed; left: 16px; bottom: 16px; z-index: 50;
  max-width: calc(100vw - 32px);
  padding: 8px 12px; border-radius: 999px;
  background: rgba(20,17,14,.92); color: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,.28);
  font: 500 0.6875rem/1.3 var(--f-mono);
  font-size: min(0.6875rem, 2.9vw);
  pointer-events: none;
  transition: opacity .2s linear, visibility .2s;
}
/* on phone the band in the hero carries the label; the chip takes over as the band scrolls away (class set by wheel.js) */
.js .demo-chip { opacity: 0; visibility: hidden; }
.js.hero-out .demo-chip { opacity: 1; visibility: visible; }

/* short phones: classes set by wheel.js layout() from the hero's own height (stable under iOS toolbar collapse).
   The description keeps its 3 lines at every height: the hero is never shorter than 520px. */
.hero.is-short .ingr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); margin: 0; }
.hero.is-tight .panel__text { padding-top: 8px; }
.hero.is-tight .panel { --name-gap: 6px; }
.hero.is-tight .detail { margin-top: 8px; }
.hero.is-tight .desc { margin-top: 6px; }
@media (max-width: 359px) {
  .desc { font-size: 0.875rem; }   /* the longest description fits 3 lines at 320px wide */
  .tags li { letter-spacing: .06em; padding: 4px 7px; }
}
@media (max-width: 1023px) and (orientation: landscape) and (max-height: 499px) {
  .hero { min-height: 640px; }
}

@media (min-width: 700px) {
  .nav { display: flex; }
  .book__more { position: static; width: auto; height: auto; clip-path: none; }
}

/* ---------- desktop layout ---------- */
@media (min-width: 1024px) {
  .top { height: 64px; padding: 0 5vw; gap: 32px; }
  .tagline { display: block; }
  .book { height: 44px; padding: 0 22px; }
  .book::after { inset: -2px 0; }

  .hero { height: auto; min-height: max(100vh, 640px); min-height: max(100svh, 640px); display: flex; flex-direction: column; }
  .demo-band { display: none; }
  .js .demo-chip, .demo-chip { opacity: 1; visibility: visible; font-size: 0.75rem; }

  .panel {
    flex: 1 1 auto;
    width: 40%;
    padding: calc(64px + 3vh) 0 60px 5vw;
    display: flex; flex-direction: column; justify-content: center;
    --name-size: clamp(3.25rem, min(6.6vw, 13vh), 7.5rem); --name-gap: 16px;
  }
  .panel__text { padding-top: 0; pointer-events: auto; }
  .lead { pointer-events: none; }
  .counter { margin-bottom: 0; }
  .dish-name { width: 44vw; max-width: 44vw; }   /* wheel.js narrows max-width to stop short of the ring */
  .detail { margin-top: 20px; max-width: 24rem; }
  .meta { gap: 16px; min-height: 40px; }
  .price { font-size: clamp(1.5rem, 2.4vw, 2.25rem); }
  .desc { margin-top: 14px; font-size: 1.125rem; line-height: 1.5; min-height: 4.5em; }
  .ingr { margin-top: 14px; }
  .panel .ingredients { font-size: 0.8125rem; letter-spacing: .14em; min-height: 3.3em; max-height: 3.3em; }

  .controls {
    position: relative; left: auto; right: auto; bottom: auto;
    justify-content: flex-start; gap: 12px;
    margin-top: 28px;
    pointer-events: auto;
  }
  .full-menu {
    display: inline-block; margin-left: 12px; padding: 12px 0;
    font-weight: 600; font-size: 0.9375rem;
    text-underline-offset: 5px; text-decoration-thickness: 1.5px;
    transition: color .15s linear;
  }

  .stage { left: 40%; right: 0; top: 64px; }   /* touch-action stays pan-y: a vertical touch always scrolls the page */

  .rail {
    left: 1.5vw; top: 50%; transform: translateY(-50%);
    display: flex; flex-direction: column;
  }
  .rail button {
    position: relative; width: 32px; height: 40px;
    background: none; color: var(--ink); border-radius: 4px;
    opacity: 1; pointer-events: auto;
    transition: color .15s linear;
  }
  .rail button::after {
    content: ""; position: absolute; left: 8px; right: 8px; bottom: 8px; height: 2px;
    background: var(--accent); transform: scaleX(0); transition: transform .15s ease-out;
  }
  .rail button:hover::after { transform: scaleX(.5); }
  .rail button:focus-visible { outline-color: var(--ink); }
  .rail button[aria-current="true"]::after { transform: scaleX(1); }

  .hint { white-space: normal; }
}

/* ---------- sections below the hero ---------- */
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section { padding-top: 64px; }
.section__h, .item h3 {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 85, "wght" 700; font-weight: 700; font-stretch: 85%;
  font-size: 1.375rem; line-height: 1.1;
}
.section__h { text-transform: uppercase; letter-spacing: .02em; padding-bottom: 20px; border-bottom: 1px solid rgba(244,235,221,.22); }

.list { display: grid; grid-template-columns: 1fr; }
.item {
  display: grid; grid-template-columns: 56px 1fr; gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(244,235,221,.14);
}
.thumb { position: relative; width: 56px; height: 56px; background: #2A241D; box-shadow: 0 0 0 2px #F6EEDF; }
/* placeholder (added by wheel.js): accent fill and dish initial while the photo loads or if it fails */
.thumb.has-ph { background: var(--pa); }
.thumb__initial {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--pb);
  font-family: var(--f-display);
  font-variation-settings: "wdth" 75, "wght" 800; font-weight: 800;
  font-size: 24px; line-height: 1; text-transform: uppercase;
}
.thumb.has-ph img { opacity: 0; transition: opacity .25s linear; }
.thumb.has-ph img.is-loaded { opacity: 1; }
.item__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.item__price { font: 500 1rem/1 var(--f-mono); white-space: nowrap; }
.item__desc { margin-top: 8px; color: rgba(244,235,221,.86); }
.item .ingredients { margin-top: 10px; color: rgba(244,235,221,.7); }
.item__tags { margin-top: 6px; font: 500 0.75rem/1.5 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(244,235,221,.7); }
.show {
  margin-top: 8px; min-height: 44px; padding: 0;
  font-weight: 600; font-size: 0.9375rem;
  text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px;
}
.show:hover { color: #fff; }
.small-note { font-size: 0.875rem; color: rgba(244,235,221,.66); }
.list + .small-note { margin-top: 20px; }

.visit { display: grid; grid-template-columns: 1fr; gap: 32px; padding-top: 28px; }
.visit__h { font: 500 0.75rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(244,235,221,.66); margin-bottom: 10px; }
.visit__col p + .visit__h { margin-top: 28px; }
.visit__col p { font-size: 1.0625rem; }
.visit__col .small-note { font-size: 0.875rem; margin-top: 4px; }
.book--dark { margin-top: 32px; height: 48px; padding: 0 24px; background: var(--cream); color: var(--night); }
.map {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--dish-bg); color: var(--ink);
  border-radius: 6px;
  transition: background-color .3s linear, color .3s linear;
}
.map__disc {
  position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border: 2px solid currentColor; border-radius: 50%; opacity: .55;
}
.map__cap { position: absolute; left: 16px; bottom: 12px; font: 400 0.75rem/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }

.footer { margin-top: 64px; padding: 40px 0 88px; border-top: 1px solid rgba(244,235,221,.22); }
.footer p { max-width: 62ch; color: rgba(244,235,221,.8); }
.footer p + p { margin-top: 12px; }
.footer__lead { font: 500 0.8125rem/1.5 var(--f-mono); color: var(--cream) !important; }
.footer a { color: var(--cream); text-underline-offset: 4px; padding: 11px 0; }  /* vertical padding on an inline box enlarges the hit area without changing line height */

@media (min-width: 800px) {
  .wrap { padding: 0 5vw; }
  .section { padding-top: 96px; }
  .section__h, .item h3 { font-size: 1.75rem; }
  .list { grid-template-columns: 1fr 1fr; column-gap: 56px; }
  .visit { grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
  .footer { margin-top: 96px; }
}

/* ---------- booking dialog ---------- */
.dialog {
  width: min(92vw, 440px); padding: 28px;
  border: 0; border-radius: 14px;
  background: var(--cream); color: var(--night);
  font-size: 1rem;
}
.dialog::backdrop { background: rgba(20,17,14,.62); }
.dialog__h {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 85, "wght" 700; font-weight: 700;
  font-size: 1.75rem; line-height: 1.05; margin-bottom: 12px;
}
.dialog__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }
.dialog__btn { height: 48px; padding: 0 22px; border-radius: 999px; background: var(--night); color: var(--cream); font-weight: 600; font-size: 0.9375rem; }
.dialog a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 0.9375rem; text-underline-offset: 4px; }
.dialog :focus-visible { outline-color: var(--night); }

/* ---------- embed mode: ?embed=1, shown inside a frame on the Corlo Studio home page ----------
   Only the wheel is shown. The document is exactly one frame tall and cannot scroll itself, so a
   vertical swipe or mouse wheel carries on to the page that holds the frame. The demo label stays:
   the band on phone widths, the fixed chip on desktop widths. */
html.embed, html.embed body, html.embed main { height: 100%; }
html.embed, html.embed body { overflow: hidden; }
html.embed .hero { height: 100%; min-height: 0; }
html.embed .skip,
html.embed .nav,
html.embed .book,
html.embed .full-menu,
html.embed .section,
html.embed .footer,
html.embed .dialog { display: none !important; }

/* ---------- no JavaScript: the list is the page ---------- */
.no-js .hero { height: auto; min-height: 46vh; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero.is-loading .field { background-color: #C2371B; }
  .ring svg { animation: none; }
  .notch i, .book, .round { transition: none; }
  .field.is-jumping { transition: background-color .2s linear; }
  .hero.is-jumping .panel__text { animation: fade-in .15s linear; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- forced colours ---------- */
@media (forced-colors: active) {
  .field { background-color: Canvas !important; forced-color-adjust: auto; }
  .book, .round, .tags li, .plate__rim, .dialog, .dialog__btn, .map { border: 1px solid ButtonText; }
  .counter__rule, .notch i { background: CanvasText; }
}

@media print {
  .wheel, .plates, .stage, .rail, .controls, .demo-chip, .book { display: none !important; }
  .hero { height: auto; min-height: 0; }
  body { background: #fff; color: #000; }
}
