/* Gitonia · Γειτονιά Μεζεδοκαφενές. An old-style kafenio: their menu printed on aged
   paper with pen-and-ink sketches of village houses, a stone courtyard with arches,
   wooden chairs, and the church bell tower lit in blue next door. */
:root {
  /* Brand tokens — change these per restaurant */
  --paper: #F1E7D2;        /* aged menu paper */
  --paper-2: #E8DAC0;
  --paper-3: #FAF4E8;
  --ink: #2B2620;          /* pen ink */
  --muted: #6C6152;
  --blue: #2F4E7A;         /* kafenio blue, the lit bell tower */
  --stone: #B79B72;        /* the stone arches */
  --wine: #7A3328;
  --line: rgba(43, 38, 32, .18);

  --f-display: "Caudex", "Palatino Linotype", Georgia, serif;
  --f-body: "Alegreya Sans", "Gill Sans", "Segoe UI", sans-serif;

  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --wrap: 1140px;
  --h2: clamp(2rem, 1.4rem + 2.6vw, 3.2rem);
  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; color: var(--ink); font: 400 1.1rem/1.6 var(--f-body); -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(circle at 15% 20%, rgba(160,120,60,.10), transparent 35%),
    radial-gradient(circle at 85% 60%, rgba(160,120,60,.10), transparent 40%),
    var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; text-wrap: balance; margin: 0; line-height: 1.08; }
h2 { font-size: var(--h2); }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--blue); color: #fff; padding: 8px 12px; }
.skip:focus { left: 16px; }

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

/* ---------- Logo ---------- */
.brand { display: grid; text-decoration: none; line-height: 1; }
.logo { font: italic 700 1.8rem/1 var(--f-display); color: var(--ink); }
.logo-sub { font-size: .7rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

/* ---------- Header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--paper); }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(6px); border-bottom: 1.5px solid var(--ink); }
.top-in { display: flex; align-items: center; gap: 24px; padding-block: 10px; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 1rem; font-weight: 500; padding-block: 6px; border-bottom: 1.5px solid transparent; }
.nav a:hover { border-color: var(--ink); }

.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font: 700 .85rem/1 var(--f-body); letter-spacing: .06em; border: 1.5px solid var(--ink); padding: 8px 12px; border-radius: 3px; background: var(--paper-3); }
.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: 6px; list-style: none; background: var(--paper-3); border: 1.5px solid var(--ink); border-radius: 3px; min-width: 190px; box-shadow: 4px 4px 0 rgba(43,38,32,.18); }
.lang-list button { width: 100%; display: flex; justify-content: space-between; gap: 16px; align-items: baseline; background: none; border: 0; color: var(--ink); cursor: pointer; text-align: left; font: 400 1.02rem/1 var(--f-body); padding: 10px; }
.lang-list button span { font-size: .75rem; font-weight: 700; color: var(--muted); }
.lang-list button:hover, .lang-list button[aria-current="true"] { background: var(--paper); }
.lang-list button[aria-current="true"] span { color: var(--blue); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-bottom: 90px; }
.hero-in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(34px, 6vw, 80px) 0; }
.hero-copy { min-width: 0; display: grid; gap: 18px; }
.eyebrow { font-size: .9rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.hero h1 { font-size: clamp(2.6rem, 1.5rem + 4vw, 4.8rem); }
.h1-a { display: block; }
.h1-b { display: block; font-style: italic; font-weight: 400; color: var(--blue); font-size: .72em; margin-top: .15em; }
.lede { max-width: 33em; font-size: 1.18rem; color: #41392F; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; font: 700 1.02rem/1 var(--f-body); text-decoration: none; border-radius: 3px; border: 1.5px solid var(--ink); cursor: pointer; transition: transform .15s, box-shadow .15s, background .2s; }
.btn-solid { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 3px 3px 0 var(--ink); }
.btn-solid:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn-line { background: var(--paper-3); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 4px 0 0; padding: 0; font-size: 1rem; color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 700; }
.status i { width: 9px; height: 9px; border-radius: 50%; background: #999; }
.status.is-open i { background: #3D8B4E; box-shadow: 0 0 0 4px rgba(61,139,78,.16); }
.status.is-closed i { background: var(--wine); }
.frame { background: var(--paper-3); padding: 12px; border: 1.5px solid var(--ink); box-shadow: 6px 6px 0 rgba(43,38,32,.22); transform: rotate(-1deg); }
.frame img { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; filter: sepia(.12) saturate(.95); }
.village { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 90px; color: var(--ink); opacity: .75; }

/* ---------- Family recipes ---------- */
.family { background: var(--paper-2); border-block: 1.5px solid var(--ink); }
.family-in { padding-block: clamp(48px, 7vw, 92px); display: grid; gap: 30px; }
.family-head { display: grid; gap: 10px; justify-items: start; max-width: 42em; }
.grapes { width: 48px; height: 48px; color: var(--wine); }
.family-head p { color: #41392F; font-size: 1.12rem; }
.recipe-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.recipe { width: 100%; height: 100%; text-align: left; font: inherit; color: var(--ink); cursor: pointer; display: grid; gap: 6px; align-content: start; padding: 22px 18px 18px; background:
    repeating-linear-gradient(transparent 0 27px, rgba(47,78,122,.18) 27px 28px), var(--paper-3);
  border: 1px solid var(--line); box-shadow: 0 10px 22px rgba(43,38,32,.12); position: relative; transition: transform .2s, box-shadow .2s; }
.recipe::before { content: ""; position: absolute; top: -8px; left: 50%; width: 70px; height: 18px; transform: translateX(-50%) rotate(-3deg); background: rgba(183,155,114,.55); }
.recipe.r0 { transform: rotate(-1.5deg); } .recipe.r1 { transform: rotate(1deg); } .recipe.r2 { transform: rotate(-.5deg); } .recipe.r3 { transform: rotate(1.6deg); }
.recipe:hover { transform: rotate(0) translateY(-4px); box-shadow: 0 16px 30px rgba(43,38,32,.18); }
.recipe .who { font: italic 400 1.15rem/1.2 var(--f-display); color: var(--blue); }
.recipe .dish { font: 700 1.35rem/1.15 var(--f-display); }
.recipe .how { font-size: .98rem; color: var(--muted); }
.recipe .price { margin-top: 6px; font: 700 1.2rem/1 var(--f-display); color: var(--wine); }

/* ---------- Menu ---------- */
.menu { padding: clamp(40px, 6vw, 80px) var(--gutter-r) clamp(40px, 6vw, 80px) var(--gutter); }
.menu-book { max-width: 980px; margin-inline: auto; background: var(--paper-3); border: 1.5px solid var(--ink); padding: clamp(26px, 5vw, 56px) clamp(18px, 5vw, 56px) 0; box-shadow: 8px 8px 0 rgba(43,38,32,.18); position: relative; overflow: hidden; }
.menu-head { display: grid; justify-items: center; text-align: center; gap: 6px; }
.menu-head h2 { font-style: italic; }
.menu-note { color: var(--muted); }
.tabs { display: flex; gap: 6px; margin: 20px 0 6px; overflow-x: auto; scrollbar-width: none; position: sticky; top: calc(64px + env(safe-area-inset-top, 0px)); z-index: 5; background: var(--paper-3); padding-block: 10px; border-bottom: 1.5px solid var(--ink); box-shadow: 0 -14px 0 var(--paper-3); }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; background: none; border: 1.5px solid transparent; border-radius: 3px; cursor: pointer; color: var(--muted); font: 700 1rem/1 var(--f-body); padding: 9px 13px; }
.tab:hover { color: var(--ink); border-color: var(--line); }
.tab[aria-selected="true"] { color: #fff; background: var(--blue); }
.part { padding-top: 24px; }
.panel h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); font-style: italic; margin: 0 0 8px; text-align: center; }
.panel h3::before, .panel h3::after { content: "~"; color: var(--stone); margin: 0 .4em; font-style: normal; }
.items { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 52px; }
.item { padding: 9px 0; break-inside: avoid; min-width: 0; border-bottom: 1px dashed var(--line); }
.item.flash { animation: flash 1.8s ease-out; }
@keyframes flash { 0%, 30% { background: rgba(47,78,122,.14); } 100% { background: transparent; } }
.item-row { display: flex; align-items: baseline; gap: 8px; }
.item-name { font-weight: 500; font-size: 1.1rem; line-height: 1.3; min-width: 0; }
.item-fill { flex: 1; min-width: 10px; border-bottom: 1.5px dotted rgba(43,38,32,.35); transform: translateY(-4px); }
.item-size { font-size: .9rem; color: var(--muted); white-space: nowrap; font-style: italic; }
.item-price { font: 700 1.12rem/1 var(--f-display); white-space: nowrap; font-variant-numeric: tabular-nums; }
.item-with { margin-top: 2px; font-size: .98rem; font-style: italic; color: var(--muted); max-width: 38em; }
.part-note { margin-top: 12px; font-size: .98rem; font-style: italic; color: var(--muted); text-align: center; }
.village.small { position: static; display: block; height: 70px; margin-top: 30px; opacity: .55; }

/* ---------- Gallery ---------- */
.gallery { background: var(--paper-2); border-top: 1.5px solid var(--ink); }
.gallery-in { padding-block: clamp(48px, 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: 8px 8px 22px; border: 1px solid var(--line); background: var(--paper-3); cursor: zoom-in; box-shadow: 0 8px 18px rgba(43,38,32,.12); transition: transform .3s; }
.shot img { filter: sepia(.1); }
.shot:nth-child(odd) { transform: rotate(-.8deg); } .shot:nth-child(even) { transform: rotate(.8deg); }
.shot:hover { transform: rotate(0) translateY(-3px); }

/* ---------- Visit ---------- */
.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 dashed var(--line); }
.info dt { font-weight: 700; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.info dd { margin: 0; }
.hours { display: grid; gap: 2px; }
.phone { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.mini { display: inline-flex; gap: 6px; }
.chip { font: 700 .88rem/1 var(--f-body); text-decoration: none; border: 1.5px solid var(--ink); background: var(--paper-3); color: var(--ink); padding: 8px 12px; cursor: pointer; border-radius: 3px; }
.chip:hover { background: var(--ink); color: var(--paper); }
.church-note { color: var(--muted); }
.map { position: relative; min-height: 380px; border: 1.5px solid var(--ink); background: var(--paper-2); box-shadow: 6px 6px 0 rgba(43,38,32,.18); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: sepia(.15); }
.map figcaption { position: absolute; left: 12px; bottom: 12px; background: var(--blue); color: #fff; padding: 6px 10px; font-size: .88rem; }

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: #CFC3AD; }
.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: var(--paper); font-size: 1.6rem; }
.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(30, 26, 20, .92); }
.lightbox img { max-height: 88vh; width: auto; margin: auto; border: 8px solid var(--paper-3); }
.lb-close { position: fixed; top: calc(14px + env(safe-area-inset-top, 0px)); right: calc(14px + env(safe-area-inset-right, 0px)); width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--paper-3); color: var(--ink); 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; }
  .village:not(.small) path { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 3s .3s ease forwards; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@keyframes rise { from { transform: translateY(14px); opacity: .001; } to { transform: none; opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) { .recipe-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .hero-in, .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.6rem; }
  .tabs { top: calc(60px + 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; }
  .menu-book { padding: 26px 16px 0; }
  .recipe-cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .recipe { padding: 18px 12px 14px; }
  .recipe .dish { font-size: 1.12rem; }
  .village { height: 60px; }
  .hero { padding-bottom: 66px; }
}
