/* ---------- Fonts (self-hosted, from Google Fonts) ---------- */
/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url(fonts/DMSans-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url(fonts/DMSans-normal-latin.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;
}
/* latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/Fraunces-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/Fraunces-italic-latin.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;
}
/* latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/Fraunces-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/Fraunces-normal-latin.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;
}

/* Devanagari, subset to the footer tagline only (Noto Serif Devanagari, OFL).
   If the Nepali text changes, regenerate with Google Fonts' &text= parameter. */
@font-face {
  font-family: 'Noto Serif Devanagari';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/NotoSerifDevanagari-tagline.woff2) format('woff2');
  unicode-range: U+0900-097F;
}

/* ==========================================================
   Tokens
   ========================================================== */
:root {
  /* Colour */
  --maroon: #7a2a24;
  --maroon-deep: #64211c;
  --cream: #f7f1e8;
  --paper: #fffaf3;
  --ink: #2b1b17;
  --muted: #6b5750;
  --peach: #f2c9a1;
  --gold: #d1ab6d;
  --night: #16110f;
  --night-text: #d8cfc4;
  --line: #e4dacd;

  /* Type families */
  --serif: "Fraunces", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, sans-serif;

  /* Type scale (1.25 ratio, fluid at the top end) */
  --text-xs: 0.75rem;     /* 12px  labels, legal */
  --text-sm: 0.875rem;    /* 14px  notes, card copy */
  --text-base: 1rem;      /* 16px  body copy */
  --text-lg: 1.125rem;    /* 18px  lede */
  --text-h3: 1.375rem;    /* 22px  card + FAQ titles */
  --text-h2: clamp(2rem, 1.4rem + 2.2vw, 2.75rem);
  --text-h1: clamp(3rem, 1.6rem + 5vw, 5.25rem);
  --text-brand: clamp(2.25rem, 1.8rem + 1.6vw, 2.75rem);

  /* Spacing scale (4px base) */
  --space-1: 0.25rem;  /* 4  */
  --space-2: 0.5rem;   /* 8  */
  --space-3: 0.75rem;  /* 12 */
  --space-4: 1rem;     /* 16 */
  --space-5: 1.5rem;   /* 24 */
  --space-6: 2rem;     /* 32 */
  --space-7: 3rem;     /* 48 */
  --space-8: 4rem;     /* 64 */

  /* Layout */
  --container: 1280px; /* content width, excluding gutters */
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --section: clamp(4.5rem, 3rem + 6vw, 7.5rem);
  --grid-gap: clamp(var(--space-7), 5vw, var(--space-8));
  --measure: 34rem;     /* max line length for body copy */
  --nav-h: 80px;
  --radius: 10px;
}

/* ==========================================================
   Base
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  font: 400 var(--text-base)/1.65 var(--sans);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, .h2, .h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-optical-sizing: auto;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 em, h2 em { font-style: italic; font-weight: 300; }
p { text-wrap: pretty; }

.h1 { font-size: var(--text-h1); line-height: 1.02; }
.h2, h2 { font-size: var(--text-h2); }
.h3, h3 { font-size: var(--text-h3); line-height: 1.25; letter-spacing: -0.005em; }

.copy { max-width: var(--measure); color: var(--muted); }
.copy + .copy { margin-top: var(--space-4); }
.note { font-size: var(--text-sm); }

.skip {
  position: absolute; left: var(--space-4); top: -100px; z-index: 30;
  padding: var(--space-2) var(--space-4); background: var(--paper); color: var(--ink);
  font-size: var(--text-sm); font-weight: 500;
}
.skip:focus { top: var(--space-4); }
:focus-visible { outline: 2px solid var(--peach); outline-offset: 3px; }

.container { max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }

/* Heading block: h2 + copy + button, same rhythm everywhere */
.section-head h2 { margin-bottom: var(--space-5); }
.section-head > .btn { margin-top: var(--space-6); }

/* ==========================================================
   Buttons
   ========================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px;
  padding: var(--space-3) var(--space-5);
  border: 1px solid transparent;
  border-radius: 6px;
  font: 500 var(--text-sm)/1 var(--sans);
  letter-spacing: 0.01em;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn--light   { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--ghost   { border-color: rgb(247 241 232 / .5); color: var(--cream); }
.btn--ghost:hover { background: rgb(247 241 232 / .1); }
.btn--maroon  { background: var(--maroon); color: var(--cream); }
.btn--maroon:hover { background: var(--maroon-deep); }
.btn--outline { border-color: #bcaea2; color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); }

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

/* ==========================================================
   Nav
   ========================================================== */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: var(--maroon);
  border-bottom: 1px solid rgb(255 255 255 / .08);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.nav__logo img { width: 60px; height: 60px; border-radius: 50%; }
.nav__links { display: flex; gap: var(--space-7); }
.nav__links a { color: var(--cream); font-size: var(--text-sm); font-weight: 500; transition: color .2s; }
.nav__links a:hover { color: var(--peach); }

/* ==========================================================
   Hero
   ========================================================== */
.hero { background: var(--maroon); color: var(--cream); padding-top: var(--space-8); }
.hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--grid-gap); align-items: center; }
.hero__kicker {
  display: block; margin-bottom: var(--space-4);
  font: italic 400 var(--text-lg)/1.4 var(--serif); letter-spacing: 0;
  color: var(--peach);
}
.hero h1 .h1 { display: block; }
.hero h1 { margin-bottom: var(--space-6); }
.lede { max-width: 28rem; font-size: var(--text-lg); opacity: .9; margin-bottom: var(--space-6); }
.hero .actions { margin-bottom: var(--space-6); }
.hero .note { opacity: .8; font-size: var(--text-sm); }
.hero__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* ==========================================================
   Menu
   ========================================================== */
.menu__head {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--grid-gap); align-items: end;
  margin-bottom: var(--space-7);
}
.menu__head .copy { justify-self: end; }

.dishes { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); margin-bottom: var(--space-7); }
.dish img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); margin-bottom: var(--space-5); }
.dish__row {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4);
  padding-bottom: var(--space-3); margin-bottom: var(--space-3);
  border-bottom: 1px solid var(--line);
}
.dish__price { font-family: var(--serif); font-size: var(--text-h3); color: var(--maroon); white-space: nowrap; }
.dish p { color: var(--muted); font-size: 0.9375rem; line-height: 1.6; }
.dish .dish__opts { margin-top: var(--space-3); font-size: var(--text-sm); font-weight: 500; color: var(--ink); }

/* Shorter gap down to the About divider */
.menu { padding-bottom: calc(var(--section) * .66); }

/* ==========================================================
   About
   ========================================================== */
.about { padding-top: 0; }
.about__grid {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--grid-gap);
  padding-top: calc(var(--section) * .66);
}
/* Divider spans the content width, not the gutters */
.about__grid::before {
  content: ""; position: absolute; top: 0; inset-inline: var(--gutter);
  border-top: 1px solid var(--line);
}
.about h2 { margin-bottom: var(--space-5); }
.about .btn { margin-top: var(--space-6); }

/* ==========================================================
   Gallery
   ========================================================== */
.gallery { padding-top: 0; }
.gallery h2 { margin-bottom: var(--space-7); }
.gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.gallery__grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.gallery__link { display: block; border-radius: var(--radius); cursor: zoom-in; }
.gallery__link img { transition: opacity .2s; }
.gallery__link:hover img { opacity: .88; }

/* Lightbox */
.lightbox {
  max-width: none; max-height: none; width: 100%; height: 100%;
  margin: 0; padding: var(--gutter); border: 0;
  background: transparent; place-items: center;
}
.lightbox[open] { display: grid; }
html:has(.lightbox[open]) { overflow: hidden; }
.lightbox::backdrop { background: rgb(22 17 15 / .92); }
.lightbox__img {
  width: min(100%, 85dvh, 720px); aspect-ratio: 1; object-fit: contain;
  border-radius: var(--radius);
}
.lightbox__btn {
  position: fixed; display: grid; place-items: center;
  width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: rgb(247 241 232 / .12); color: var(--cream);
  font: 300 2rem/1 var(--sans); cursor: pointer; transition: background-color .2s;
}
.lightbox__btn:hover { background: rgb(247 241 232 / .24); }
.lightbox__close { top: var(--space-4); right: var(--space-4); }
.lightbox__prev { left: var(--space-4); top: 50%; translate: 0 -50%; }
.lightbox__next { right: var(--space-4); top: 50%; translate: 0 -50%; }
@media (max-width: 640px) {
  .lightbox__prev, .lightbox__next { top: auto; bottom: calc(var(--space-6) + env(safe-area-inset-bottom)); translate: none; }
}

/* ==========================================================
   FAQ
   ========================================================== */
.faq { padding-top: 0; padding-bottom: calc(var(--section) + var(--space-7)); }
.faq__grid { display: grid; grid-template-columns: 1fr 2fr; gap: var(--grid-gap); align-items: start; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
  padding-block: var(--space-5);
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none;
  font-size: var(--text-h3); font-weight: 300; line-height: 1; color: var(--maroon);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover h3 { color: var(--maroon); }
.faq details .copy { padding-bottom: var(--space-5); }
.faq details a { color: var(--maroon); text-decoration: underline; text-underline-offset: 2px; }

/* ==========================================================
   Sauce + visit
   ========================================================== */
.sauce { position: relative; background: var(--maroon); color: var(--cream); }
.sauce__wave { position: absolute; bottom: 100%; left: 0; width: 100%; height: 60px; fill: var(--maroon); margin-bottom: -1px; }
.sauce__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--grid-gap); align-items: center; }
.sauce .copy { color: inherit; opacity: .9; }
.sauce__img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }

.visit h2 { margin-bottom: var(--space-6); }
.info { display: grid; gap: var(--space-5); }
.info dt { color: var(--peach); font-size: var(--text-sm); font-weight: 600; margin-bottom: var(--space-1); }
.info .note, .info dd:has(> .info__link) { margin-top: var(--space-2); }
.info .note { opacity: .7; }
.info__phone { font-family: var(--serif); font-size: 1.75rem; line-height: 1.2; }
.info__phone a:hover { color: var(--peach); }
.info__link { color: var(--peach); font-size: var(--text-sm); font-weight: 500; }
.info__link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================
   Map
   ========================================================== */
.map { display: block; width: 100%; height: 440px; border: 0; }

/* ==========================================================
   Footer
   ========================================================== */
.footer { background: var(--night); color: var(--night-text); padding: var(--space-8) 0 var(--space-6); }
.footer__top { display: flex; justify-content: space-between; align-items: center; gap: var(--space-5); margin-bottom: var(--space-8); }
.footer__brand { font-family: var(--serif); color: var(--gold); font-size: var(--text-brand); line-height: 1.1; }
.footer__np { font-family: 'Noto Serif Devanagari', var(--serif); font-size: var(--text-base); margin-top: var(--space-2); }
.footer__tag { margin-top: var(--space-1); font-family: var(--serif); font-style: italic; opacity: .7; }
.footer__cols {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6);
  padding-bottom: var(--space-7); border-bottom: 1px solid rgb(255 255 255 / .08);
}
.footer__label { font-size: var(--text-sm); font-weight: 600; color: var(--gold); margin-bottom: var(--space-2); }
.footer__cols p, .footer__cols address { font-size: var(--text-sm); line-height: 1.75; font-style: normal; }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
  padding-top: var(--space-5); font-size: var(--text-xs);
}
.footer__bottom > * { color: rgb(216 207 196 / .7); transition: color .2s; }
.footer__bottom a:hover { color: var(--night-text); }
.servit { display: inline-flex; align-items: center; gap: var(--space-2); }
.servit img { height: 22px; width: auto; }

/* ==========================================================
   Mobile order bar (shown ≤ 640px)
   ========================================================== */
.order-bar { display: none; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 900px) {
  .hero__grid, .about__grid, .faq__grid, .sauce__grid, .menu__head { grid-template-columns: 1fr; }
  .menu__head { gap: var(--space-4); }
  .menu__head .copy { justify-self: start; }
  .dishes { gap: var(--space-5); }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
  .faq__grid { gap: var(--space-6); }
  .hero { padding-top: var(--space-7); }
  .hero__img { margin-inline: calc(var(--gutter) * -1); width: calc(100% + var(--gutter) * 2); max-width: none; }
  .hero__img { aspect-ratio: 4 / 3; }
  .dish h3, .dish__price { font-size: var(--text-lg); }
  .sauce__img { max-width: 340px; }
}
@media (max-width: 640px) {
  :root { --nav-h: 68px; }
  .nav__logo img { width: 48px; height: 48px; }
  .nav__links, .nav .btn { display: none; }
  .dishes { grid-template-columns: 1fr; gap: var(--space-7); }
  .dish img { aspect-ratio: 4 / 3; }
  .hero__img { aspect-ratio: 4 / 5; }
  .dish h3, .dish__price { font-size: var(--text-h3); }
  .map { height: 320px; }
  .footer__top { flex-direction: column; align-items: flex-start; }
  .footer__cols { grid-template-columns: 1fr; }
  .footer__bottom { flex-wrap: wrap; row-gap: var(--space-4); }
  .footer__bottom .servit { order: 3; flex-basis: 100%; }

  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .order-bar {
    display: flex; gap: var(--space-2);
    position: fixed; inset: auto 0 0; z-index: 20;
    padding: var(--space-3) var(--gutter) calc(var(--space-3) + env(safe-area-inset-bottom));
    background: var(--maroon);
    box-shadow: 0 -6px 20px rgb(0 0 0 / .18);
  }
  .order-bar .btn { flex: 1; min-height: 48px; }
  .order-bar__call {
    display: grid; place-items: center; padding-inline: var(--space-5);
    border: 1px solid rgb(247 241 232 / .5); border-radius: 6px;
    color: var(--cream); font-size: var(--text-sm); font-weight: 500;
  }
}

/* ==========================================================
   404
   ========================================================== */
.notfound { min-height: 100dvh; display: grid; place-items: center; background: var(--maroon); color: var(--cream); padding: var(--gutter); }
.notfound__inner { text-align: center; max-width: 32rem; }
.notfound__inner img { margin: 0 auto var(--space-6); border-radius: 50%; }
.notfound .hero__kicker { margin-bottom: var(--space-4); }
.notfound h1 { margin-bottom: var(--space-5); }
.notfound .lede { margin-inline: auto; }
.notfound .actions { justify-content: center; }
