:root {
  /* Page colours, taken from the Locaλ logo: beige paper, near-black ink, dusty-rose arch */
  --bg: #e8e4dd;
  --bg-2: #f1eee9;
  --ink: #1c1815;
  --ink-soft: rgba(28, 24, 21, 0.74);
  --ink-faint: rgba(28, 24, 21, 0.52);
  --line: rgba(28, 24, 21, 0.13);
  --accent: #7d5f53;          /* the arch rose, deepened so text in it stays readable */
  --rose: #a38477;            /* the arch rose as drawn, for lines and details */
  --night: #110e0c;           /* the film's dark set */
  --serif: "Noto Serif Display", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }

/* The opening (film or still photo) and the nav over it use the dark palette */
.film, .hero, .nav:not(.nav--light) {
  --bg: var(--night);
  --bg-2: #181310;
  --ink: #f3e9dc;
  --ink-soft: rgba(243, 233, 220, 0.74);
  --ink-faint: rgba(243, 233, 220, 0.48);
  --line: rgba(243, 233, 220, 0.14);
  --accent: #d8b9ad;          /* the arch rose, lightened for the dark background */
  color: var(--ink);
}
.film, .hero { background: var(--night); }
.to-light { height: clamp(120px, 24vh, 260px); background: linear-gradient(var(--night), var(--bg)); }
em { font-style: italic; color: var(--accent); font-weight: 300; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  padding-top: max(18px, env(safe-area-inset-top));
  background: linear-gradient(to bottom, rgba(17, 14, 12, 0.85), rgba(17, 14, 12, 0.45) 60%, transparent);
  transition: background .3s;
}
.nav--light { background: linear-gradient(to bottom, rgba(232, 228, 221, 0.95), rgba(232, 228, 221, 0.75) 70%, transparent); }
/* Logo: the Locaλ wordmark (public/logo.png, cream on transparent) + the logo's tagline as text */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { display: block; height: 26px; width: auto; }
.brand .logo-on-dark { filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.7)); }
.nav--light .logo-on-dark, .nav:not(.nav--light) .logo-on-light { display: none; }
.brand span {
  font-family: var(--sans); font-size: 12px; font-weight: 400;
  letter-spacing: 0.12em; color: var(--ink-faint); white-space: nowrap;
}
.footer .brand img { height: 22px; }
@media (max-width: 520px) {
  .nav .brand span { display: none; }
  .nav { background: linear-gradient(to bottom, rgba(17, 14, 12, 0.96) 0%, rgba(17, 14, 12, 0.8) 70%, transparent); }
  .nav--light { background: linear-gradient(to bottom, rgba(232, 228, 221, 0.97) 0%, rgba(232, 228, 221, 0.85) 70%, transparent); }
}
.nav nav { display: flex; gap: clamp(14px, 3vw, 32px); align-items: center; }
.nav nav a {
  font-size: 13px; font-weight: 500; letter-spacing: 0.04em;
  text-decoration: none; color: var(--ink-soft); transition: color .2s;
}
.nav nav a:hover { color: var(--ink); }
.nav .lang {
  font-size: 12px; letter-spacing: 0.08em; padding: 6px 10px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.nav .nav-cta {
  color: var(--bg) !important; background: var(--ink);
  padding: 8px 16px; border-radius: 999px;
}

/* ---------- Scroll film ---------- */
.film { position: relative; height: 700vh; }
.stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
}
.film-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to left, rgba(17, 14, 12, 0.82) 0%, rgba(17, 14, 12, 0.5) 30%, transparent 55%),
    linear-gradient(to top, rgba(17, 14, 12, 0.55), transparent 22%);
}

.beats { position: absolute; inset: 0; pointer-events: none; }
.beat {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  width: min(580px, 40vw);
  transform: translateY(calc(-40% + var(--y, 0px)));
  opacity: 0;
  will-change: opacity, transform;
}
.beat.is-live { pointer-events: auto; }

.eyebrow {
  margin: 0 0 18px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--accent);
}
.beat h1, .beat h2, .hero-copy h1, .section-head h2 {
  margin: 0 0 20px;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(38px, 4vw, 64px); line-height: 1.04; letter-spacing: -0.02em;
}
.lede { margin: 0; font-size: clamp(15px, 1.2vw, 18px); color: var(--ink-soft); max-width: 38ch; }

.hint {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 36px;
  font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink-faint);
}
.hint i {
  position: relative; width: 1px; height: 40px; background: var(--line); overflow: hidden;
}
.hint i::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%;
  background: var(--ink); animation: drip 1.8s cubic-bezier(.6, 0, .4, 1) infinite;
}
@keyframes drip { to { top: 100%; } }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-block; padding: 14px 24px; border-radius: 999px;
  background: var(--accent); color: var(--bg); text-decoration: none;
  font-size: 14px; font-weight: 600; letter-spacing: 0.02em;
  transition: transform .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { background: var(--line); }

.progress {
  position: absolute; left: var(--gutter); bottom: 28px;
  width: 120px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden;
}
.progress span {
  display: block; height: 100%; width: 100%; background: var(--accent);
  transform-origin: left; transform: scaleX(0);
}

/* Still hero: shown instead of the film when it's switched off in site.yaml */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to left, rgba(17, 14, 12, 0.82) 0%, rgba(17, 14, 12, 0.5) 30%, transparent 55%),
    linear-gradient(to top, var(--bg), transparent 22%);
}
.hero-copy { position: relative; z-index: 1; margin-left: auto; margin-right: var(--gutter); width: min(580px, 40vw); }

/* Portrait screens: film sits in the top of the screen, copy underneath */
@media (max-aspect-ratio: 9/10) {
  .shade {
    background: linear-gradient(to bottom,
      transparent 0%, transparent 42%,
      rgba(17, 14, 12, 0.75) 58%, var(--bg) 66%);
  }
  .beat {
    left: var(--gutter); right: var(--gutter); top: auto;
    bottom: max(56px, calc(env(safe-area-inset-bottom) + 40px));
    width: auto; transform: translateY(var(--y, 0px));
  }
  .beat h1, .beat h2, .hero-copy h1 { font-size: clamp(34px, 9.5vw, 52px); margin-bottom: 14px; }
  .eyebrow { margin-bottom: 12px; }
  .hint { margin-top: 22px; }
  .hero { flex-direction: column; justify-content: flex-end; }
  .hero-img { height: 68%; object-position: 38% 50%; }
  .hero::after { background: linear-gradient(to bottom, transparent 0%, transparent 42%, rgba(17, 14, 12, 0.75) 58%, var(--bg) 66%); }
  .hero-copy { margin: 0; width: auto; padding: 0 var(--gutter) max(56px, calc(env(safe-area-inset-bottom) + 40px)); }
  .progress { left: 50%; transform: translateX(-50%); bottom: max(22px, env(safe-area-inset-bottom)); }
}

/* ---------- Content sections ---------- */
.section { padding: clamp(96px, 14vw, 180px) var(--gutter); max-width: 1240px; margin: 0 auto; }
.section-head { margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 { font-size: clamp(34px, 4.4vw, 60px); }

.dishes {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 24px);
  margin: 0 0 clamp(64px, 9vw, 112px);
}
.dish { margin: 0; }
.dish img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 999px 999px 18px 18px; background: var(--bg-2);   /* arch, like the logo */
  transition: transform .6s cubic-bezier(.2, .7, .2, 1), filter .6s;
  filter: saturate(.95) brightness(.95);
}
.dish:hover img { transform: scale(1.02); filter: none; }
.dish figcaption {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 14px 2px 0;
}
.dish figcaption span { flex: 1; font-family: var(--serif); font-size: 19px; }
.dish figcaption b { font-weight: 500; font-variant-numeric: tabular-nums; }
.dish figcaption small { flex-basis: 100%; font-size: 13px; color: var(--ink-faint); }
.dish figcaption b, .menu-col li b { color: var(--accent); }

.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 5vw, 72px); }
.menu-col h3, .card h3 {
  margin: 0 0 18px; font-family: var(--serif); font-weight: 400; font-size: 22px;
}
.menu-col ul { list-style: none; margin: 0; padding: 0; }
.menu-col li {
  display: flex; align-items: baseline; gap: 10px;
  padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft);
}
.menu-col li span { flex: 1; }
.menu-col li b { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.note { margin: 36px 0 0; font-size: 14px; color: var(--ink-faint); }

.visit { border-top: 1px solid var(--line); }
.visit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card {
  padding: 32px; border-radius: 20px;
  background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line);
}
.card p, .card address { margin: 0 0 10px; font-style: normal; color: var(--ink-soft); }
.hours { margin: 0; }
.hours div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
.hours div:last-child { border-bottom: 0; }
.hours dt { color: var(--ink-soft); }
.hours dd { margin: 0; font-variant-numeric: tabular-nums; }
.link { color: var(--accent); text-decoration: none; font-weight: 500; }
.link:hover { text-decoration: underline; }

.footer {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 32px var(--gutter) max(32px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-faint);
}

@media (max-width: 820px) {
  .menu-grid, .visit-grid { grid-template-columns: 1fr; }
  /* Photo row becomes a swipeable strip that bleeds to the screen edges */
  .dishes {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter));
    padding: 0 var(--gutter); scroll-padding: 0 var(--gutter);
    scrollbar-width: none;
  }
  .dishes::-webkit-scrollbar { display: none; }
  .dish { flex: 0 0 68%; scroll-snap-align: start; }
  .nav nav a:not(.nav-cta):not(.lang) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hint i::after { animation: none; }
}

/* ---------- Table menu page (/menu/, opened from the QR codes) ---------- */
.menu-page main { max-width: 680px; margin: 0 auto; padding: 0 var(--gutter); }
.menu-top {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 680px; margin: 0 auto; padding: max(18px, env(safe-area-inset-top)) var(--gutter) 6px;
}
.menu-top .brand img { height: 24px; }
.menu-top .lang {
  font-size: 12px; letter-spacing: 0.08em; padding: 6px 10px; border-radius: 999px;
  text-decoration: none; color: var(--ink-soft); box-shadow: inset 0 0 0 1px var(--line);
}
.menu-intro { padding: 28px 0 18px; }
.menu-intro h1 {
  margin: 0 0 10px; font-family: var(--serif); font-weight: 400;
  font-size: clamp(48px, 13vw, 76px); line-height: 1; letter-spacing: -0.02em;
}
.menu-intro .lede { font-size: 16px; }

.menu-tabs {
  position: sticky; top: 0; z-index: 10;
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(-1 * var(--gutter)); padding: 12px var(--gutter);
  background: rgba(232, 228, 221, 0.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.menu-tabs::-webkit-scrollbar { display: none; }
.menu-tabs a {
  flex: none; padding: 8px 14px; border-radius: 999px; white-space: nowrap;
  font-size: 14px; text-decoration: none; color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line); background: var(--bg-2);
}
.menu-tabs a:hover { box-shadow: inset 0 0 0 1px var(--rose); }

.menu-group { padding-top: 34px; scroll-margin-top: 64px; }
.menu-group h2 { margin: 0 0 6px; font-family: var(--serif); font-weight: 400; font-size: 30px; }
.menu-group ul { list-style: none; margin: 0; padding: 0; }
.menu-group li {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.menu-group li:not(:has(img)) { grid-template-columns: 1fr auto; }
.menu-group li img {
  width: 56px; height: 70px; object-fit: cover; display: block;
  border-radius: 999px 999px 10px 10px; background: var(--night);   /* the logo's arch */
}
.item-name { display: block; font-size: 17px; }
.menu-group small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--ink-faint); }
.menu-group b { font-weight: 500; color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }

.menu-note { margin: 26px 0 0; font-size: 14px; color: var(--ink-soft); }
.menu-card { margin: 28px 0 0; padding: 18px 20px; border-radius: 18px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.menu-card h2 { margin: 0 0 8px; font-family: var(--serif); font-weight: 400; font-size: 22px; }
.menu-card p { display: flex; justify-content: space-between; gap: 12px; margin: 6px 0 0; }
.menu-card span { color: var(--ink-faint); }
.menu-legal { margin: 40px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.5; color: var(--ink-faint); }
.menu-legal p { margin: 0 0 6px; }
.menu-footer { max-width: 680px; margin: 24px auto 0; }
.group-note { margin: 0 0 4px; font-size: 13px; color: var(--ink-faint); }
.extras { margin: 18px 0 0; padding: 14px 16px; border-radius: 14px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.extras h3 { margin: 0 0 6px; font-size: 13px; font-weight: 500; letter-spacing: 0.04em; color: var(--ink-soft); }
.extras ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0 24px; }
.extras li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; font-size: 14px; border: 0; }
.menu-group .extras li { grid-template-columns: none; }
.menu-col li small { color: var(--ink-faint); font-size: 12px; }
