/* ===== Brand tokens (from the Eat the Worm logo) ===== */
:root {
  --worm-yellow: #F6C31B;
  --worm-yellow-deep: #E0A800;
  --ink: #0E0D0B;
  --ink-2: #1A1815;
  --ink-3: #26231F;
  --cream: #F7EFDC;
  --cream-muted: #C9BFA8;
  --brick: #C0472B;
  --line: rgba(247, 239, 220, 0.14);

  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Karla", "Helvetica Neue", Arial, sans-serif;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-6: 48px;
  --space-8: 64px;
  --space-12: 96px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 180ms;
  --t-slow: 900ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 140px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; line-height: 1.05; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--space-2); top: -60px; z-index: 100;
  background: var(--worm-yellow); color: var(--ink); padding: 10px 16px;
  font-weight: 700; border-radius: 6px; text-decoration: none;
}
.skip-link:focus { top: var(--space-2); }

/* ===== Header (two rows, like the reference) ===== */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}
.header-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 10px clamp(16px, 5vw, 96px);
  border-bottom: 1px solid var(--line);
}
.quick-links { display: flex; gap: var(--space-1); }
.icon-link {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  color: var(--cream);
  transition: background var(--t-fast), color var(--t-fast);
}
.icon-link:hover { background: var(--ink-3); color: var(--worm-yellow); }
.icon-link svg, .hero-arrow svg, .pause svg {
  width: 22px; height: 22px; fill: none; stroke: currentColor;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.brand img { width: auto; height: 76px; margin-block: -4px; filter: drop-shadow(0 4px 14px rgba(246,195,27,0.18)); }
.status {
  justify-self: end; margin: 0;
  display: flex; align-items: center; gap: 10px;
  font-size: 0.95rem; color: var(--cream-muted);
}
.status-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--cream-muted);
}
.status.is-open .status-dot { background: #4ADE80; box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.18); }
.status.is-open .status-text { color: var(--cream); }

.main-nav {
  display: flex; justify-content: center;
  gap: clamp(16px, 7vw, 112px);
  padding: 0 var(--space-2);
}
.main-nav a {
  display: inline-flex; align-items: center; min-height: 52px;
  text-decoration: none; font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.main-nav a:hover { color: var(--worm-yellow); border-bottom-color: var(--worm-yellow); }

/* ===== Hero carousel ===== */
.hero {
  position: relative;
  min-height: min(88vh, 860px);
  overflow: hidden;
  isolation: isolate;
  display: flex; flex-direction: column; justify-content: space-between;
}
.slides, .slide { position: absolute; inset: 0; margin: 0; }
.slide { opacity: 0; transition: opacity var(--t-slow) var(--ease-out); }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 7s linear; }
.slide.is-active img { transform: scale(1); }
.hero-shade {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(14,13,11,0.55) 0%, rgba(14,13,11,0) 38%),
    linear-gradient(0deg, rgba(14,13,11,0.92) 0%, rgba(14,13,11,0.35) 32%, rgba(14,13,11,0) 55%);
}
.hero-title {
  position: relative; z-index: 2;
  text-align: center;
  padding: clamp(40px, 8vh, 88px) var(--space-2) 0;
  font-weight: 800;
  font-size: clamp(3rem, 9.5vw, 9.5rem);
  letter-spacing: -0.04em;
  line-height: 0.92;
  color: var(--cream);
  text-shadow: 0 4px 40px rgba(0,0,0,0.35);
  text-wrap: balance;
}
.hero-title span { color: var(--worm-yellow); display: inline-block; }

.hero-arrow {
  position: absolute; top: 50%; z-index: 3; translate: 0 -50%;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  border: 0; cursor: pointer;
  background: rgba(247, 239, 220, 0.18);
  color: var(--cream);
  backdrop-filter: blur(6px);
  transition: background var(--t-fast), color var(--t-fast), scale var(--t-fast);
}
.hero-arrow:hover { background: var(--worm-yellow); color: var(--ink); }
.hero-arrow:active { scale: 0.95; }
.hero-arrow.prev { left: clamp(12px, 5vw, 72px); }
.hero-arrow.next { right: clamp(12px, 5vw, 72px); }

.hero-bottom {
  position: relative; z-index: 2;
  display: grid; justify-items: center; gap: var(--space-3);
  padding: 0 var(--space-2) var(--space-4);
}
.badges {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: var(--space-2) clamp(24px, 5vw, 64px);
}
.badges li { display: grid; text-align: center; line-height: 1.2; }
.badges strong {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.5rem; color: var(--worm-yellow); letter-spacing: -0.01em;
}
.badges span { font-size: 0.875rem; color: var(--cream); max-width: 16ch; }
.hero-controls { display: flex; align-items: center; gap: var(--space-2); }
.dots { display: flex; gap: 4px; }
.dots button {
  width: 32px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center;
}
.dots button::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: rgba(247, 239, 220, 0.5);
  transition: background var(--t-fast), width var(--t-fast);
}
.dots button[aria-current="true"]::before { background: var(--worm-yellow); width: 22px; border-radius: 5px; }
.pause {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(247,239,220,0.4);
  background: transparent; color: var(--cream); cursor: pointer; display: grid; place-items: center;
}
.pause svg { width: 16px; height: 16px; }
.pause .i-play, .pause[aria-pressed="true"] .i-pause { display: none; }
.pause[aria-pressed="true"] .i-play { display: block; }

/* ===== Intro ===== */
.intro {
  max-width: 980px; margin: 0 auto;
  padding: var(--space-12) var(--space-3) var(--space-8);
  text-align: center;
}
.eyebrow {
  margin: 0 0 var(--space-3);
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em;
  font-size: 0.85rem; color: var(--worm-yellow);
}
.intro-text {
  margin: 0;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.5rem, 3.2vw, 2.4rem); line-height: 1.25; letter-spacing: -0.015em;
  text-wrap: balance;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), scale var(--t-fast);
}
.btn:active { scale: 0.97; }
.btn-yellow { background: var(--worm-yellow); color: var(--ink); }
.btn-yellow:hover { background: var(--cream); }
.btn-ghost { border: 1.5px solid var(--cream); color: var(--cream); }
.btn-ghost:hover { background: var(--cream); color: var(--ink); }

/* ===== Menu ===== */
.menu {
  max-width: 1200px; margin: 0 auto;
  padding: var(--space-8) clamp(16px, 4vw, 48px) var(--space-12);
}
.section-head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: var(--space-3); margin-bottom: var(--space-4);
}
.section-head h2, .visit h2 {
  font-size: clamp(2.75rem, 7vw, 5.5rem); font-weight: 800; letter-spacing: -0.035em;
}
.tabs {
  display: flex; flex-wrap: wrap; gap: var(--space-1);
  border-bottom: 1px solid var(--line); margin-bottom: var(--space-4);
}
.tabs button {
  min-height: 48px; padding: 0 20px;
  font: 700 1rem var(--font-body); color: var(--cream-muted);
  background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px;
  cursor: pointer; transition: color var(--t-fast), border-color var(--t-fast);
}
.tabs button:hover { color: var(--cream); }
.tabs button[aria-selected="true"] { color: var(--worm-yellow); border-bottom-color: var(--worm-yellow); }
.panel-note { margin: 0 0 var(--space-3); color: var(--cream-muted); }
.menu-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr));
  column-gap: var(--space-8);
}
.menu-list li { padding: var(--space-3) 0; border-bottom: 1px dashed var(--line); }
.menu-list .row { display: flex; align-items: baseline; gap: var(--space-2); }
.menu-list h3 { font-size: 1.4rem; font-weight: 600; letter-spacing: -0.01em; }
.menu-list .row::after { content: ""; order: 1; flex: 1; border-bottom: 2px dotted rgba(246,195,27,0.35); translate: 0 -5px; min-width: 16px; }
.menu-list .price {
  order: 2; font-weight: 700; color: var(--worm-yellow);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.menu-list p { margin: 6px 0 0; color: var(--cream-muted); max-width: 52ch; }
.menu-list.compact li { padding: var(--space-2) 0; }
.menu-list.no-prices .row::after { display: none; }
.menu-list .featured h3 { color: var(--worm-yellow); }
.menu-list.compact h3 { font-size: 1.15rem; }
.fine-print { margin: var(--space-4) 0 0; font-size: 0.875rem; color: var(--cream-muted); }

/* ===== Hours & Location ===== */
.visit {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  background: var(--worm-yellow); color: var(--ink);
}
.visit-info { padding: var(--space-12) clamp(20px, 5vw, 80px); }
.visit h2 { margin-bottom: var(--space-4); }
.visit address {
  font-style: normal; display: grid; gap: var(--space-1);
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; line-height: 1.25;
  margin-bottom: var(--space-4);
}
.visit address a { text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.hours { width: 100%; max-width: 440px; border-collapse: collapse; margin-bottom: var(--space-4); }
.hours th, .hours td { padding: 10px 12px; text-align: left; border-bottom: 1px solid rgba(14,13,11,0.18); font-variant-numeric: tabular-nums; }
.hours th { font-weight: 500; }
.hours td { text-align: right; font-weight: 700; }
.hours tr.is-today { background: var(--ink); color: var(--worm-yellow); }
.hours tr.is-today th::after { content: " · Today"; font-weight: 700; }
.visit-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.visit .btn-yellow { background: var(--ink); color: var(--worm-yellow); }
.visit .btn-yellow:hover { background: var(--brick); color: var(--cream); }
.visit .btn-ghost { border-color: var(--ink); color: var(--ink); }
.visit .btn-ghost:hover { background: var(--ink); color: var(--worm-yellow); }
.visit-map { min-height: 420px; background: var(--ink-2); }
.visit-map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; filter: grayscale(0.3) contrast(1.05); }

/* ===== Footer ===== */
.site-footer {
  text-align: center; padding: var(--space-8) var(--space-3);
  color: var(--cream-muted); font-size: 0.95rem;
}
.site-footer img { width: 120px; height: auto; margin: 0 auto var(--space-2); }
.site-footer p { margin: 0 0 var(--space-1); }
.site-footer .small { font-size: 0.85rem; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .visit { grid-template-columns: 1fr; }
  .visit-info { padding-block: var(--space-8); }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 120px; }
  .header-top { grid-template-columns: auto 1fr; padding: 6px 12px; }
  .quick-links { order: 2; justify-self: end; gap: 0; }
  .brand { order: 1; }
  .brand img { height: 48px; }
  .status { display: none; }
  .main-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 0; }
  .main-nav a { justify-content: center; text-align: center; font-size: 0.875rem; line-height: 1.2; min-height: 48px; padding: 4px; }
  .hero { min-height: 78svh; }
  .hero-arrow { display: none; }
  .badges strong { font-size: 1.2rem; }
  .badges span { font-size: 0.8rem; }
  .menu-list h3 { font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
  .slide img { transform: none !important; }
}
