/* =====================================================================
   Linden Hour: restaurant & café template (Mocktar Launch)
   1. Tokens (palette, type scale, motion)   <- rebrand here
   2. Base          3. Header & label        4. Hero
   5. Menu          6. Signature plates      7. A year at the table
   8. Room          9. Events               10. Guest notes
   11. Visit & booking   12. Footer & action bar   13. Motion   14. Reduced motion
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
@font-face { font-family: "Young Serif"; src: url("fonts/young-serif-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken-grotesk-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  /* Palette: aubergine ink on sage linen, saffron for "open" and actions on dark */
  --paper: #E7E8DC;      /* page background, pale sage linen */
  --paper-2: #DCDFCC;    /* alternate section */
  --plate: #F6F3EA;      /* cards, fields */
  --ink: #331A28;        /* text, buttons */
  --ink-2: #5A3A4B;      /* secondary text */
  --aub: #3B1E2E;        /* dark sections */
  --on-dark: #F1ECDF;
  --on-dark-2: #CDBFC6;
  --saffron: #E2A62B;    /* accent: open badge, actions on dark */
  --olive: #4A5A33;      /* dietary tags, "open" text on light */
  --closed: #9A3A2E;     /* "closed" text on light */
  --line: rgba(51, 26, 40, .16);
  --line-dark: rgba(241, 236, 223, .2);
  /* Season cloth colors (the table drawing) */
  --c-spring: #B9C79A; --c-summer: #E9B949; --c-fall: #B65A33; --c-winter: #5B2E45;

  /* Type */
  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-0: .875rem; --fs-1: 1.0625rem; --fs-2: 1.25rem; --fs-3: 1.6rem;
  --fs-h2: clamp(2.2rem, 1.4rem + 3.4vw, 4rem);
  --fs-h1: clamp(2.7rem, 1.2rem + 5.6vw, 6.4rem);

  /* Layout */
  --wrap: 1240px; --gut: clamp(16px, 4vw, 48px); --header-h: 68px; --radius: 14px;

  /* Motion */
  --dur-micro: 180ms; --dur-short: 320ms; --dur-enter: 750ms; --dur-hero: 1100ms;
  --ease-out: cubic-bezier(.16, 1, .3, 1); --ease-inout: cubic-bezier(.65, 0, .35, 1);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--fs-1)/1.6 var(--sans); overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.05; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-3); }
p { margin: 0; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--on-dark); padding: 12px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
abbr[title] { text-decoration: none; }
[hidden] { display: none !important; }
section { position: relative; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 1.5px solid var(--ink);
  background: var(--ink); color: var(--on-dark); font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform var(--dur-micro) ease, background-color var(--dur-short) ease, color var(--dur-short) ease; }
.btn:hover { background: #4E2A3D; }
.btn:active { transform: scale(.97); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--on-dark); }
.btn--light { background: var(--saffron); border-color: var(--saffron); color: var(--aub); }
.btn--light:hover { background: #F0BC4E; }
.btn--small { min-height: 44px; padding: 10px 18px; font-size: .95rem; }
.link-arrow { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; }
.link-arrow--light { color: var(--on-dark); }

/* Dietary tag */
.tag { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 6px; border: 1.2px solid currentColor; border-radius: 999px;
  font: 700 .72rem/1 var(--sans); letter-spacing: .04em; color: var(--olive); }

/* ---------- 3. Header & template label ---------- */
.tpl-label { margin: 0; padding: 7px var(--gut); background: var(--aub); color: var(--on-dark-2); font-size: .8rem; text-align: center; }
.tpl-label a { color: var(--on-dark); }
.top { position: sticky; top: 0; z-index: 30; background: var(--paper); transition: box-shadow var(--dur-short) ease; }
.top.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.top__in { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); height: var(--header-h); display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-height: 44px; }
.brand__mark { width: 30px; height: 30px; color: var(--ink); }
.brand__name { font: 400 1.45rem/1 var(--serif); letter-spacing: -.01em; }
.nav { display: none; gap: 4px; margin-left: auto; }
.nav a { padding: 10px 12px; min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; font-weight: 500; border-radius: 8px; }
.nav a:hover { text-decoration: underline; }
.top .badge { display: none; }
.top .btn--small { margin-left: auto; }

/* Open / closed badge */
.badge { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; font-size: .95rem; color: var(--ink); }
.badge__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-2); flex: none; position: relative; }
.badge.is-open .badge__dot { background: #5E8A2E; }
.badge.is-open .badge__dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid #5E8A2E; opacity: 0; }
.badge.is-open { color: var(--olive); }
.badge.is-closed { color: var(--closed); }
.badge.is-closed .badge__dot { background: var(--closed); }
.badge--big { font-size: 1.05rem; padding: 8px 14px 8px 12px; border-radius: 999px; background: var(--plate); }

@media (min-width: 960px) {
  .nav { display: flex; }
  .top .badge { display: inline-flex; }
  .top .btn--small { margin-left: 4px; }
}

/* ---------- 4. Hero ---------- */
.hero { max-width: var(--wrap); margin: 0 auto; padding: 20px var(--gut) 64px; display: grid; gap: 28px; }
.hero__title { font-size: var(--fs-h1); line-height: .98; letter-spacing: -.025em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__title .line > span { display: block; }
.hero__title .line:nth-child(2) { padding-left: .9em; color: var(--ink-2); }
.hero__lede { margin-top: 20px; max-width: 34em; font-size: var(--fs-2); line-height: 1.5; color: var(--ink-2); }
.today { margin-top: 28px; padding: 20px; border-radius: var(--radius); background: var(--paper-2); border: 1px solid var(--line); max-width: 560px; }
.today__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.today__hours { font-size: 1rem; }
.today__label { font-weight: 700; margin-right: 4px; }
.today__addr { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 14px; color: var(--ink-2); }
.today__addr svg { width: 20px; height: 20px; color: var(--ink); flex: none; }
.today__addr a { color: var(--ink); min-height: 44px; display: inline-flex; align-items: center; }
.today__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 10px; }
.hero__media { position: relative; margin: 0; border-radius: 999px 999px 18px 18px; overflow: hidden; aspect-ratio: 4 / 5; background: #7A5236; max-height: 80vh; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.shutters { position: absolute; inset: -2px; display: none; pointer-events: none; }
.shutters i { flex: 1; margin-right: -1px; background: var(--paper); transform-origin: 50% 0; }
.shutters i:nth-child(even) { transform-origin: 50% 100%; }

@media (min-width: 960px) {
  .hero { grid-template-columns: 1.15fr 1fr; align-items: center; gap: 56px; padding-top: 28px; padding-bottom: 96px; min-height: calc(100vh - var(--header-h) - 34px); }
  .hero__media { max-height: none; height: min(78vh, 720px); aspect-ratio: auto; }
}

/* ---------- 5. Menu ---------- */
.menu { background: var(--aub); color: var(--on-dark); padding: 88px 0 96px; }
.menu__head { display: grid; gap: 14px; margin-bottom: 36px; }
.menu__note { color: var(--on-dark-2); max-width: 36em; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; margin: 4px 0 0; padding: 0; font-size: .92rem; color: var(--on-dark-2); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.menu .tag { color: var(--saffron); }
.tabs { display: flex; gap: 6px; margin: 0 calc(var(--gut) * -1) 28px; padding: 0 var(--gut) 6px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line-dark); }
.tabs::-webkit-scrollbar { display: none; }
.js .tabs:not([hidden]) { display: flex; }
.tab { flex: none; min-height: 48px; padding: 10px 16px; border: 0; background: none; color: var(--on-dark-2); font: 500 1.05rem/1 var(--sans); cursor: pointer; position: relative; border-radius: 8px 8px 0 0; }
.tab::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -7px; height: 3px; border-radius: 3px; background: var(--saffron); transform: scaleX(0); transition: transform var(--dur-short) var(--ease-out); }
.tab[aria-selected="true"] { color: var(--on-dark); font-weight: 700; }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
.tab:hover { color: var(--on-dark); }
.panel { padding-top: 8px; }
.panel + .panel { margin-top: 56px; }
.js .tabs-on .panel + .panel { margin-top: 0; }
.panel:focus-visible { outline-offset: 8px; }
.panel__h { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-bottom: 22px; }
.panel__h span { font: 400 1rem/1.4 var(--sans); color: var(--on-dark-2); }
.dishes { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 56px; }
.dish { padding: 18px 0; border-top: 1px solid var(--line-dark); }
.dish__top { display: flex; align-items: baseline; gap: 12px; }
.dish__name { font: 400 1.3rem/1.25 var(--serif); }
.dish__top::after { content: ""; order: 2; flex: 1; border-bottom: 1.5px dotted rgba(241, 236, 223, .35); transform: translateY(-.3em); min-width: 20px; }
.dish__price { order: 3; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dish__desc { margin-top: 4px; color: var(--on-dark-2); max-width: 34em; }
.dish__tags { display: flex; gap: 6px; margin-top: 8px; }
@media (min-width: 820px) {
  .menu__head { grid-template-columns: 1fr 1fr; align-items: end; column-gap: 56px; }
  .menu__head h2 { grid-row: span 2; }
  .dishes { grid-template-columns: 1fr 1fr; }
  .dishes--short { grid-template-columns: 1fr 1fr 1fr; gap: 0 40px; }
}

/* ---------- 6. Signature plates ---------- */
.plates { padding: 96px 0 88px; }
.plates__head { display: grid; gap: 12px; margin-bottom: 36px; }
.plates__head p { color: var(--ink-2); font-size: var(--fs-2); max-width: 28em; }
.plates__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.plate figure { margin: 0; }
.plate img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; background: #7A5236; }
.plate--a { grid-column: 1 / -1; }
.plate--a img { border-radius: var(--radius); aspect-ratio: 4 / 3; }
.plate figcaption { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; font: 400 1.05rem/1.25 var(--serif); }
.plate__price { font: 600 .95rem/1.4 var(--sans); color: var(--ink-2); }
@media (min-width: 960px) {
  .plates__head { grid-template-columns: 1fr 1fr; align-items: end; column-gap: 56px; }
  .plates__grid { grid-template-columns: 1.6fr 1fr 1fr; grid-template-rows: auto auto; gap: 28px 36px; align-items: start; }
  .plate--a { grid-column: 1; grid-row: 1 / span 2; }
  .plate--a img { aspect-ratio: 1; border-radius: 50%; }
  .plate--c { margin-top: 64px; }
  .plate--e { margin-top: 64px; }
  .plate--a figcaption { font-size: 1.4rem; }
}

/* ---------- 7. A year at the table (signature) ---------- */
.year { background: var(--paper-2); padding: 96px 0 72px; }
.year__head { display: grid; gap: 12px; margin-bottom: 32px; }
.year__head p { color: var(--ink-2); font-size: var(--fs-2); max-width: 30em; }
.year__grid { display: grid; gap: 8px; }
.table { position: sticky; top: calc(var(--header-h) + 6px); z-index: 2; background: var(--paper-2); padding: 6px 0 12px; }
.table__frame { width: min(100%, 42vh, 340px); margin: 0 auto; aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 18px 40px -22px rgba(59, 30, 46, .55); }
.table__svg { width: 100%; height: 100%; }
.table__cap { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 10px; }
.table__season { position: relative; min-width: 6.5em; height: 1.7rem; font: 400 1.45rem/1.2 var(--serif); }
.table__season span { position: absolute; inset: 0; opacity: 0; transform: translateY(8px); transition: opacity var(--dur-short) ease, transform var(--dur-short) var(--ease-out); }
.table__ticks { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.table__ticks li { width: 22px; height: 6px; border-radius: 6px; background: var(--line); transition: background-color var(--dur-short) ease; }
.table[data-season="spring"] [data-s="spring"], .table[data-season="summer"] [data-s="summer"],
.table[data-season="fall"] [data-s="fall"], .table[data-season="winter"] [data-s="winter"] { opacity: 1; transform: none; }
.table[data-season="spring"] .table__ticks [data-s="spring"], .table[data-season="summer"] .table__ticks [data-s="summer"],
.table[data-season="fall"] .table__ticks [data-s="fall"], .table[data-season="winter"] .table__ticks [data-s="winter"] { background: var(--ink); }

/* drawing states */
.table__svg * { transform-box: fill-box; transform-origin: center; }
.table .cloth { fill: var(--cloth, var(--c-spring)); transition: fill 700ms ease; }
.table .cloth-line { stroke: #fff; stroke-opacity: .4; }
.table[data-season="spring"] { --cloth: var(--c-spring); }
.table[data-season="summer"] { --cloth: var(--c-summer); }
.table[data-season="fall"] { --cloth: var(--c-fall); }
.table[data-season="winter"] { --cloth: var(--c-winter); }
.s { display: none; }
.table[data-season="spring"] .s-spring, .table[data-season="summer"] .s-summer,
.table[data-season="fall"] .s-fall, .table[data-season="winter"] .s-winter { display: inline; }
.steam { display: none; }
.table[data-season="spring"] .steam, .table[data-season="fall"] .steam, .table[data-season="winter"] .steam { display: inline; }

.seasons { list-style: none; margin: 0; padding: 0; position: relative; z-index: 1; }
.season { padding: 34px 0 40px; border-top: 1px solid var(--line); position: relative; }
.season::before { content: ""; position: absolute; left: 0; top: -1px; width: 100%; height: 3px; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; transition: transform 600ms var(--ease-out); }
.season.is-active::before { transform: scaleX(1); }
.season__when { font-weight: 600; color: var(--ink-2); }
.season h3 { font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem); margin: 4px 0 10px; }
.season__lede { font-size: var(--fs-2); line-height: 1.5; max-width: 30em; }
.season__dishes { list-style: none; margin: 18px 0 0; padding: 0; max-width: 30em; }
.season__dishes li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px dashed var(--line); }
.season__dishes li span:last-child { font-weight: 600; font-variant-numeric: tabular-nums; }

@media (min-width: 960px) {
  .year__head { grid-template-columns: 1fr 1fr; align-items: end; column-gap: 56px; margin-bottom: 48px; }
  .year__grid { grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
  .table { top: calc(var(--header-h) + 32px); padding: 0; background: none; }
  .table__frame { width: min(100%, 540px, 66vh); }
  .table__cap { justify-content: space-between; max-width: min(100%, 540px, 66vh); margin: 18px auto 0; }
  .table__season { font-size: 2rem; height: 2.4rem; }
  .season { min-height: 64vh; padding: 48px 0; display: flex; flex-direction: column; justify-content: center; }
}

/* ---------- 8. The room ---------- */
.room { padding: 104px 0; }
.room__grid { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
.room figure { margin: 0; overflow: hidden; border-radius: var(--radius); }
.room img { width: 100%; height: 100%; object-fit: cover; }
.room__main img { object-position: 30% 50%; } /* keep the counter in view when cropped tall */
.room__main { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
.room__copy { grid-column: 1 / -1; padding: 8px 0 12px; }
.room__copy p { margin-top: 16px; font-size: var(--fs-2); color: var(--ink-2); max-width: 30em; }
.facts { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 0; }
.facts li { padding: 12px 0; border-top: 1px solid var(--line); }
.facts strong { font-weight: 700; }
.room__side { aspect-ratio: 4 / 5; }
.room__side--a { border-radius: 999px 999px var(--radius) var(--radius) !important; }
@media (min-width: 960px) {
  .room__grid { grid-template-columns: 1.5fr 1fr 1fr; grid-template-rows: auto auto; gap: 28px 32px; align-items: start; }
  .room__main { grid-column: 1; grid-row: 1 / span 2; aspect-ratio: auto; height: 100%; min-height: 560px; }
  .room__copy { grid-column: 2 / span 2; grid-row: 1; padding: 0 0 8px; }
  .room__side--a { grid-column: 2; grid-row: 2; }
  .room__side--b { grid-column: 3; grid-row: 2; margin-top: 48px; }
}

/* ---------- 9. Events ---------- */
.events { background: var(--aub); color: var(--on-dark); padding: 96px 0; }
.events__grid { display: grid; gap: 40px; }
.events__copy > p { margin-top: 14px; font-size: var(--fs-2); color: var(--on-dark-2); max-width: 30em; }
.offers { list-style: none; margin: 28px 0 0; padding: 0; }
.offers li { display: grid; gap: 6px; padding: 18px 0; border-top: 1px solid var(--line-dark); }
.offers h3 { font-size: 1.5rem; }
.offers p { color: var(--on-dark-2); max-width: 32em; }
.offers .offers__price { color: var(--saffron); font-weight: 600; }
.events__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }
.events__media { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2; }
.events__media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 960px) {
  .events__grid { grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; }
  .events__media { aspect-ratio: 4 / 5; }
}

/* ---------- 10. Guest notes (sample) ---------- */
.notes { padding: 96px 0 72px; }
.notes h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; }
.notes__flag { font: 600 .85rem/1 var(--sans); padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); letter-spacing: 0; }
.notes__list { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 28px; }
.notes blockquote { margin: 0; font: 400 1.35rem/1.4 var(--serif); }
.notes blockquote p::before { content: "\201C"; }
.notes blockquote p::after { content: "\201D"; }
.notes__who { margin-top: 12px; color: var(--ink-2); font-weight: 600; }
.notes__list li { padding-top: 20px; border-top: 2px solid var(--ink); }
@media (min-width: 900px) { .notes__list { grid-template-columns: repeat(3, 1fr); gap: 40px; } .notes__list li:nth-child(2) { margin-top: 48px; } }

/* ---------- 11. Visit & booking ---------- */
.visit { background: var(--paper-2); padding: 96px 0 104px; }
.visit__grid { display: grid; gap: 40px; }
.visit__addr { margin-top: 18px; font: 400 1.5rem/1.3 var(--serif); }
.visit__note { margin-top: 10px; color: var(--ink-2); max-width: 28em; }
.visit__contact { margin-top: 14px; font-weight: 600; line-height: 2.4; }
.hours__title { margin-top: 32px; font-size: 1.4rem; }
.hours { margin: 12px 0 0; max-width: 420px; }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 10px; border-top: 1px solid var(--line); }
.hours dt { font-weight: 600; }
.hours dd { margin: 0; text-align: right; color: var(--ink-2); }
.hours .is-today { background: var(--plate); border-radius: 8px; border-top-color: transparent; }
.hours .is-today dt::after { content: " (today)"; font-weight: 400; color: var(--ink-2); }
.hours .is-today + div { border-top-color: transparent; }
.visit__map { border-radius: var(--radius); overflow: hidden; align-self: start; }
.visit__map svg { width: 100%; height: auto; }
.book { background: var(--plate); border-radius: 20px; padding: 28px 20px; border: 1px solid var(--line); }
.book__title { font-size: 1.9rem; }
.book__lede { margin-top: 10px; color: var(--ink-2); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 14px; margin-top: 20px; }
.field { grid-column: 1 / -1; display: grid; gap: 6px; }
.field--half { grid-column: span 1; }
.field label { font-weight: 600; font-size: .95rem; }
.opt { font-weight: 400; color: var(--ink-2); }
.field input, .field select { width: 100%; min-height: 48px; padding: 10px 12px; border: 1.5px solid rgba(51, 26, 40, .45); border-radius: 10px; background: #fff; color: var(--ink); font: 400 1rem/1.2 var(--sans); }
.field input::placeholder { color: #75606B; }
.field input[aria-invalid="true"] { border-color: var(--closed); }
.form .btn { grid-column: 1 / -1; justify-self: start; }
.form__error { grid-column: 1 / -1; color: var(--closed); font-weight: 600; }
.form__hint { grid-column: 1 / -1; font-size: .92rem; color: var(--ink-2); }
@media (max-width: 420px) { .field--half:nth-of-type(6) { grid-column: 1 / -1; } }
@media (min-width: 960px) {
  .visit__grid { grid-template-columns: 1fr 1.1fr; grid-template-rows: auto 1fr; gap: 40px 72px; }
  .visit__info { grid-row: 1 / span 2; }
  .book { padding: 36px; }
}

/* ---------- 12. Footer & mobile action bar ---------- */
.foot { background: var(--ink); color: var(--on-dark-2); padding: 56px 0 120px; font-size: .98rem; }
.foot__grid { display: grid; gap: 22px; }
.foot__name { font: 400 1.8rem/1 var(--serif); color: var(--on-dark); margin-bottom: 8px; }
.foot a { color: var(--on-dark); display: inline-block; padding: 4px 0; }
.foot__credit a { color: var(--saffron); }
@media (min-width: 900px) { .foot { padding-bottom: 56px; } .foot__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; align-items: start; } }

.actbar { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 40; display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 6px; padding: 6px;
  background: var(--ink); border-radius: 18px; box-shadow: 0 12px 30px -10px rgba(30, 10, 20, .6);
  transform: translateY(140%); transition: transform var(--dur-short) var(--ease-out); }
.actbar.is-on { transform: none; }
.actbar a { display: grid; place-items: center; min-height: 48px; border-radius: 13px; color: var(--on-dark); font-weight: 600; text-decoration: none; }
.actbar a:last-child { background: var(--saffron); color: var(--aub); }
@media (min-width: 900px) { .actbar { display: none; } }

/* ---------- 13. Motion (only with .js; content is visible without JS) ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Hero: headline lines rise from masks while café shutters lift off the picture */
  .js .hero__title .line > span { transform: translateY(105%); }
  .js .hero-in { opacity: 0; transform: translateY(18px); }
  .js .shutters { display: flex; }
  .js.is-loaded .hero__title .line > span { transform: none; transition: transform var(--dur-hero) var(--ease-out); }
  .js.is-loaded .hero__title .line:nth-child(2) > span { transition-delay: 90ms; }
  .js.is-loaded .hero-in { opacity: 1; transform: none; transition: opacity var(--dur-enter) ease, transform var(--dur-enter) var(--ease-out); transition-delay: calc(380ms + var(--d) * 90ms); }
  .js.is-loaded .shutters i { transform: scaleY(0); transition: transform 900ms var(--ease-inout); transition-delay: calc(100ms + var(--i) * 70ms); }

  /* Live badge: one ring pulse when it turns "open" */
  .badge.is-open .badge__dot::after { animation: ring 1600ms var(--ease-out) 600ms 2 both; }
  @keyframes ring { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }

  /* Table: the season's things set down one by one; steam draws once */
  .ti { animation: set-down 620ms var(--ease-out) both; animation-delay: calc(var(--i) * 55ms); }
  @keyframes set-down { from { transform: scale(.4) translateY(-6px); opacity: 0; } to { transform: none; opacity: 1; } }
  .steam path { stroke-dasharray: 1; animation: steam 1800ms ease-out 350ms both; }
  .steam path + path { animation-delay: 650ms; }
  @keyframes steam { from { stroke-dashoffset: 1; opacity: 0; } 30% { opacity: 1; } to { stroke-dashoffset: 0; opacity: .9; } }
  .table__frame { transition: transform 700ms var(--ease-out); }
  .table[data-season="summer"] .table__frame { transform: rotate(-4deg); }
  .table[data-season="fall"] .table__frame { transform: rotate(3deg); }
  .table[data-season="winter"] .table__frame { transform: rotate(-2deg); }

  /* Menu: a short settle when switching tabs (answers the tap) */
  .js .panel.is-fresh .dish { animation: rise 520ms var(--ease-out) both; animation-delay: calc(var(--n, 0) * 40ms); }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}

/* ---------- 14. Reduced motion: final states, no movement ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .shutters { display: none !important; }
}
