/* mèmè brunch & coffee — static site styles
   Palette + type taken from brand_guide_meme.pdf */

@font-face {
  font-family: "Limoncello";
  src: url("../assets/fonts/LimoncelloRecipe.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "BabyDoll";
  src: url("../assets/fonts/SVN-BabyDoll.woff2") format("woff2");
  font-display: swap;
}

:root {
  --cream: #fff5d2;
  --paper: #fffaf0;
  --butter: #ffe898;
  --olive: #acb582;
  --olive-deep: #7f8a55;
  --coral: #da8f7f;
  --red: #e2574c;      /* the brighter red used on the printed menu titles */
  --ink: #3b2a22;
  --ink-soft: #7a5d4f;

  --title: "Limoncello", "Segoe Print", cursive;
  --body: "BabyDoll", "Trebuchet MS", system-ui, sans-serif;

  --radius: 1.75rem;
  --wrap: 72rem;

  /* vertical rhythm (tightened on small screens, see the 860px block) */
  --section: 6rem;      /* top/bottom padding of every section */
  --head-gap: 3rem;     /* section heading → its content */
  --stack-gap: 4rem;    /* between the halves of a two-column block */
  --ease: cubic-bezier(.22, .61, .36, 1);   /* soft ease-out for motion */
}

* { box-sizing: border-box; }
/* The page background stays cream. Don't make html/body coral: older iOS Safari tints
   the status bar around the Dynamic Island from it. The coral bottom toolbar comes from
   the iOS strip after the footer styles, and the footer's box-shadow keeps the bottom
   overscroll coral. */
html { font-size: clamp(16px, 1.25vw, 26px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  letter-spacing: 0.01em;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* side gutters; viewport-fit=cover lets the page run under the notch in landscape,
   so the content also keeps clear of the safe areas */
.wrap {
  width: min(var(--wrap), 100% - max(2.5rem, 8vw, 2 * env(safe-area-inset-left) + 1rem, 2 * env(safe-area-inset-right) + 1rem));
  margin-inline: auto;
}

h1, h2, h3 { font-family: var(--title); font-weight: 400; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(3.5rem, 9vw, 7.5rem); color: var(--ink); }
h2 { font-size: clamp(2.75rem, 6vw, 4.75rem); color: var(--ink); }
/* two-colour headlines: the words that matter most go red */
h1 .accent, h2 .accent { color: var(--red); }
h3 { font-size: 2.25rem; color: var(--red); }
.eyebrow {
  font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--olive-deep); margin: 0 0 0.625rem;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(0.375rem);
  border-bottom: 2px dashed color-mix(in srgb, var(--olive) 60%, transparent);
  transition: box-shadow .3s ease;
}
.site-header.is-scrolled { box-shadow: 0 0.75rem 1.5rem -1.25rem color-mix(in srgb, var(--ink) 40%, transparent); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 4.75rem; }
.site-header .logo img { height: 2.5rem; width: auto; }
.nav { display: flex; gap: 1.75rem; align-items: center; }
.nav a { text-decoration: none; font-size: 1rem; }
/* underline that draws in from the left on hover */
.nav > a:not(.btn, .lang) {
  background: linear-gradient(currentColor 0 0) 0 100% / 0 2px no-repeat;
  transition: color .2s ease, background-size .3s var(--ease);
}
.nav > a:not(.btn, .lang):hover { color: var(--red); background-size: 100% 2px; }
.btn {
  display: inline-block; text-decoration: none;
  background: var(--red); color: var(--paper);
  padding: 0.75rem 1.5rem; border-radius: 62.4375rem;
  font-family: var(--body); font-size: 1rem;
  border: 2px solid var(--red);
  transition: transform .15s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px) rotate(-1deg); box-shadow: 0 0.375rem 0.875rem -0.5rem color-mix(in srgb, var(--red) 70%, transparent); }
.btn.ghost { background: transparent; color: var(--red); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: var(--paper); padding: 1rem 1.875rem; }
.btn.dark:hover { box-shadow: 0 0.5rem 1rem -0.5rem color-mix(in srgb, var(--ink) 70%, transparent); }
.nav .btn { padding: 0.5rem 1.125rem; color: var(--paper); }
.nav .btn:hover { color: var(--paper); }

/* language toggle */
/* one link to the other page; the olive thumb sits under the current language,
   leans towards the other on hover and (js/main.js) slides across on click */
.lang {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  border: 2px solid var(--olive); border-radius: 62.4375rem; padding: 0.125rem;
}
.lang::before {
  content: ""; position: absolute; inset: 0.125rem auto 0.125rem 0.125rem; width: calc(50% - 0.125rem);
  border-radius: 62.4375rem; background: var(--olive);
  transition: translate .35s var(--ease);
}
.lang[data-current="cs"]::before { translate: 100% 0; }
@media (hover: hover) {
  .lang:hover::before { translate: 12% 0; }
  .lang[data-current="cs"]:hover::before { translate: 88% 0; }
}
.lang.is-switching::before { translate: 100% 0; }
.lang[data-current="cs"].is-switching::before { translate: 0 0; }
.lang span {
  position: relative; text-align: center;
  font-size: 0.875rem; letter-spacing: 0.08em; line-height: 1;
  color: var(--olive-deep);
  padding: 0.375rem 0.625rem;
  transition: color .35s var(--ease);
}
.lang span.on, .lang.is-switching span { color: var(--paper); }
.lang.is-switching span.on { color: var(--olive-deep); }
.lang:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .lang::before, .lang span { transition: none; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--cream); padding-block: 0; }
/* the same crayon doodles as Visit, cut sides flush with the edges: the cup top-left,
   the bun bottom-left, the croissant-and-basket on the bottom edge under the rabbit */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    url("../assets/img/visit-doodle-cup.webp") left top / 24rem auto no-repeat,
    url("../assets/img/visit-doodle-croissant.webp") 96% bottom / 17rem auto no-repeat,
    url("../assets/img/visit-doodle-bun.webp") left bottom / 20rem auto no-repeat;
}
.hero .wrap { position: relative; z-index: 1; }
.hero .wrap {
  display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 2.5rem;
  padding-block: 4.5rem 6rem;
}
.hero p.lead { font-size: 1.25rem; max-width: 30ch; color: var(--ink-soft); margin: 1.375rem 0 2rem; }
.hero .cta { display: flex; gap: 0.875rem; flex-wrap: wrap; }
.hero-art { position: relative; justify-self: center; }
.hero-art .blob {
  position: absolute; inset: 8% -6% 0 -6%;
  background: var(--butter); border-radius: 46% 54% 52% 48% / 58% 50% 50% 42%;
}
.hero-art img { position: relative; height: 28.75rem; width: auto; transform: rotate(3deg); }
/* sits on the blob's upper-right shoulder, in the gap beside the ears, so it never covers the rabbit */
.hero .hours-chip {
  position: absolute; left: 56%; top: 5%; transform: rotate(5deg);
  background: var(--paper); border: 2px solid var(--olive);
  border-radius: 1.125rem; padding: 0.625rem 1rem; font-size: 0.875rem; line-height: 1.3;
  text-align: left; white-space: nowrap;
}
.hero .hours-chip b { font-family: var(--title); font-weight: 400; font-size: 1.5rem; line-height: 1.2; color: var(--olive-deep); display: block; }
.hero .hours-chip span { display: block; }

/* wavy divider */
.wave { display: block; width: 100%; height: 2.25rem; }
.wave path { fill: none; stroke: var(--olive); stroke-width: 4; stroke-linecap: round; }

/* ---------- marquee ---------- */
.ticker { background: var(--olive); color: var(--paper); overflow: hidden; white-space: nowrap; }
.ticker div {
  display: inline-block; padding: 0.875rem 0;
  font-family: var(--title); font-size: 1.875rem; line-height: 1.4;
  animation: slide 120s linear infinite;   /* unhurried, like a slow morning */
}
.ticker span { margin: 0 1.375rem; }
@keyframes slide { to { transform: translateX(-50%); } }
.ticker:hover div { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .ticker div { animation: none; } }

/* ---------- sections ---------- */
section { padding-block: var(--section); }
.split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: var(--stack-gap); align-items: center; }
.split p { max-width: 52ch; }
.split h2 { margin-bottom: 1.5rem; } /* room below the title's descenders (the "f" in "fun") */
.split p:last-child { margin-bottom: 0; }
.arch-frame {
  background: var(--cream); border: 3px solid var(--olive);
  border-radius: 62.4375rem 62.4375rem var(--radius) var(--radius);
  padding: 3rem 2rem 1.5rem; display: grid; place-items: center;
}
.arch-frame img { height: 22.5rem; width: auto; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; margin-top: var(--head-gap); }
.card {
  background: var(--cream); border-radius: 62.4375rem 62.4375rem var(--radius) var(--radius);
  padding: 2.5rem 1.75rem 2rem; text-align: center;
}
.card:nth-child(2) { background: var(--butter); }
.card:nth-child(3) { background: var(--paper); }
.card img { height: 12.5rem; width: auto; margin: 0 auto 1.125rem; transition: transform .35s var(--ease); }
.card:hover img { transform: translateY(-0.25rem) rotate(3deg); }
.card p { color: var(--ink-soft); margin: 0.5rem 0 0; font-size: 0.9375rem; }
.section-head { text-align: center; }
.section-head p { color: var(--ink-soft); margin: 0.875rem auto 0; max-width: 46ch; }

/* ---------- menu band (What's on the table) ---------- */
/* a full-width olive block, so it reads apart from the paper sections around it */
.menu-band { background: var(--olive); }
.menu-band .eyebrow { color: var(--ink); }
.menu-band h2 { font-size: clamp(3.25rem, 7vw, 6rem); line-height: 1; }
.menu-band h2 .accent { color: var(--paper); }
.menu-head { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 1.5rem var(--stack-gap); align-items: end; }
.menu-head p:not(.eyebrow) { margin: 0 0 1.75rem; max-width: 40ch; }

/* ---------- photos ---------- */
.photos { overflow-x: clip; }   /* the scroll float (js/main.js) sways photos sideways */
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.75rem; margin-top: var(--head-gap); align-items: start; }
.shot { margin: 0; text-align: center; }
.shot:nth-child(even) { margin-top: 4rem; }
.shot img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  border: 3px solid var(--olive); padding: .5rem; background: var(--cream);
}
.shot.arch img { border-radius: 999px 999px 1.25rem 1.25rem; }
.shot.round img { border-radius: 1.75rem; }
.shot:nth-child(1) img { transform: rotate(-1.5deg); }
.shot:nth-child(4) img { transform: rotate(1.5deg); }
.shot figcaption { font-family: var(--title); color: var(--olive-deep); font-size: 1.75rem; margin-top: .6rem; }
/* clears the photos' scroll float (up to ~3rem down, js/main.js) */
.photos-cta { text-align: center; margin: 4.5rem 0 0; }
@media (max-width: 860px) {
  .shots { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; }
  .shot:nth-child(even) { margin-top: 2rem; }
  /* swap 3 and 4 so the arch/round shapes sit diagonally; keep the stagger on the right column */
  .shot:nth-child(3) { order: 4; margin-top: 2rem; }
  .shot:nth-child(4) { order: 3; margin-top: 0; }
  .shot figcaption { font-size: 1.35rem; line-height: 1.2; margin-top: .5rem; }
  .photos-cta { margin-top: 2.5rem; }
}

/* ---------- shop (Bring mèmè home) ---------- */
/* butter band; the drawings stand straight on the yellow, each with a handwritten tag
   like the ones on the café's real shelf. No prices or buttons: what's in stock changes
   daily. Drawings: tools/make_shop_*.py (shop_style.py) */
.shop { background: var(--butter); }
.shop .section-head p { color: var(--ink); }
.shop-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 1.5rem; }
.shop-item { text-align: center; }
.shop-art img { width: 100%; transition: transform .35s var(--ease); }
.shop-item:hover .shop-art img { transform: translateY(-0.25rem) rotate(-1.5deg); }
/* under the title and blurb, tilted a touch like a hand-tied tag
   (scoped to .shop-item so the .shop-item p rule below doesn't override it) */
.shop-item .shop-tag {
  position: relative; display: inline-block; margin: 1.125rem 0 0; max-width: none;
  padding: 0.3125rem 1.125rem 0.3125rem 1.5rem; rotate: -3deg;
  background: var(--cream); border: 2px dashed var(--olive);
  border-radius: 0.375rem 1rem 1rem 0.375rem;
  font-family: var(--title); font-size: 1.75rem; line-height: 1.3; color: var(--olive-deep); white-space: nowrap;
}
/* the tag's string hole */
.shop-tag::before {
  content: ""; position: absolute; left: 0.5rem; top: 50%; translate: 0 -50%;
  width: 0.4375rem; height: 0.4375rem; border-radius: 50%; background: var(--olive);
}
.shop-item h3 { margin-top: 1.25rem; }
.shop-item p { color: var(--ink-soft); margin: 0.5rem auto 0; max-width: 30ch; font-size: 0.9375rem; }
.shop-note {
  text-align: center; margin: 3.5rem 0 0;
  font-family: var(--title); font-size: 1.75rem; line-height: 1.25; color: var(--olive-deep);
}
.shop-note span { color: var(--red); }
@media (max-width: 860px) {
  .shop-items { grid-template-columns: 1fr; gap: 2.75rem; justify-items: center; }
  .shop-item { width: min(100%, 22rem); }
  .shop-item .shop-tag { font-size: 1.5rem; }
  .shop-note { font-size: 1.375rem; margin-top: 2.5rem; }
}

/* ---------- visit ---------- */
/* cream, with the voucher's crayon doodles (tools/make_visit_assets.py) faintly behind.
   Each piece's cut sides sit flush with the section's edges: the cup top-left, the bun
   bottom-left, the croissant-and-basket on the bottom edge. */
.visit { position: relative; background: var(--cream); overflow: clip; }
.visit::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    url("../assets/img/visit-doodle-cup.webp") left top / 24rem auto no-repeat,
    url("../assets/img/visit-doodle-croissant.webp") 47% bottom / 17rem auto no-repeat,
    url("../assets/img/visit-doodle-bun.webp") left bottom / 20rem auto no-repeat;
}
.visit .wrap { position: relative; z-index: 1; }
.visit .grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--stack-gap); align-items: start; }

.visit h2 { font-size: clamp(3.5rem, 8vw, 6.5rem); line-height: 1.1; }
.visit-area { font-size: 1.375rem; margin: 0.5rem 0 0.375rem; }
.visit-note { color: var(--ink-soft); max-width: 44ch; margin: 0; }

/* opening hours as day pills; Wednesday is the dashed "nap day" */
.days {
  list-style: none; padding: 0; margin: 2.25rem 0 1.125rem;
  display: grid; grid-template-columns: repeat(7, minmax(0, 4.25rem)); gap: 0.625rem;
}
.days li {
  aspect-ratio: 4 / 5; border-radius: 50%; background: var(--butter);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; line-height: 1; padding-top: 0.25rem; position: relative;
}
.days b { font-family: var(--title); font-weight: 400; font-size: 2.125rem; line-height: 1; }
.days small { font-size: 0.6875rem; letter-spacing: 0.06em; color: var(--ink-soft); margin-top: 0.3rem; }
.days .closed { background: transparent; border: 2px dashed var(--coral); }
.days .closed b, .days .closed small { color: var(--coral); }
.days .is-today { box-shadow: 0 0 0 0.25rem var(--cream), 0 0 0 0.4375rem var(--olive-deep); }
.days .is-today:not(.closed) { background: var(--olive); }
.days .is-today:not(.closed) small { color: var(--ink); }
/* the "today" label above the ring; text comes from the list's data-today via js/main.js */
.days .is-today::before {
  content: attr(data-today); position: absolute; bottom: calc(100% + 0.75rem); left: 50%; translate: -50% 0;
  font-size: 0.75rem; letter-spacing: 0.06em; color: var(--olive-deep); white-space: nowrap;
}
/* today is the closed Wednesday: the pill stays the dashed "nap day", ring and label go red */
.days .is-today.closed { box-shadow: 0 0 0 0.25rem var(--cream), 0 0 0 0.4375rem var(--red); }
.days .is-today.closed::before { color: var(--red); }
.hours-note { margin: 0; color: var(--ink-soft); }
.hours-note b { font-weight: 400; color: var(--olive-deep); }

.contacts {
  display: flex; flex-wrap: wrap; gap: 1.25rem 3rem; margin: 2rem 0 0; padding-top: 1.75rem;
  border-top: 2px dashed color-mix(in srgb, var(--olive) 70%, transparent);
}
.contacts dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--olive-deep); }
.contacts dd { margin: 0.25rem 0 0; font-size: 1.125rem; }
.contacts a { text-decoration: none; }
.contacts a:hover { color: var(--red); }
.visit .cta { display: flex; gap: 0.875rem; flex-wrap: wrap; margin-top: 2rem; }

/* illustrated map card; the whole map is the link, with the "Open in Maps" bar on top,
   and the rabbit hops out below it (pointer-events: none, so the map stays clickable). Its image is a canvas
   with room for the hop and the lean (tools/animate_hop.py prints these factors); it is
   placed so the planted foot stays where the old still's foot was. --rabbit is the
   rabbit's own height */
.map-card { position: relative; width: 100%; max-width: 27rem; justify-self: center; margin-bottom: 9rem; }
.map-link { position: relative; display: block; border-radius: 2rem; text-decoration: none; }
.map-art {
  width: 100%; height: auto; border-radius: 2rem; border: 3px solid var(--olive);
  box-shadow: 0 1.5rem 3rem -1.75rem color-mix(in srgb, var(--ink) 45%, transparent);
}
.map-bar {
  position: absolute; left: 1.125rem; right: 1.125rem; top: 1.125rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.875rem 0.875rem 0.875rem 1.375rem; border-radius: 1.375rem;
  background: var(--paper);
  box-shadow: 0 0.75rem 1.5rem -1rem color-mix(in srgb, var(--ink) 50%, transparent);
  transition: transform .2s var(--ease), box-shadow .2s ease;
}
.map-bar b { display: block; font-family: var(--title); font-weight: 400; font-size: 1.625rem; line-height: 1.1; }
.map-bar small { display: block; font-size: 0.8125rem; color: var(--ink-soft); }
.map-arrow {
  flex: none; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--ink); color: var(--butter); font-size: 1.25rem;
  transition: background-color .2s ease, rotate .3s var(--ease);
}
.map-link:hover .map-bar { transform: translateY(-2px); }
.map-link:hover .map-arrow { background: var(--red); color: var(--paper); rotate: 45deg; }
.map-link:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.peek {
  --rabbit: 15rem; --feet: 9.25rem;   /* the rabbit's height, and its feet below the card */
  position: absolute; z-index: 1; pointer-events: none;
  height: calc(var(--rabbit) * 1.1383); width: auto;
  left: calc(52% - var(--rabbit) * 0.085);
  top: calc(100% + var(--feet) - var(--rabbit) * 1.1239);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

.placeholder { background: var(--butter); padding: 0 0.375rem; border-radius: 4px; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--coral); color: var(--paper);
  padding-block: 4.5rem calc(2rem + env(safe-area-inset-bottom));   /* coral runs on under the iOS toolbar */
  /* paints coral below the footer (without adding scroll height), so iOS Safari's
     bottom rubber-band shows coral instead of the cream page background */
  box-shadow: 0 100vh 0 100vh var(--coral);
}
/* iOS 26 Safari ignores theme-color and tints its bars from fixed/sticky elements
   touching the viewport edges: the sticky header gives the cream top, and this thin
   fixed strip (added by js/main.js, mostly hidden under the toolbar) turns the bottom
   bar coral while the footer is on screen. It must be display: none when off, since
   Safari still samples invisible (opacity: 0) elements. The @supports test matches
   only iOS/iPadOS WebKit; the media query keeps it to phones. */
.ios-tint { display: none; }
@supports (-webkit-touch-callout: none) and (font: -apple-system-body) {
  @media (max-width: 859px), (max-height: 500px) {
    /* the opaque band reaches well above the home-indicator safe area, so give the
       footer room to end clear of it when scrolled to the bottom */
    .site-footer { padding-bottom: calc(5rem + env(safe-area-inset-bottom)); }
    .ios-tint.is-on {
      display: block; position: fixed; z-index: 100; left: 0; right: 0; bottom: -8px;
      height: 12px; background-color: var(--coral); pointer-events: none;
    }
  }
}
.site-footer .wrap {
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem 2.5rem; align-items: start;
  color: var(--ink); font-size: 0.9375rem;
}
.footer-tagline {
  margin: -0.5rem 0 0; max-width: 9ch;
  font-family: var(--title); font-size: 3.25rem; line-height: 0.95; color: var(--paper);
}
.footer-col p { margin: 0; }
.footer-col { display: flex; flex-direction: column; gap: 0.25rem; line-height: 1.7; }
.footer-col .footer-label {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.18em;
  opacity: .75; margin-bottom: 0.5rem;
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
/* the designer's hand-drawn wordmark, spanning the full width (from branding_materials/LOGO/FILE SGV) */
.footer-wordmark { grid-column: 1 / -1; width: 100%; margin-block: 3.5rem 1rem; }
.site-footer small {
  display: block; grid-column: 1 / -1; font-size: 0.875rem;
  border-top: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); padding-top: 1.25rem;
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  :root { --section: 4.5rem; --head-gap: 2.25rem; --stack-gap: 2.5rem; }
  .hero .wrap { padding-block: 3rem 4.5rem; gap: 2.5rem; }
  .hero p.lead { margin-block: 1.125rem 1.75rem; }
  .ticker div { padding-block: 0.4375rem; font-size: 1.375rem; }
  .ticker span { margin-inline: 1rem; }
  .cards { gap: 1.25rem; }
  .card { padding: 2.25rem 1.5rem 1.75rem; }
  .card img { height: 10.5rem; }
  .arch-frame { padding: 2.5rem 1.5rem 1.25rem; }
  .arch-frame img { height: 18rem; }
  .hero::before { background-size: 14rem auto, 11rem auto, 13rem auto; background-position: left top, right bottom, left bottom; }
  .visit::before { background-size: 14rem auto, 11rem auto, 13rem auto; background-position: left top, right bottom, left bottom; }
  .visit h2 { font-size: min(3.75rem, 15vw); }
  .visit-area { font-size: 1.25rem; }
  .days { grid-template-columns: repeat(7, minmax(0, 3.5rem)); gap: 0.375rem; margin-top: 1.75rem; }
  .days b { font-size: 1.625rem; }
  .days small { font-size: 0.5625rem; letter-spacing: 0.02em; }
  .days .is-today { box-shadow: 0 0 0 0.1875rem var(--cream), 0 0 0 0.3125rem var(--olive-deep); }
  .days .is-today.closed { box-shadow: 0 0 0 0.1875rem var(--cream), 0 0 0 0.3125rem var(--red); }
  .days .is-today::before { bottom: calc(100% + 0.5rem); font-size: 0.625rem; letter-spacing: 0.02em; }
  .contacts { gap: 1rem 2rem; }
  .map-card { max-width: 24rem; margin-bottom: 7.5rem; }
  .map-bar b { font-size: 1.375rem; }
  .map-arrow { width: 2.625rem; height: 2.625rem; }
  .peek { --rabbit: 12.5rem; --feet: 7.75rem; left: calc(50% - var(--rabbit) * 0.085); }

  .hero .wrap, .split, .visit .grid, .site-footer .wrap, .menu-head { grid-template-columns: 1fr; }
  .hero-art img { height: 21.25rem; }
  .cards { grid-template-columns: 1fr; }
  .nav > a:not(.btn, .lang) { display: none; }

  /* compact header: logo left, language switch + Menu grouped on the right */
  .site-header .wrap { height: 4rem; gap: 1rem; }
  .site-header .logo img { height: 1.75rem; }
  .nav { gap: 0.625rem; }
  .lang span { font-size: 0.8125rem; padding: 0.4375rem 0.5625rem; }
  .nav .btn { padding: 0.4375rem 1rem; font-size: 0.9375rem; }
}
@media (max-width: 380px) {
  .site-header .logo img { height: 1.5rem; }
  .lang span { padding-inline: 0.4375rem; }
  .nav .btn { padding-inline: 0.8125rem; }
}


/* ---------- centred layout on smaller screens ---------- */
@media (max-width: 860px) {
  .hero .wrap, .split, .visit .grid, .menu-head { text-align: center; justify-items: center; }
  .menu-head p:not(.eyebrow) { margin-inline: auto; }
  .hero p.lead, .split p { margin-inline: auto; }
  .hero .cta { justify-content: center; }
  .hero .hours-chip { padding: 0.5rem 0.75rem; font-size: 0.8125rem; border-radius: 0.875rem; }
  .hero .hours-chip b { font-size: 1.25rem; }
  .arch-frame { width: 100%; }
  .visit-note { margin-inline: auto; }
  .days { justify-content: center; }
  .contacts, .visit .cta { justify-content: center; }
  .site-footer { padding-top: 3.5rem; }
  .site-footer .wrap { justify-items: center; text-align: center; gap: 2rem; }
  .footer-tagline { max-width: none; margin: 0 0 0.5rem; font-size: 2.75rem; }
  .footer-col { align-items: center; }
  .footer-wordmark { margin-block: 1.5rem 0.5rem; }
  .site-footer small { width: 100%; padding-top: 1.5rem; }
}


/* ---------- motion ----------
   Everything here is skipped for prefers-reduced-motion, and the scroll reveal
   only hides content when js/main.js is running (html.js) and on screen media. */
@media (prefers-reduced-motion: no-preference) {
  /* hero entrance on page load (CSS only) */
  .hero .wrap > div:first-child > * { animation: rise .8s var(--ease) both; }
  .hero .wrap > div:first-child > :nth-child(2) { animation-delay: .08s; }
  .hero .wrap > div:first-child > :nth-child(3) { animation-delay: .16s; }
  .hero .wrap > div:first-child > :nth-child(4) { animation-delay: .24s; }
  .hero-art { animation: rise 1s var(--ease) .15s both; }
  .hero .hours-chip { animation: pop .6s cubic-bezier(.34, 1.56, .64, 1) .7s both; }
  .hero-art .blob { animation: morph 14s ease-in-out infinite; }

  /* scroll reveal; uses `translate` so it never fights hover `transform`s */
  .js [data-reveal] {
    transition: opacity .8s var(--ease) var(--delay, 0s), translate .8s var(--ease) var(--delay, 0s);
  }
}
@media screen and (prefers-reduced-motion: no-preference) {
  .js [data-reveal]:not(.is-in) { opacity: 0; translate: 0 1.5rem; }
}

@keyframes rise { from { opacity: 0; translate: 0 1.25rem; } }
@keyframes pop  { from { opacity: 0; scale: .6; } }
@keyframes morph {
  50% { border-radius: 54% 46% 44% 56% / 47% 57% 43% 53%; }
}
