/* Holzglut — concept restaurant site (The Fine Pages kit, restaurant variant).
   Type: Bodoni Moda (display) + Hanken Grotesk (text). Scale 1.333 from 16px.
   Spacing: 4px grid. Colour 60-30-10: night / cream / ember (ember only on the reserve action). */

@font-face { font-family: "Bodoni Moda"; src: url("media/bodoni-moda.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url("media/bodoni-moda-italic.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("/assets/fonts/hanken-grotesk-latin.woff2") format("woff2"); font-weight: 200 700; font-style: normal; font-display: swap; }

:root {
  --night: #15110d;
  --char: #201a14;
  --cream: #f1e8da;
  --cream-muted: #b8aa96;
  --ember: #e2713d;
  --ember-deep: #cf5f2c;
  --rule: rgba(241, 232, 218, .14);
  --ember-halo: rgba(226, 113, 61, .2);
  --cream-lift: #fff8ec;
  /* paper side (reservation sheet) */
  --paper: #f1e8da;
  --paper-field: #fffaf1;
  --paper-line: #d8cdbb;
  --ink-soft: #5c5246;
  --ink-faint: #6b6052;
  --ink-off: #9c9284;
  --radius-sheet: 16px;

  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --t-sm: .75rem;
  --t-base: 1rem;
  --t-md: 1.333rem;
  --t-lg: 1.777rem;
  --t-xl: 2.369rem;
  --t-2xl: 3.157rem;
  --t-3xl: 4.209rem;
  --t-4xl: 5.61rem;
  --t-5xl: 7.478rem;

  --gutter: clamp(16px, 5vw, 64px);
  --section: clamp(96px, 14vw, 192px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font: 400 var(--t-base)/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
em { font-style: italic; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }

.skip { position: absolute; left: 16px; top: -100px; z-index: 50; background: var(--cream); color: var(--night); padding: 8px 16px; border-radius: var(--radius); }
.skip:focus { top: 16px; }

.muted { color: var(--cream-muted); }

/* concept strip */
.concept {
  margin: 0;
  display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: center; align-items: center;
  padding: 8px var(--gutter);
  background: var(--cream); color: var(--night);
  font-size: var(--t-sm); letter-spacing: .01em; text-align: center;
}
.concept a { text-underline-offset: 3px; }
.concept-cta { font-weight: 600; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 20px;
  border: 0; border-radius: var(--radius);
  font: 500 var(--t-base)/1 var(--sans); letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), transform .2s var(--ease), opacity .2s var(--ease);
  user-select: none; -webkit-user-select: none;
}
.btn:active { transform: scale(.98); }
.btn-ember { background: var(--ember); color: var(--night); }
.btn-cream { background: var(--cream); color: var(--night); }
.btn-l { min-height: 56px; padding: 0 28px; font-size: var(--t-base); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
@media (hover: hover) {
  .btn-ember:hover { background: var(--ember-deep); }
  .btn-cream:hover { background: var(--cream-lift); }
}

.txt-link {
  display: inline-flex; align-items: center; min-height: 44px;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px;
  transition: text-underline-offset .2s var(--ease);
}
@media (hover: hover) { .txt-link:hover { text-underline-offset: 9px; } }

/* top bar */
.bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  height: 72px; padding: 0 var(--gutter);
  margin-bottom: -72px;
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.bar.solid { background: rgba(21, 17, 13, .92); border-bottom-color: var(--rule); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.logo { font: 400 var(--t-lg)/1 var(--serif); text-decoration: none; letter-spacing: -.01em; margin-right: auto; }
.links { display: none; gap: 32px; }
.links a { text-decoration: none; font-size: var(--t-base); color: var(--cream); opacity: .85; transition: opacity .2s var(--ease); }
@media (hover: hover) { .links a:hover { opacity: 1; } }
@media (min-width: 900px) { .links { display: flex; } }

/* hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 120px var(--gutter) clamp(48px, 9vh, 96px);
}
.hero-video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(21,17,13,.55) 0%, rgba(21,17,13,0) 28%),
    linear-gradient(0deg, rgba(21,17,13,.92) 0%, rgba(21,17,13,.5) 38%, rgba(21,17,13,.1) 70%);
}
.hero-in { max-width: 960px; }
.hero-h {
  margin: 0;
  font: 400 clamp(var(--t-3xl), 11vw, var(--t-5xl))/.95 var(--serif);
  letter-spacing: -.03em;
}
.hero-h em { display: block; color: var(--ember); }
.hero-lead { margin: 24px 0 0; max-width: 40ch; text-wrap: pretty; font-size: var(--t-md); line-height: 1.45; color: var(--cream); }
.hero-act { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 32px; }
.today {
  position: absolute; right: var(--gutter); bottom: clamp(48px, 9vh, 96px);
  margin: 0; display: none; align-items: center; gap: 12px;
  font-size: var(--t-base); color: var(--cream);
}
.today::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 4px var(--ember-halo); }
.today.closed::before { background: var(--cream-muted); box-shadow: none; }
@media (min-width: 900px) { .today { display: inline-flex; } }

/* statement */
.say { padding: var(--section) var(--gutter); max-width: 1200px; margin: 0 auto; }
.say p { margin: 0; font: 400 clamp(var(--t-xl), 5.2vw, var(--t-4xl))/1.08 var(--serif); letter-spacing: -.015em; }
.say em { color: var(--cream-muted); }

/* plates strip */
.plates {
  display: flex; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain;
  padding: 0 var(--gutter) var(--section); scrollbar-width: none;
}
.plates::-webkit-scrollbar { display: none; }
.plate { flex: 0 0 78%; margin: 0; scroll-snap-align: start; }
.plate img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: var(--char); }
.plate figcaption { margin-top: 16px; font: italic 400 var(--t-md)/1.2 var(--serif); color: var(--cream-muted); }
@media (min-width: 900px) {
  .plates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; overflow: visible; max-width: 1440px; margin: 0 auto; }
  .plate:nth-child(2) { margin-top: 96px; }
  .plate:nth-child(3) { margin-top: 32px; }
}

/* headings */
.h2 { margin: 0; font: 400 clamp(var(--t-2xl), 6vw, var(--t-4xl))/1 var(--serif); letter-spacing: -.02em; }
.h2 em { color: var(--ember); }
.h3 { margin: 0 0 24px; font: 400 var(--t-lg)/1.1 var(--serif); }
.lead { font-size: var(--t-md); line-height: 1.45; }

/* menu */
.menu { padding: 0 var(--gutter) var(--section); max-width: 1440px; margin: 0 auto; }
.menu-head { display: grid; gap: 16px; margin-bottom: 64px; border-top: 1px solid var(--rule); padding-top: 32px; }
.menu-head p { margin: 0; max-width: 40ch; font-size: var(--t-md); line-height: 1.45; }
@media (min-width: 900px) { .menu-head { grid-template-columns: 1fr 1fr; align-items: end; } }
.menu-cols { display: grid; gap: 64px; }
@media (min-width: 900px) { .menu-cols { grid-template-columns: repeat(3, 1fr); gap: 48px; } }
.dishes { list-style: none; margin: 0; padding: 0; }
.dishes li {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 16px;
  padding: 20px 0; border-top: 1px solid var(--rule);
}
.dishes li:last-child { border-bottom: 1px solid var(--rule); }
.d-name { font-size: var(--t-md); line-height: 1.3; }
.d-price { font: 400 var(--t-md)/1.3 var(--serif); font-variant-numeric: tabular-nums; }
.d-note { grid-column: 1 / -1; color: var(--cream-muted); font-size: var(--t-base); }
.menu-foot { margin: 48px 0 0; font-size: var(--t-base); }

/* kitchen + wine */
.kitchen, .wine {
  display: grid; gap: 48px; align-items: center;
  padding: 0 var(--gutter) var(--section); max-width: 1440px; margin: 0 auto;
}
.kitchen-media video { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); background: var(--char); }
.wine-media video { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: var(--char); }
.kitchen-text p, .wine-text p { max-width: 42ch; font-size: var(--t-md); line-height: 1.5; margin: 24px 0 0; }
.kitchen-text p.muted { font-size: var(--t-base); }
.wines { margin-top: 40px; max-width: 520px; }
@media (min-width: 900px) {
  .kitchen { grid-template-columns: 7fr 5fr; gap: 80px; }
  .wine { grid-template-columns: 6fr 5fr; gap: 80px; }
  .wine-media { max-width: 480px; justify-self: end; width: 100%; }
}

/* visit */
.visit {
  display: grid; gap: 64px;
  padding: var(--section) var(--gutter);
  background: var(--char);
}
.visit-in { max-width: 640px; }
.visit-in .lead { margin: 24px 0 32px; color: var(--cream); }
.hours { margin: 0; display: grid; align-content: start; }
.hours div { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 20px 0; border-top: 1px solid var(--rule); }
.hours div:last-child { border-bottom: 1px solid var(--rule); }
.hours dt { color: var(--cream-muted); }
.hours dd { margin: 0; text-align: right; }
@media (min-width: 900px) { .visit { grid-template-columns: 1fr 1fr; gap: 96px; align-items: end; padding-left: max(var(--gutter), calc((100vw - 1440px) / 2 + var(--gutter))); padding-right: max(var(--gutter), calc((100vw - 1440px) / 2 + var(--gutter))); } }

/* footer */
.foot { padding: var(--section) var(--gutter) 120px; max-width: 1440px; margin: 0 auto; }
.foot-sell { max-width: 720px; }
.foot-h { margin: 0; font: 400 clamp(var(--t-2xl), 6vw, var(--t-4xl))/1 var(--serif); letter-spacing: -.02em; }
.foot-h em { color: var(--cream-muted); }
.foot-sell p:not(.foot-h) { font-size: var(--t-md); line-height: 1.5; margin: 24px 0 32px; color: var(--cream); }
.foot-small { margin: 96px 0 0; padding-top: 24px; border-top: 1px solid var(--rule); font-size: var(--t-sm); color: var(--cream-muted); }
.foot-small a { color: var(--cream-muted); text-underline-offset: 3px; }
@media (min-width: 900px) { .foot { padding-bottom: 48px; } }

/* mobile dock */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(0deg, var(--night) 60%, rgba(21,17,13,0));
  transform: translateY(110%);
  transition: transform .35s var(--ease);
}
.dock.on { transform: none; }
@media (min-width: 900px) { .dock { display: none; } }

/* reservation sheet */
.sheet {
  width: 100%; max-width: 100%; max-height: 92vh; max-height: 92dvh;
  margin: auto 0 0; padding: 0;
  border: 0; border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
  background: var(--cream); color: var(--night);
  overscroll-behavior: contain;
}
.sheet::backdrop { background: rgba(10, 8, 6, .6); }
.sheet[open] { animation: sheet-in .38s var(--ease); }
.sheet[open]::backdrop { animation: fade-in .3s var(--ease); }
@keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@media (min-width: 640px) {
  .sheet { max-width: 560px; margin: auto; border-radius: 12px; }
}
.sheet-form { padding: 20px 20px calc(24px + env(safe-area-inset-bottom)); }
@media (min-width: 640px) { .sheet-form { padding: 28px 32px 32px; } }
.sheet-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.sheet-h { margin: 0; font: 400 var(--t-xl)/1 var(--serif); outline: none; }
.x { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; cursor: pointer; border-radius: 50%; color: var(--night); }
.group { border: 0; margin: 20px 0 0; padding: 0; min-width: 0; }
.group legend { float: left; width: 100%; padding: 0; margin-bottom: 10px; font-size: var(--t-sm); letter-spacing: .02em; color: var(--ink-soft); }
.chips { clear: both; display: flex; flex-wrap: wrap; gap: 8px; }
.chips-scroll { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; overscroll-behavior-x: contain; margin: 0 -20px; padding: 0 20px 4px; scrollbar-width: none; }
.chips-scroll::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .chips-scroll { margin: 0 -32px; padding: 0 32px 4px; scroll-padding-inline: 32px; } }
.chips-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.chip { position: relative; scroll-snap-align: start; flex: 0 0 auto; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 48px; min-height: 48px; padding: 6px 14px;
  border: 1px solid var(--paper-line); border-radius: var(--radius);
  font-size: var(--t-base); line-height: 1.15; font-variant-numeric: tabular-nums;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.chip small { font-size: var(--t-sm); color: var(--ink-faint); }
.chip input:checked + span { background: var(--night); border-color: var(--night); color: var(--cream); }
.chip input:checked + span small { color: var(--cream-muted); }
.chip input:focus-visible + span { outline: 2px solid var(--ember-deep); outline-offset: 2px; }
.chip input:disabled + span { color: var(--ink-off); border-style: dashed; text-decoration: line-through; }
.chip input:disabled { cursor: not-allowed; }
@media (hover: hover) { .chip input:not(:checked):not(:disabled):hover + span { border-color: var(--night); } }
.field { display: grid; gap: 8px; margin: 20px 0; font-size: var(--t-sm); color: var(--ink-soft); }
.field input {
  font: 400 var(--t-base)/1.2 var(--sans); /* 16px: no zoom on iOS */
  color: var(--night); background: var(--paper-field);
  border: 1px solid var(--paper-line); border-radius: var(--radius);
  min-height: 48px; padding: 0 14px;
}
.field input:focus { outline: 2px solid var(--night); outline-offset: 0; border-color: var(--night); }
.fine { margin: 12px 0 0; font-size: var(--t-sm); color: var(--ink-faint); text-align: center; }
.done { text-align: center; padding: 24px 0 0; }
.tick { margin: 0 auto 16px; color: var(--ember-deep); }
.done-h { margin: 0; font: 400 var(--t-2xl)/1 var(--serif); outline: none; }
.done-sum { margin: 12px auto 8px; max-width: 30ch; font-size: var(--t-md); line-height: 1.4; }
.done .btn { margin-top: 24px; }
.done .btn-cream { background: var(--night); color: var(--cream); }
.done .tick path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .5s .15s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* scroll reveal (only with JS) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.hero-in > * { animation: rise .9s var(--ease) both; }
.hero-in > :nth-child(2) { animation-delay: .12s; }
.hero-in > :nth-child(3) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .hero-in > * { opacity: 1; transform: none; animation: none; transition: none; }
  .sheet[open], .sheet[open]::backdrop, .done .tick path { animation: none; stroke-dashoffset: 0; }
}
