:root {
  --paper: #f6f4ef;
  --ink: #1c1c1c;
  --muted: #5e5a54;
  --teal: #3a8f8f;
  --teal-hover: #2d7373;
  --line: #ddd8ce;
  --order: #f2e04a;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --wrap: 75rem;
}

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
a:hover { color: var(--teal-hover); }

/* Accessibility helpers */
.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: 0.5rem; top: -3rem; z-index: 100;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem;
  border-radius: 4px; text-decoration: none; transition: top 0.15s ease;
}
.skip-link:focus { top: 0.5rem; color: #fff; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 2px;
}
.is-home .masthead:not(.is-solid):not(.nav-open) .topnav a:focus-visible,
.is-home .masthead:not(.is-solid):not(.nav-open) .nav-toggle:focus-visible {
  outline-color: #fff;
}

/* Utility bar */
.topline {
  background: var(--ink);
  color: #c9c4bb;
  font-size: 0.76rem;
  letter-spacing: 0.02em;
}
.topline-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0.45rem 1.5rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.6rem;
}
.topline a { color: #c9c4bb; text-decoration: none; }
.topline a:hover { color: #fff; }
.topline .dot { opacity: 0.5; }

/* Masthead (default = inner pages) */
.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.masthead-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.brand { display: inline-flex; flex-shrink: 0; }
.brand img { width: 3.4rem; }

.topnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
}
.topnav a {
  position: relative;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0;
  transition: color 0.2s ease;
}
.topnav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}
.topnav a:hover::after,
.topnav a[aria-current="page"]::after { transform: scaleX(1); }
.topnav a[aria-current="page"] { color: var(--teal); }

/* Hamburger toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 2.75rem; height: 2.75rem;
  margin-left: 0.25rem;
  padding: 0; background: transparent; border: 0;
  border-radius: 6px; cursor: pointer;
}
.nav-toggle-bar {
  display: block; width: 1.4rem; height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}
.is-home .masthead:not(.is-solid):not(.nav-open) .nav-toggle-bar { background: #fff; }
.masthead.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.masthead.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.masthead.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.order-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0.65rem 1.2rem;
  background: var(--order);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2rem;
  transition: filter 0.15s ease, transform 0.15s ease;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}
.order-pill:hover { filter: brightness(0.96); color: var(--ink); transform: translateY(-1px); }
.order-pill--sm { padding: 0.6rem 1.1rem; margin-top: 0.5rem; box-shadow: none; }

main { display: block; }

/* Home: nav overlays the hero, turns solid on scroll or when menu opens */
.is-home .topline { display: none; }
.is-home .masthead {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
}
.is-home .masthead .topnav a { color: #fff; }
.is-home .masthead .topnav a[aria-current="page"] { color: #fff; }
.is-home .masthead.is-solid,
.is-home .masthead.nav-open {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom-color: var(--line);
  box-shadow: 0 2px 18px rgba(0,0,0,0.07);
}
.is-home .masthead.is-solid .topnav a,
.is-home .masthead.nav-open .topnav a { color: var(--ink); }
.is-home .masthead.is-solid .topnav a[aria-current="page"],
.is-home .masthead.nav-open .topnav a[aria-current="page"] { color: var(--teal); }

/* Home hero */
.home-hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding-top: 7rem; padding-bottom: 3rem;
}
.home-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0) 34%),
    linear-gradient(90deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 30%, rgba(0,0,0,0.4) 56%, rgba(0,0,0,0.08) 84%, transparent 100%);
}
.home-hero-copy {
  position: relative; z-index: 1;
  max-width: var(--wrap); width: 100%;
  margin: 0 auto; padding: 2.5rem 1.5rem;
  color: #fff;
}
.home-hero-copy > div { max-width: 33rem; }
.kicker {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.55rem;
  margin: 0 0 0.7rem; font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--order); font-weight: 600;
}
.kicker span:not(.kicker-dot) { white-space: nowrap; }
.kicker-dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0.75; }
.home-hero h1 {
  font-family: var(--serif); font-size: clamp(2.6rem, 5.5vw, 4rem);
  font-weight: 600; line-height: 1.03; margin: 0 0 1.1rem; color: #fff;
  text-shadow: 0 2px 24px rgba(0,0,0,0.4);
}
.home-hero-copy p { margin: 0 0 1.5rem; font-size: 1.05rem; color: #fff; max-width: 30rem; text-shadow: 0 1px 12px rgba(0,0,0,0.5); }
.home-hero-links { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.home-hero-links .text-cta {
  color: #fff;
  border: 1px solid rgba(255,255,255,0.65);
  border-radius: 2rem;
  padding: 0.62rem 1.15rem;
  background: rgba(0,0,0,0.28);
  backdrop-filter: blur(2px);
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.home-hero-links .text-cta:hover { color: #fff; background: rgba(0,0,0,0.45); border-color: #fff; }

.text-cta { font-size: 0.85rem; font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; }
.text-cta:hover { border-bottom-color: transparent; }

/* Home split */
.home-split {
  max-width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  align-items: center; padding: 4rem 1.5rem;
}
.home-split h2, .home-menu-index h2 {
  font-family: var(--serif); font-size: 2.2rem; font-weight: 600; margin: 0 0 0.35rem;
}
.lede { margin: 0 0 1.5rem; color: var(--muted); }

.dish-list { list-style: none; padding: 0; margin: 0 0 1.5rem; border-top: 1px solid var(--line); }
.dish-list li { padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.dish-name { display: block; font-weight: 600; }
.dish-detail { display: block; font-size: 0.82rem; color: var(--muted); }

.home-split-photo { margin: 0; }
.home-split-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }

/* Menu index */
.home-menu-index { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.home-menu-index h2 { max-width: var(--wrap); margin: 0 auto; padding: 3rem 1.5rem 0; }
.menu-columns {
  max-width: var(--wrap); margin: 1.5rem auto 3rem; padding: 0 1.5rem;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.menu-index-item {
  display: block; padding: 1.25rem; text-decoration: none; color: inherit;
  background: #fff; transition: background 0.12s ease;
}
.menu-index-item:hover { background: var(--paper); }
.menu-index-item strong { display: block; font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 0.3rem; color: var(--ink); }
.menu-index-item span { font-size: 0.85rem; color: var(--muted); line-height: 1.45; }

/* Gallery */
.home-gallery {
  max-width: var(--wrap); margin: 0 auto; padding: 4rem 1.5rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
}
.home-gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; }

/* Order bar */
.home-order-bar { background: var(--ink); color: #c8c8c8; }
.home-order-bar-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 2.25rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.home-order-bar h2 { font-family: var(--serif); font-size: 1.7rem; color: #fff; margin: 0 0 0.2rem; font-weight: 600; }
.home-order-bar p { margin: 0; font-size: 0.9rem; }

/* Interior pages */
.page-cover img { width: 100%; max-height: 26rem; object-fit: cover; }
.page-content { max-width: 42rem; margin: 0 auto; padding: 3rem 1.5rem 4rem; }
.page-content h1 { font-family: var(--serif); font-size: 2.6rem; font-weight: 600; margin: 0 0 1.25rem; line-height: 1.1; }

.prose h2 { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; margin: 2rem 0 0.75rem; }
.prose h3 { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; margin: 1.75rem 0 0.5rem; color: var(--muted); }
.prose p { margin: 0 0 1rem; }
.prose ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.prose li { margin-bottom: 0.35rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 0.9rem; }
.prose th, .prose td { padding: 0.55rem 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.prose blockquote { margin: 0 0 1rem; padding: 0 0 0 1rem; border-left: 2px solid var(--teal); color: var(--muted); font-style: italic; }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 2rem 0; }

/* Footer */
.site-foot { background: var(--ink); color: #c9c4bb; }
.foot-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 3rem 1.5rem 1.5rem;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; align-items: start;
}
.foot-brand { display: flex; gap: 1rem; align-items: flex-start; }
.foot-brand img { width: 3.5rem; flex-shrink: 0; }
.foot-brand p { margin: 0; font-size: 0.88rem; max-width: 22rem; }
.foot-nav { display: flex; flex-direction: column; gap: 0.5rem; }
.foot-nav a { color: #c9c4bb; text-decoration: none; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }
.foot-nav a:hover { color: var(--order); }
.foot-contact a:not(.order-pill) { color: #fff; text-decoration: none; font-weight: 600; display: inline-block; margin-bottom: 0.4rem; }
.foot-contact p { margin: 0 0 0.5rem; font-size: 0.85rem; }
.foot-copy {
  max-width: var(--wrap); margin: 0 auto; padding: 1rem 1.5rem 1.75rem;
  border-top: 1px solid #333; color: #a8a39a; font-size: 0.82rem;
}

@media (max-width: 880px) {
  .masthead-inner { gap: 0.75rem; }
  .nav-toggle { display: inline-flex; order: 3; }
  .order-pill--top { margin-left: auto; padding: 0.55rem 1rem; }
  .topnav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; flex-wrap: nowrap;
    gap: 0; margin-left: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 24px rgba(0,0,0,0.1);
    padding: 0.25rem 1.5rem 0.85rem;
    max-height: calc(100vh - 100%); overflow-y: auto;
    display: none;
  }
  .masthead.nav-open .topnav { display: flex; }
  .topnav a {
    padding: 0.9rem 0.25rem; font-size: 0.82rem;
    border-bottom: 1px solid var(--line); color: var(--ink);
  }
  .topnav a:last-child { border-bottom: 0; }
  .topnav a::after { display: none; }
  .home-split { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 1.5rem; }
  .home-split-photo { order: -1; }
  .home-split-photo img { aspect-ratio: 3 / 2; }
  .menu-columns { grid-template-columns: 1fr 1fr; }
  .home-gallery { grid-template-columns: 1fr; padding: 2.5rem 1.5rem; }
  .foot-inner { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 520px) {
  .topline-inner { justify-content: center; flex-wrap: wrap; }
  .menu-columns { grid-template-columns: 1fr; }
  .home-hero { min-height: 88vh; min-height: 88svh; padding-top: 6.5rem; }
  .kicker { font-size: 0.64rem; letter-spacing: 0.09em; gap: 0.4rem; }
  .kicker-dot { width: 3px; height: 3px; }
}

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