/* ==========================================================================
   Grand Crossing Bar & Grill — "The Chalkboard & The Pine"
   Design tokens are pulled from the bar's own photographs.
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face {
  font-family: 'Alfa Slab One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/alfa-slab-one-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/caveat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Design tokens ---------- */
:root {
  /* Palette — sampled from the room */
  --pine: #c89b5a;
  --bartop: #7a3b1e;
  --stool-red: #a3282e;
  --felt-green: #2e7d5b;
  --chalk-black: #232323;
  --chalk-white: #f4efe6;
  --beer-amber: #e8a33d;

  /* Derived working colours */
  --paper: #f4efe6;
  --paper-warm: #ece4d6;
  --ink: #1c1a17;
  --ink-soft: #4a453e;
  --rule: #d8cdb9;
  --board: #232323;
  --board-2: #2c2b29;
  --chalk-dim: #cfc7b8;

  /* Accessible link/accent (darkened felt green for AA on paper) */
  --link: #1f6349;
  --link-hover: #144a37;

  /* Type */
  --display: 'Alfa Slab One', Georgia, 'Times New Roman', serif;
  --hand: 'Caveat', 'Segoe Script', cursive;
  --body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica,
    Arial, sans-serif;

  /* Space */
  --gut: clamp(1.25rem, 4vw, 2.5rem);
  --wrap: 1180px;
  --wrap-narrow: 760px;

  --shadow-lift: 0 2px 4px rgba(28, 26, 23, 0.06),
    0 12px 28px rgba(28, 26, 23, 0.1);
  --radius: 6px;
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Set on the root as well as body: body's overflow propagates to the viewport,
     which leaves the root still reporting the wider scroll width. */
  overflow-x: clip;
}

body {
  margin: 0;
  /* The rotated .liner photo frames have a bounding box a few px wider than the
     element, which made the page scrollable sideways by 1px on phones. `clip`
     (not `hidden`) contains it without creating a scroll container, so the
     sticky header and the menu order rail keep working. */
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--link-hover); }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.005em;
  margin: 0 0 0.5em;
  /* Evens out the last line so headings stop dropping a single orphan word.
     Ignored by browsers that do not support it, which is harmless. */
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 6vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.7rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.45rem); }
p { margin: 0 0 1.15em; }

:focus-visible {
  outline: 3px solid var(--bartop);
  outline-offset: 3px;
  border-radius: 3px;
}
.board :focus-visible { outline-color: var(--beer-amber); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.wrap-narrow { max-width: var(--wrap-narrow); }

.skip-link {
  position: absolute;
  left: 0; top: 0;
  transform: translateY(-120%);
  background: var(--chalk-black);
  color: var(--chalk-white);
  padding: 0.75rem 1.25rem;
  z-index: 200;
  font-weight: 600;
}
.skip-link:focus { transform: translateY(0); color: var(--chalk-white); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease,
    border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

/* Dark text on amber — contrast-safe (item: accessibility) */
.btn.btn-amber { background: var(--beer-amber); color: #241a06; border-color: var(--beer-amber); }
.btn.btn-amber:hover { background: #f3b354; border-color: #f3b354; color: #241a06; }

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

.board .btn.btn-outline { color: var(--chalk-white); }
.board .btn.btn-outline:hover { background: var(--chalk-white); color: var(--chalk-black); border-color: var(--chalk-white); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--chalk-black);
  color: var(--chalk-white);
  border-bottom: 3px solid var(--beer-amber);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}
.brand {
  padding-block: 0.45rem;
  font-family: var(--display);
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  color: var(--chalk-white);
  text-decoration: none;
  line-height: 1.05;
  display: flex;
  flex-direction: column;
}
.brand:hover { color: var(--beer-amber); }
.brand .brand-sub {
  font-family: var(--body);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--beer-amber);
  font-weight: 700;
  margin-top: 2px;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid rgba(244, 239, 230, 0.35);
  color: var(--chalk-white);
  border-radius: var(--radius);
  padding: 0.55rem 0.8rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  align-items: center;
  gap: 0.5rem;
}
.nav-toggle .bars {
  display: block;
  width: 18px; height: 2px;
  background: currentColor;
  position: relative;
}
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: ''; position: absolute; left: 0;
  width: 18px; height: 2px; background: currentColor;
}
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after { top: 6px; }

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.8vw, 1.6rem);
  margin: 0; padding: 0;
}
.site-nav a {
  color: var(--chalk-white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--beer-amber); border-bottom-color: var(--beer-amber); }
.site-nav a[aria-current='page'] { color: var(--beer-amber); border-bottom-color: var(--beer-amber); }
.site-nav .nav-cta a {
  background: var(--beer-amber);
  color: #241a06;
  padding: 0.55rem 1rem;
  border-radius: var(--radius);
  border-bottom: 0;
}
.site-nav .nav-cta a:hover { background: #f3b354; color: #241a06; border-bottom-color: transparent; }

/* Touch devices wide enough to still get the horizontal nav (tablets in
   landscape) need the same hit area the phone drawer gets. */
@media (pointer: coarse) {
  .site-nav a { padding-block: 0.8rem; }
  .order-rail a.btn { padding-block: 0.95rem; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    inset: 68px 0 auto 0;
    background: var(--chalk-black);
    border-bottom: 3px solid var(--beer-amber);
    padding: 0.5rem var(--gut) 1.25rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li { border-top: 1px solid rgba(244, 239, 230, 0.14); }
  .site-nav a { display: block; padding: 0.85rem 0; border-bottom: 0; font-size: 1.05rem; }
  .site-nav .nav-cta { border-top: 0; margin-top: 0.9rem; }
  .site-nav .nav-cta a { text-align: center; }
}

/* ---------- Dark "chalkboard" panels ---------- */
.board {
  background-color: var(--board);
  color: var(--chalk-white);
  /* chalk dust: soft radial smudges, pure CSS, no image request */
  background-image:
    radial-gradient(ellipse 70% 55% at 18% 12%, rgba(255, 255, 255, 0.055), transparent 60%),
    radial-gradient(ellipse 55% 45% at 82% 78%, rgba(255, 255, 255, 0.045), transparent 62%),
    radial-gradient(ellipse 40% 60% at 55% 40%, rgba(255, 255, 255, 0.028), transparent 65%);
}
.board h2, .board h3 { color: var(--chalk-white); }
.board a:not(.btn) { color: var(--beer-amber); }
.board a:not(.btn):hover { color: #f6c076; }
.board p { color: #e2dbcd; }

/* padding-block, NOT the `padding: X 0` shorthand. These rules come after .wrap
   in the cascade at equal specificity, so the shorthand's implicit
   padding-inline:0 was overriding .wrap's gutter on every `class="section wrap"`
   element — content ran edge-to-edge on phones. */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-tight { padding-block: clamp(2.25rem, 5vw, 3.5rem); }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bartop);
  margin: 0 0 0.75rem;
}
.board .eyebrow { color: var(--beer-amber); }

.lede { font-size: clamp(1.05rem, 1.9vw, 1.2rem); color: var(--ink-soft); }
.board .lede { color: #d9d2c4; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--chalk-black); overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20, 18, 15, 0.72) 0%,
    rgba(20, 18, 15, 0.5) 35%,
    rgba(20, 18, 15, 0.82) 78%,
    rgba(20, 18, 15, 0.95) 100%
  );
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: clamp(3.5rem, 11vw, 7rem) 0 clamp(2.75rem, 7vw, 4.25rem);
  max-width: 44rem;
}
.hero h1 { color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5); margin-bottom: 0.6rem; }
.hero h1 .h1-where {
  display: block;
  font-family: var(--body);
  font-weight: 700;
  font-size: clamp(0.95rem, 2.1vw, 1.2rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--beer-amber);
  margin-top: 0.7rem;
  text-shadow: none;
}
.hero-sub {
  color: #ece5d8;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  max-width: 34rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.6rem; }
.hero-actions .btn.btn-outline { color: #fff; }
.hero-actions .btn.btn-outline:hover { background: #fff; color: var(--chalk-black); }

/* "Since 1950" ticket stub */
.stub {
  position: relative;
  display: inline-block;
  background: var(--chalk-white);
  color: var(--chalk-black);
  font-family: var(--display);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 0.5rem 1.1rem;
  transform: rotate(-2.5deg);
  margin-bottom: 1.4rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  /* punched ticket edges */
  -webkit-mask-image: radial-gradient(circle 5px at 0 50%, transparent 98%, #000 100%),
    radial-gradient(circle 5px at 100% 50%, transparent 98%, #000 100%);
  -webkit-mask-composite: source-in;
  mask-image: radial-gradient(circle 5px at 0 50%, transparent 98%, #000 100%),
    radial-gradient(circle 5px at 100% 50%, transparent 98%, #000 100%);
  mask-composite: intersect;
}
.stub .stub-rule { color: var(--stool-red); }

/* ---------- Chalkboard specials strip ---------- */
.specials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-top: 2.25rem;
}
.special {
  border: 2px solid rgba(244, 239, 230, 0.4);
  border-radius: 4px;
  padding: 1.6rem 1.35rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.028);
}
.special:nth-child(1) { transform: rotate(-1.2deg); }
.special:nth-child(2) { transform: rotate(0.7deg); }
.special:nth-child(3) { transform: rotate(-0.6deg); }
.special h3 {
  font-family: var(--hand);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.4vw, 2.15rem);
  line-height: 1.1;
  color: var(--chalk-white);
  margin-bottom: 0.35rem;
}
.special .price {
  font-family: var(--hand);
  font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 2.7rem);
  color: var(--beer-amber);
  display: block;
  line-height: 1;
  margin: 0.4rem 0 0.5rem;
}
.special p { font-size: 0.95rem; color: #ccc4b5; margin: 0; }

/* ---------- Two-up / media blocks ---------- */
.two-up {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
@media (min-width: 780px) {
  .two-up { grid-template-columns: 1fr 1fr; }
  .two-up.flip .two-up-media { order: 2; }
}

/* Basket-liner photo frame — the crinkled deli-paper look */
.liner {
  background: #fff;
  padding: 12px;
  box-shadow: var(--shadow-lift);
  border-radius: 2px;
  transform: rotate(-0.6deg);
  position: relative;
}
.liner::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(122, 59, 30, 0.22);
  pointer-events: none;
  z-index: 1;
}
.liner img { border-radius: 1px; }
.liner.flat { transform: none; }

/* ---------- Review proof band ---------- */
.stars { color: var(--beer-amber); letter-spacing: 0.1em; }
.rating-big {
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1;
  margin: 0 0 0.35rem;
}
.quote-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-top: 2rem;
}
blockquote.quote {
  margin: 0;
  background: #fff;
  border-left: 5px solid var(--stool-red);
  padding: 1.4rem 1.5rem;
  border-radius: 3px;
  box-shadow: var(--shadow-lift);
}
blockquote.quote p { font-size: 1.05rem; margin-bottom: 0.75rem; }
blockquote.quote cite {
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.board blockquote.quote { background: rgba(255, 255, 255, 0.045); border-left-color: var(--beer-amber); box-shadow: none; }
.board blockquote.quote cite { color: var(--chalk-dim); }

/* ---------- Hours coaster ---------- */
.coaster {
  background: var(--board-2);
  color: var(--chalk-white);
  border: 2px solid rgba(244, 239, 230, 0.28);
  border-radius: 18px;
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  max-width: 27rem;
  position: relative;
}
.coaster::after {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(244, 239, 230, 0.16);
  border-radius: 12px;
  pointer-events: none;
}
.coaster h3 {
  font-size: 1.05rem;
  font-family: var(--body);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--beer-amber);
  margin-bottom: 1rem;
}
.hours-list { list-style: none; margin: 0; padding: 0; }
.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px dotted rgba(244, 239, 230, 0.2);
  font-size: 0.98rem;
}
.hours-list li:last-child { border-bottom: 0; }
.hours-list .day { font-weight: 700; }
.hours-list .closed { color: var(--beer-amber); font-weight: 700; }
.hours-note {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--chalk-dim);
  line-height: 1.45;
}

/* Standalone "read more" links sit alone in a <p>, so they are a target in
   their own right rather than a link inside a sentence. Give them a hit area. */
.arrow-link { display: inline-block; padding-block: 0.7rem; }

/* ---------- Breadcrumbs ---------- */
.crumbs { padding: 0.35rem 0 0; font-size: 0.85rem; color: var(--ink-soft); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; margin: 0; padding: 0; }
.crumbs li::after { content: '›'; margin-left: 0.45rem; color: var(--rule); }
.crumbs li:last-child::after { content: ''; }
/* Padding, not height — keeps the visual position identical while giving the
   link a hit area that clears the 44px touch-target guideline. */
.crumbs a {
  color: var(--ink-soft);
  display: inline-block;
  padding-block: 0.8rem;
  padding-inline: 5px;
  margin-inline: -5px; /* pad the hit area without moving the text */
}

/* ---------- Page header (inner pages) ---------- */
.page-head { padding: clamp(1.5rem, 4vw, 2.75rem) 0 clamp(1.25rem, 3vw, 2rem); border-bottom: 1px solid var(--rule); }
.page-head p.lede { max-width: 46rem; margin-bottom: 0; }

/* ---------- Menu page ---------- */
.menu-note {
  background: var(--paper-warm);
  border-left: 5px solid var(--beer-amber);
  padding: 1.1rem 1.3rem;
  border-radius: 3px;
  font-size: 0.95rem;
  margin: 0 0 2.5rem;
}
.menu-note p:last-child { margin-bottom: 0; }

.menu-section { margin-bottom: clamp(2.5rem, 6vw, 4rem); scroll-margin-top: 92px; }
.menu-section h2 {
  font-family: var(--hand);
  font-weight: 700;
  font-size: clamp(2.2rem, 5.5vw, 3.1rem);
  color: var(--bartop);
  margin-bottom: 0.15rem;
  line-height: 1;
}
.menu-section > p.cat-note { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 1.5rem; }
.menu-section h2 + p.cat-note { margin-top: 0.5rem; }

.menu-list { margin: 0; }
/* Each item is a dt + dd group wrapped in a div — valid inside <dl> and it
   keeps every term paired with its definition for screen readers. */
.menu-row {
  display: grid;
  /* minmax(0, 1fr) — a bare 1fr floors at min-content, so the longest item name
     plus a nowrap price pushed the row past the viewport at 320px. */
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 0.6rem;
  align-items: baseline;
  margin-top: 1.3rem;
}
.menu-row:first-child { margin-top: 0; }
/* The "confirm with owner" badge is ~190px and squeezed the item name to 120px
   at 320px wide. Give it its own line on narrow screens. */
@media (max-width: 430px) {
  .menu-row:has(.confirm) { grid-template-columns: minmax(0, 1fr); row-gap: 0.4rem; }
  .menu-row:has(.confirm) .confirm { justify-self: start; }
}
.menu-list dt {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: 0;
  font-weight: 700;
  font-size: 1.08rem;
}
.menu-list dt .dots {
  flex: 1;
  border-bottom: 2px dotted var(--rule);
  transform: translateY(-4px);
  min-width: 1.5rem;
}
.menu-list dd { margin: 0; }
.menu-list dd.price {
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--bartop);
  white-space: nowrap;
}
.menu-list dd.desc {
  grid-column: 1 / -1;
  margin: 0.3rem 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 46rem;
}

.menu-cols { display: grid; grid-template-columns: 1fr; gap: 0 clamp(2rem, 5vw, 4rem); }
@media (min-width: 720px) { .menu-cols { grid-template-columns: 1fr 1fr; } }

.confirm {
  display: inline-block;
  background: #fdf1d6;
  border: 1px solid var(--beer-amber);
  color: #6b4c11;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  white-space: nowrap;
}

.menu-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 2.5rem;
  padding: 0;
  list-style: none;
}
.menu-jump a {
  display: inline-block;
  border: 1.5px solid var(--rule);
  border-radius: 999px;
  padding: 0.72rem 0.95rem;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
}
.menu-jump a:hover { border-color: var(--bartop); color: var(--bartop); }

.order-rail {
  position: sticky;
  bottom: 0;
  z-index: 50;
  background: var(--chalk-black);
  border-top: 3px solid var(--beer-amber);
  padding: 0.75rem 0;
}
.order-rail .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; }
.order-rail p { margin: 0; color: var(--chalk-dim); font-size: 0.92rem; }
.order-rail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
/* The rail is dark; .btn-outline defaults to dark ink, so it needs the light treatment. */
.order-rail .btn.btn-outline { color: var(--chalk-white); }
.order-rail .btn.btn-outline:hover { background: var(--chalk-white); color: var(--chalk-black); border-color: var(--chalk-white); }
/* On phones the sticky rail ate a quarter of the viewport once it carried two
   buttons. The sentence is redundant there — the buttons already say it. */
@media (max-width: 620px) {
  .order-rail p { display: none; }
  .order-rail .wrap { justify-content: center; }
  .order-rail-actions { width: 100%; }
  .order-rail-actions .btn { flex: 1 1 0; text-align: center; padding-inline: 0.75rem; }
}

/* Secondary ordering line in the footer (pickup vs delivery) */
.order-alt {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: var(--chalk-dim);
  line-height: 1.45;
  max-width: 30ch;
}
.site-footer .order-alt a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
}
.gallery-item {
  margin: 0;
  background: #fff;
  padding: 10px 10px 0;
  box-shadow: var(--shadow-lift);
  border-radius: 3px;
}
.gallery-item figcaption { font-size: 0.85rem; color: var(--ink-soft); padding: 0.7rem 0.2rem 0.85rem; }
.gallery-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: 2px;
}

dialog.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(96vw, 1200px);
  max-height: 94vh;
  color: var(--chalk-white);
}
dialog.lightbox::backdrop { background: rgba(15, 14, 12, 0.92); }
dialog.lightbox img { max-height: 78vh; width: auto; margin-inline: auto; border-radius: 3px; }
.lightbox-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.85rem 0.25rem 0; }
.lightbox-cap { font-size: 0.9rem; color: #ded7c9; margin: 0; }
.lightbox-close {
  background: transparent;
  border: 2px solid rgba(244, 239, 230, 0.5);
  color: var(--chalk-white);
  border-radius: var(--radius);
  padding: 0.45rem 0.9rem;
  font: inherit; font-weight: 700; cursor: pointer;
}
.lightbox-close:hover { background: var(--chalk-white); color: var(--chalk-black); }

/* ---------- FAQ / details ---------- */
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 2.5rem 1.15rem 0;
  font-weight: 700;
  font-size: 1.06rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute; right: 0.25rem; top: 50%;
  transform: translateY(-50%);
  font-family: var(--display);
  font-size: 1.4rem;
  color: var(--bartop);
  line-height: 1;
}
.faq details[open] summary::after { content: '–'; }
.faq details > div { padding: 0 0 1.25rem; max-width: 48rem; color: var(--ink-soft); }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- Map ---------- */
.map-frame {
  border: 0;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  background: var(--paper-warm);
  box-shadow: var(--shadow-lift);
}

/* ---------- Reviews page ---------- */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(1.25rem, 3vw, 1.9rem);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--chalk-black); color: var(--chalk-white); padding: clamp(2.75rem, 6vw, 4rem) 0 1.5rem; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}
.site-footer h2, .site-footer h3 {
  font-family: var(--body);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--beer-amber);
  margin-bottom: 0.9rem;
}
.site-footer address { font-style: normal; line-height: 1.7; color: #e2dbcd; }
.site-footer address a { display: inline-block; padding-block: 0.6rem; }
.site-footer a:not(.btn) { color: var(--chalk-white); }
.site-footer a:not(.btn):hover { color: var(--beer-amber); }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { padding: 0; }
.footer-links a { display: block; padding-block: 0.72rem; }
.footer-bottom {
  margin-top: clamp(2rem, 5vw, 3rem);
  padding-top: 1.25rem;
  border-top: 1px solid rgba(244, 239, 230, 0.16);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--chalk-dim);
}
.footer-bottom p { margin: 0; }
/* The footer hours are reference information, not a feature card. Dropping the
   card chrome stops the same component appearing twice on the home page. */
.footer-coaster {
  max-width: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}
.footer-coaster::after { content: none; }
.footer-coaster .hours-list li { padding: 0.35rem 0; font-size: 0.92rem; }
.footer-coaster .hours-note { margin-top: 0.7rem; }

/* ---------- 404 ---------- */
.wrong-door { text-align: center; padding: clamp(3.5rem, 10vw, 7rem) 0; }
.wrong-door h1 { margin-bottom: 0.35rem; }
.wrong-door .btn { margin: 0.35rem; }

/* ---------- Motion ---------- */
/* The fade-up is gated on the `js` class, which an inline script in <head> sets
   before this stylesheet is applied. If JavaScript never runs, nothing is ever
   hidden — content shows immediately rather than disappearing for good. */
.js .reveal { opacity: 0; transform: translateY(14px); }
.js .reveal.is-in { opacity: 1; transform: none; transition: opacity 0.55s ease, transform 0.55s ease; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .btn:hover { transform: none; }
  .special, .liner { transform: none !important; }
  .stub { transform: rotate(-2.5deg); }
}

/* ==========================================================================
   Photo marquee (home page)

   A dark band of photographs drifting continuously. No frames, no captions at
   rest — the title fades up over the image on hover. The track is a genuine
   horizontal scroller, so with JavaScript off it degrades to a strip you can
   swipe or arrow-key through with every title showing.
   ========================================================================== */
.marquee-section {
  background-color: var(--board);
  background-image:
    radial-gradient(ellipse 70% 55% at 18% 12%, rgba(255, 255, 255, 0.05), transparent 60%),
    radial-gradient(ellipse 55% 45% at 82% 78%, rgba(255, 255, 255, 0.04), transparent 62%);
  color: var(--chalk-white);
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
  overflow: hidden;
}
.marquee-head { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.marquee-head .eyebrow { color: var(--beer-amber); }
.marquee-head h2 { color: var(--chalk-white); margin-bottom: 0; }

.marquee-track {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* No scroll-snap: the whole point is that it flows rather than clicks into
     place. Momentum scrolling stays enabled for touch. */
  -webkit-overflow-scrolling: touch;
}
.marquee-track::-webkit-scrollbar { display: none; }
.marquee-track:focus-visible { outline: 3px solid var(--beer-amber); outline-offset: -4px; }

.marquee-run {
  display: flex;
  flex: 0 0 auto;
}

.marquee-item {
  position: relative;
  /* The gap lives on the item, including the last one, so the run tiles
     perfectly against its own clone and the seam is invisible. */
  margin: 0 clamp(6px, 0.9vw, 14px) 0 0;
  position: relative;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 2px;
  /* One uniform height, natural widths. The varied widths are what stops it
     reading as a grid of identical tiles. */
  height: clamp(190px, 20vw, 250px);
  isolation: isolate;
}
.marquee-item img {
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: cover;
  display: block;
  transform: scale(1.001);   /* hides sub-pixel edge seams while scaling */
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* The title lives in a soft gradient that only appears on hover. */
.marquee-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.6rem 0.9rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff;
  background: linear-gradient(to top, rgba(12, 11, 10, 0.88) 0%, rgba(12, 11, 10, 0.55) 45%, transparent 100%);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

@media (hover: hover) {
  .marquee-item:hover img { transform: scale(1.04); }
  .marquee-item:hover figcaption { opacity: 1; transform: none; }
}
/* Touch devices have no hover, so the titles simply stay on. */
@media (hover: none) {
  .marquee-item figcaption { opacity: 1; transform: none; }
}
.marquee-track:focus-visible .marquee-item figcaption { opacity: 1; transform: none; }

/* ---- Foot: one quiet pause control, and the link out ---- */
.marquee-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: clamp(1.25rem, 2.5vw, 1.75rem);
}
.marquee-pause {
  display: none;   /* JS only: without the drift there is nothing to pause */
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0 0.9rem 0 0.7rem;
  background: transparent;
  border: 1px solid rgba(244, 239, 230, 0.28);
  border-radius: 999px;
  color: var(--chalk-dim);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.js .marquee-pause { display: inline-flex; }
.marquee-pause:hover { color: var(--chalk-white); border-color: rgba(244, 239, 230, 0.6); }
.marquee-pause-icon {
  width: 9px;
  height: 11px;
  border-left: 3px solid currentColor;
  border-right: 3px solid currentColor;
}
.marquee-pause[data-state='paused'] .marquee-pause-icon {
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-left: 10px solid currentColor;
  border-right: 0;
}
.marquee-all {
  color: var(--beer-amber);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  padding-block: 0.7rem;
}
.marquee-all:hover { color: #f6c076; text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  /* No drift at all (handled in main.js), so the control is redundant, and the
     zoom on hover goes too. The titles still appear. */
  .js .marquee-pause { display: none; }
  .marquee-item img { transition: none; }
  .marquee-item:hover img { transform: scale(1.001); }
  .marquee-item figcaption { transition: none; }
}


/* ==========================================================================
   Visit section (home) — hours + map
   ========================================================================== */
.visit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}
@media (min-width: 820px) {
  /* `1fr auto` rather than `1fr 1fr`: the hours card has a fixed natural width,
     so an equal split left it stranded 94px short of the right margin. */
  .visit-grid { grid-template-columns: 1fr auto; }
  .visit-grid > :last-child { justify-self: end; }
}

.visit-address {
  font-style: normal;
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 0 1.4rem;
}
.visit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 0.4rem;
}
.visit-more { margin: 0; }

.visit-map {
  display: block;
  width: 100%;
  border: 0;
  margin-top: clamp(2rem, 4vw, 3rem);
  /* Letterbox strip: wide and short, so it reads as a locator rather than
     competing with the photographs above it. */
  aspect-ratio: 16 / 5;
  min-height: 200px;
  background: var(--paper-warm);
  filter: saturate(0.9);
}
@media (max-width: 640px) {
  .visit-map { aspect-ratio: 4 / 3; }
}

/* ==========================================================================
   Archive photograph (Our Story)
   Breaks out of the narrow text column and runs the full width. No frame:
   the deli-paper treatment belongs to the food photography, and putting an
   archival print in it would read as a prop rather than as evidence.
   ========================================================================== */
.archive-figure {
  margin: clamp(2rem, 5vw, 3.25rem) calc(50% - 50vw);
  width: 100vw;
  max-width: 100vw;
}
.archive-figure img {
  width: 100%;
  height: auto;
  display: block;
}
.archive-figure figcaption {
  max-width: var(--wrap-narrow);
  margin-inline: auto;
  padding: 0.9rem var(--gut) 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* ==========================================================================
   Brand logo
   The artwork ships with its dark backdrop baked in rather than cut out, so
   `mix-blend-mode: lighten` is doing the knockout: any pixel darker than the
   header disappears into it, and everything brighter comes through. That is
   why the header and footer are the only places it can live.
   ========================================================================== */
.brand { padding-block: 0.35rem; }
.brand-logo {
  height: clamp(50px, 9vw, 88px);
  width: auto;
  max-width: none;
  display: block;
  mix-blend-mode: lighten;
}
.site-header .wrap { min-height: 108px; }
@media (max-width: 860px) {
  .site-nav { inset-block-start: 88px; }
  .brand-logo { height: clamp(50px, 7.5vw, 72px); }
  .site-header .wrap { min-height: 88px; }
}
