/* To Posperi. A modern Greek meze place: stone-white walls, the deep teal and terracotta
   of the tile pattern on their menu cover, green shutters, warm evening light.
   Big serif type, lots of air, one tile motif. */
:root {
  /* Brand tokens — change these per restaurant */
  --stone: #F7F4EE;
  --stone-2: #EFEAE1;
  --white: #FFFFFF;
  --teal: #1E5A61;         /* tile pattern */
  --teal-deep: #133E43;
  --terra: #C0643F;        /* tile pattern */
  --shutter: #8A9A6B;      /* green shutters */
  --ink: #1D2324;
  --muted: #687071;
  --line: rgba(29, 35, 36, .12);

  --f-display: "Noto Serif Display", "Didot", Georgia, serif;
  --f-body: "Geologica", "Segoe UI", Arial, sans-serif;

  --gutter: max(18px, env(safe-area-inset-left, 0px));
  --gutter-r: max(18px, env(safe-area-inset-right, 0px));
  --wrap: 1200px;
  --h2: clamp(2.1rem, 1.3rem + 3vw, 3.6rem);
  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(--stone); color: var(--ink); font: 300 1.04rem/1.7 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: 500; text-wrap: balance; margin: 0; line-height: 1.04; letter-spacing: -.02em; }
h2 { font-size: var(--h2); }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--teal); color: #fff; padding: 8px 12px; }
.skip:focus { left: 16px; }

.top-in, .hero-in, .house-in, .menu-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-gr { font: italic 500 1.75rem/1 var(--f-display); color: var(--teal); letter-spacing: -.01em; }
.logo-sub { font-size: .64rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }

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

.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font: 500 .8rem/1 var(--f-body); letter-spacing: .08em; border: 1px solid var(--ink); padding: 9px 13px; border-radius: 999px; }
.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(--white); border: 1px solid var(--line); border-radius: 14px; min-width: 190px; box-shadow: 0 20px 40px rgba(19,62,67,.14); }
.lang-list button { width: 100%; display: flex; justify-content: space-between; gap: 16px; align-items: baseline; background: none; border: 0; border-radius: 8px; color: var(--ink); cursor: pointer; text-align: left; font: 400 .98rem/1 var(--f-body); padding: 10px; }
.lang-list button span { font-size: .72rem; font-weight: 500; color: var(--muted); }
.lang-list button:hover, .lang-list button[aria-current="true"] { background: var(--stone); }
.lang-list button[aria-current="true"] span { color: var(--terra); }

/* ---------- Hero ---------- */
.hero-in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 90px); align-items: center; padding-block: clamp(40px, 7vw, 110px); }
.hero-copy { min-width: 0; display: grid; gap: 22px; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: .8rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--teal); }
.tile-mini { width: 22px; height: 22px; color: var(--terra); }
.hero h1 { font-size: clamp(2.8rem, 1.4rem + 5vw, 5.8rem); }
.h1-a { display: block; }
.h1-b { display: block; font-style: italic; color: var(--terra); }
.lede { max-width: 32em; font-size: 1.12rem; color: #3E4546; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; font: 500 .98rem/1 var(--f-body); text-decoration: none; border-radius: 999px; border: 1px solid transparent; cursor: pointer; transition: background .2s, color .2s, transform .15s; }
.btn-solid { background: var(--teal); color: #fff; }
.btn-solid:hover { background: var(--teal-deep); transform: translateY(-1px); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 4px 0 0; padding: 0; font-size: .92rem; color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 500; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: #999; }
.status.is-open i { background: #3B9A60; box-shadow: 0 0 0 4px rgba(59,154,96,.16); }
.status.is-closed i { background: var(--terra); }
.hero-media { position: relative; min-height: 420px; }
.hm-a img { width: 86%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: 4px; }
.hm-b { position: absolute; right: 0; bottom: -24px; width: 46%; }
.hm-b img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; border: 8px solid var(--stone); }
.hm-tile { position: absolute; right: 6%; top: -26px; width: 84px; height: 84px; color: var(--terra); animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- House salad ---------- */
.house { background: var(--teal); color: #EAF1F0; }
.house-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 88px); align-items: center; padding-block: clamp(56px, 8vw, 110px); }
.house-photo img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; border-radius: 200px 200px 4px 4px; }
.house-copy { display: grid; gap: 16px; max-width: 36em; }
.kicker { font-size: .78rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: #F2B79A; }
.house h2 { color: #fff; }
.house-price { font: italic 500 2.2rem/1 var(--f-display); color: #F2B79A; }
.house-how { padding-top: 16px; border-top: 1px solid rgba(255,255,255,.2); color: #C8D9D7; font-size: .98rem; }

/* ---------- Menu ---------- */
.menu { background: var(--white); }
.menu-in { padding-block: clamp(56px, 8vw, 110px); }
.menu-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 32px; padding-bottom: 20px; border-bottom: 1px solid var(--ink); }
.menu-note { font-size: .9rem; color: var(--muted); max-width: 32em; }
.diet { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 22px 0 6px; }
.diet-l { font-size: .85rem; color: var(--muted); margin-right: 4px; }
.chip-f { display: inline-flex; align-items: center; gap: 7px; font: 400 .9rem/1 var(--f-body); color: var(--ink); background: var(--stone); border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; cursor: pointer; }
.chip-f svg { width: 15px; height: 15px; }
.chip-f.veg svg { color: #4F8A3A; }
.chip-f.vegan svg { color: #C49A3E; }
.chip-f.spicy svg { color: var(--terra); }
.chip-f[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-f[aria-pressed="true"] svg { color: #fff; }

.tabs { display: flex; gap: 4px; margin: 10px 0 6px; overflow-x: auto; scrollbar-width: none; position: sticky; top: calc(66px + env(safe-area-inset-top, 0px)); z-index: 5; background: var(--white); padding-block: 10px; border-bottom: 1px solid var(--line); box-shadow: 0 -14px 0 var(--white); }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer; color: var(--muted); font: 400 1rem/1 var(--f-body); padding: 11px 14px; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--teal); border-color: var(--terra); font-weight: 500; }
.tab.dim { opacity: .35; }
.part { padding-top: 30px; }
.panel h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); font-style: italic; color: var(--teal); margin: 0 0 10px; }
.items { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 64px; }
.item { padding: 12px 0; break-inside: avoid; min-width: 0; border-bottom: 1px solid var(--line); }
.item-row { display: flex; align-items: baseline; gap: 8px; }
.item-name { font-weight: 500; font-size: 1.03rem; line-height: 1.3; min-width: 0; }
.diet-mark { display: inline-flex; gap: 2px; align-self: center; }
.diet-mark svg { width: 15px; height: 15px; }
.diet-mark .veg { color: #4F8A3A; }
.diet-mark .vegan { color: #C49A3E; }
.diet-mark .spicy { color: var(--terra); }
.item-note { font-size: .75rem; color: var(--terra); }
.item-fill { flex: 1; min-width: 10px; border-bottom: 1px dotted rgba(29,35,36,.3); transform: translateY(-4px); }
.item-size { font-size: .82rem; color: var(--muted); white-space: nowrap; }
.item-price { font: 500 1.12rem/1 var(--f-display); white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--teal); }
.item-with { margin-top: 3px; font-size: .92rem; color: var(--muted); max-width: 38em; }
.part-note { margin-top: 12px; font-size: .9rem; font-style: italic; color: var(--muted); }
.diet-empty { padding: 30px 0; color: var(--muted); }

/* ---------- Gallery ---------- */
.gallery { background: var(--stone-2); }
.gallery-in { padding-block: clamp(56px, 8vw, 110px); }
.gallery h2 { margin-bottom: 30px; }
.grid { columns: 3 260px; column-gap: 14px; }
.shot { break-inside: avoid; margin: 0 0 14px; display: block; width: 100%; padding: 0; border: 0; border-radius: 4px; background: var(--stone); cursor: zoom-in; overflow: hidden; }
.shot img { width: 100%; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.shot:hover img { transform: scale(1.03); }

/* ---------- Visit ---------- */
.visit { background: var(--stone); }
.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-weight: 500; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.info dd { margin: 0; }
.phone { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.mini { display: inline-flex; gap: 6px; }
.chip { font: 500 .82rem/1 var(--f-body); text-decoration: none; border: 1px solid var(--ink); background: none; color: var(--ink); padding: 8px 13px; cursor: pointer; border-radius: 999px; }
.chip:hover { background: var(--ink); color: #fff; }
.book { color: var(--muted); }
.social { font-size: .95rem; }
.map { position: relative; min-height: 380px; border-radius: 4px; overflow: hidden; background: var(--stone-2); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map figcaption { position: absolute; left: 12px; bottom: 12px; background: var(--teal); color: #fff; padding: 6px 10px; border-radius: 4px; font-size: .86rem; }

/* ---------- Footer ---------- */
.foot { background: var(--teal-deep); color: #A9C1C0; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-block: 26px calc(26px + env(safe-area-inset-bottom, 0px)); font-size: .9rem; }
.foot .logo-gr { color: #fff; font-size: 1.5rem; }
.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(13, 30, 32, .92); }
.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: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; 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; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .hm-tile { animation: none; } }
@keyframes rise { from { transform: translateY(14px); opacity: .001; } to { transform: none; opacity: 1; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-in, .visit-in, .house-in { grid-template-columns: 1fr; }
  .hero-media { min-height: 0; margin-bottom: 30px; }
  .house-photo { max-width: 380px; }
  .items { columns: 1; }
  .map { min-height: 300px; }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .lang { margin-left: auto; }
  .logo-gr { font-size: 1.55rem; }
  .tabs { top: calc(62px + env(safe-area-inset-top, 0px)); }
  .info > div { grid-template-columns: 1fr; gap: 2px; }
  .foot .credit { margin-left: 0; }
  .btn { flex: 1 1 auto; }
  .hm-tile { width: 60px; height: 60px; top: -18px; }
}
