/* ==========================================================================
   Olive & Ember — stylesheet
   1. Tokens          5. Header / nav
   2. Reset & base    6. Sections (hero → footer)
   3. Utilities       7. Dialogs (reservation + lightbox)
   4. Buttons/links   8. Motion & responsive refinements
   ========================================================================== */

/* ------------------------------- 1. Tokens ------------------------------ */
:root {
  /* Color */
  --ivory: #F7F3EA;
  --paper: #FFFFFF;
  --sand: #DCD4C5;
  --sand-soft: #EAE4D8;
  --charcoal: #292721;
  --charcoal-deep: #1E1C17;
  --forest: #26382E;
  --forest-deep: #1B2A22;
  --olive: #85866A;
  --terracotta: #B76E45;
  --terracotta-deep: #9A5636;
  --muted: #5A594E;
  --on-dark: #F2EDE3;
  --on-dark-soft: #C4BCA9;

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Archivo", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.875rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.125rem;
  --fs-h3: clamp(1.3125rem, 1.15rem + 0.7vw, 1.5625rem);
  --fs-h2: clamp(1.875rem, 1.35rem + 2.1vw, 2.875rem);
  --fs-h1: clamp(2.375rem, 1.35rem + 4.4vw, 4.25rem);

  --lh-tight: 1.06;
  --lh-snug: 1.35;
  --lh-body: 1.62;

  /* Space & layout */
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.75rem);
  --section-y: clamp(3.75rem, 8vw, 6.75rem);
  --header-h: 68px;

  /* Effects */
  --radius: 3px;
  --hairline: 1px solid var(--sand);
  --shadow-soft: 0 24px 60px -34px rgba(30, 28, 23, 0.55);
  --focus-ring: var(--terracotta-deep);
}

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

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
svg { display: block; max-width: 100%; }

img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-optical-sizing: auto;
  line-height: var(--lh-tight);
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; }

button { font: inherit; color: inherit; }

address { font-style: normal; }

table { border-collapse: collapse; width: 100%; }

::selection { background: var(--forest); color: var(--ivory); }

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

.menu :focus-visible,
.gallery :focus-visible,
.site-footer :focus-visible,
.cta-band :focus-visible,
.lightbox :focus-visible { outline-color: var(--on-dark); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 200;
  transform: translateY(-160%);
  background: var(--forest);
  color: var(--ivory);
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.skip-link:focus-visible { transform: translateY(0); }

/* ------------------------------ 3. Utilities ---------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 var(--space-4);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--forest);
  line-height: 1.4;
}

.eyebrow .rule {
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2px;
  background: linear-gradient(90deg, var(--terracotta), rgba(183, 110, 69, 0));
}

.eyebrow-light { color: var(--on-dark-soft); }

.menu .eyebrow-light { color: var(--on-dark-soft); }

.eyebrow .dot { opacity: 0.55; }

.section { padding-block: var(--section-y); }

.section-title {
  font-size: var(--fs-h2);
  max-width: 22ch;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-5) var(--space-8);
  margin-bottom: clamp(2.25rem, 5vw, 3.5rem);
}

.section-head-main { flex: 1 1 26rem; }

.section-lede {
  flex: 0 1 30rem;
  max-width: 40ch;
  color: var(--muted);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
}

.section-foot {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: var(--space-5);
  border-top: var(--hairline);
}

.placeholder-chip {
  display: inline-block;
  max-width: 100%;
  padding: 0.1em 0.45em;
  border: 1px dashed currentColor;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  overflow-wrap: anywhere;
  vertical-align: 0.08em;
}

/* --------------------------- 4. Buttons & links ------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.7rem 1.5rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--forest);
  color: var(--ivory);
  border-color: var(--forest);
}

.btn-primary:hover { background: var(--forest-deep); border-color: var(--forest-deep); }

.btn-outline {
  background: transparent;
  color: var(--forest);
  border-color: var(--forest);
}

.btn-outline:hover { background: rgba(38, 56, 46, 0.08); }

.btn-outline-light {
  background: transparent;
  color: var(--on-dark);
  border-color: rgba(242, 237, 227, 0.45);
}

.btn-outline-light:hover { background: rgba(242, 237, 227, 0.1); border-color: var(--on-dark); }

.btn-light {
  background: var(--ivory);
  color: var(--forest);
  border-color: var(--ivory);
}

.btn-light:hover { background: #fff; border-color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.btn-ghost:hover { color: var(--charcoal); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--forest);
  text-decoration: none;
  padding-block: 0.35rem;
  border-bottom: 2px solid var(--terracotta);
}

.link-arrow::after {
  content: "\2192";
  transition: transform 0.18s ease;
}

.link-arrow:hover::after { transform: translateX(4px); }

.price {
  font-family: var(--font-body);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--terracotta-deep);
}

/* ---------------------------- 5. Header / nav --------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--ivory);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-stuck {
  border-bottom-color: var(--sand);
  box-shadow: 0 14px 28px -26px rgba(30, 28, 23, 0.8);
}

.header-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--forest);
  padding-block: 0.4rem;
}

.wordmark-mark {
  width: 26px;
  height: 26px;
  color: var(--terracotta);
  flex: 0 0 auto;
}

.wordmark-text {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}

.wordmark .amp {
  font-style: italic;
  text-transform: none;
  color: var(--terracotta-deep);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.25rem);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.25rem);
}

.nav-link {
  position: relative;
  display: inline-block;
  padding-block: 0.4rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--charcoal);
}

.nav-link::after {
  content: "\00a0";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-link:hover::after { transform: scaleX(1); }

.nav-link[aria-current="true"] { color: var(--forest); font-weight: 600; }
.nav-link[aria-current="true"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-right: -0.6rem;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 22px;
  height: 12px;
}

.nav-toggle-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--charcoal);
  transition: transform 0.22s ease, top 0.22s ease;
}

.nav-toggle-bars span:first-child { top: 0; }
.nav-toggle-bars span:last-child { top: 10px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:first-child { top: 5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:last-child { top: 5px; transform: rotate(-45deg); }

@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    padding: var(--space-4) var(--gutter) var(--space-6);
    background: var(--ivory);
    border-bottom: var(--hairline);
    box-shadow: 0 24px 40px -30px rgba(30, 28, 23, 0.9);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list li + li { border-top: var(--hairline); }

  .nav-link {
    display: block;
    padding: 1rem 0;
    font-size: var(--fs-md);
  }

  .nav-link::after { display: none; }

  .nav-link[aria-current="true"] {
    text-decoration: underline;
    text-decoration-color: var(--terracotta);
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
  }

  .nav-cta { width: 100%; margin-top: var(--space-5); }
}

/* ------------------------------- 6. Sections ---------------------------- */

/* Hero */
.hero {
  display: grid;
  grid-template-areas: "copy media";
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  align-items: stretch;
  min-height: min(calc(100vh - var(--header-h)), 50rem);
  min-height: min(calc(100svh - var(--header-h)), 50rem);
  border-bottom: var(--hairline);
}

.hero-media {
  grid-area: media;
  position: relative;
  overflow: hidden;
  background: var(--sand-soft);
}

.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-img { object-fit: cover; object-position: center; }

.hero-copy {
  grid-area: copy;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1rem, 3vh, 1.5rem);
  padding: clamp(1.75rem, min(6vw, 6vh), 5rem) clamp(1.5rem, 5vw, 5rem) clamp(1.75rem, min(5vw, 5vh), 4rem) var(--gutter);
  max-width: 46rem;
  margin-left: max(0px, calc((100vw - var(--container)) / 2));
}

.hero-title {
  font-size: var(--fs-h1);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.hero-title em {
  font-style: italic;
  color: var(--terracotta);
}

.hero-lede {
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  color: var(--muted);
  max-width: 38ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5) var(--space-7);
  margin: var(--space-3) 0 0;
  padding-top: clamp(1rem, 2.5vh, 1.5rem);
  border-top: var(--hairline);
}

.hero-meta dt {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.hero-meta dd {
  margin: 0;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--charcoal);
}

/* Signature dishes */
.dishes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.75rem);
}

.dish-media {
  overflow: hidden;
  background: var(--sand-soft);
  aspect-ratio: 4 / 5;
}

.dish-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.dish:hover .dish-media img { transform: scale(1.03); }

.dish-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: var(--hairline);
}

.dish-name {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.dish-head .price { font-size: var(--fs-md); flex: 0 0 auto; }

.dish-desc {
  margin-top: var(--space-3);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted);
}

/* Menu */
.menu {
  background: var(--forest);
  color: var(--on-dark);
}

.menu .section-title { color: var(--ivory); }

.menu .section-lede { color: var(--on-dark-soft); }

.menu-layout {
  display: grid;
  grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

.menu-index {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}

.menu-index ul { display: grid; gap: 0.15rem; }

.menu-index a {
  display: block;
  padding: 0.55rem 0;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--on-dark-soft);
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.menu-index a:hover { color: var(--ivory); }

.menu-index a[aria-current="true"] {
  color: var(--ivory);
  font-weight: 600;
  border-bottom-color: var(--terracotta);
}

.menu-body { display: grid; gap: clamp(2rem, 4vw, 3rem); }

.menu-group {
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}

.menu-group-title {
  font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem);
  color: var(--ivory);
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-5);
  border-bottom: 1px solid rgba(242, 237, 227, 0.22);
}

.menu-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(1.5rem, 3vw, 3rem);
  row-gap: var(--space-5);
}

.menu-item { break-inside: avoid; position: relative; }

.menu-item-row,
.menu-desc { position: relative; z-index: 1; }

/* Row hover: soft wash, terracotta rule, and a name underline that sweeps in */
.menu-item::before {
  content: "\00a0";
  position: absolute;
  inset: -0.4rem -0.65rem;
  z-index: 0;
  border-radius: var(--radius);
  background: rgba(242, 237, 227, 0.055);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.menu-item::after {
  content: "\00a0";
  position: absolute;
  left: -0.75rem;
  top: 0.15rem;
  bottom: 0.5rem;
  width: 2px;
  background: var(--terracotta);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.menu-item:hover::before,
.menu-item:focus-within::before { opacity: 1; }

.menu-item:hover::after,
.menu-item:focus-within::after { transform: scaleY(1); }

.menu-item-row {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
}

.menu-item .dish-name {
  position: relative;
  font-size: 1.0625rem;
  line-height: 1.3;
  color: var(--ivory);
}

.menu-item .dish-name::after {
  content: "\00a0";
  position: absolute;
  left: 0;
  bottom: -0.12em;
  width: 100%;
  height: 1px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.32s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.menu-item:hover .dish-name::after,
.menu-item:focus-within .dish-name::after { transform: scaleX(1); }

.menu-item .leader {
  flex: 1 1 auto;
  min-width: 1.5rem;
  border-bottom: 1px dotted rgba(242, 237, 227, 0.4);
  transform: translateY(-0.3em);
}

.menu-item .price {
  flex: 0 0 auto;
  font-size: var(--fs-base);
  color: var(--sand);
}

.menu-desc {
  margin-top: 0.35rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--on-dark-soft);
  max-width: 44ch;
}

.tag {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.05em 0.4em;
  border: 1px solid rgba(242, 237, 227, 0.42);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  vertical-align: 0.15em;
  color: var(--on-dark-soft);
}

.menu-note {
  margin-top: clamp(2.25rem, 5vw, 3.5rem);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(242, 237, 227, 0.22);
}

.menu-note p {
  max-width: 75ch;
  font-size: var(--fs-xs);
  line-height: 1.7;
  color: var(--on-dark-soft);
}

.menu-note strong { color: var(--ivory); font-weight: 600; }

/* Menu hover preview — the card unrolls out of the dish name */
.menu-preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  width: clamp(10.5rem, 15vw, 14rem);
  margin: 0;
  padding: 0.375rem;
  overflow: hidden;
  background: var(--ivory);
  border-radius: var(--radius);
  box-shadow: 0 28px 56px -26px rgba(12, 18, 14, 0.75);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.92);
  transform-origin: left center;
  clip-path: inset(0 100% 0 0);
  transition:
    opacity 0.18s ease,
    transform 0.3s cubic-bezier(0.2, 0.7, 0.3, 1),
    clip-path 0.34s cubic-bezier(0.2, 0.7, 0.3, 1),
    visibility 0s linear 0.34s;
}

/* Card sits to the left of the dish: unroll right-to-left instead. */
.menu-preview[data-side="left"] {
  transform-origin: right center;
  clip-path: inset(0 0 0 100%);
}

.menu-preview.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  clip-path: inset(0 0 0 0);
  transition:
    opacity 0.18s ease,
    transform 0.3s cubic-bezier(0.2, 0.7, 0.3, 1),
    clip-path 0.34s cubic-bezier(0.2, 0.7, 0.3, 1),
    visibility 0s linear 0s;
}

.menu-preview img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
  background: var(--sand-soft);
  transform: scale(1.06);
  transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.menu-preview.is-visible img { transform: none; }

.menu-preview-cap {
  display: block;
  padding: 0.45rem 0.3rem 0.15rem;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  line-height: 1.25;
  color: var(--charcoal);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.22s ease 0.1s, transform 0.22s ease 0.1s;
}

.menu-preview.is-visible .menu-preview-cap {
  opacity: 1;
  transform: none;
}

/* Photo credits */
.photo-credits {
  margin-top: var(--space-4);
  max-width: 78ch;
}

.photo-credits summary {
  display: inline-block;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ivory);
}

.photo-credits summary::marker,
.photo-credits summary::-webkit-details-marker { color: var(--terracotta); }

.photo-credits-lede,
.photo-credits-list {
  font-size: var(--fs-xs);
  line-height: 1.75;
  color: var(--on-dark-soft);
}

.photo-credits-lede { margin-top: var(--space-3); }

.photo-credits-list {
  margin-top: var(--space-3);
  columns: 2;
  column-gap: var(--space-6);
}

.photo-credits-list li {
  break-inside: avoid;
  margin-bottom: 0.3rem;
}

.photo-credits a {
  color: var(--ivory);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (hover: none), (pointer: coarse) {
  .menu-preview { display: none; }
}

/* Story */
.story { background: var(--paper); border-block: var(--hairline); }

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.story-media { background: var(--sand-soft); }

.story-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.story-copy .section-title { margin-bottom: var(--space-5); max-width: 16ch; }

.story-lead {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  line-height: 1.5;
  color: var(--charcoal);
  margin-bottom: var(--space-4);
}

.story-copy p + p { margin-top: var(--space-4); }

.story-copy > p:not(.eyebrow):not(.story-lead):not(.story-note) {
  color: var(--muted);
  max-width: 52ch;
}

.story-note {
  margin-top: var(--space-5) !important;
  padding-top: var(--space-4);
  border-top: var(--hairline);
  font-size: var(--fs-xs);
  color: var(--muted);
  max-width: 52ch;
}

/* Gallery */
.gallery {
  background: var(--charcoal);
  color: var(--on-dark);
}

.gallery .section-title { color: var(--ivory); }
.gallery .section-lede { color: var(--on-dark-soft); }

.mosaic {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: clamp(9rem, 15vw, 14rem) clamp(9rem, 15vw, 14rem) clamp(10rem, 16vw, 15rem);
  gap: clamp(0.6rem, 1.2vw, 1rem);
}

.mosaic-a { grid-column: 1 / 5; grid-row: 1 / 3; }
.mosaic-b { grid-column: 5 / 7; grid-row: 1 / 2; }
.mosaic-c { grid-column: 5 / 7; grid-row: 2 / 3; }
.mosaic-d { grid-column: 1 / 3; grid-row: 3 / 4; }
.mosaic-e { grid-column: 3 / 5; grid-row: 3 / 4; }
.mosaic-f { grid-column: 5 / 7; grid-row: 3 / 4; }

.mosaic-item { position: relative; overflow: hidden; background: #3a3730; }

.mosaic-link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.mosaic-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.mosaic-link::after {
  content: "\00a0";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 19, 15, 0.82) 0%, rgba(20, 19, 15, 0.18) 42%, rgba(20, 19, 15, 0) 68%);
}

.mosaic-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 1rem 1.1rem;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--on-dark);
}

.mosaic-link:hover img,
.mosaic-link:focus-visible img { transform: scale(1.04); }

/* Visit */
.visit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}

.visit-block {
  padding-top: var(--space-5);
  border-top: 2px solid var(--charcoal);
}

.visit-title {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-4);
}

.visit-address {
  display: grid;
  gap: 0.4rem;
  font-size: var(--fs-md);
  line-height: 1.5;
}

.visit-name { font-weight: 600; }

.visit-note {
  margin-top: var(--space-4);
  font-size: var(--fs-xs);
  line-height: 1.7;
  color: var(--muted);
}

.map-placeholder {
  display: grid;
  place-items: center;
  gap: 0.6rem;
  margin-top: var(--space-5);
  padding: var(--space-5) var(--space-4);
  border: 1px dashed var(--olive);
  background: rgba(220, 212, 197, 0.32);
  text-align: center;
}

.map-icon { width: 26px; height: 26px; color: var(--terracotta-deep); }

.map-placeholder p {
  font-size: var(--fs-xs);
  line-height: 1.6;
  color: var(--muted);
  max-width: 34ch;
}

.hours th,
.hours td {
  padding: 0.7rem 0;
  border-bottom: var(--hairline);
  font-size: var(--fs-sm);
  text-align: left;
  font-weight: 400;
}

.hours th { font-weight: 500; padding-right: 1rem; }

.hours td {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--charcoal);
  white-space: nowrap;
}

.hours tr:last-child th,
.hours tr:last-child td { border-bottom: 0; }

.hours tr.is-today { background: rgba(183, 110, 69, 0.1); }

.hours tr.is-today th,
.hours tr.is-today td { font-weight: 600; color: var(--charcoal); }

.today-tag {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.05em 0.45em;
  border-radius: 2px;
  background: var(--terracotta-deep);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: 0.1em;
}

.contact-list { display: grid; gap: var(--space-4); }

.contact-list dt {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.contact-list dd {
  margin: 0;
  font-size: var(--fs-base);
  line-height: 1.5;
}

/* Reservation CTA band */
.cta-band {
  background: var(--terracotta-deep);
  color: var(--ivory);
  padding-block: clamp(3rem, 6vw, 4.75rem);
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6) var(--space-8);
}

.cta-copy { max-width: 46rem; }

.cta-band .section-title { color: var(--ivory); margin-bottom: var(--space-3); }

.cta-band .eyebrow-light {
  color: var(--ivory);
}

.cta-band p:not(.eyebrow) {
  color: var(--ivory);
  max-width: 54ch;
  font-size: var(--fs-base);
}

/* Footer */
.site-footer {
  background: var(--charcoal-deep);
  color: var(--on-dark);
  padding-top: clamp(3rem, 6vw, 4.5rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.wordmark-footer { color: var(--ivory); }
.wordmark-footer .wordmark-mark { color: var(--terracotta); }
.wordmark-footer .amp { color: var(--terracotta); }

.footer-brand p {
  margin: var(--space-4) 0 var(--space-5);
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--on-dark-soft);
  max-width: 34ch;
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: var(--space-4);
}

.footer-links { display: grid; gap: 0.7rem; }

.footer-links a {
  font-size: var(--fs-sm);
  text-decoration: none;
  color: var(--on-dark);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.footer-links a:hover { border-bottom-color: var(--terracotta); }

.footer-links-plain li {
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--on-dark-soft);
}

.footer-links-plain .placeholder-chip { color: var(--on-dark-soft); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3) var(--space-6);
  padding-block: var(--space-5);
  border-top: 1px solid rgba(242, 237, 227, 0.16);
}

.disclosure {
  font-size: var(--fs-xs);
  line-height: 1.6;
  color: var(--on-dark-soft);
  max-width: 62ch;
}

.disclosure a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(242, 237, 226, 0.45);
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.disclosure a:hover {
  color: var(--ivory);
  text-decoration-color: var(--terracotta);
}

.copyright {
  font-size: var(--fs-xs);
  color: var(--on-dark-soft);
}

/* ------------------------------ 7. Dialogs ------------------------------ */
.dialog {
  padding: 0;
  border: 0;
  background: var(--ivory);
  color: var(--charcoal);
  width: min(40rem, calc(100vw - 2rem));
  max-width: none;
  max-height: min(90dvh, 52rem);
  overflow: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.dialog::backdrop { background: rgba(24, 22, 18, 0.62); }

.dialog:focus { outline: none; }

.dialog-inner {
  position: relative;
  padding: clamp(1.75rem, 4vw, 2.75rem);
}

.dialog-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--sand);
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.dialog-close:hover { background: var(--sand-soft); border-color: var(--olive); }

.dialog-title {
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.125rem);
  margin-bottom: var(--space-3);
}

.dialog-notice {
  padding: 0.85rem 1rem;
  background: var(--sand-soft);
  border-left: 3px solid var(--terracotta);
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--muted);
}

.dialog-notice strong { color: var(--charcoal); }

.res-form { display: grid; gap: var(--space-5); margin-top: var(--space-6); }

.form-row { display: grid; gap: var(--space-5); }
.form-row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.field { display: grid; gap: 0.5rem; align-content: start; }

.field label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field select {
  width: 100%;
  min-height: 46px;
  padding: 0.65rem 0.85rem;
  background: var(--paper);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.35;
  color: var(--charcoal);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1.25 1.75 6 6.25l4.75-4.5' fill='none' stroke='%23292721' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  background-size: 0.72rem;
  cursor: pointer;
}

.field select option {
  background: var(--paper);
  color: var(--charcoal);
  font-family: var(--font-body);
}

.field input:hover,
.field select:hover { border-color: var(--olive); }

.field input:focus,
.field select:focus { border-color: var(--forest); }

.field input[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: var(--terracotta-deep);
  background-color: rgba(183, 110, 69, 0.06);
}

.field input[type="date"] { color-scheme: light; }

.field input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.18s ease;
}

.field input[type="date"]::-webkit-calendar-picker-indicator:hover { opacity: 1; }

.field input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--paper) inset;
  -webkit-text-fill-color: var(--charcoal);
  caret-color: var(--charcoal);
}

.field-hint {
  font-size: var(--fs-xs);
  line-height: 1.5;
  color: var(--muted);
}

.field-error {
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.5;
  color: var(--terracotta-deep);
}

.field-error:not([hidden])::before {
  content: "\26A0\FE0E  ";
  font-weight: 400;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-2);
  padding-top: var(--space-5);
  border-top: var(--hairline);
}

.res-success p { color: var(--muted); max-width: 46ch; }

.res-summary {
  margin-top: var(--space-4) !important;
  padding: var(--space-4);
  background: var(--sand-soft);
  border-left: 3px solid var(--forest);
  font-size: var(--fs-sm);
  color: var(--charcoal) !important;
}

.res-success .form-actions { margin-top: var(--space-6); }

/* Lightbox */
.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  background: rgba(24, 22, 18, 0.97);
  color: var(--on-dark);
  overflow: hidden;
}

.lightbox-inner {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1.5rem);
  height: 100%;
  padding: clamp(1rem, 3vw, 2rem);
}

.lightbox-figure {
  margin: 0;
  display: grid;
  gap: var(--space-3);
  justify-items: center;
  min-width: 0;
}

.lightbox-img {
  width: auto;
  max-width: 100%;
  max-height: 76dvh;
  object-fit: contain;
  background: #2a2721;
}

.lightbox-caption {
  font-size: var(--fs-sm);
  color: var(--on-dark-soft);
  text-align: center;
}

.lightbox .dialog-close {
  top: 1rem;
  right: 1rem;
  z-index: 2;
  color: var(--on-dark);
  border-color: rgba(242, 237, 227, 0.4);
}

.lightbox .dialog-close:hover { background: rgba(242, 237, 227, 0.14); }

.lightbox-nav {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(242, 237, 227, 0.4);
  border-radius: 50%;
  color: var(--on-dark);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.18s ease;
}

.lightbox-nav:hover { background: rgba(242, 237, 227, 0.14); }

/* ------------------------ 8. Motion & responsive ------------------------ */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.7, 0.3, 1);
  }

  .js .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  .dialog[open] { animation: dialog-in 0.24s ease both; }

  @keyframes dialog-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Desktop: cap the hero title by viewport height so short screens still fit. */
@media (min-width: 900px) {
  :root {
    --fs-h1: clamp(2.375rem, min(1.35rem + 4.4vw, 8.5vh), 4.25rem);
  }
}

/* Tablet and below */
@media (max-width: 1023px) {
  .dishes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dishes .dish:last-child { grid-column: 1 / -1; max-width: 26rem; }

  .menu-layout { grid-template-columns: minmax(0, 1fr); }

  .menu-index {
    position: sticky;
    top: var(--header-h);
    z-index: 5;
    margin-inline: calc(var(--gutter) * -1);
    padding: 0.5rem var(--gutter);
    background: var(--forest);
    border-bottom: 1px solid rgba(242, 237, 227, 0.2);
    overflow-x: auto;
    overscroll-behavior-x: contain;
  }

  .menu-index ul {
    display: flex;
    gap: 1.25rem;
    width: max-content;
  }

  .menu-index a {
    padding: 0.55rem 0;
    white-space: nowrap;
    border-bottom-width: 2px;
  }

  .menu-list { grid-template-columns: minmax(0, 1fr); }

  .story-grid { grid-template-columns: minmax(0, 1fr); }

  .visit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 899px) {
  .hero {
    grid-template-areas: "media" "copy";
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .hero-media {
    min-height: 0;
    height: clamp(15rem, 42vh, 24rem);
  }

  .hero-copy {
    max-width: none;
    margin-left: 0;
    padding: clamp(2rem, 7vw, 3rem) var(--gutter) clamp(2.25rem, 7vw, 3.25rem);
    gap: var(--space-4);
  }

  .hero-meta { gap: var(--space-4) var(--space-6); }
}

/* Mobile */
@media (max-width: 640px) {
  :root { --header-h: 60px; --fs-base: 1rem; }

  body { font-size: 1rem; }

  .wordmark-text { font-size: 1.0625rem; }

  .section-head { margin-bottom: 2rem; }

  .dishes { grid-template-columns: minmax(0, 1fr); gap: 2.25rem; }
  .dishes .dish:last-child { grid-column: auto; max-width: none; }

  .dish-media { aspect-ratio: 4 / 4.4; }

  .hero-actions .btn { flex: 1 1 100%; }

  .hero-meta { flex-direction: column; gap: var(--space-4); }

  .mosaic {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
  }

  .mosaic-item {
    grid-column: auto !important;
    grid-row: auto !important;
    aspect-ratio: 16 / 10;
  }

  .mosaic-a { aspect-ratio: 16 / 11; }

  .visit-grid { grid-template-columns: minmax(0, 1fr); }

  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }

  .photo-credits-list { columns: 1; }

  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .form-row-2 { grid-template-columns: minmax(0, 1fr); }

  .form-actions .btn { flex: 1 1 100%; }

  .lightbox-inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    align-content: center;
    padding-top: 4.5rem;
  }

  .lightbox-nav {
    position: absolute;
    bottom: 1.25rem;
    z-index: 2;
  }

  .lightbox-prev { left: 1.25rem; }
  .lightbox-next { right: 1.25rem; }

  .lightbox-img { max-height: 62dvh; }

  .lightbox-caption { padding-inline: 3.5rem; padding-bottom: 3.5rem; }
}

@media (max-width: 360px) {
  .header-inner { gap: var(--space-3); }
  .wordmark-mark { width: 22px; height: 22px; }
}

/* ---------- Fonts (self-hosted, latin subset) ----------
   Archivo + Fraunces, SIL OFL 1.1, from Google Fonts. ---------- */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(../assets/fonts/archivo-normal.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: 'Fraunces';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url(../assets/fonts/fraunces-italic.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: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../assets/fonts/fraunces-normal.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;
}
