/* ==========================================================================
   THE BLUE CAFÉ: site.css
   The one stylesheet for all 9 pages (BUILD-SPEC §2). Design system + every
   component the site needs. Built against index.html and 404.html; the
   remaining pages should build against these classes rather than add new
   ones where an existing component already fits.

   Contents:
     1. Tokens
     2. Reset + base
     3. Accessibility primitives (skip link, focus, visually-hidden)
     4. Layout primitives (container, section spacing)
     5. Typography
     6. Buttons
     7. Header / primary nav / mobile nav
     8. Sticky mobile bar
     9. Hero
    10. Placeholder photo / full-bleed photo band
    11. Today strip (hours / address / phone)
    12. Prose section + split section
    13. Board surface, menu teaser, menu tables, content-pending block
    14. Event list / recurring promise
    15. Visit band (map / parking / wifi)
    16. CTA band
    17. Gallery grid
    18. FAQ
    19. Forms
    20. Notice / callout
    21. Footer
    22. 404 page
    23. Scroll reveal motion
    24. Utilities (dot motif, data-unverified marker)
    25. Responsive adjustments
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Color: BUILD-SPEC §4. Do not change without an operator decision. */
  --ink:   #16283C;
  --tile:  #1E4A6D;
  --chalk: #4FA3E3;
  --board: #2B2724;
  --paper: #FBF9F5;
  --cream: #F3EDE2;
  --line:      rgba(22, 40, 60, .14);   /* hairline borders on light surfaces */
  --line-dark: rgba(251, 249, 245, .18); /* hairline borders on dark surfaces (--board/--tile) */

  /* Type: BUILD-SPEC §4 */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --text-h1: clamp(2.5rem, 6.5vw, 4.5rem);
  --text-h2: clamp(1.75rem, 3.5vw, 2.6rem);
  --text-h3: clamp(1.2rem, 2.1vw, 1.5rem);
  --text-body: 1.0625rem;
  --measure: 66ch;

  /* Space (4px baseline) */
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  /* Shape: two radii total, per the layout language in BUILD-SPEC §4 */
  --radius: 8px;
  --radius-pill: 999px;

  /* Motion: one easing curve, one duration, shared everywhere */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: 450ms;

  /* Layout */
  --container: 1180px;
  --gutter: 1.5rem;
}

/* --------------------------------------------------------------------------
   2. RESET + BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, picture, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.01em;
  margin: 0 0 var(--space-4);
  color: var(--ink);
}
h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
p { margin: 0 0 var(--space-4); max-width: var(--measure); }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
input, textarea, select { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }
address { font-style: normal; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } /* justified: the only universal, unconditional reduced-motion override */
}

/* --------------------------------------------------------------------------
   3. ACCESSIBILITY PRIMITIVES
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 100;
  padding: var(--space-3) var(--space-5);
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: var(--space-4); }

.visually-hidden {
  position: absolute !important; /* justified: standard offscreen-clip pattern must win over any layout rule */
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--chalk);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   4. LAYOUT PRIMITIVES
   -------------------------------------------------------------------------- */
.wrap {
  width: min(var(--container), 100% - var(--gutter) * 2);
  margin-inline: auto;
}
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 3.5rem); }
main { display: block; overflow-x: clip; }

/* --------------------------------------------------------------------------
   5. TYPOGRAPHY
   -------------------------------------------------------------------------- */
.eyebrow {
  display: block;
  font-weight: 700;
  font-size: .8125rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--tile);
  margin-bottom: var(--space-3);
}
.lede { font-size: 1.125rem; line-height: 1.6; opacity: .88; max-width: 48ch; }
.section-head { margin-bottom: var(--space-6); }
.section-head p { opacity: .82; }

/* --------------------------------------------------------------------------
   6. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: .75em 1.5em;
  border-radius: var(--radius);
  border: 1.5px solid var(--ink);
  font-weight: 700;
  font-size: .9375rem;
  letter-spacing: .01em;
  text-decoration: none;
  color: var(--ink);
  background: transparent;
  transition: transform .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--fill { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--fill:hover { background: var(--tile); border-color: var(--tile); }

.btn--chalk { background: var(--chalk); border-color: var(--chalk); color: var(--ink); }
.btn--chalk:hover { background: var(--paper); border-color: var(--paper); }

.btn--ghost-light { border-color: var(--paper); color: var(--paper); }
.btn--ghost-light:hover { background: var(--paper); color: var(--ink); }

.btn--sm { min-height: 40px; padding: .5em 1.1em; font-size: .875rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* --------------------------------------------------------------------------
   7. HEADER / PRIMARY NAV / MOBILE NAV
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding-block: var(--space-4);
}
.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -.01em;
  white-space: nowrap;
}
.header-cta { display: flex; align-items: center; gap: var(--space-3); }

.primary-nav { display: none; }
.primary-nav ul { display: flex; gap: var(--space-6); }
.primary-nav a {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: .9375rem;
  color: var(--ink);
  padding-block: var(--space-2);
  border-bottom: 2px solid transparent;
}
.primary-nav a:hover,
.primary-nav a[aria-current="page"] { border-color: var(--chalk); }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 900px) {
  .primary-nav { display: block; }
  .nav-toggle { display: none; }
}
@media (max-width: 899px) {
  .primary-nav.is-open {
    display: block;
    position: absolute;
    inset: 100% 0 auto 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: var(--space-5) var(--gutter);
    box-shadow: 0 12px 24px rgba(22, 40, 60, .1);
  }
  .primary-nav.is-open ul { flex-direction: column; gap: var(--space-1); }
  .primary-nav.is-open a { display: block; padding-block: var(--space-3); }
  .header-cta .btn[data-cta="call"] { padding-inline: 1em; } /* keep the header compact next to the toggle on mobile */
}

/* --------------------------------------------------------------------------
   8. STICKY MOBILE BAR: Directions + Call, always available, zero JS
      dependency (BUILD-SPEC §3). JS only adds the auto-hide-near-footer
      enhancement in site.js.
   -------------------------------------------------------------------------- */
.sticky-bar { display: none; }
@media (max-width: 899px) {
  .sticky-bar {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    padding-bottom: calc(var(--space-3) + env(safe-area-inset-bottom));
    background: var(--paper);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(22, 40, 60, .1);
    transition: transform .3s var(--ease);
  }
  .sticky-bar.is-hidden { transform: translateY(100%); }
  .sticky-bar .btn { flex: 1; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
}

/* --------------------------------------------------------------------------
   9. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(88svh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--ink);
}
/* Two-class selector on purpose. `.placeholder-photo` further down sets
   `position: relative` and, at equal specificity, later wins: that made
   `inset: 0` inert and collapsed the hero media to its label's height (60px in
   a 760px hero). Absolute still gives the label its containing block, so the
   placeholder keeps working, and the real photo will fill correctly when it
   replaces the label. */
.hero .hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,40,60,.1) 0%, rgba(22,40,60,.58) 68%, rgba(22,40,60,.92) 100%);
}
.hero__content { position: relative; z-index: 2; padding-block: var(--space-8) var(--space-7); }
.hero .eyebrow { color: var(--paper); opacity: .85; }
.hero h1 { color: var(--paper); max-width: 17ch; margin-bottom: var(--space-4); }
.hero__lede { color: var(--paper); opacity: .92; max-width: 44ch; font-size: 1.15rem; line-height: 1.6; margin-bottom: var(--space-6); }

/* --------------------------------------------------------------------------
   10. PLACEHOLDER PHOTO / FULL-BLEED PHOTO BAND
      No real Blue Café photography exists yet (BUILD-SPEC §8). Every image
      slot is built at a fixed aspect ratio so a real <img> drops into the
      SAME wrapper later with zero layout change: delete the label span,
      add `<img src="..." alt="..." loading="lazy">` inside .placeholder-photo.
   -------------------------------------------------------------------------- */
.placeholder-photo {
  position: relative;
  display: flex;
  align-items: flex-end;
  background: var(--cream);
  overflow: hidden;
  border-radius: var(--radius);
}
.placeholder-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.placeholder-photo__label {
  position: relative;
  z-index: 1;
  margin: var(--space-3);
  padding: var(--space-2) var(--space-3);
  background: var(--tile);
  color: var(--paper);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .02em;
  border-radius: 4px;
  max-width: calc(100% - var(--space-6));
}
.placeholder-photo--square   { aspect-ratio: 1 / 1; }
.placeholder-photo--wide     { aspect-ratio: 16 / 9; }
.placeholder-photo--tall     { aspect-ratio: 3 / 4; }
.placeholder-photo--portrait { aspect-ratio: 4 / 5; }
.placeholder-photo--banner   { aspect-ratio: 21 / 9; }

.photo-band { overflow: hidden; }

/* --------------------------------------------------------------------------
   11. TODAY STRIP: hours / address / phone. The single most-consumed
       block on the site (BUILD-SPEC §5); must be fully correct with JS off.
   -------------------------------------------------------------------------- */
.today-strip { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.today-strip__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  padding-block: var(--space-6);
}
.today-strip__item h2,
.today-strip__item h3 { font-size: 1rem; margin-bottom: var(--space-3); }

.hours-list { display: grid; gap: var(--space-2); }
.hours-list__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-3);
  font-size: .9375rem;
}
.hours-list__row.is-today { font-weight: 700; color: var(--tile); }
.hours-list__day { display: inline-flex; align-items: center; }
.hours-list__dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--chalk);
  margin-right: var(--space-2);
  opacity: 0;
  vertical-align: middle;
  transition: opacity .2s var(--ease);
}
.hours-list__row.is-today .hours-list__dot { opacity: 1; }

.today-strip address,
.today-strip__item p { font-size: .9375rem; margin-bottom: var(--space-3); }

/* --------------------------------------------------------------------------
   12. PROSE SECTION + SPLIT SECTION
   -------------------------------------------------------------------------- */
.prose-section p:last-of-type { margin-bottom: var(--space-5); }

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-6), 6vw, var(--space-8));
  align-items: center;
}

/* --------------------------------------------------------------------------
   13. BOARD SURFACE, MENU TEASER, MENU TABLES, CONTENT-PENDING BLOCK
   -------------------------------------------------------------------------- */
.board { background: var(--board); color: var(--paper); }
.board .eyebrow { color: var(--chalk); }
.board a:not(.btn) { color: var(--chalk); }
.board h1, .board h2, .board h3 { color: var(--paper); }

.menu-teaser__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 var(--space-7);
}
.menu-teaser__item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-4);
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--line-dark);
}
.menu-teaser__item h3 { font-size: 1.0625rem; margin: 0; }
.menu-teaser__price { color: var(--chalk); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }

.menu-table-wrap { overflow-x: auto; }
.menu-table { width: 100%; border-collapse: collapse; }
.menu-table + .menu-table-wrap,
.menu-table-wrap + .menu-table-wrap { margin-top: var(--space-7); }
.menu-table caption {
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--paper);
  margin-bottom: var(--space-4);
}
.menu-table th, .menu-table td { padding: var(--space-3); text-align: left; border-bottom: 1px solid var(--line-dark); }
.menu-table th[scope="col"]:not(:first-child) { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; text-align: right; opacity: .75; }
.menu-table td:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.menu-table .item-note { display: block; font-size: .8125rem; opacity: .72; font-weight: 400; }
.menu-table--compact th, .menu-table--compact td { padding-block: var(--space-2); font-size: .9rem; }

.content-pending {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: var(--space-5);
  font-size: .9375rem;
  opacity: .85;
  font-style: italic;
}
.board .content-pending { border-color: var(--line-dark); }

/* --------------------------------------------------------------------------
   14. EVENT LIST / RECURRING PROMISE
   -------------------------------------------------------------------------- */
.recurring-promise { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
.recurring-promise__item { padding: var(--space-5); background: var(--cream); border-radius: var(--radius); }
.recurring-promise__day {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--tile);
  margin-bottom: var(--space-2);
}
.recurring-promise__item p:last-child { margin-bottom: 0; }

.event-list { display: grid; gap: 0; }
.event-card {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: var(--space-5);
  padding-block: var(--space-5);
  border-top: 1px solid var(--line);
}
.event-card time { font-family: var(--font-display); font-size: 1.2rem; color: var(--tile); line-height: 1.2; }
.event-card h3 { margin-bottom: var(--space-1); }
.event-card p { margin-bottom: 0; opacity: .82; }
.event-card .event-time { font-size: .875rem; opacity: .7; margin-bottom: var(--space-1); }

.event-list__empty { padding-block: var(--space-5); border-top: 1px solid var(--line); opacity: .78; }

/* --------------------------------------------------------------------------
   15. VISIT BAND: map / parking / wifi. --tile is the recurring "blue
       subway tile" surface used for bands and the footer.
   -------------------------------------------------------------------------- */
.visit-band { background: var(--tile); color: var(--paper); }
.visit-band a { color: var(--paper); text-decoration-color: var(--chalk); }
.visit-band .eyebrow { color: rgba(251, 249, 245, .82); }
.visit-band h2, .visit-band h3 { color: var(--paper); }
.visit-band__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.visit-band__item p { opacity: .92; margin-bottom: var(--space-3); }

/* --------------------------------------------------------------------------
   16. CTA BAND: closing conversion band, one dominant ask.
   -------------------------------------------------------------------------- */
.cta-band { background: var(--board); color: var(--paper); text-align: center; }
.cta-band__inner { max-width: 42rem; margin-inline: auto; display: grid; gap: var(--space-4); justify-items: center; }
.cta-band h2 { color: var(--paper); }
.cta-band p { color: rgba(251, 249, 245, .85); }

/* --------------------------------------------------------------------------
   17. GALLERY GRID: community art wall + placeholder rotation.
   -------------------------------------------------------------------------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.gallery-grid figure { margin: 0; }
.gallery-grid figcaption { padding-top: var(--space-2); font-size: .875rem; }
.gallery-grid figcaption .artist-name { font-weight: 700; display: block; }
.gallery-grid__empty { grid-column: 1 / -1; padding-block: var(--space-6); text-align: center; opacity: .75; }

/* --------------------------------------------------------------------------
   18. FAQ: used with FAQPage-ready markup (question in <summary>).
   -------------------------------------------------------------------------- */
.faq-list { display: grid; gap: var(--space-3); }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-4) var(--space-5); }
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; color: var(--chalk); flex-shrink: 0; transition: transform .2s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: var(--space-3) 0 0; opacity: .85; }

/* --------------------------------------------------------------------------
   19. FORMS: every intake form posts to /api/submit (BUILD-SPEC §6).
   -------------------------------------------------------------------------- */
.form { display: grid; gap: var(--space-5); max-width: 42rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4) var(--space-5); }
.field { display: grid; gap: var(--space-2); }
.field label { font-weight: 700; font-size: .9375rem; }
.field .hint { font-size: .8125rem; opacity: .68; margin: 0; }
.field input,
.field textarea,
.field select {
  min-height: 44px;
  padding: var(--space-3);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}
.field textarea { min-height: 120px; resize: vertical; }
.field-required::after { content: " *"; color: var(--tile); }

/* Honeypot: off-screen, not display:none, so it stays a real (bot-visible,
   human-invisible) field. Every form must use this exact pattern: see the
   comment above initForms() in site.js for the expected field name. */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { padding: var(--space-4); border-radius: var(--radius); font-weight: 700; }
.form-status--success { background: var(--cream); color: var(--tile); }
.form-status--error { background: #FBEAE5; color: #9C3B1F; }
.form-note { font-size: .875rem; opacity: .75; }

/* --------------------------------------------------------------------------
   20. NOTICE / CALLOUT: honest, once-stated caveats (availability
       language, manual gift-card fulfillment, undecided private-event
       terms, and similar).
   -------------------------------------------------------------------------- */
.notice {
  border-left: 3px solid var(--chalk);
  background: var(--cream);
  padding: var(--space-4) var(--space-5);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .9375rem;
}
.notice p:last-child { margin-bottom: 0; }
.notice--on-dark { background: rgba(251, 249, 245, .06); }

/* --------------------------------------------------------------------------
   21. FOOTER: --tile, matching the visit band (the recurring tile motif).
   -------------------------------------------------------------------------- */
.site-footer { background: var(--tile); color: var(--paper); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-6); padding-block: var(--space-8); }
.site-footer h3 { color: var(--paper); font-size: .9375rem; margin-bottom: var(--space-3); }
.site-footer p { opacity: .82; font-size: .9375rem; }
.site-footer a { color: rgba(251, 249, 245, .85); text-decoration: none; }
.site-footer a:hover { color: var(--chalk); }
.site-footer ul { display: grid; gap: var(--space-2); }
.site-footer__bottom {
  border-top: 1px solid var(--line-dark);
  padding-block: var(--space-5);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: .8125rem;
  color: rgba(251, 249, 245, .72);
}

/* --------------------------------------------------------------------------
   22. 404 PAGE
   -------------------------------------------------------------------------- */
.error-page { padding-block: clamp(5rem, 14vw, 9rem); text-align: center; }
.error-page__code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 14vw, 8rem);
  color: var(--chalk);
  line-height: 1;
  margin-bottom: var(--space-4);
}
.error-page .lede { margin-inline: auto; }
.error-page .btn-row { justify-content: center; margin-top: var(--space-6); }

/* --------------------------------------------------------------------------
   23. SCROLL REVEAL MOTION
       [data-reveal] on a single element; [data-reveal-group] on a
       container whose direct children (or [data-reveal-child] descendants)
       stagger via --stagger-i, set by initReveal() in site.js. Base state
       is fully visible: only html.js-anim (set by the <head> inline gate
       when motion is allowed) switches on the hidden-until-revealed state,
       so no-JS and reduced-motion visitors always see static, complete
       content immediately.
   -------------------------------------------------------------------------- */
html.js-anim [data-reveal],
html.js-anim [data-reveal-group] > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  transition-delay: min(calc(var(--stagger-i, 0) * 90ms), 540ms);
}
html.js-anim [data-reveal].is-revealed,
html.js-anim [data-reveal-group].is-revealed > * {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   24. UTILITIES
   -------------------------------------------------------------------------- */
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--chalk); margin: 0 var(--space-2); vertical-align: middle; }

/* Unverified-fact marker (BUILD-SPEC §9): subtle, visible on the private
   preview so it doubles as the owner-confirmation checklist. Decorative
   only: never conveys meaning through color alone. */
[data-unverified] { border-bottom: 1px dotted currentColor; }

/* --------------------------------------------------------------------------
   25. RESPONSIVE ADJUSTMENTS
   -------------------------------------------------------------------------- */
@media (max-width: 899px) {
  .today-strip__grid,
  .visit-band__grid,
  .site-footer__grid { grid-template-columns: 1fr; gap: var(--space-5); }
  .split-section { grid-template-columns: 1fr; }
  .menu-teaser__grid,
  .recurring-promise,
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .menu-teaser__grid,
  .recurring-promise,
  .gallery-grid { grid-template-columns: 1fr; }
  .event-card { grid-template-columns: 64px 1fr; gap: var(--space-4); }
  .site-footer__bottom { flex-direction: column; }
}

/* The [hidden] attribute must beat any component `display` rule (.btn sets
   inline-flex, which otherwise wins over the UA `[hidden]{display:none}` and
   leaks feature-flagged CTAs onto the page). Keep this last. */
[hidden] { display: none !important; }
