:root {
  --night: #0f1a14;
  --forest: #17261d;
  --line: rgba(217, 182, 97, .26);
  --gold: #d9b661;
  --gold-light: #ecd494;
  --ivory: #f3eee1;
  --muted: #b4bfb4;
  --paper: #f5f0e3;
  --ink: #1c2a21;
  --ink-soft: #566358;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, sans-serif;
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--ivory); font: 400 1.0625rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2.25rem, 4.6vw, 3.5rem); }
p { margin: 0; text-wrap: pretty; }
figure, ul, dl, dd { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { width: min(1180px, 100% - clamp(2.5rem, 8vw, 6rem)); margin-inline: auto; }
.wrap-menu { max-width: 1040px; }
.section { padding-block: clamp(4.5rem, 10vw, 8rem); }
.head { max-width: 40rem; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); text-align: center; }
.head p { margin-top: 1rem; color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 60; background: var(--gold); color: var(--night); padding: .6rem 1rem; }
.skip:focus { top: 1rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: .7rem 1.6rem; border: 1px solid transparent; border-radius: 999px; font-weight: 600; font-size: .98rem; line-height: 1.2; text-decoration: none; transition: background-color .2s, border-color .2s; }
.btn-small { min-height: 42px; padding: .5rem 1.15rem; font-size: .9rem; }
.btn-gold { background: var(--gold); color: var(--night); }
.btn-gold:hover { background: var(--gold-light); }
.btn-line { background: transparent; border-color: rgba(217, 182, 97, .5); }
.btn-line:hover { border-color: var(--gold); background: rgba(217, 182, 97, .1); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.actions-tight { margin-top: 1rem; gap: .6rem; }

/* Navigation */
.nav { position: fixed; inset: 0 0 auto; z-index: 40; background: rgba(15, 26, 20, .94); border-bottom: 1px solid transparent; transition: border-color .25s; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav.scrolled, .nav.open { border-color: var(--line); }
.nav-row { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; font: 600 1.45rem/1 var(--serif); font-variant: small-caps; letter-spacing: .02em; white-space: nowrap; }
.brand img { border-radius: 50%; }
.nav-links { display: flex; gap: 2.25rem; margin-left: auto; margin-right: 1.25rem; }
.nav-links a { text-decoration: none; font-size: .96rem; padding: .4rem 0; border-bottom: 1px solid transparent; }
.nav-links a:hover, .nav-links a[aria-current="true"] { border-color: var(--gold); }
.nav-actions { display: flex; align-items: center; gap: .5rem; }
.nav-actions .nav-call { display: none; gap: .4rem; min-height: 44px; padding-inline: 1rem; }
.burger { display: none; width: 44px; height: 44px; padding: 0; background: none; border: 0; position: relative; }
.burger span { position: absolute; left: 11px; width: 22px; height: 1.5px; background: var(--ivory); transition: transform .25s; }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 25px; }
.nav.open .burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav.open .burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Hero */
.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 2.5rem) 0 3.5rem; background: radial-gradient(60% 70% at 78% 55%, rgba(217, 182, 97, .13), transparent 70%), var(--night); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.hero-copy { container-type: inline-size; }
/* Name stays on one line: its size follows the width of this column. */
h1 { font-variant: small-caps; font-size: clamp(2.4rem, 13.4cqi, 6.5rem); white-space: nowrap; line-height: 1; color: var(--ivory); }
.hero-sub { margin-top: .6rem; font: 500 clamp(1.25rem, 2.2vw, 1.65rem)/1.3 var(--serif); color: var(--gold); }
.hero-tag { margin-top: 2.25rem; font: italic 500 clamp(1.6rem, 2.8vw, 2.15rem)/1.25 var(--serif); }
.hero-text { margin-top: 1rem; max-width: 33rem; color: var(--muted); }
.hero .actions { margin-top: 2.25rem; }
.status { display: flex; align-items: center; gap: .6rem; margin-top: 2rem; font-size: .95rem; color: var(--muted); }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); flex: none; }
.status-dot.open { background: #62c58a; }
.status-dot.shut { background: #d58b6f; }

/* The photo is cut to the roofline of the glass house */
.gable { justify-self: center; width: min(100%, 440px, calc((100svh - var(--nav-h) - 6rem) * .68)); min-width: 280px; filter: drop-shadow(0 28px 44px rgba(0, 0, 0, .5)); }
.gable-frame { --roof: polygon(50% 0, 100% 19%, 100% 100%, 0 100%, 0 19%); aspect-ratio: 17 / 25; padding: 2px; background: var(--gold); clip-path: var(--roof); }
.gable-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; clip-path: var(--roof); }
@media (prefers-reduced-motion: no-preference) {
  .gable-frame img { animation: lights-on 1.8s ease-out both; }
  @keyframes lights-on { from { filter: brightness(.25); } to { filter: brightness(1); } }
}

/* Story */
.story { background: var(--forest); }
.story-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 7vw, 6.5rem); align-items: center; }
.story-photo img { width: 100%; aspect-ratio: 4 / 5.2; object-fit: cover; object-position: 50% 30%; border-radius: 999px 999px 8px 8px; }
.story h2 { max-width: 17ch; margin-bottom: 1.75rem; }
.lead { color: var(--muted); max-width: 38rem; }
.lead + .lead { margin-top: 1rem; }
.features { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2rem; margin-top: 2.5rem; }
.features > div { border-top: 1px solid var(--line); padding: 1.1rem 0 1.3rem; }
.features dt { font: 600 1.4rem/1.2 var(--serif); color: var(--gold-light); }
.features dd { margin-top: .35rem; font-size: .95rem; color: var(--muted); }

/* Gallery */
.gallery { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.75rem 1.5rem; }
.gallery button { display: block; width: 100%; padding: 0; background: none; border: 0; text-align: left; }
.shot { display: block; overflow: hidden; border-radius: 8px; aspect-ratio: 4 / 5; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.22, 1, .36, 1); }
.gallery button:hover img { transform: scale(1.035); }
.gallery strong { display: block; margin-top: .9rem; font: 600 1.55rem/1.2 var(--serif); }
.gallery small { display: block; margin-top: .2rem; font-size: .93rem; color: var(--muted); }

/* Menu, set like a printed card */
.menu { background: var(--paper); color: var(--ink); }
.menu .head p, .count { color: var(--ink-soft); }
.menu :focus-visible { outline-color: var(--ink); }
.tools { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between; }
.search { flex: 1 1 260px; max-width: 420px; }
.search input { width: 100%; min-height: 48px; padding: .65rem 1.15rem; background: #fffdf7; border: 1px solid #cdc4ac; border-radius: 999px; color: var(--ink); font-size: 1rem; }
.diet { display: flex; gap: .4rem; }
.diet button, .tabs button { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .4rem 1.1rem; background: transparent; border: 1px solid #cdc4ac; border-radius: 999px; font-size: .93rem; font-weight: 500; white-space: nowrap; }
.diet button:hover, .tabs button:hover { border-color: var(--ink); }
.diet button[aria-pressed="true"], .tabs button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.tabs { position: sticky; top: var(--nav-h); z-index: 5; display: flex; gap: .4rem; overflow-x: auto; padding: .9rem 0; margin-top: .6rem; background: var(--paper); border-bottom: 1px solid #d8cfb8; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.count { margin: 1rem 0 0; font-size: .9rem; }

/* Veg and non-veg badges */
.mark { flex: none; display: inline-block; width: 22px; height: 22px; background: center / contain no-repeat; }
.mark.veg { background-image: url("images/icon-veg.svg"); }
.mark.nonveg { background-image: url("images/icon-nonveg.svg"); }
.diet .mark { margin-left: -.4rem; }

.course { margin-top: 3rem; }
.course-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; padding-bottom: .65rem; border-bottom: 2px solid var(--ink); }
.course h3 { font-size: clamp(1.6rem, 3vw, 2rem); }
.sizes, .price.sized { display: grid; grid-template-columns: repeat(3, 3.5rem); text-align: right; }
.sizes { font-size: .85rem; color: var(--ink-soft); flex: none; }
.dishes { list-style: none; columns: 2; column-gap: 3.5rem; }
.course.sized .dishes { columns: 1; }
.dish { display: flex; align-items: flex-start; gap: .75rem; padding: .8rem 0; border-bottom: 1px solid #ddd4bd; break-inside: avoid; }
.dish .mark { margin-top: 0; }
.dish-name { flex: 1; min-width: 0; line-height: 1.4; }
.dish-name small { display: block; margin-top: .2rem; font-size: .86rem; color: var(--ink-soft); }
.price { flex: none; font-weight: 600; line-height: 1.4; font-variant-numeric: tabular-nums; text-align: right; }
.empty { padding: 3.5rem 0; text-align: center; }
.empty p { margin-bottom: 1.25rem; }
.menu .btn-gold { background: var(--ink); color: var(--paper); }

/* Visit */
.visit-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); }
.info > div { padding: 1.35rem 0; border-top: 1px solid var(--line); }
.info > div:last-child { border-bottom: 1px solid var(--line); }
.info dt { font: 600 1.4rem/1.2 var(--serif); color: var(--gold-light); margin-bottom: .35rem; }
.info address { font-style: normal; }
.info a:not(.btn) { overflow-wrap: anywhere; text-underline-offset: 4px; text-decoration-color: var(--line); }
.info a:not(.btn):hover { text-decoration-color: var(--gold); }
.map { min-height: 380px; border-radius: 8px; overflow: hidden; background: var(--forest); border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* Footer */
.footer { padding: 4rem 0 2.5rem; text-align: center; background: #0a120e; color: var(--muted); font-size: .95rem; }
.footer img { margin: 0 auto 1.25rem; border-radius: 50%; }
.footer p + p { margin-top: .45rem; }
.footer .footer-tag { font: italic 500 1.75rem/1.3 var(--serif); color: var(--ivory); margin-bottom: .75rem; }
.footer .fine { margin-top: 2.25rem; font-size: .84rem; }

/* Dialogs */
dialog { color: var(--ivory); background: var(--forest); border: 1px solid var(--line); border-radius: 14px; width: min(440px, 100% - 2rem); max-height: calc(100dvh - 2rem); padding: 2rem 1.5rem 1.5rem; }
dialog::backdrop { background: rgba(4, 9, 6, .86); }
dialog h2 { font-size: 1.9rem; }
dialog p { color: var(--muted); margin-top: .4rem; }
.sheet[open] { display: flex; flex-direction: column; gap: .7rem; }
.sheet p { margin: -.4rem 0 .6rem; }
.close { position: absolute; top: .6rem; right: .6rem; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--night); font-size: 1.5rem; line-height: 1; }
.lightbox { width: min(520px, 100% - 1.5rem); text-align: center; padding: 3.75rem 1rem 1.25rem; }
.lightbox img { margin: 0 auto 1rem; max-height: 62dvh; width: auto; border-radius: 6px; }
.lightbox-nav { display: flex; justify-content: center; gap: .6rem; margin-top: 1.1rem; }
body:has(dialog[open]) { overflow: hidden; }

.toast { position: fixed; left: 50%; bottom: 1.5rem; z-index: 50; transform: translate(-50%, 1rem); padding: .65rem 1.25rem; border-radius: 999px; background: var(--gold); color: var(--night); font-weight: 600; font-size: .92rem; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Tablet and phone */
@media (max-width: 900px) {
  .hero-grid, .story-grid, .visit-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { text-align: center; padding-top: calc(var(--nav-h) + 2.5rem); }
  .hero-text { margin-inline: auto; }
  .hero .actions, .status { justify-content: center; }
  .gable { width: min(100%, 400px); margin-top: .5rem; }
  .story-photo { width: min(100%, 420px); margin-inline: auto; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav-links { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; margin: 0; flex-direction: column; gap: 0; padding: .5rem 1.5rem 1.25rem; background: var(--night); border-bottom: 1px solid var(--line); max-height: calc(100dvh - var(--nav-h)); overflow-y: auto; }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: .85rem 0; font-size: 1.05rem; }
  .burger { display: block; }
  /* On phones, one tap calls the restaurant */
  .nav-actions .nav-contact { display: none; }
  .nav-actions .nav-call { display: inline-flex; }
  .dishes { columns: 1; }
}

@media (max-width: 600px) {
  /* Swipeable photo row keeps the page short on phones */
  .gallery { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(50% - 50vw); padding: .25rem 1.25rem 1rem; scroll-padding-inline: 1.25rem; }
  .gallery li { flex: 0 0 76%; scroll-snap-align: start; }
  .features { grid-template-columns: 1fr; }
  .hero .actions .btn { flex: 1 1 100%; }
  .diet { width: 100%; }
  .diet button { flex: 1; justify-content: center; }
  .search { max-width: none; }
  .sizes, .price.sized { grid-template-columns: repeat(3, 2.6rem); font-size: .86rem; }
  .course.sized .course-head { flex-direction: column; align-items: stretch; }
  .course.sized .sizes { justify-content: end; }
}

@media (max-width: 430px) {
  .nav-row { gap: .5rem; }
  .brand { gap: .5rem; font-size: 1.22rem; }
  .brand img { width: 38px; height: 38px; }
  .nav-actions { gap: .15rem; }
}

@media (max-width: 350px) {
  .brand img { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
