/* Venue home page (server/pages/venue-home.js): the guest page's palette and type, laid out as a browsable menu. */
:root {
  --color-paper: oklch(97% 0.01 80); --color-paper-2: oklch(93.5% 0.014 80); --color-card: oklch(99% 0.005 80);
  --color-ink: oklch(25% 0.02 50); --color-ink-soft: oklch(40% 0.02 50); --color-rule: oklch(25% 0.02 50 / 0.13); --color-rule-strong: oklch(25% 0.02 50 / 0.8);
  --color-orange: oklch(60% 0.14 45); --color-orange-dark: oklch(54% 0.14 45); --color-orange-deep: oklch(46% 0.14 45); --color-yellow: oklch(88% 0.045 75);
  --color-pink: oklch(46% 0.1 15); --color-ochre: oklch(68% 0.09 80); --color-blue: oklch(45% 0.05 250); --color-clay: oklch(52% 0.07 55); --color-teal: oklch(56% 0.05 150);
  --font-display: 'Instrument Serif', Georgia, serif; --font-body: Geist, system-ui, sans-serif;
  --space-xs: 4px; --space-sm: 8px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px;
  --gutter: clamp(16px, 4vw, 64px); --radius-sm: 6px; --radius-md: 14px;
  --shadow-sm: 0 1px 2px oklch(25% 0.02 50 / .06), 0 2px 8px oklch(25% 0.02 50 / .05); --shadow-md: 0 2px 4px oklch(25% 0.02 50 / .06), 0 12px 28px oklch(25% 0.02 50 / .12);
  --ease-out: cubic-bezier(.22, 1, .36, 1); --dur-fast: 180ms; --dur: 380ms;
  --head: 56px; --cats: 60px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head) + var(--space-sm)); }
html.site-transition { scroll-behavior: auto; }
body { margin: 0; font: 400 1rem/1.55 var(--font-body); font-variant-numeric: tabular-nums; color: var(--color-ink); background: var(--color-paper); overflow-x: clip; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: -.01em; margin: 0; overflow-wrap: anywhere; }
a { color: var(--color-orange-deep); }
:focus-visible { outline: 3px solid var(--color-blue); outline-offset: 2px; }
.skip { position: absolute; left: var(--space-md); top: -60px; z-index: 60; background: var(--color-ink); color: var(--color-paper); padding: 10px 16px; border-radius: var(--radius-sm); }
.skip:focus { top: var(--space-sm); }

/* Header: name + two anchors, sticky */
.top { position: sticky; top: 0; z-index: 40; height: var(--head); display: flex; align-items: center; gap: var(--space-md); padding: 0 var(--gutter);
  background: var(--color-paper); border-bottom: 1px solid var(--color-rule-strong); }
.brand { font: 1.75rem/1 var(--font-display); color: var(--color-ink); text-decoration: none; margin-right: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top nav { display: flex; gap: var(--space-xs); }
.top nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--radius-sm); font-weight: 600; font-size: .95rem; color: var(--color-ink-soft); text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out); }
.top nav a:hover { color: var(--color-ink); background: var(--color-paper-2); }

/* Hero: the venue's photo, name, hours, one action */
.hero { position: relative; isolation: isolate; min-height: min(72vh, 620px); display: flex; align-items: flex-end; color: var(--color-paper); background: var(--color-ink); }
.hero img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, oklch(20% 0.02 50 / .82) 0%, oklch(20% 0.02 50 / .35) 45%, oklch(20% 0.02 50 / .05) 75%); }
.hero.plain { min-height: 0; color: var(--color-ink); background: var(--color-paper-2); border-bottom: 1px solid var(--color-rule); }
.hero.plain::after { content: none; }
.hero-in { width: 100%; padding: var(--space-3xl) var(--gutter) var(--space-xl); animation: rise var(--dur) var(--ease-out) both; }
.eyebrow { margin: 0 0 var(--space-xs); font-weight: 600; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.hero h1 { font-size: clamp(3.75rem, 14vw, 9rem); line-height: .9; }
.hours { margin: var(--space-sm) 0 0; font-size: 1.1rem; }
.cta { display: inline-flex; align-items: center; min-height: 48px; margin-top: var(--space-lg); padding: 0 26px; border-radius: 12px; font-weight: 700; text-decoration: none;
  color: var(--color-paper); background: var(--color-orange-dark); box-shadow: 0 4px 0 var(--color-orange-deep);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out); }
.cta { border: 2px solid var(--color-ink); box-shadow: 0 5px 0 var(--color-ink); animation: nudge 2.6s var(--ease-out) 1.2s infinite; }
@media (hover: hover) { .cta:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--color-ink); animation: none; } }
.cta:active { transform: translateY(5px); box-shadow: 0 0 0 var(--color-ink); animation: none; transition-duration: 60ms; }
@keyframes nudge { 0%, 70%, 100% { transform: none; } 80% { transform: translateY(-4px); } 90% { transform: translateY(0); } }

main { padding: 0 var(--gutter); }
main > section > h2 { font-size: clamp(2.5rem, 6vw, 4rem); line-height: 1; padding: var(--space-2xl) 0 var(--space-lg); }

/* O nama: text left, facts right on wide screens */
.about-in { display: grid; gap: var(--space-xl); grid-template-columns: minmax(0, 1fr); padding-bottom: var(--space-2xl); border-bottom: 1px solid var(--color-rule); }
@media (min-width: 900px) { .about-in { grid-template-columns: minmax(0, 3fr) minmax(260px, 2fr); align-items: start; } }
.about-txt p { margin: 0 0 var(--space-md); max-width: 62ch; font-size: 1.15rem; line-height: 1.65; }
.about-txt .order { font-size: 1rem; color: var(--color-ink-soft); padding-left: var(--space-md); border-left: 3px solid var(--color-orange); }
.facts { margin: 0; padding: var(--space-lg); background: var(--color-card); border: 1px solid var(--color-rule); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.facts div + div { margin-top: var(--space-md); padding-top: var(--space-md); border-top: 1px solid var(--color-rule); }
.facts dt { font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--color-ink-soft); }
.facts dd { margin: var(--space-xs) 0 0; font-size: 1.1rem; }

/* Category colours: same keys as the guest page; --cat-on is the text that reads on it */
.c-none { --cat: var(--color-orange-dark); --cat-on: var(--color-paper); }
.c-honey { --cat: var(--color-ochre); --cat-on: var(--color-ink); } .c-berry { --cat: var(--color-pink); --cat-on: var(--color-paper); }
.c-coffee { --cat: var(--color-blue); --cat-on: var(--color-paper); } .c-caramel { --cat: var(--color-clay); --cat-on: var(--color-paper); }
.c-pist { --cat: var(--color-teal); --cat-on: var(--color-paper); }

/* 3D press: a solid ink edge underneath that the button sinks into */
.press { border: 2px solid var(--color-ink); box-shadow: 0 4px 0 var(--color-ink); transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out); }
@media (hover: hover) { .press:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--color-ink); } }
.press:active { transform: translateY(4px); box-shadow: 0 0 0 var(--color-ink); transition-duration: 60ms; }

/* Menu: one tile per category, in its colour, with a photo */
.tiles { display: grid; gap: var(--space-lg); grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); margin: 0; padding: 0 0 var(--space-2xl); list-style: none; }
.tile { position: relative; display: flex; flex-direction: column; height: 100%; border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--cat-on); background: var(--cat); box-shadow: 0 6px 0 var(--color-ink); }
@media (hover: hover) { .tile.press:hover { box-shadow: 0 9px 0 var(--color-ink); transform: translateY(-3px); } .tile:hover img { transform: scale(1.06); } }
.tile.press:active { box-shadow: 0 0 0 var(--color-ink); transform: translateY(6px); }
.tile img, .tile .ph { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--color-paper-2); border-bottom: 2px solid var(--color-ink); transition: transform var(--dur) var(--ease-out); }
.tile-name { display: block; padding: 14px 16px 16px; font: 1.7rem/1.05 var(--font-display); }

/* An open category: full screen (CSS :target, so it works without the script and the back button closes it), one dish per screen */
.cat { position: fixed; inset: 0; z-index: 100; display: none; flex-direction: column; background: color-mix(in oklch, var(--cat) 16%, var(--color-paper)); }
.cat:target { display: flex; }
body:has(.cat:target) { overflow: hidden; }
.cat-top { display: flex; align-items: center; gap: var(--space-md); padding: 10px var(--gutter); background: var(--color-paper); border-bottom: 2px solid var(--color-ink); }
.cat-h { font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.count { font-weight: 700; font-size: .95rem; color: var(--color-ink-soft); white-space: nowrap; }
.count b { color: var(--color-ink); }
.back { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; padding-bottom: 3px; font: 700 1.6rem/1 var(--font-body); text-decoration: none; color: var(--color-ink); background: var(--color-paper); }
.cat-nav { flex: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: var(--space-sm); padding: 0 var(--gutter) max(var(--space-md), env(safe-area-inset-bottom)); }
.cat-link { display: flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 50px; max-width: 100%; padding: 8px clamp(10px, 3vw, 20px); border-radius: var(--radius-md); color: var(--cat-on); background: var(--cat); font-size: 1.05rem; font-weight: 700; text-align: center; text-decoration: none; overflow-wrap: anywhere; }
.cat-prev { justify-self: start; }
.cat-next { grid-column: 2; justify-self: end; }
.cat-next:only-child { grid-column: 1 / -1; }
.cat-overview { color: var(--color-ink); background: var(--color-paper); }
@media (min-width: 900px) { .cat-link { min-height: 56px; padding-inline: 24px; font-size: 1.125rem; } }

/* The dish in focus sits in the middle; the previous and next peek in at the sides, fogged (--d = distance from the middle, set by venue.js while scrolling) */
.cat { --slide: 76vw; --fog: color-mix(in oklch, var(--cat) 16%, var(--color-paper)); }
@media (min-width: 700px) { .cat { --slide: min(62vw, 1040px); } }
.rail-window::before, .rail-window::after { content: ''; position: absolute; inset-block: 0; z-index: 2; width: calc((100% - var(--slide)) / 2); pointer-events: none; }
.rail-window::before { left: 0; background: linear-gradient(to right, color-mix(in oklch, var(--fog) 85%, transparent), transparent); }
.rail-window::after { right: 0; background: linear-gradient(to left, color-mix(in oklch, var(--fog) 85%, transparent), transparent); }
.cat-top { flex: none; height: 72px; }
.rail-window { position: relative; flex: 1; min-height: 0; overflow: clip; }
.cat:target .rail-window { animation: open var(--dur) var(--ease-out) both; }
@keyframes open { from { opacity: .85; } }
.rail { position: relative; height: 100%; display: flex; margin: 0; padding: 0 calc((100% - var(--slide)) / 2); list-style: none; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; overscroll-behavior: contain; scrollbar-width: none; cursor: grab; -webkit-overflow-scrolling: touch; }
.rail::-webkit-scrollbar { display: none; }
.rail-window:has(.rail.live) { cursor: grab; touch-action: pan-y pinch-zoom; }
.rail-window:has(.rail.drag) { cursor: grabbing; }
.rail:focus-visible { outline-offset: -4px; }
.rail.live:focus-visible { outline: none; }
.rail-window:has(.rail.live:focus-visible) { outline: 3px solid var(--color-blue); outline-offset: -4px; }
/* One dish per slide: photo on top, or photo left on a wide screen */
.item { flex: 0 0 var(--slide); min-width: 0; scroll-snap-align: center; scroll-snap-stop: always; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: var(--space-md); padding: var(--space-lg) 10px var(--space-xl);
  transform-origin: center; will-change: transform, opacity; }
/* venue.js moves the rail itself (translate3d) and sets each dish's scale/opacity per frame: compositor-only, no filters, so it never stutters */
.cat { overflow: hidden; }
.rail.live { overflow: visible; scroll-snap-type: none; cursor: inherit; will-change: transform; user-select: none; -webkit-user-select: none; }
.live .item { scroll-snap-align: none; }
.live .item:not(.on) { cursor: pointer; }
@media (min-width: 1100px) { .item { grid-template-rows: minmax(0, 1fr); grid-template-columns: minmax(0, 3fr) minmax(280px, 2fr); align-items: center; gap: var(--space-xl); padding: var(--space-xl) 24px; } }
.pic { min-height: 0; height: 100%; display: flex; align-items: center; justify-content: center; }
.pic img, .pic .ph { display: block; width: 100%; height: 100%; max-height: 100%; object-fit: cover; border-radius: 22px; border: 2px solid var(--color-ink); box-shadow: 10px 10px 0 var(--cat); background: var(--color-paper-2); }
@media (min-width: 1100px) { .pic img, .pic .ph { height: auto; aspect-ratio: 4 / 3; } }
.txt { display: flex; flex-direction: column; gap: var(--space-sm); }
.item h3 { font-size: clamp(2.2rem, 7vw, 4rem); line-height: 1; }
.item p { margin: 0; font-size: 1.05rem; line-height: 1.55; color: var(--color-ink-soft); max-width: 46ch; }
.foot { display: flex; align-items: center; gap: var(--space-sm); padding-top: var(--space-sm); }
.price { font-weight: 800; font-size: 1.25rem; padding: 8px 18px; border-radius: 999px; color: var(--cat-on); background: var(--cat); border: 2px solid var(--color-ink); box-shadow: 0 4px 0 var(--color-ink); }
.tag { font-size: .85rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--color-paper); border: 2px solid var(--color-ink); color: var(--color-ink); }
.tag.top { background: var(--color-yellow); }
.sold .pic img { filter: grayscale(1); opacity: .6; }
.sold .price { background: var(--color-paper-2); color: var(--color-ink-soft); text-decoration: line-through; }
/* Titles and descriptions rise into focus. The price row moves with the dish. */
.item.on .txt > :is(h3, p) { animation: rise var(--dur) var(--ease-out) both; }
.item.on .txt > p { animation-delay: 60ms; }
@media (min-width: 600px) and (max-height: 500px) {
  .item { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr); align-items: center; gap: var(--space-md); padding: var(--space-sm); }
  .item h3 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
  .item p { -webkit-line-clamp: 3; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
  .pic img, .pic .ph { height: 100%; }
}
@media (pointer: coarse) { .cat-top { border-bottom: 0; } }
@media (max-width: 599px) { .tiles { grid-template-columns: 1fr 1fr; gap: var(--space-md); } .tile-name { font-size: 1.3rem; padding: 10px 12px 12px; }
  .cat-top { border-bottom: 0; } .item { padding: var(--space-md) 6px var(--space-lg); } .item p { -webkit-line-clamp: 4; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; } }
.empty { color: var(--color-ink-soft); padding-bottom: var(--space-2xl); }

footer { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-lg); margin-top: var(--space-2xl); padding: var(--space-lg) var(--gutter); border-top: 1px solid var(--color-rule-strong); font-size: .9rem; color: var(--color-ink-soft); }
footer nav { display: flex; gap: var(--space-md); }
footer a { color: var(--color-ink-soft); display: inline-flex; align-items: center; min-height: 44px; }
footer .by { margin-left: auto; }

@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (max-width: 480px) { .top nav a { padding: 0 8px; } .brand { font-size: 1.5rem; } }
