/* Mama's Kitchen, Gennadi. Village taverna: the pine pergola with its lanterns, green-and-white
   checked tablecloths, dark green chairs with straw seats, white gravel, and the sage-green
   ribbon headings and red script of their printed menu. */
:root {
  /* Brand tokens — change these per restaurant */
  --wood: #9C5426;
  --wood-dk: #6B3517;
  --wood-lt: #C7864A;
  --green: #2F6B4A;          /* tablecloth check and chairs */
  --green-dk: #1E4632;
  --sage: #6F8B5E;           /* the ribbons on their printed menu */
  --red: #C0392B;            /* "Mama's" in their logo */
  --straw: #E3C17A;
  --white: #FBF8F1;          /* whitewash */
  --gravel: #EFEAE0;
  --ink: #2B2520;
  --muted: #6E6257;
  --line: rgba(43, 37, 32, .14);

  --f-logo: "Kaushan Script", "Segoe Script", cursive;
  --f-display: "Piazzolla", Georgia, serif;
  --f-label: "Fira Sans Condensed", "Arial Narrow", sans-serif;
  --f-body: "Fira Sans", "Segoe UI", Arial, sans-serif;

  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --wrap: 1160px;
  --h2: clamp(2rem, 1.3rem + 2.6vw, 3.2rem);
  /* green-and-white tablecloth */
  --gingham: linear-gradient(90deg, rgba(47,107,74,.55) 50%, transparent 0), linear-gradient(rgba(47,107,74,.55) 50%, transparent 0);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 1.06rem/1.6 var(--f-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 800; text-wrap: balance; margin: 0; line-height: 1.08; }
h2 { font-size: var(--h2); }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--straw); outline-offset: 3px; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--green); color: #fff; padding: 8px 12px; }
.skip:focus { left: 16px; }

.top-in, .hero-in, .mama-in, .grill-in, .gallery-in, .visit-in, .foot-in {
  max-width: var(--wrap); margin-inline: auto;
  padding-left: var(--gutter); padding-right: var(--gutter-r);
}

/* Pine planks, like the pergola roof */
.wood {
  background-color: var(--wood);
  background-image:
    repeating-linear-gradient(180deg, rgba(0,0,0,.0) 0 58px, rgba(60,25,8,.45) 58px 61px),
    repeating-linear-gradient(92deg, rgba(255,220,170,.06) 0 7px, rgba(80,30,5,.07) 7px 11px, rgba(255,220,170,.04) 11px 23px);
}

/* ---------- Logo ---------- */
.brand { text-decoration: none; line-height: 1; }
.logo { font: 400 1.9rem/1 var(--f-logo); color: var(--red); white-space: nowrap; }
.logo span { color: var(--green); }

/* ---------- Header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--white); }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--white) 95%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; padding-block: 10px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; font: 600 1rem/1 var(--f-label); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); padding: 10px 12px; border-radius: 6px; }
.nav a:hover { background: var(--gravel); color: var(--green); }

.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font: 600 .9rem/1 var(--f-label); letter-spacing: .08em; padding: 10px 14px; border-radius: 6px; background: var(--green); color: #fff; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 10px; height: 6px; transition: transform .2s; }
.lang[open] summary svg { transform: rotate(180deg); }
.lang-list { position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 8px; list-style: none; background: #fff; border-radius: 10px; min-width: 200px; box-shadow: 0 20px 40px rgba(43,37,32,.2); }
.lang-list button { width: 100%; display: flex; justify-content: space-between; gap: 16px; align-items: baseline; background: none; border: 0; border-radius: 6px; color: var(--ink); cursor: pointer; text-align: left; font: 400 1.02rem/1 var(--f-body); padding: 11px 12px; }
.lang-list button span { font: 600 .78rem/1 var(--f-label); color: var(--muted); }
.lang-list button:hover, .lang-list button[aria-current="true"] { background: var(--gravel); }
.lang-list button[aria-current="true"] span { color: var(--red); }

/* ---------- Hero: the courtyard, with the pergola beam and its lanterns ---------- */
.hero { position: relative; min-height: min(88vh, 760px); display: grid; align-items: end; overflow: hidden; color: #fff; background: var(--green-dk); }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(25,18,12,.82) 0%, rgba(25,18,12,.55) 42%, rgba(25,18,12,.05) 75%), linear-gradient(0deg, rgba(25,18,12,.55), transparent 45%); }
.beam { position: absolute; z-index: 2; left: 0; right: 0; top: 0; height: 30px; background-color: var(--wood); box-shadow: 0 6px 14px rgba(0,0,0,.35);
  background-image: linear-gradient(180deg, rgba(255,210,150,.25), rgba(60,25,8,.35)), repeating-linear-gradient(90deg, rgba(255,220,170,.08) 0 9px, rgba(80,30,5,.12) 9px 13px, rgba(255,220,170,.04) 13px 31px); }
.lantern { position: absolute; top: 28px; width: 34px; height: 76px; filter: drop-shadow(0 0 14px rgba(255,200,100,.85)); transform-origin: 50% 0; }
.lantern.l1 { left: 12%; }
.lantern.l2 { left: 46%; height: 62px; width: 28px; }
.lantern.l3 { right: 9%; }
.hero-in { position: relative; z-index: 1; width: 100%; padding-block: 140px clamp(40px, 6vw, 80px); }
.hero-copy { max-width: 620px; display: grid; gap: 18px; }
.eyebrow { font: 600 .95rem/1.2 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--straw); }
.hero h1 { font-size: clamp(2.8rem, 1.6rem + 4.6vw, 5.4rem); text-shadow: 0 2px 20px rgba(0,0,0,.35); }
.h1-a { display: block; }
.h1-b { display: block; font: italic 600 .62em/1.15 var(--f-display); color: #FFE7B8; margin-top: .15em; }
.lede { max-width: 34em; font-size: 1.1rem; color: #F1E8DA; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; font: 600 1.05rem/1 var(--f-label); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; border-radius: 6px; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .2s, color .2s; }
.btn-solid { background: var(--red); color: #fff; }
.btn-solid:hover { background: #A52F23; transform: translateY(-1px); }
.btn-line { border-color: rgba(255,255,255,.85); color: #fff; }
.btn-line:hover { background: rgba(255,255,255,.12); }
.btn-line.dark { border-color: var(--ink); color: var(--ink); }
.btn-line.dark:hover { background: var(--gravel); }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 4px 0 0; padding: 0; font-size: .98rem; color: #E8DDCB; }
.status { display: inline-flex; align-items: center; gap: 9px; color: #fff; font-weight: 600; }
.status i { width: 10px; height: 10px; border-radius: 50%; background: #999; }
.status.is-open i { background: #6FD08C; box-shadow: 0 0 0 4px rgba(111,208,140,.25); }
.status.is-closed i { background: #FF7A66; }

/* The tablecloth's edge under the hero */
.cloth-edge { height: 22px; background-color: #fff; background-image: var(--gingham); background-size: 22px 22px; border-bottom: 3px solid var(--green); }

/* ---------- From Mama's pots ---------- */
.mama { background: var(--white); }
.mama-in { padding-block: clamp(52px, 7vw, 96px); display: grid; gap: 30px; }
.mama-head { display: grid; gap: 10px; justify-items: center; text-align: center; max-width: 40em; margin-inline: auto; }
.pot-ico { width: 64px; height: 48px; color: var(--wood); }
.mama-head p { color: var(--muted); }
.pots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pot { position: relative; width: 100%; height: 100%; text-align: left; font: inherit; color: var(--ink); cursor: pointer; display: grid; gap: 8px; align-content: start; padding: 26px 20px 20px; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.pot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; background-color: #fff; background-image: var(--gingham); background-size: 10px 10px; }
.pot:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(43,37,32,.12); }
.pot-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pot-name { font: 800 1.35rem/1.15 var(--f-display); }
.pot-price { font: 400 1.6rem/1 var(--f-logo); color: var(--red); white-space: nowrap; }
.pot-with { font-size: .97rem; color: var(--muted); }

/* ---------- Grill for the table ---------- */
.grill { color: #fff; }
.grill-in { padding-block: clamp(52px, 7vw, 96px); display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 70px); align-items: center; }
.grill-copy { display: grid; gap: 14px; }
.grill-copy p { color: #F6E3CC; font-size: 1.12rem; max-width: 30em; }
.stepper { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; justify-self: start; background: rgba(30,12,4,.35); padding: 8px; border-radius: 10px; }
.stepper button { width: 54px; height: 54px; border: 0; border-radius: 8px; background: var(--green); color: #fff; font: 600 1.8rem/1 var(--f-body); cursor: pointer; }
.stepper button:hover:not(:disabled) { background: var(--green-dk); }
.stepper button:disabled { opacity: .4; cursor: default; }
.stepper output { min-width: 8.5rem; text-align: center; font: 600 1rem/1 var(--f-label); letter-spacing: .08em; text-transform: uppercase; }
.stepper output b { display: block; font: 800 2.4rem/1 var(--f-display); letter-spacing: 0; margin-bottom: 2px; }
/* The waiter's order slip */
.ticket { background: #FFFDF7; color: var(--ink); padding: 26px 26px 22px; border-radius: 4px; transform: rotate(1.2deg); box-shadow: 0 22px 40px rgba(30,12,4,.45); position: relative;
  background-image: repeating-linear-gradient(180deg, transparent 0 33px, rgba(47,107,74,.14) 33px 34px); }
.ticket::before { content: ""; position: absolute; left: 0; right: 0; top: -9px; height: 10px; background: radial-gradient(circle at 6px 0, transparent 6px, #FFFDF7 6.5px) 0 0 / 12px 10px repeat-x; }
.ticket-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; min-height: 5.5em; }
.ticket-lines li { display: flex; align-items: baseline; gap: 10px; font-size: 1.1rem; padding: 4px 0; }
.tl-qty { font: 400 1.4rem/1 var(--f-logo); color: var(--red); min-width: 2.2rem; }
.tl-name { flex: 1; font-weight: 600; }
.tl-price { font-variant-numeric: tabular-nums; font-weight: 600; }
.ticket-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; padding-top: 12px; border-top: 2px solid var(--ink); font: 600 1rem/1 var(--f-label); letter-spacing: .1em; text-transform: uppercase; }
.ticket-total b { font: 800 2rem/1 var(--f-display); letter-spacing: 0; color: var(--green); }
.ticket-pp { margin-top: 6px; text-align: right; color: var(--muted); }
.ticket-note { margin-top: 12px; font-size: .92rem; color: var(--muted); }

/* ---------- Menu on the checked tablecloth ---------- */
.menu { padding: clamp(40px, 6vw, 80px) var(--gutter-r) clamp(40px, 6vw, 80px) var(--gutter); background-color: #fff; background-image: var(--gingham); background-size: 44px 44px; }
.menu-card { max-width: 1000px; margin-inline: auto; background: #FFFEFA; border-radius: 6px; padding: clamp(28px, 5vw, 56px); box-shadow: 0 24px 50px rgba(30,60,40,.28); }
.menu-head { display: grid; justify-items: center; text-align: center; gap: 4px; }
.menu-logo { font: 400 clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem)/1 var(--f-logo); color: var(--red); }
.menu-logo span { color: var(--green); }
.menu-head h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); font-weight: 500; font-style: italic; }
.menu-note { color: var(--muted); font-size: .95rem; }
.tabs { display: flex; gap: 6px; margin: 22px 0 6px; overflow-x: auto; scrollbar-width: none; position: sticky; top: calc(62px + env(safe-area-inset-top, 0px)); z-index: 5; background: #FFFEFA; padding-block: 10px; border-bottom: 1px solid var(--line); box-shadow: 0 -14px 0 #FFFEFA; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; background: var(--gravel); border: 0; border-radius: 6px; cursor: pointer; color: var(--ink); font: 600 .98rem/1 var(--f-label); letter-spacing: .05em; text-transform: uppercase; padding: 11px 14px; }
.tab:hover { background: #E2DACB; }
.tab[aria-selected="true"] { background: var(--green); color: #fff; }
.part { padding-top: 28px; }
/* Section headings as the sage ribbons of their printed menu */
.panel h3 { display: inline-block; font: 800 clamp(1.1rem, 1rem + .5vw, 1.35rem)/1 var(--f-label); letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--sage); padding: 10px 30px 9px 22px; margin: 0 0 10px; clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 50%, 100% 100%, 0 100%, 12px 50%); }
.items { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 48px; }
.item { padding: 10px 0; break-inside: avoid; min-width: 0; border-bottom: 1px solid var(--line); }
.item.flash { animation: flash 1.8s ease-out; }
@keyframes flash { 0%, 30% { background: #FFF0C9; } 100% { background: transparent; } }
.item-row { display: flex; align-items: baseline; gap: 8px; }
.item-name { font: 800 1.06rem/1.3 var(--f-display); min-width: 0; }
.item-fill { flex: 1; min-width: 10px; border-bottom: 2px dotted rgba(43,37,32,.22); transform: translateY(-5px); }
.item-size { font-size: .88rem; color: var(--muted); white-space: nowrap; }
.item-note { font: 600 .72rem/1 var(--f-label); letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--red); padding: 3px 6px; border-radius: 3px; }
.item-price { font: 800 1.06rem/1 var(--f-display); white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--green); }
.item-with { margin-top: 3px; font-size: .95rem; color: var(--muted); max-width: 38em; }
/* Pizza in three sizes */
.items.has-two { columns: 1; }
.item-price.two { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 3.6rem; gap: 10px; text-align: right; }
.item-price.one { min-width: 3.6rem; text-align: right; }
.size-head { display: flex; justify-content: flex-end; gap: 10px; padding: 6px 0 2px; font: 600 .78rem/1 var(--f-label); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.size-head span { width: 3.6rem; text-align: right; }
.part-note { margin-top: 12px; font-size: .95rem; color: var(--muted); font-style: italic; }
.menu-more { margin: 30px auto 0; text-align: center; font-size: .95rem; color: var(--muted); max-width: 34em; padding-top: 18px; border-top: 1px solid var(--line); }

/* ---------- Gallery ---------- */
.gallery { background: var(--gravel); }
.gallery-in { padding-block: clamp(52px, 7vw, 96px); }
.gallery h2 { margin-bottom: 28px; }
.grid { columns: 3 240px; column-gap: 14px; }
.shot { break-inside: avoid; margin: 0 0 14px; display: block; width: 100%; padding: 0; border: 6px solid #fff; border-radius: 4px; background: #fff; cursor: zoom-in; overflow: hidden; box-shadow: 0 8px 20px rgba(43,37,32,.14); }
.shot img { width: 100%; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.shot:hover img { transform: scale(1.04); }

/* ---------- Visit ---------- */
.visit { background: var(--white); }
.visit-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 80px); padding-block: clamp(56px, 8vw, 110px); }
.visit-copy { display: grid; gap: 22px; align-content: start; min-width: 0; }
.info { margin: 0; display: grid; }
.info > div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.info dt { font: 600 .85rem/1.4 var(--f-label); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.info dd { margin: 0; }
.phone { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.mini { display: inline-flex; gap: 6px; }
.chip { font: 600 .9rem/1 var(--f-label); letter-spacing: .05em; text-transform: uppercase; text-decoration: none; border: 0; background: var(--gravel); color: var(--ink); padding: 9px 12px; cursor: pointer; border-radius: 6px; }
.chip:hover { background: #E2DACB; }
.kids { color: var(--muted); }
.map { position: relative; min-height: 380px; border-radius: 6px; overflow: hidden; background: var(--gravel); border: 6px solid #fff; box-shadow: 0 16px 34px rgba(43,37,32,.14); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map figcaption { position: absolute; left: 12px; bottom: 12px; background: var(--ink); color: #fff; padding: 6px 12px; border-radius: 4px; font-size: .88rem; }

/* ---------- Footer ---------- */
.foot { background: var(--green-dk); color: #D6E2D8; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-block: 24px calc(24px + env(safe-area-inset-bottom, 0px)); font-size: .95rem; }
.foot .logo { color: #FF8C7A; font-size: 1.7rem; }
.foot .logo span { color: #fff; }
.foot .credit { margin-left: auto; }

/* ---------- Lightbox ---------- */
.lightbox { padding: 0; border: 0; background: transparent; max-width: min(92vw, 1400px); max-height: 92vh; }
.lightbox::backdrop { background: rgba(20, 14, 10, .9); }
.lightbox img { max-height: 88vh; width: auto; margin: auto; border-radius: 4px; }
.lb-close { position: fixed; top: calc(14px + env(safe-area-inset-top, 0px)); right: calc(14px + env(safe-area-inset-right, 0px)); width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--red); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
  .hero-copy > *:nth-child(2) { animation-delay: .07s; }
  .hero-copy > *:nth-child(3) { animation-delay: .14s; }
  .hero-copy > *:nth-child(4) { animation-delay: .21s; }
  .hero-copy > *:nth-child(5) { animation-delay: .28s; }
  .lantern { animation: sway 5s ease-in-out infinite alternate, glow 3.2s ease-in-out infinite; }
  .lantern.l2 { animation-delay: -2s, -1s; }
  .lantern.l3 { animation-delay: -3.5s, -2.2s; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@keyframes rise { from { transform: translateY(14px); opacity: .001; } to { transform: none; opacity: 1; } }
@keyframes sway { from { transform: rotate(-2.5deg); } to { transform: rotate(2.5deg); } }
@keyframes glow { 0%, 100% { filter: drop-shadow(0 0 14px rgba(255,200,100,.85)); } 50% { filter: drop-shadow(0 0 22px rgba(255,190,90,1)); } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) { .pots { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grill-in { grid-template-columns: 1fr; } .ticket { max-width: 520px; } }
@media (max-width: 900px) {
  .visit-in { grid-template-columns: 1fr; }
  .items { columns: 1; }
  .map { min-height: 300px; }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .lang { margin-left: auto; }
  .logo { font-size: 1.7rem; }
  .hero { min-height: 640px; }
  .hero::after { background: linear-gradient(0deg, rgba(25,18,12,.9) 0%, rgba(25,18,12,.6) 55%, rgba(25,18,12,.15) 100%); }
  .lantern.l2 { display: none; }
  .hero-in { padding-top: 120px; }
  .tabs { top: calc(58px + env(safe-area-inset-top, 0px)); }
  .info > div { grid-template-columns: 1fr; gap: 2px; }
  .foot .credit { margin-left: 0; }
  .btn { flex: 1 1 auto; }
  .menu { padding-inline: 10px; background-size: 30px 30px; }
  .menu-card { padding: 26px 16px 30px; }
  .pots { grid-template-columns: 1fr; }
  .item-price.two { grid-auto-columns: 3.1rem; gap: 6px; }
  .size-head { gap: 6px; }
  .size-head span { width: 3.1rem; }
  .ticket { transform: none; }
}
