:root {
  --ink: #1a2f33;
  --muted: #65777a;
  --line: #dce4df;
  --paper: #fbfaf4;
  --white: #ffffff;
  --wash: #eef3ed;
  --accent: #9a2f20;
  --accent-dark: #6f2118;
  --shadow: 0 18px 50px rgba(26, 47, 51, 0.1);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Roboto, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 8px 12px;
  border-radius: 6px;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px clamp(18px, 5vw, 72px);
  background: rgba(251, 250, 244, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.site-nav a:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.hero,
.section-block,
.menu-hero,
.menu-page-layout,
.cms-page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: clamp(28px, 6vw, 78px);
  align-items: center;
  min-height: calc(100vh - 92px);
  padding: 54px 0 44px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.6rem, 6.5vw, 5.8rem);
  line-height: 0.98;
  font-weight: 900;
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.05;
  font-weight: 900;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.08rem;
}

h4 {
  margin-bottom: 3px;
  font-size: 1rem;
}

.hero-copy > p:not(.eyebrow),
.menu-hero > p:not(.eyebrow),
.rich-copy,
.review-card p,
.menu-row p {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--ink);
  color: var(--white);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.82rem;
  cursor: pointer;
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
}

.btn.danger {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.hero-photo {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--wash);
  box-shadow: var(--shadow);
}

.hero-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: cover;
}

.section-block {
  padding: 70px 0;
  border-top: 1px solid var(--line);
}

.section-title {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 28px;
}

.menu-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}

.menu-group {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.menu-group h3,
.menu-group h2 {
  text-transform: uppercase;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.menu-group.large {
  padding: 0 0 36px;
  border-top: 0;
  border-bottom: 1px solid var(--line);
}

.menu-group.large h2 {
  font-size: 1.35rem;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.menu-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.menu-row:last-child {
  border-bottom: 0;
}

.menu-row strong {
  color: var(--accent);
  white-space: nowrap;
}

.center-action {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.text-link {
  color: var(--accent);
  font-weight: 900;
  text-transform: uppercase;
  border-bottom: 2px solid currentColor;
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 36px;
  align-items: start;
}

.rich-copy p {
  margin-bottom: 18px;
}

.info-card,
.contact-panel,
.map-panel,
.callout,
.cms-panel,
.cms-hero {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.info-card,
.contact-panel,
.map-panel,
.callout {
  padding: 22px;
}

.feature-line,
.hour-line {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.feature-line:last-child,
.hour-line:last-child {
  border-bottom: 0;
}

.feature-line span,
.hour-line span {
  color: var(--muted);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.photo-card {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  padding: 0;
  cursor: zoom-in;
  width: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--wash);
}

.photo-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.review-card {
  padding: 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-panel h3 {
  margin-top: 18px;
  text-transform: uppercase;
  font-size: 0.96rem;
}

.contact-panel h3:first-child {
  margin-top: 0;
}

.map-panel {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  padding: 0;
  background: var(--wash);
}

.map-panel iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  filter: saturate(0.88) contrast(1.02);
}

.map-open {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  border-color: var(--ink);
}

.menu-hero {
  text-align: center;
  padding: 70px 0 46px;
  border-bottom: 1px solid var(--line);
}

.menu-hero p:not(.eyebrow) {
  max-width: 700px;
  margin: 0 auto;
}

.menu-story {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 440px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  padding: 46px 0;
  border-bottom: 1px solid var(--line);
}

.menu-story figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--wash);
  box-shadow: var(--shadow);
}

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

.menu-story h2 {
  margin-bottom: 12px;
}

.menu-story p:not(.eyebrow) {
  color: var(--muted);
}

.menu-page-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 42px;
  padding: 46px 0 80px;
}

.menu-tools {
  position: sticky;
  top: 106px;
  align-self: start;
  display: grid;
  gap: 18px;
}

.menu-tools label,
.cms-panel label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 900;
}

input,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 12px;
  background: var(--white);
  color: var(--ink);
}

textarea {
  min-height: 104px;
  resize: vertical;
}

.category-list {
  display: grid;
  gap: 8px;
}

.category-list button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  text-align: left;
  font-weight: 900;
  cursor: pointer;
}

.category-list button.active {
  background: var(--ink);
  color: var(--white);
}

.empty-state {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}

.site-footer {
  padding: 32px 18px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
}

.scroll-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  cursor: pointer;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.cms-page {
  padding: 36px 0 80px;
}

.cms-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 24px;
  margin-bottom: 18px;
}

.cms-hero p {
  color: var(--muted);
  margin-bottom: 0;
}

.cms-hero code {
  color: var(--accent);
}

.cms-actions,
.panel-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cms-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.cms-panel {
  padding: 20px;
}

.panel-head {
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.editable-list,
.editor-row {
  display: grid;
  gap: 12px;
}

.editor-row {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7f6ef;
}

.editor-row.compact {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
}

.check-line {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 8px !important;
}

.check-line input {
  width: auto;
  min-height: 0;
}

.remove-btn {
  min-height: 38px;
  border: 1px solid #ddb8b0;
  border-radius: 4px;
  background: var(--white);
  color: var(--accent-dark);
  font-weight: 900;
  cursor: pointer;
}

.cms-status {
  display: none;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: #e7f1e8;
  color: #1f6637;
  font-weight: 900;
}

.cms-status.visible {
  display: block;
}

@media (max-width: 900px) {
  .hero,
  .about-grid,
  .contact-grid,
  .menu-story,
  .menu-page-layout,
  .cms-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .menu-tools {
    position: static;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 16px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 66px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav.open,
  .site-nav.visible-admin {
    display: flex;
  }

  .hero {
    padding-top: 36px;
  }

  h1 {
    font-size: clamp(2.2rem, 13vw, 3.8rem);
  }

  .menu-preview,
  .reviews-grid,
  .editor-row.compact {
    grid-template-columns: 1fr;
  }

  .cms-hero {
    flex-direction: column;
    align-items: stretch;
  }

  .cms-actions .btn {
    width: 100%;
  }
}

/* Full menu scans retain their original proportions. */
.menu-story { display: block; }
.menu-images { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 1180px; margin: 0 auto 48px; padding: 0 24px; }
.menu-images[hidden] { display: none; }
.menu-images a { min-width: 0; align-self: start; border: 1px solid var(--line); background: var(--white); color: inherit; text-decoration: none; }
.menu-images img { display: block; width: 100%; height: auto; }
.menu-images span { display: block; padding: 12px 16px; }
.menu-image-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.menu-image-actions button:disabled { opacity: .4; cursor: default; }
@media (max-width: 720px) { .menu-images { grid-template-columns: 1fr; padding: 0 16px; } }

.rich-copy h2,.rich-copy h3,.rich-copy h4{margin-top:1.3em;margin-bottom:.5em}.rich-copy ul{padding-left:1.5em}.rich-copy a{color:var(--accent-dark);text-decoration:underline}
.rich-copy img{max-width:100%;height:auto}.rich-copy blockquote{border-left:3px solid var(--line);padding-left:20px;margin:1.5em 0}.rich-copy pre{white-space:pre-wrap;overflow-wrap:anywhere}

/* Home menu: two item columns even when every featured dish has one category. */
.menu-preview { display: block; }
.menu-preview .menu-group { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 40px; margin-bottom: 26px; }
.menu-preview .menu-group > h3 { grid-column: 1 / -1; }
.menu-preview .menu-row { min-width: 0; }
.footer-main { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr); align-items: start; gap: 36px; max-width: 1180px; margin: 0 auto 26px; text-align: left; }
.footer-content .rich-copy > :first-child { margin-top: 0; }
.footer-content .rich-copy > :last-child { margin-bottom: 0; }
.footer-social { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 20px; }
.footer-social a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.site-footer > p { border-top: 1px solid var(--line); padding-top: 24px; margin: 0; }
.photo-card:hover img { filter: brightness(.92); }
.photo-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.lightbox-open { overflow: hidden; }
.photo-lightbox { width: min(1400px,96vw); max-width: 96vw; max-height: 96dvh; padding: 16px; border: 0; background: #121212; color: #fff; border-radius: 8px; }
.photo-lightbox::backdrop { background: rgb(0 0 0 / .87); }
.lightbox-toolbar { display: flex; gap: 18px; align-items: center; padding: 0 0 12px; }
.lightbox-count { margin-right: auto; }
.photo-lightbox button { background: #333; color: #fff; border: 1px solid #777; min-width: 44px; min-height: 44px; border-radius: 5px; cursor: pointer; font-size: 26px; }
.lightbox-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 160px; }
.lightbox-image { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(96dvh - 105px); object-fit: contain; }
.lightbox-prev,.lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; }
.lightbox-prev { left: 4px; }.lightbox-next { right: 4px; }
.photo-lightbox [hidden] { display: none; }
.error-page { min-height: 100dvh; display: flex; flex-direction: column; }
.error-page .site-nav { display: flex; position: static; flex-direction: row; padding: 0; border: 0; box-shadow: none; background: transparent; }
.not-found { flex: 1; width: min(760px,100%); padding: 65px 24px 80px; margin: auto; text-align: center; }
.not-found-number { font-size: clamp(100px,20vw,180px); line-height: 1; font-weight: 900; letter-spacing: -.07em; color: var(--accent); margin: 12px 0 20px; }
.not-found h1 { font-size: clamp(30px,5vw,46px); margin: 0 0 16px; }
.not-found > p:not(.eyebrow):not(.not-found-number) { color: var(--muted); }
.not-found-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
@media(max-width: 800px) { .photo-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width: 600px) { .menu-preview .menu-group { grid-template-columns: 1fr; }.footer-main { grid-template-columns: 1fr; gap: 20px; }.footer-social { justify-content: flex-start; }.photo-lightbox { padding: 10px; }.lightbox-toolbar { gap: 10px; font-size: 13px; } }

/* Minimal error page: center the message and the single home action. */
.error-page .not-found { flex: none; margin: auto; padding: 40px 24px; }

/* Home and Menu share the same thumbnail and full-image viewer. */
.menu-images { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.menu-images .photo-card img { height: 100%; object-fit: cover; }
.section-heading { margin:0 0 24px; font-size:clamp(1.8rem,4vw,3.2rem); line-height:1.05; font-weight:900; color:var(--ink); }
.menu-story .section-heading { font-size:2rem; }
.minor-heading { margin:0 0 12px; font-size:1.08rem; font-weight:700; }
.contact-panel .minor-heading { margin-top:24px; text-transform:uppercase; }
.contact-panel .minor-heading:first-child { margin-top:0; }
.category-title { margin:0 0 8px; text-transform:uppercase; font-size:1.05rem; line-height:1.4; font-weight:700; }
.menu-group.large .category-title { font-size:1.35rem; }
.menu-preview .menu-group > .category-title { grid-column:1 / -1; }
.menu-group .menu-row .dish-title { margin:0 0 3px; font-size:1rem; line-height:1.7; font-weight:700; text-transform:none; color:var(--ink); }
.review-card .review-author { color:var(--ink); font-size:1.08rem; font-weight:700; margin-bottom:12px; }
[data-menu-group][hidden],#categoryList[hidden] { display:none!important; }
.section-heading,.minor-heading,.category-title,.dish-title,h1 { overflow-wrap:anywhere; }
@media(max-width:800px) { .menu-images { grid-template-columns: repeat(2,minmax(0,1fr)); } }

/* 2.6: configurable hero frame; image always keeps its proportions */
.hero{grid-template-columns:minmax(0,1fr) minmax(0,var(--hero-image-width,440px));min-height:min(720px,calc(100vh - 92px));gap:clamp(28px,5vw,64px)}.hero-copy h1{font-size:clamp(2.6rem,4.7vw,4.2rem);line-height:1.12}.hero-photo img{width:100%;height:var(--hero-image-height,460px);object-fit:var(--hero-image-fit,contain);aspect-ratio:auto}.hero-photo{width:100%}@media(max-width:900px){.hero{grid-template-columns:1fr;min-height:auto}.hero-photo{max-width:var(--hero-image-width,440px);justify-self:center}.hero-photo img{height:min(var(--hero-image-height,460px),420px)}}@media(max-width:720px){.hero-copy h1{font-size:clamp(2.2rem,9vw,3rem)}}
.footer-social a{display:inline-flex;align-items:center;gap:7px}.social-icon{display:inline-block;width:21px;height:21px;flex:0 0 21px;vertical-align:middle}
