:root {
  --ink: #2B2118;
  --ink-soft: #4A3D30;
  --muted: #6B5B4A;
  --bamboo: #C9AE7C;
  --bamboo-ink: #7A5C30;
  --beige: #F7F1E6;
  --line: #EFE6D6;
  --line-strong: #E5D9C3;
  --white: #ffffff;
  --radius: 20px;
  --wrap: 1120px;
  --gutter: 24px;
  color-scheme: light;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: 'Jost', 'Avenir Next', 'Segoe UI', sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-wrap: break-word;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

a { color: var(--bamboo-ink); }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--bamboo-ink); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { line-height: 1.2; text-wrap: balance; }

.wrap {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}
a[href^="mailto:"] { overflow-wrap: anywhere; }

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

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #EDE4D3;
}
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 16px; padding-top: 12px; padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 52px; height: auto; }
.brand span { font-size: 15px; letter-spacing: 0.32em; text-transform: uppercase; font-weight: 500; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 26px; font-size: 16px; margin-left: auto; }
.header-call { white-space: nowrap; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; padding: 10px 0; }
.nav a:not(.btn):hover { color: var(--bamboo-ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 28px; border-radius: 999px;
  font-weight: 500; text-decoration: none; text-align: center;
  border: 1px solid transparent;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #46382A; color: var(--white); }
.btn-line { border: 1px solid var(--bamboo); color: var(--ink); }
.btn-line:hover { background: var(--beige); color: var(--ink); }
.btn-sm { min-height: 44px; padding: 10px 20px; }

/* Hero */
.hero {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 20px; padding-top: 56px; padding-bottom: 36px;
}
.logo-lamp { position: relative; width: min(320px, 72vw); animation: lumina-sway 7s ease-in-out infinite; transform-origin: 50% 0; }
.logo-lamp img { width: 100%; height: auto; }
.glow {
  position: absolute; left: 49%; top: 53%;
  width: 24%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 170, 90, 0.55) 0%, rgba(232, 170, 90, 0.18) 45%, rgba(232, 170, 90, 0) 70%);
  transform: translate(-50%, -50%);
  animation: lumina-flicker 2.8s ease-in-out infinite;
  pointer-events: none;
  mix-blend-mode: multiply;
}
.tagline { margin: 0; max-width: 560px; font-size: 21px; font-weight: 300; color: var(--ink-soft); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.hero-photo { padding-bottom: 72px; }
.hero-photo img { width: 100%; height: clamp(240px, 42vw, 440px); object-fit: cover; border-radius: var(--radius); }

@keyframes lumina-flicker {
  0%, 100% { opacity: .55; transform: translate(-50%, -50%) scale(1); }
  30%      { opacity: .85; transform: translate(-50%, -52%) scale(1.08); }
  55%      { opacity: .6;  transform: translate(-50%, -49%) scale(.96); }
  80%      { opacity: .9;  transform: translate(-50%, -51%) scale(1.05); }
}
@keyframes lumina-sway {
  0%, 100% { transform: rotate(0deg); }
  50%      { transform: rotate(0.8deg); }
}

/* Section heads */
.section-head { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.section-head.left { align-items: flex-start; text-align: left; }
.section-head h2 { margin: 0; font-size: clamp(32px, 5vw, 40px); font-weight: 400; letter-spacing: 0.06em; }
.rule { display: block; width: 56px; height: 2px; background: var(--bamboo); }

/* Menu */
.menu { background: var(--beige); padding: 72px 0; }
.stack { display: flex; flex-direction: column; gap: 40px; }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; font-size: 16px; }
.chips a {
  color: var(--ink); text-decoration: none; background: var(--white);
  border: 1px solid var(--line-strong); padding: 10px 18px; border-radius: 999px;
  min-height: 44px; display: inline-flex; align-items: center;
  transition: background-color .2s ease, border-color .2s ease;
}
.chips a:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

.card { background: var(--white); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card-split { flex-direction: row; flex-wrap: wrap; }
.card-flip { flex-wrap: wrap-reverse; }
.card-media { flex: 1 1 320px; position: relative; min-height: 300px; }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-flip .card-media { order: 2; }
.card-img.short { width: 100%; height: 240px; object-fit: cover; }
.card-body { flex: 2 1 420px; padding: 36px 40px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.card h3 { margin: 0; font-size: 28px; font-weight: 500; }
.card header .sub { margin: 4px 0 0; color: var(--muted); font-size: 16px; }

.pair { display: flex; flex-wrap: wrap; gap: 40px; }
.pair .card { flex: 1 1 420px; }
.pair .card-body { padding: 32px 36px; gap: 12px; }

.prices { list-style: none; margin: 0; padding: 0; }
.prices li { display: flex; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.prices li:last-child { border-bottom: 0; }
.prices i { flex: 1; border-bottom: 1px dotted var(--bamboo); transform: translateY(-4px); min-width: 16px; }
.prices b { font-weight: 500; white-space: nowrap; }

.size-table { width: 100%; border-collapse: collapse; }
.size-table th, .size-table td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: right; font-weight: 500; }
.size-table th[scope="row"] { text-align: left; font-weight: 400; padding-right: 12px; }
.size-table thead th {
  font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  font-weight: 400; border-bottom: 1px solid var(--line-strong); padding-top: 0;
}
.size-table thead th:first-child { text-align: left; }
.size-table td { width: 76px; }
.size-table tbody tr:last-child > * { border-bottom: 0; }
.size-table small { color: var(--muted); font-size: 15px; }
.size-table .na { color: #A8998A; font-weight: 400; }

.note { margin: 0; font-size: 16px; color: var(--ink-soft); background: var(--beige); padding: 14px 18px; border-radius: 12px; }
.note strong { font-weight: 500; color: var(--ink); }
.notes { display: flex; flex-wrap: wrap; gap: 12px; }
.notes .note { flex: 1 1 220px; }
.more { font-size: 16px; }

/* Hours line + open badge */
.hours-line { margin: 0; font-size: 16px; color: var(--muted); letter-spacing: 0.04em; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 12px; }
.open-status:empty { display: none; }
.open-status {
  display: inline-block; font-size: 13px; letter-spacing: 0.06em; text-transform: none;
  padding: 3px 12px; border-radius: 999px; background: var(--beige); color: var(--ink-soft);
  border: 1px solid var(--line-strong); vertical-align: middle;
}
.open-status.is-open { background: #EAF3E4; border-color: #C8DDBA; color: #3C5A2C; }
.label .open-status { margin-left: 8px; }

/* House favorites */
.favorites { padding-bottom: 72px; display: flex; flex-direction: column; gap: 32px; }
.lead { margin: 0; color: var(--ink-soft); font-size: 18px; max-width: 560px; }
.fav-grid { display: flex; flex-wrap: wrap; gap: 24px; }
.fav {
  flex: 1 1 280px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 28px 30px; display: flex; flex-direction: column; gap: 8px; background: var(--white);
}
.fav h3 { margin: 0; font-size: 24px; font-weight: 500; }
.fav p { margin: 0; }
.fav p:not(.label):not(.fav-price) { color: var(--ink-soft); font-size: 16px; }
.fav-price { margin-top: auto !important; padding-top: 8px; font-weight: 500; }
.fav-loyalty { background: var(--beige); border-color: var(--bamboo); }
.tag {
  display: inline-block; margin-left: 6px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--bamboo-ink); border: 1px solid var(--bamboo); border-radius: 999px; padding: 1px 8px; vertical-align: 2px;
}

/* Story */
.story { padding: 80px 0; }
.story-inner { max-width: 760px; display: flex; flex-direction: column; gap: 20px; text-align: center; }
.story-inner p { margin: 0; font-size: 19px; color: var(--ink-soft); }
.story-inner .quote { font-size: 22px; font-weight: 300; color: var(--ink); }

/* Catering */
.catering { padding-bottom: 8px; }
.catering-card { background: var(--beige); }
.catering-card .card-body { flex: none; gap: 18px; }
.catering-card p { margin: 0; }
.catering-card .note { background: var(--white); }
.catering-card .actions { justify-content: flex-start; }

/* Visit */
.visit { display: flex; flex-wrap: wrap; gap: 40px; padding-top: 72px; padding-bottom: 72px; }
.visit-info { flex: 1 1 360px; display: flex; flex-direction: column; gap: 22px; }
.visit-info .actions { justify-content: flex-start; }
.label { margin: 0; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.big { margin: 4px 0 0; font-size: 20px; }
.big a { color: var(--ink); }
.hours { border-collapse: collapse; margin-top: 4px; font-size: 18px; }
.hours th, .hours td { padding: 4px 0; text-align: left; font-weight: 400; }
.hours th { padding-right: 24px; color: var(--ink-soft); }
.hours th, .hours td { white-space: nowrap; }
.small-note { margin: 6px 0 0; font-size: 15px; color: var(--muted); }
.map { flex: 1 1 420px; min-height: 360px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-strong); background: var(--beige); }
.map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

/* Footer */
.site-footer { border-top: 1px solid #EDE4D3; background: var(--beige); }
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 32px; padding-bottom: 32px; font-size: 15px; color: var(--ink-soft);
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 44px; height: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { color: var(--ink-soft); }
.footer-legal {
  flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 4px 24px;
  padding-top: 16px; border-top: 1px solid var(--line-strong); font-size: 14px; color: var(--muted);
}
.footer-legal a { color: var(--ink-soft); padding: 6px 0; }
.footer-legal span { padding: 6px 0; }

/* Allergy / pricing notice under the menu */
.menu-notice {
  background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 22px 28px; font-size: 16px; color: var(--ink-soft);
}
.menu-notice p { margin: 0; }
.menu-notice strong { font-weight: 500; color: var(--ink); }

/* Policy pages and 404 */
.page { max-width: 760px; padding-top: 56px; padding-bottom: 80px; }
.page h1 { margin: 0 0 12px; font-size: clamp(34px, 5vw, 44px); font-weight: 400; letter-spacing: 0.04em; line-height: 1.15; }
.page .rule { margin-bottom: 20px; }
.page .meta { margin: 0 0 32px; font-size: 15px; color: var(--muted); }
.page h2 { margin: 40px 0 10px; font-size: 24px; font-weight: 500; }
.page p, .page li { color: var(--ink-soft); }
.page ul { padding-left: 22px; }
.page li { margin-bottom: 6px; }
.page strong { font-weight: 500; color: var(--ink); }
.page .note { margin: 24px 0; }
.page-404 { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.page-404 img { width: 140px; height: auto; }
.page-404 h1 { margin: 0; }
.page-404 p { margin: 0; max-width: 520px; }

/* Scroll reveal (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Phones and small tablets: logo + call button on one row, links on a second row */
@media (max-width: 760px) {
  html { scroll-padding-top: 120px; }
  .header-inner { gap: 2px 12px; padding-top: 8px; padding-bottom: 4px; }
  .brand img { width: 44px; }
  .header-call { margin-left: auto; }
  .nav { order: 3; flex-basis: 100%; margin-left: 0; justify-content: space-between; gap: 0 12px; }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .brand span { font-size: 13px; letter-spacing: 0.24em; }
  .card-body, .pair .card-body { padding: 26px 22px; }
  .card-media { min-height: 240px; }
  .hero { padding-top: 36px; }
  .fav { padding: 24px 22px; }
  .story { padding: 56px 0; }
  .menu-notice { padding: 18px 20px; }
}

/* Narrow phones (iPhone SE, small Androids) */
@media (max-width: 420px) {
  :root { --gutter: 16px; }
  .call-num { display: none; }
  .header-call { padding-left: 18px; padding-right: 18px; }
  .card-body, .pair .card-body { padding: 24px 18px; }
  .fav { padding: 22px 18px; }
  .catering-card .card-body { padding: 26px 20px; }
  .hours th { padding-right: 14px; }
  .hours { font-size: 16px; }
  .card h3 { font-size: 25px; }
  .btn { padding-left: 22px; padding-right: 22px; }
}
@media (max-width: 350px) {
  .brand span { letter-spacing: 0.16em; }
  .nav { font-size: 15px; }
}

/* Short screens (phones in landscape): header scrolls away, smaller logo */
@media (max-height: 500px) and (orientation: landscape) {
  html { scroll-padding-top: 12px; }
  .site-header { position: static; }
  .hero { padding-top: 24px; gap: 14px; }
  .logo-lamp { width: min(190px, 46vh); }
  .hero-photo img { height: clamp(200px, 60vh, 320px); }
}

/* Large and ultrawide screens: use a bit more of the width, keep text readable */
@media (min-width: 1800px) {
  :root { --wrap: 1280px; }
  body { font-size: 19px; }
  .hero-photo img { height: 520px; }
}

/* Windows high contrast / forced colors */
@media (forced-colors: active) {
  .rule, .glow { forced-color-adjust: none; }
  .card, .fav, .note, .menu-notice, .open-status { border: 1px solid CanvasText; }
}

/* Printing the menu or a policy page */
@media print {
  body { font-size: 12pt; color: #000; display: block; }
  .site-header { position: static; border: 0; }
  .nav, .header-call, .skip, .actions, .map, .hero-photo, .card-media, .card-img, .open-status, .chips, .glow { display: none !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .menu, .story, .visit { padding: 16px 0; background: none; }
  .card, .fav, .menu-notice, .note { break-inside: avoid; border: 1px solid #ccc; }
  .logo-lamp { width: 140px; animation: none; }
  a { color: #000; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .logo-lamp, .glow { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}
