/* Fonts, self-hosted (from Google Fonts, OFL) so the first paint waits on no other server. */
/* latin-ext */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(assets/fonts/instrument-sans-latin-ext-pxiTyp.woff2) format('woff2');
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(assets/fonts/instrument-sans-latin-pxiTyp.woff2) format('woff2');
  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;
}
/* latin-ext */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(assets/fonts/instrument-sans-latin-ext-pxiTyp.woff2) format('woff2');
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(assets/fonts/instrument-sans-latin-pxiTyp.woff2) format('woff2');
  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;
}
/* latin-ext */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(assets/fonts/instrument-sans-latin-ext-pxiTyp.woff2) format('woff2');
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(assets/fonts/instrument-sans-latin-pxiTyp.woff2) format('woff2');
  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;
}
/* latin-ext */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/instrument-serif-italic-latin-ext-jizHRF.woff2) format('woff2');
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/instrument-serif-italic-latin-jizHRF.woff2) format('woff2');
  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;
}
/* latin-ext */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/instrument-serif-latin-ext-jizBRF.woff2) format('woff2');
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/instrument-serif-latin-jizBRF.woff2) format('woff2');
  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;
}
/* latin-ext */
@font-face {
  font-family: 'Young Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/young-serif-latin-ext-3qTpoj.woff2) format('woff2');
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Young Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/young-serif-latin-3qTpoj.woff2) format('woff2');
  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;
}

/* Elaine’s — crêperie & brunch, Plaça del Rei.
   Palette from the crêpe itself: raw batter, golden crust, burnt edge, chocolate; sage from the café's own menu cards. */
:root {
  --batter: #F4EAD6;      /* page */
  --paper: #FBF6EB;       /* cards, form */
  --cream: #F6E4BF;
  --gold: #E6A23C;
  --crust: #C8441E;       /* the red-orange of the printed menu; large text and fills */
  --crust-ink: #A43716;   /* the same, dark enough for small text on --batter */
  --ink: #2B1810;         /* chocolate */
  --ink-2: #5E4536;
  --ink-3: #8A7262;
  --griddle: #1D1613;
  --sage: #7E8C68;
  --line: rgba(43, 24, 16, .14);
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --pad: clamp(16px, 5vw, 72px);
  --serif: 'Young Serif', 'Georgia', serif;
  --italic: 'Instrument Serif', 'Georgia', serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--batter); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* paper grain over everything, so flat colour reads as printed stock */
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .32; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .15 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.02; letter-spacing: -.015em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
em { font-family: var(--italic); font-style: italic; letter-spacing: 0; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--batter); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2.5px solid var(--crust); outline-offset: 3px; border-radius: 6px; }

.kicker {
  display: inline-flex; align-items: center; gap: .6em; margin-bottom: 1.1rem;
  font: italic 400 1.25rem/1 var(--italic); color: var(--crust-ink);
}
.kicker__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------------------------------------------------------------- buttons */
.btn {
  --bg: var(--ink); --fg: var(--batter);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 1.6em; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--bg); color: var(--fg); font: 600 1rem/1 var(--sans); text-decoration: none; letter-spacing: .01em;
  overflow: hidden; isolation: isolate; transition: transform .25s var(--ease), color .3s;
}
/* hover: the golden fill rises like batter browning from the edge */
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--crust);
  transform: translateY(101%); transition: transform .45s var(--ease);
}
/* on a touch screen a tap would leave it stuck half-way, so only where there is a real pointer */
@media (hover: hover) { .btn:hover::before { transform: none; } .btn--ghost:hover { --fg: var(--batter); } }
.btn:focus-visible::before { transform: none; }
.btn:active { transform: scale(.97); }
.btn--ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost:focus-visible { --fg: var(--batter); }
.btn--sm { min-height: 42px; padding: 0 1.2em; font-size: .9375rem; }
.btn[disabled] { opacity: .6; cursor: progress; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--crust-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------------------------------------------------------------- nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 72px; padding: 0 var(--pad); transition: background .4s, box-shadow .4s, height .4s var(--ease);
}
.nav.is-scrolled { height: 64px; background: rgba(244, 234, 214, .86); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav__brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 400 1.5rem/1 var(--serif); }
.nav__brand img { transition: transform .8s var(--ease); }
.nav__brand:hover img { transform: rotate(-90deg); }
.nav__links { display: flex; gap: clamp(16px, 3vw, 40px); }
.nav__links a { position: relative; text-decoration: none; font-weight: 500; padding: 8px 0; }
.nav__links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__end { display: flex; align-items: center; gap: 10px; }
.lang select {
  appearance: none; border: 0; background: transparent; font: 500 .9375rem var(--sans); color: var(--ink); cursor: pointer;
  padding: 10px 22px 10px 6px; min-height: 44px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 8px top 52%, right 3px top 52%; background-size: 5px 5px; background-repeat: no-repeat;
}
@media (max-width: 760px) { .nav__links { display: none; } .nav__brand span { font-size: 1.3rem; } }

/* ---------------------------------------------------------------- hero */
/* The scene is laid out on the wall picture's own grid (2000 x 1116): every layer is placed in % of it, so the window,
   the café inside it, the table and the dish stay together at any size. */
.hero {
  position: relative; display: grid; grid-template-columns: minmax(0, .95fr) 1fr; align-items: center;
  min-height: 100svh; padding: 100px var(--pad) 64px; overflow: hidden; background: #E1D8CE;
}
.hero__text { position: relative; z-index: 3; }
.hero__title { font-size: clamp(3.1rem, min(7.4vw, 11.5svh), 8rem); line-height: .92; letter-spacing: -.03em; margin-bottom: 1.4rem; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > * { display: inline-block; }
.hero__title .line--accent em { color: var(--crust); font-size: 1.12em; line-height: .8; }
.hero__lead { max-width: 33ch; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); color: var(--ink-2); margin-bottom: 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__scene { position: absolute; right: 0; bottom: 0; width: max(100%, 179.2svh); aspect-ratio: 2000 / 1116; }
.hero__layer { position: absolute; will-change: transform; }
.hero__layer img { display: block; width: 100%; height: auto; }
.hero__wall { inset: 0; }
/* the café, behind the wall: cut to the shape of the window (so it never shows anywhere else), and a little larger than
   the window so it can move inside it */
.hero__inside { position: absolute; inset: 0; -webkit-mask: url(assets/hero/window-mask.png) 0 0 / 100% 100% no-repeat; mask: url(assets/hero/window-mask.png) 0 0 / 100% 100% no-repeat; }
.hero__pic { left: 51%; top: 16%; width: 40%; height: 68%; overflow: hidden; background: #6b4a33; }
.hero__pic img { height: 100%; object-fit: cover; filter: saturate(.92) brightness(.96); }
/* one of the café's own round marble tables, with a cappuccino and some berries; the dish sits in its empty middle, under
   the window. Its left end fades out, since the picture stops there */
.hero__table { left: 39.6%; top: 58.1%; width: 62%; filter: drop-shadow(0 30px 30px rgba(43,24,16,.18));
  -webkit-mask: linear-gradient(90deg, transparent 0%, #000 14%); mask: linear-gradient(90deg, transparent 0%, #000 14%); }
/* the dish sits on the stone, centred under the window */
.hero__dishes { left: 58.4%; bottom: 14.5%; width: 25%; height: 34%; cursor: pointer; }
/* the dish's shadows on the marble, with the light from the left as in the table's picture: a dark one where the plate
   touches the table and a long soft one falling to the right. They stay while one dish dissolves into the next */
.hero__dishes::before, .hero__dishes::after { content: ''; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.hero__dishes::before { left: 3%; right: -1%; bottom: -7%; height: 18%; background: radial-gradient(closest-side, rgba(43,24,16,.62), rgba(43,24,16,0)); filter: blur(4px); }
.hero__dishes::after { left: 26%; right: -30%; bottom: -9%; height: 26%; background: radial-gradient(closest-side, rgba(43,24,16,.4), rgba(43,24,16,0)); filter: blur(10px); transform: skewX(-28deg); }
.hero__dishimg {
  position: absolute; left: 0; bottom: 0; width: 100%; height: auto; opacity: 0; transform-origin: 50% 80%;
  filter: blur(16px) brightness(1.1); transform: translateY(6%) scale(.94);
  transition: opacity 1.1s var(--ease), filter 1.3s var(--ease), transform 1.5s var(--ease);
}
.hero__dishimg.is-on { opacity: 1; filter: drop-shadow(0 8px 8px rgba(43,24,16,.22)); transform: none; transition-delay: .25s; }
/* the old dish melts upwards, like steam */
.hero__dishimg.is-out { opacity: 0; filter: blur(22px) brightness(1.25); transform: translateY(-10%) scale(1.06); transition-delay: 0s; }
.hero__now { position: absolute; z-index: 3; right: var(--pad); bottom: 28px; display: grid; justify-items: end; gap: 10px; }
.hero__chip {
  display: flex; align-items: baseline; gap: 14px; margin: 0; padding: 12px 20px;
  border-radius: 999px; background: rgba(251,247,240,.9); box-shadow: 0 20px 40px -20px rgba(43,24,16,.45); backdrop-filter: blur(6px);
}
.hero__dish { font: 400 1.2rem/1 var(--serif); }
.hero__price { font: italic 1.1rem/1 var(--italic); color: var(--crust-ink); }
.hero__bars { display: flex; gap: 8px; margin: 0; }
.hero__bars i { position: relative; width: 44px; height: 3px; border-radius: 2px; overflow: hidden; background: rgba(43,24,16,.16); }
.hero__bars i::after { content: ''; position: absolute; inset: 0; background: var(--crust); transform: scaleX(0); transform-origin: left; }
.hero__bars i.is-on::after { transform: scaleX(1); }
.is-motion .hero__bars i.is-on::after { animation: bar 5s linear both; }
@keyframes bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 760px) {
  /* on a phone, top to bottom: the title and the lead, a big window with the dish, its name, and the two buttons */
  .hero { grid-template-columns: minmax(0, 1fr); align-content: start; padding: 84px var(--pad) 0; }
  .hero__text { display: contents; }
  .hero .kicker { display: none; }
  .hero__title, .hero__lead { position: relative; z-index: 3; }
  .hero__lead { margin-bottom: 0; }
  .hero__scene { --sw: 185vw; order: 3; position: relative; right: auto; bottom: auto; width: var(--sw); margin: -24px 0 0 calc(50vw - .709 * var(--sw) - var(--pad)); }
  /* the wall fades into the page all round the window, so no edge of the picture shows */
  .hero__wall { -webkit-mask: radial-gradient(ellipse 38% 56% at 70.9% 52%, #000 62%, transparent 100%); mask: radial-gradient(ellipse 38% 56% at 70.9% 52%, #000 62%, transparent 100%); }
  .hero__dishes { left: 55.4%; width: 31%; }
  .hero__now { order: 4; position: relative; right: auto; bottom: auto; justify-self: center; margin-top: -58px; }
  .hero__bars { display: none; }
  .hero__chip { padding: 9px 16px; gap: 10px; white-space: nowrap; }
  .hero__dish { font-size: 1.02rem; }
  /* the two buttons share the row equally, so they sit square under the picture */
  .hero__cta { order: 5; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0 32px; }
  .hero__cta .btn { min-height: 50px; padding: 0 .8em; }
}

/* ---------------------------------------------------------------- ticker */
.ticker { overflow: hidden; background: var(--ink); color: var(--cream); padding: 22px 0; transform: rotate(-1.2deg) scale(1.02); margin: 24px 0; }
.ticker__track { display: flex; width: max-content; gap: 0; font: 400 clamp(1.4rem, 2.6vw, 2.2rem)/1 var(--serif); white-space: nowrap; }
.ticker__track span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; }
.ticker__track span::after { content: ''; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, var(--gold), #b9701f); }
.is-motion .ticker__track { animation: tick 46s linear infinite; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- section heads */
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 64px); }
.section-head h2 { font-size: clamp(2.3rem, 5.2vw, 4.4rem); }
.section-head__lead { margin-top: 1.1rem; color: var(--ink-2); max-width: 52ch; font-size: 1.125rem; }

/* ---------------------------------------------------------------- menu */
.carta { padding: clamp(80px, 11vw, 150px) var(--pad); }
.carta__layout { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: clamp(24px, 5vw, 80px); align-items: start; }
.carta__tabs { position: sticky; top: 96px; display: grid; gap: 2px; }
.carta__tab {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 6px 12px 6px 6px; border: 0; border-radius: 14px;
  background: transparent; color: var(--ink-2); font: 500 1.0625rem var(--sans); text-align: left; cursor: pointer; transition: background .25s, color .25s;
}
.carta__tab img { width: 38px; height: 38px; transition: transform .5s var(--ease); }
.carta__tab:hover { background: rgba(43,24,16,.05); color: var(--ink); }
.carta__tab:hover img { transform: rotate(-10deg) scale(1.08); }
.carta__tab[aria-selected="true"] { background: var(--ink); color: var(--batter); }
.carta__tab[aria-selected="true"] img { background: var(--cream); border-radius: 10px; }
.carta__tab small { margin-left: auto; font-size: .8125rem; opacity: .65; font-variant-numeric: tabular-nums; }
.carta__group { margin: 16px 12px 4px; font: italic 1.05rem var(--italic); color: var(--ink-3); }
.carta__panel { background: var(--paper); border-radius: 28px; padding: clamp(24px, 4vw, 52px); box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 30px 60px -40px rgba(43,24,16,.35); min-height: 520px; }
.carta__head { display: flex; align-items: center; gap: 22px; padding-bottom: 22px; margin-bottom: 8px; border-bottom: 1.5px solid var(--ink); }
.carta__art { width: clamp(76px, 9vw, 112px); height: auto; flex: none; }
.carta__name { font-size: clamp(2rem, 3.6vw, 3rem); }
.carta__note { margin-top: 6px; color: var(--ink-2); font: italic 1.2rem/1.3 var(--italic); }
.carta__list { list-style: none; margin: 0; padding: 0; }
.dish { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; padding: 18px 0; border-bottom: 1px dashed var(--line); }
.dish:last-child { border-bottom: 0; }
.dish__name { display: flex; align-items: baseline; gap: 10px; font: 400 1.35rem/1.25 var(--serif); }
.dish__name::after { content: ''; flex: 1; min-width: 20px; border-bottom: 2px dotted rgba(43,24,16,.28); transform: translateY(-5px); }
.dish__fav { font: italic 1rem var(--italic); color: var(--crust-ink); white-space: nowrap; }
.dish__price { font: 400 1.35rem/1.25 var(--serif); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.dish__price small { font: 500 .75rem var(--sans); color: var(--ink-3); margin: 0 3px 0 10px; letter-spacing: .04em; }
.dish__price small:first-child { margin-left: 0; }
.dish__desc { grid-column: 1 / -1; margin-top: 4px; color: var(--ink-2); font-size: 1rem; max-width: 62ch; }
.carta__foot { margin-top: 28px; color: var(--ink-3); font-size: .9375rem; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.carta__foot a { color: var(--crust-ink); }
@media (max-width: 860px) {
  .carta__layout { grid-template-columns: 1fr; }
  .carta__tabs { position: sticky; top: 64px; z-index: 5; display: flex; overflow-x: auto; gap: 6px; margin: 0 calc(var(--pad) * -1); padding: 10px var(--pad); background: var(--batter); scrollbar-width: none; }
  .carta__tabs::-webkit-scrollbar { display: none; }
  .carta__tab { flex: none; width: auto; min-height: 44px; padding: 4px 14px 4px 4px; white-space: nowrap; font-size: .9375rem; }
  .carta__tab img { width: 32px; height: 32px; }
  .carta__tab small, .carta__group { display: none; }
  .carta__panel { min-height: 0; border-radius: 22px; }
  .dish__name { font-size: 1.2rem; }
  .dish__price { font-size: 1.2rem; }
}

/* ---------------------------------------------------------------- booking ticket */
.reservar { padding: clamp(80px, 11vw, 150px) var(--pad); }
.ticket { display: grid; grid-template-columns: 1fr; align-items: start; max-width: 760px; margin-inline: auto; filter: drop-shadow(0 40px 50px rgba(43,24,16,.18)); }
.form, .form__fallback {
  position: relative; background: var(--paper); border-radius: 28px; padding: clamp(22px, 3.4vw, 40px); display: grid; gap: 16px;
}
.form__row { display: grid; gap: 16px; }
.form__row--2 { grid-template-columns: 1fr 1fr; }
.form__row--3 { grid-template-columns: 1.3fr 1fr 1fr; }
.field select { appearance: none; padding-right: 40px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%232B1810' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center; }
/* allergies and notes: folded away, they are optional */
.form__more { border-top: 1.5px solid rgba(43,24,16,.1); padding-top: 4px; }
.form__more summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; cursor: pointer; list-style: none; font-weight: 500; font-size: .9375rem; }
.form__more summary::-webkit-details-marker { display: none; }
.form__more summary::after { content: '+'; font: 400 1.5rem/1 var(--sans); color: var(--crust); transition: transform .25s var(--ease); }
.form__more[open] summary::after { transform: rotate(45deg); }
.form__more summary:focus-visible { outline: 2.5px solid var(--crust); outline-offset: 4px; border-radius: 6px; }
.form__more-body { display: grid; gap: 16px; padding: 8px 0 4px; }
.field { display: grid; gap: 7px; font-weight: 500; font-size: .9375rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid rgba(43,24,16,.2); border-radius: 12px; background: #fff;
  font: 400 1rem var(--sans); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 76px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(43,24,16,.4); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(200,68,30,.15); }
.field.is-invalid input, .field.is-invalid select { border-color: var(--crust); }
.err { color: var(--crust-ink); font-size: .875rem; font-weight: 500; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.checks legend { font-weight: 500; font-size: .9375rem; margin-bottom: 8px; padding: 0; }
.checks label { position: relative; cursor: pointer; }
.checks input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.checks span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid rgba(43,24,16,.18); font-size: .9375rem; transition: background .2s, border-color .2s; }
.checks input:checked + span { background: var(--cream); border-color: var(--gold); }
.checks input:focus-visible + span { outline: 2.5px solid var(--crust); outline-offset: 2px; }
.form__notice { margin-top: -4px; font-size: .78rem; line-height: 1.45; color: var(--ink-3); }
.form__hint { padding: 12px 16px; border-radius: 12px; background: var(--cream); font-size: .9375rem; }
.form__error { padding: 12px 16px; border-radius: 12px; background: #F8DCCF; color: var(--crust-ink); font-weight: 500; }
.form__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.form__done { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 12px; padding: 40px; background: var(--paper); }
.form__done[hidden] { display: none; }
.form__done-title { font: 400 clamp(2.2rem, 4vw, 3.4rem)/1 var(--serif); color: var(--crust); }
.form__done-text { max-width: 44ch; color: var(--ink-2); font-size: 1.125rem; }
.form__fallback { align-content: center; }
@media (max-width: 760px) {
  .ticket { grid-template-columns: 1fr; }
  .form, .form__fallback { border-radius: 24px; }
  .form__actions .btn { width: 100%; }
  .form__row--2 { grid-template-columns: 1fr; }
  .form__row--3 { grid-template-columns: 1fr 1fr; }
  .form__row--3 .field:first-child { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------------- where */
.donde { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding: clamp(80px, 10vw, 140px) var(--pad); background: var(--cream); }
.donde h2 { font-size: clamp(2.2rem, 4.4vw, 3.8rem); margin-bottom: 2rem; }
.donde__facts { margin: 0 0 1.6rem; display: grid; gap: 18px; }
.donde__facts div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.donde__facts dt { font: italic 1.15rem var(--italic); color: var(--crust-ink); }
.donde__facts dd { margin: 0; }
.donde__was { font: italic 1.2rem var(--italic); color: var(--ink-2); margin-bottom: 1.8rem; }
.donde__map svg { width: 100%; height: auto; }
.map__block { fill: #EBD3A4; stroke: var(--ink); stroke-width: 1.5; }
.map__block--plaza { fill: var(--paper); stroke-dasharray: 4 5; }
.map__street { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 1 6; fill: none; }
.map__label { font: 500 11px var(--sans); fill: var(--ink-2); letter-spacing: .04em; }
.map__label--plaza { font: italic 18px var(--italic); fill: var(--crust-ink); letter-spacing: 0; }
.map__pin circle { fill: var(--ink); }
.map__pin path { fill: var(--gold); }
.is-motion .map__pin { animation: pin 2.4s var(--ease) infinite; transform-box: fill-box; }
@keyframes pin { 0%, 100% { filter: drop-shadow(0 0 0 rgba(200,68,30,0)); } 50% { filter: drop-shadow(0 0 10px rgba(200,68,30,.6)); } }
@media (max-width: 860px) { .donde { grid-template-columns: 1fr; } .donde__facts div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------------------------------------------------------------- footer */
.foot { background: var(--ink); color: var(--cream); padding: 64px var(--pad) 0; overflow: hidden; }
.foot__cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 40px; font-size: .9375rem; color: rgba(246,228,191,.75); }
.foot__cols a { color: var(--cream); }
.foot__word { font: 400 clamp(5rem, 24vw, 22rem)/.78 var(--serif); letter-spacing: -.04em; color: var(--crust); margin: 40px 0 -.12em; white-space: nowrap; text-align: center; }

/* ---------------------------------------------------------------- motion helpers */
.is-motion [data-reveal] { opacity: 0; transform: translateY(28px); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------------------------------------------------------------- small phones */
@media (max-width: 520px) {
  .nav { gap: 6px; padding: 0 14px; }
  .nav__end { gap: 2px; }
  .nav .btn--sm { padding: 0 1em; }
  .nav__brand span { font-size: 1.2rem; }
  .nav__brand { gap: 8px; }
  .nav__brand img { width: 30px; height: 30px; }
  .dish__name { display: block; }
  .dish__name::after { display: none; }
  .dish__fav { display: block; margin-top: 2px; }
}

/* ---------------------------------------------------------------- club band */
.clubband { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding: clamp(80px, 10vw, 140px) var(--pad); background: var(--ink); color: var(--cream); overflow: hidden; }
.clubband .kicker { color: var(--gold); }
.clubband h2 { font-size: clamp(2.3rem, 5vw, 4.2rem); margin-bottom: 1rem; }
.clubband__text p:not(.kicker) { color: rgba(246, 228, 191, .78); font-size: 1.125rem; max-width: 40ch; margin-bottom: 1.8rem; }
.clubband .btn { --bg: var(--gold); --fg: var(--ink); }
.clubband .btn:hover, .clubband .btn:focus-visible { --fg: #fff; }
/* the club card, drawn like the pass in Google Wallet: chocolate card, round logo, stamps, QR and the picture below */
.pass {
  justify-self: center; width: min(100%, 380px); overflow: hidden; border-radius: 26px; background: #2B1810; color: #fff;
  transform: rotate(-4deg); box-shadow: 0 0 0 1px rgba(246,228,191,.12), 0 60px 80px -40px rgba(0,0,0,.8); font-family: var(--sans);
}
.pass__top { display: flex; align-items: center; gap: 12px; padding: 20px 22px 0; font-size: 1rem; font-weight: 500; color: rgba(255,255,255,.9); }
.pass__logo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.pass__name { margin: 18px 22px 0; font: 400 1.65rem/1.1 var(--sans); color: #fff; max-width: none; }
.pass__fields { display: flex; justify-content: space-between; gap: 16px; padding: 18px 22px 0; }
.pass__label { margin: 0 0 6px; font-size: .78rem; letter-spacing: .02em; color: rgba(255,255,255,.7); }
.pass__right { text-align: right; }
.pass__value { margin: 0; font-size: 1.15rem; color: #fff; }
.pass__stamps { display: flex; gap: 5px; margin: 0; padding: 0; list-style: none; }
.pass__stamps li { width: 17px; height: 17px; border-radius: 50%; border: 1.5px solid rgba(246,228,191,.45); }
.pass__stamps li.on { border: 0; background: radial-gradient(circle at 35% 30%, #F3C774, var(--gold) 55%, #B8701F); }
.is-motion .pass__stamps li:last-child { animation: stampin 2.6s var(--ease) infinite; }
.pass__left { margin: 12px 22px 0; font-size: .95rem; color: rgba(255,255,255,.85); }
.pass__qr { display: block; width: 46%; margin: 20px auto 22px; }
.pass__hero { display: block; width: 100%; height: auto; }
@media (max-width: 860px) { .clubband { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- intro: the cup that pours the page open */
.intro { display: none; }
.has-intro .intro {
  position: fixed; inset: 0; z-index: 200; display: grid; place-content: center; justify-items: center; gap: 10px;
  background: var(--batter); clip-path: inset(0 0 0 0);
}
.has-intro body { overflow: hidden; }
.intro__cup { width: min(46vw, 230px); overflow: visible; }
.intro__line { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.intro__fill, .intro__wave { fill: #4A2614; }
.intro__steam { fill: none; stroke: rgba(43,24,16,.35); stroke-width: 3.5; stroke-linecap: round; opacity: 0; }
.intro__word { font: 400 clamp(1.6rem, 4vw, 2.4rem)/1 var(--serif); color: var(--ink); }

/* ---------------------------------------------------------------- best sellers: one plate at a time, rolled in by the scroll */
.platos { position: relative; background: var(--griddle); color: var(--cream); overflow: hidden; }
.platos__pin {
  position: relative; min-height: 100svh; display: grid; grid-template-columns: 1fr auto 1fr; grid-template-rows: auto 1fr;
  column-gap: clamp(40px, 6vw, 110px); align-items: center; padding: clamp(84px, 11vh, 120px) var(--pad) clamp(40px, 7vh, 72px);
}
.platos__head { grid-column: 1 / -1; align-self: start; }
.platos .kicker { color: var(--gold); }
.platos__head h2 { font: 400 clamp(1.8rem, 3vw, 2.7rem)/1.05 var(--serif); color: var(--cream); max-width: 24ch; }
.platos__info { max-width: 34ch; transition: opacity .3s; }
.platos.is-moving .platos__info { opacity: .25; }
.platos__info p { margin: 0; }
.platos__tag { font: italic 1.15rem var(--italic); color: var(--gold); }
.platos__name { margin: .15em 0 .35em; font: 400 clamp(2.4rem, 4.2vw, 4rem)/1 var(--serif); color: #fff; }
.platos__desc { color: rgba(246,228,191,.75); font-size: 1.05rem; line-height: 1.5; }
.platos__price { margin: 1rem 0 1.4rem !important; font: 400 1.9rem var(--serif); color: var(--cream); }
.platos__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.platos .btn:not(.btn--ghost) { --bg: var(--crust); --fg: #fff; }
.platos .btn--ghost { --fg: var(--cream); box-shadow: inset 0 0 0 1.5px rgba(246,228,191,.45); }
.platos__info.is-in > * { animation: platoIn .7s var(--ease) both; }
.platos__info.is-in > :nth-child(2) { animation-delay: .05s; }
.platos__info.is-in > :nth-child(3) { animation-delay: .1s; }
.platos__info.is-in > :nth-child(4) { animation-delay: .15s; }
@keyframes platoIn { from { opacity: 0; transform: translateY(16px); } }
/* the plate: a round cut of the café's own photo, with a warm light under it */
.platos__stage { position: relative; width: min(40vw, 58svh); aspect-ratio: 1; }
.platos__stage::before { content: ''; position: absolute; inset: -18%; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, rgba(255,214,150,.16), rgba(255,214,150,0)); }
.platos__plates { position: absolute; inset: 0; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.platos__plates:focus-visible { outline: 2.5px solid var(--gold); outline-offset: 10px; }
.plato { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; will-change: transform; box-shadow: 0 0 0 10px rgba(246,228,191,.07), 0 60px 90px -30px rgba(0,0,0,.85); }
.plato img { display: block; width: 100%; height: 100%; object-fit: cover; }
:root:not(.is-motion) .plato { transition: transform .9s var(--ease), opacity .6s; }
/* what is in it: a gold dot on the ingredient, a line out of the plate and its name at the end */
.platos__labels { position: absolute; inset: 0; pointer-events: none; }
.lbl {
  position: absolute; top: var(--y); display: flex; padding-bottom: 7px; transform: translateY(-100%);
  font: 500 .85rem/1.2 var(--sans); letter-spacing: .02em; color: var(--cream); white-space: nowrap; text-shadow: 0 1px 8px rgba(0,0,0,.7);
  opacity: 0; transition: opacity .35s;
}
.lbl::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; border-top: 1px solid rgba(246,228,191,.6); }
.lbl::after { content: ''; position: absolute; bottom: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(214,170,90,.3); }
.lbl--l { left: -24%; width: calc(var(--x) + 24%); justify-content: flex-start; }
.lbl--l::after { right: -4px; }
.lbl--r { left: var(--x); width: calc(124% - var(--x)); justify-content: flex-end; }
.lbl--r::after { left: -4px; }
.lbl:nth-child(2) { transition-delay: .05s; } .lbl:nth-child(3) { transition-delay: .1s; } .lbl:nth-child(4) { transition-delay: .15s; } .lbl:nth-child(5) { transition-delay: .2s; }
.platos.is-open .lbl { opacity: 1; }
@media (hover: hover) { .platos__stage:hover .lbl { opacity: 1; } }
.platos.is-moving .lbl { opacity: 0 !important; transition-delay: 0s; }
.platos__hint { position: absolute; left: 50%; bottom: -44px; margin: 0; transform: translateX(-50%); font: italic 1rem var(--italic); color: rgba(246,228,191,.6); white-space: nowrap; transition: opacity .3s; }
.platos.is-open .platos__hint, .platos.is-moving .platos__hint { opacity: 0; }
@media (hover: hover) { .hint-touch { display: none; } .platos__stage:hover .platos__hint { opacity: 0; } }
@media (hover: none) { .hint-fine { display: none; } }
/* the four, to jump between them */
.platos__list { justify-self: end; display: grid; gap: 6px; width: min(100%, 300px); margin: 0; padding: 0; list-style: none; }
.platos__pick {
  display: grid; grid-template-columns: 54px 1fr; gap: 14px; align-items: center; width: 100%; padding: 7px 14px 7px 7px;
  border: 0; border-radius: 999px; background: transparent; color: inherit; text-align: left; cursor: pointer; transition: background .3s;
}
.platos__pick img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; opacity: .55; transition: opacity .3s, transform .4s var(--ease); }
.platos__pick b { display: block; font: 400 1.1rem/1.15 var(--serif); }
.platos__pick i { font-style: normal; font-size: .9rem; color: rgba(246,228,191,.6); }
.platos__pick:hover img { opacity: 1; }
.platos__pick[aria-pressed="true"] { background: rgba(246,228,191,.09); }
.platos__pick[aria-pressed="true"] img { opacity: 1; transform: scale(1.06); }
.platos__pick:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (max-width: 860px) {
  .platos__pin { grid-template-columns: 1fr; grid-template-rows: none; justify-items: center; align-content: start; row-gap: 12px; padding: 74px var(--pad) 22px; }
  .platos__head { justify-self: stretch; }
  .platos__head .kicker { margin-bottom: 4px; }
  .platos__head h2 { font-size: 1.55rem; }
  .platos__stage { order: 1; width: min(70vw, 32svh); margin: 4px 0 34px; }
  .platos__info { order: 2; text-align: center; max-width: 40ch; }
  .platos__name { font-size: 2rem; margin: .1em 0 .25em; }
  .platos__desc { font-size: .95rem; }
  .platos__price { margin: .5rem 0 .9rem !important; font-size: 1.4rem; }
  .platos__cta { justify-content: center; flex-wrap: nowrap; gap: 8px; }
  .platos__cta .btn { min-height: 46px; padding: 0 1.05em; font-size: .9rem; white-space: nowrap; }
  .platos__list { order: 3; display: flex; justify-content: center; gap: 10px; width: auto; justify-self: center; }
  .platos__pick { grid-template-columns: 44px; padding: 3px; }
  .platos__pick img { width: 44px; height: 44px; }
  .platos__pick span { display: none; }
  .platos__hint { bottom: -28px; font-size: .88rem; }
  /* on a phone the names sit on the ingredient itself, in a small pill */
  .lbl, .lbl--l, .lbl--r { left: var(--x); width: auto; padding: 4px 10px; transform: translate(-50%, -50%); border-radius: 999px; background: rgba(29,22,19,.85); font-size: .72rem; text-shadow: none; }
  .lbl::before, .lbl::after { display: none; }
}
@media (max-width: 860px) and (max-height: 760px) { .platos__desc { display: none; } .platos__head h2 { font-size: 1.35rem; } }

/* ---------------------------------------------------------------- studio: the house pair on film, played by the scroll */
.studio { position: relative; background: #160D07; color: var(--cream); overflow: hidden; }
.studio__pin { position: relative; height: 100svh; min-height: 560px; display: grid; align-items: center; padding: 0 var(--pad); }
.studio__film { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* the film fades into the page at its edges, and the left side darkens under the words */
.studio__pin::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(22,13,7,.92) 0%, rgba(22,13,7,.55) 30%, rgba(22,13,7,0) 52%),
              linear-gradient(180deg, #160D07 0%, rgba(22,13,7,0) 14%, rgba(22,13,7,0) 86%, #160D07 100%); }
.studio__text { position: relative; z-index: 2; max-width: min(36vw, 520px); }
.studio .kicker { color: var(--gold); }
.studio__title { margin: 0 0 1.2rem; font: 400 clamp(2.4rem, 4.6vw, 4.4rem)/1.02 var(--serif); color: #fff; }
.studio__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.studio__title .w > span { display: inline-block; }
.studio__lead { margin: 0; max-width: 38ch; color: rgba(246,228,191,.8); font-size: 1.125rem; line-height: 1.55; }
.studio__price { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 1.4rem 0 1.6rem; color: rgba(246,228,191,.75); }
.studio__price > span { display: inline-block; }
.studio__price b { font: 400 1.7rem var(--serif); color: var(--cream); }
.studio .btn:not(.btn--ghost) { --bg: var(--crust); --fg: #fff; }
.studio__bar { position: absolute; left: var(--pad); right: var(--pad); bottom: 26px; z-index: 2; height: 2px; background: rgba(246,228,191,.15); }
.studio__bar i { display: block; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; }
:root:not(.is-motion) .studio__bar { display: none; }
@media (max-width: 860px) {
  /* on a phone the film sits on top, the words under it */
  .studio__pin { height: auto; min-height: 100svh; align-content: start; padding: 58px var(--pad) 48px; }   /* clear of the nav bar */
  .studio__film { position: relative; inset: auto; width: calc(100% + 2 * var(--pad)); max-width: none; height: auto; aspect-ratio: 560 / 480; margin: 0 calc(-1 * var(--pad));
    -webkit-mask: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%); mask: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%); }
  .studio__pin::after { background: linear-gradient(180deg, #160D07 0%, rgba(22,13,7,0) 10%, rgba(22,13,7,0) 44%, #160D07 62%); }
  .studio__text { max-width: none; margin-top: -40px; }
  .studio__title { font-size: 2.1rem; margin-bottom: .8rem; }
  .studio__lead { font-size: 1rem; }
  .studio__price { margin: 1rem 0 1.2rem; }
  .studio__price b { font-size: 1.4rem; }
  .studio__bar { bottom: 18px; }
}

.intro__flood { position: absolute; pointer-events: none; background: #4A2614; left: 0; right: 0; bottom: 0; height: 100%; border-radius: 40% 40% 0 0 / 30px 30px 0 0; }
.intro__stream { fill: #4A2614; }

[hidden] { display: none !important; }

/* nothing animated (the folded crêpe, the tilted cards) may widen the page on a phone */
html, body { overflow-x: clip; }

/* ---------------------------------------------------------------- the day: a real clock on Barcelona time, and what to have at this hour */
.dia { --sky: #E7E5D9; position: relative; background: var(--sky); transition: background-color 1.2s var(--ease); }
.dia__wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(32px, 6vw, 96px); max-width: 1320px; margin: 0 auto; padding: clamp(80px, 10vw, 140px) var(--pad); }
.dia__stage { display: grid; justify-items: center; gap: 16px; }
.dia__clock { width: min(100%, 64vh, 540px); aspect-ratio: 1; }
.dia__clock svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 40px 50px rgba(43,24,16,.22)); }
.clock__rim { fill: var(--ink); }
.clock__face { fill: var(--paper); }
.clock__ticks line { stroke: rgba(43,24,16,.3); stroke-width: 2; }
.clock__ticks line.is-hour { stroke: var(--ink); stroke-width: 5; stroke-linecap: round; }
.clock__ticks text { font: 400 24px var(--serif); fill: var(--ink-2); text-anchor: middle; }
.clock__hour { stroke: var(--ink); stroke-width: 12; stroke-linecap: round; }
.clock__min { stroke: var(--ink); stroke-width: 6; stroke-linecap: round; }
.clock__sec { stroke: var(--crust); stroke-width: 2.5; stroke-linecap: round; }
.clock__pin { fill: var(--crust); stroke: var(--paper); stroke-width: 3; }
/* the drawing of the moment pops into the face */
.clock__icon { transform-box: fill-box; transform-origin: center; opacity: .95; }
.clock__icon.is-in { animation: iconIn .9s var(--ease) both; }
@keyframes iconIn { 0% { transform: scale(.2) rotate(-25deg); opacity: 0; } 60% { transform: scale(1.12) rotate(6deg); opacity: 1; } 100% { transform: none; opacity: .95; } }
.dia__now { display: flex; align-items: baseline; gap: 10px; margin: 0; color: var(--ink-2); font: italic 1.15rem var(--italic); }
.clock__time { font: 400 clamp(2.2rem, 4.4vw, 3.6rem)/1 var(--serif); font-style: normal; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.dia__copy .kicker { color: var(--crust-ink); }
.dia__title { margin: .1em 0 .4em; font-size: clamp(2.4rem, 4.6vw, 4rem); line-height: 1; }
.dia__note { max-width: 46ch; margin: 0 0 1.6rem; color: var(--ink-2); font-size: 1.08rem; }
/* the times of day, to look at the others */
.dia__slots { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.8rem; }
.dia__slot {
  display: grid; justify-items: start; gap: 2px; padding: 9px 16px; border: 1.5px solid rgba(43,24,16,.18); border-radius: 16px;
  background: rgba(255,255,255,.35); color: var(--ink); font: 500 .95rem var(--sans); cursor: pointer; transition: background .25s, border-color .25s, transform .25s var(--ease);
}
.dia__slot span { font-size: .78rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.dia__slot.is-live span { color: var(--crust-ink); font-weight: 600; }
.dia__slot.is-live span::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--crust); vertical-align: 1px; animation: livePulse 1.6s ease-in-out infinite; }
@keyframes livePulse { 50% { opacity: .3; } }
.dia__slot[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.dia__slot[aria-pressed="true"] span { color: rgba(251,247,240,.7); }
.dia__slot:hover { transform: translateY(-2px); }
.dia__slot:focus-visible { outline: 2.5px solid var(--crust); outline-offset: 2px; }
.dia__ideas { margin: 0 0 .8rem; font: italic 1.1rem var(--italic); color: var(--crust-ink); }
/* four combinations: the dish, the drink, and what the two cost together */
.dia__combos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 0; list-style: none; }
.combo {
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 12px; align-items: baseline;
  padding: 16px 18px; border-radius: 18px; background: rgba(251,247,240,.82); box-shadow: 0 18px 30px -24px rgba(43,24,16,.5);
  animation: comboIn .6s var(--ease) both;
}
.combo:nth-child(2) { animation-delay: .07s; } .combo:nth-child(3) { animation-delay: .14s; } .combo:nth-child(4) { animation-delay: .21s; }
@keyframes comboIn { from { opacity: 0; transform: translateY(14px); } }
.combo__food { grid-column: 1; font: 400 1.2rem/1.15 var(--serif); }
.combo__drink { grid-column: 1; grid-row: 2; color: var(--ink-2); font: italic 1.05rem var(--italic); }
.combo__price { grid-column: 2; grid-row: 1 / 3; align-self: center; font: 400 1.25rem var(--serif); color: var(--crust-ink); white-space: nowrap; }
@media (max-width: 860px) {
  .dia__wrap { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 72px var(--pad) 64px; }
  .dia__clock { width: min(68vw, 300px); }
  .dia__copy { text-align: left; }
  .dia__title { font-size: 2.2rem; }
  .dia__note { font-size: 1rem; margin-bottom: 1.2rem; }
  /* the times of day scroll sideways on a phone */
  .dia__slots { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--pad)) 1.4rem; padding: 0 var(--pad) 4px; scrollbar-width: none; }
  .dia__slots::-webkit-scrollbar { display: none; }
  .dia__slot { flex: none; }
  .dia__combos { grid-template-columns: 1fr; gap: 8px; }
  .combo { padding: 13px 16px; }
  .combo__food { font-size: 1.1rem; }
}

/* ---------------------------------------------------------------- recibo: the guest's receipt comes out of the printer as they scroll */
.recibo { position: relative; background: #1a110c; color: var(--cream); overflow: hidden; }
.recibo__pin { position: relative; height: 100svh; display: grid; justify-items: center; align-content: start; padding: 72px var(--pad) 0; overflow: hidden; }
/* the dishes on a dark table, cut by the edges of the screen */
.recibo__table { position: absolute; inset: 0; pointer-events: none; }
.recibo__plate { position: absolute; width: min(56vw, 760px); height: auto; border-radius: 50%; object-fit: cover; filter: brightness(.62) saturate(.9) contrast(1.05); box-shadow: 0 60px 90px -30px rgba(0,0,0,.8); }
.recibo__plate--a { left: -14vw; top: 14vh; transform: rotate(-12deg); }
.recibo__plate--b { right: -16vw; top: 38vh; transform: rotate(9deg); }
.recibo__table::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 40%, rgba(26,17,12,.1) 0%, rgba(26,17,12,.55) 70%), linear-gradient(180deg, rgba(26,17,12,.5), transparent 30%, transparent 70%, rgba(26,17,12,.7)); }
.recibo__title { position: absolute; z-index: 2; left: var(--pad); top: 96px; font: 400 clamp(2.6rem, 6vw, 5.8rem)/.95 var(--serif); letter-spacing: -.02em; color: #fff; text-shadow: 0 6px 30px rgba(0,0,0,.4); }
.recibo__title em { color: var(--gold); font-size: 1.04em; }
/* scaled down by main.js when the whole receipt would not fit in the screen */
.recibo__printer { position: relative; z-index: 3; display: grid; justify-items: center; width: min(92vw, 460px); transform-origin: 50% 0; }
.rprinter {
  position: relative; z-index: 2; width: 100%; height: 84px; border-radius: 16px;
  background: linear-gradient(180deg, #d9cfc3 0%, #b8ab9c 46%, #8f8273 100%);
  box-shadow: 0 30px 40px -24px rgba(0,0,0,.8), 0 1px 0 rgba(255,255,255,.6) inset, 0 -2px 0 rgba(0,0,0,.2) inset;
}
.rprinter__brand { position: absolute; left: 0; right: 0; top: 14px; text-align: center; font: 400 1.7rem/1 var(--serif); color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.25); }
.rprinter__slot { position: absolute; left: 6%; right: 6%; bottom: 12px; height: 8px; border-radius: 4px; background: #1a110c; box-shadow: 0 1px 0 rgba(255,255,255,.4); }
.recibo__clip { width: 88%; margin-top: -18px; overflow: hidden; }
.recibo__paper {
  padding: 24px 24px 28px; background: #f6f1e7; color: #1c1c1c; font: 500 .74rem/1.55 'Courier New', ui-monospace, monospace; letter-spacing: .06em; text-transform: uppercase;
  -webkit-mask: linear-gradient(#000, #000) top / 100% calc(100% - 10px) no-repeat, conic-gradient(from 135deg at 50% 0, #000 90deg, transparent 0) bottom / 14px 10px repeat-x;
          mask: linear-gradient(#000, #000) top / 100% calc(100% - 10px) no-repeat, conic-gradient(from 135deg at 50% 0, #000 90deg, transparent 0) bottom / 14px 10px repeat-x;
}
.recibo__paper p { margin: 0; }
.rp__head { text-align: center; font-weight: 700; font-size: .86rem; letter-spacing: .24em; }
.rp__rule { border-top: 2px dashed #9a948a; margin: 11px 0 !important; }
.rp__photo { display: block; width: 100%; height: clamp(150px, 28svh, 290px); object-fit: cover; border-radius: 6px; }
.rp__dish { display: flex; justify-content: space-between; margin-top: 10px !important; font-weight: 700; }
.rp__cols { display: flex; justify-content: space-between; gap: 16px; }
.rp__right { text-align: right; }
.rp__thanks { margin-top: 12px !important; }
.rp__cta { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; }
.rp__big { font: 800 1.15rem/1.15 var(--sans); letter-spacing: 0; }
.rp__side { display: grid; gap: 8px; padding-left: 16px; border-left: 1.5px solid #c9c2b6; font-size: .62rem; color: #555; }
.rp__btn { display: inline-flex; justify-content: space-between; gap: 16px; padding: 9px 12px; background: #1c1c1c; color: #fff; text-decoration: none; font-weight: 700; font-size: .7rem; }
.rp__btn:hover, .rp__btn:focus-visible { background: var(--crust); }
.rp__bars { display: flex; gap: 2px; height: 40px; margin-top: 14px !important; }
.rp__bars i { display: block; flex: none; background: #1c1c1c; }
.rp__foot { margin-top: 10px !important; text-align: center; font-size: .62rem; letter-spacing: .2em; color: #555; }
@media (max-width: 860px) {
  .recibo__pin { padding-top: 70px; }
  .recibo__title { position: relative; left: auto; top: auto; z-index: 2; justify-self: start; font-size: 2rem; margin-bottom: 10px; }
  .recibo__printer { width: min(94vw, 400px); }
  .recibo__plate { width: 92vw; }
  .recibo__plate--a { left: -40vw; top: 26vh; }
  .recibo__plate--b { right: -44vw; top: 56vh; }
  .rprinter { height: 64px; }
  .rprinter__brand { font-size: 1.3rem; top: 10px; }
  .rprinter__slot { bottom: 9px; }
  .recibo__paper { padding: 22px 18px 26px; font-size: .64rem; }
  .rp__photo { height: clamp(110px, 20svh, 200px); }
  .rp__cta { grid-template-columns: 1fr; }
  .rp__side { padding-left: 0; border-left: 0; }
  .rp__thanks { display: none; }
}
