/* Αρμυρήθρα — «ζωντανός» κατάλογος, πρώτα για κινητό.
   Το χρώμα της σελίδας είναι μετρημένο πάνω στο χαρτί των video, ώστε οι άκρες τους να σβήνουν μέσα της. */
:root {
  --paper: #E7DDCF;
  --paper-hi: #F1EBE0;
  --ink: #2A251F;
  --ink-2: #5F564B;
  --ink-3: #8A7F71;
  --line: #B9A88D;
  --gold: #A0814F;
  --sea: #55705F;
  --serif: "EB Garamond", "Iowan Old Style", Georgia, serif;
  --ui: "Ysabeau Office", "Segoe UI", system-ui, sans-serif;
  --col: 560px;
  --bar-h: 100px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + env(safe-area-inset-top, 0px)); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background-color: var(--paper);
  /* λεπτός κόκκος χαρτιού */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .29 0 0 0 0 .2 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font: 400 18px/1.45 var(--serif);
  font-kerning: normal;
  font-variant-ligatures: common-ligatures;
}
/* η ζώνη της εγκοπής πάνω από τη μπάρα, ώστε το περιεχόμενο να μη φαίνεται από κάτω της */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--paper); }
img, video, svg { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.ic { width: 1em; height: 1em; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 4px; font: 500 14px var(--ui); }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--sea); outline-offset: 3px; }

/* ---------- εξώφυλλο ---------- */
.cover { min-height: 100vh; min-height: 100svh; padding: max(14px, env(safe-area-inset-top)) 14px 14px; display: grid; grid-template-columns: minmax(0, 1fr); }
.cover__frame {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 48px 16px 96px; min-width: 0;
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 5px var(--paper), inset 0 0 0 6px var(--line);
  max-width: var(--col); width: 100%; margin: 0 auto;
}
.cover__frame::before, .cover__frame::after {
  content: ""; position: absolute; width: 22px; height: 22px; border: 1px solid var(--line);
  transform: rotate(45deg); background: var(--paper); left: 50%; margin-left: -11px;
}
.cover__frame::before { top: -11px; }
.cover__frame::after { bottom: -11px; }
.cover__sprig { width: 74px; height: 74px; color: var(--sea); margin-bottom: 18px; }
.cover__name {
  margin: 0; font-weight: 500; font-size: clamp(30px, 9.6vw, 60px); line-height: 1;
  letter-spacing: .12em; text-transform: uppercase; padding-left: .12em;
}
.cover__sub {
  display: flex; align-items: center; gap: 10px; margin: 18px 0 0; white-space: nowrap;
  font: 500 12px/1.3 var(--ui); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2);
}
.cover__sub::before, .cover__sub::after { content: ""; width: 22px; height: 1px; background: var(--line); }
@media (max-width: 420px) { .cover__sub::before, .cover__sub::after { display: none; } }
.cover__loc { margin: 10px 0 0; font-style: italic; font-size: 19px; color: var(--ink-2); }
.cover__table { margin: 26px 0 0; padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px; font: 500 13px var(--ui); letter-spacing: .12em; text-transform: uppercase; }
.cover__hint {
  position: absolute; left: 0; right: 0; bottom: 30px; display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-decoration: none; font-style: italic; font-size: 16.5px; color: var(--ink-2); padding: 0 24px; text-wrap: balance;
}
.cover__hint .ic { width: 22px; height: 22px; color: var(--gold); }
@media (prefers-reduced-motion: no-preference) { .cover__hint .ic { animation: nudge 2.2s ease-in-out infinite; } }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ---------- σταθερή μπάρα ---------- */
.bar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgba(231, 221, 207, .9);
  -webkit-backdrop-filter: blur(10px) saturate(1.1); backdrop-filter: blur(10px) saturate(1.1);
  border-bottom: 1px solid rgba(185, 168, 141, .55);
  padding-top: env(safe-area-inset-top);
}
.bar__row { max-width: var(--col); margin: 0 auto; display: flex; align-items: center; gap: 10px; padding: 9px 16px 4px; }
.bar__brand { display: flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 500; font-size: 15px; letter-spacing: .16em; text-transform: uppercase; }
.bar__brand svg { width: 22px; height: 22px; color: var(--sea); }
.bar__table { font: 500 12px var(--ui); letter-spacing: .08em; color: var(--ink-2); padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px; }
.lang { margin-left: auto; display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang button { border: 0; background: none; padding: 6px 11px; min-height: 32px; font: 600 12px var(--ui); letter-spacing: .08em; color: var(--ink-2); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.bar__tabs {
  max-width: var(--col); margin: 0 auto; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  padding: 2px 12px 8px; scroll-snap-type: x proximity;
}
.bar__tabs::-webkit-scrollbar { display: none; }
.bar__tabs a {
  flex: none; scroll-snap-align: start; text-decoration: none; padding: 8px 12px; min-height: 40px; display: flex; align-items: center;
  font: 500 13px var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
  border-bottom: 1.5px solid transparent;
}
.bar__tabs a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--gold); }

/* ---------- κατηγορίες ---------- */
main { max-width: var(--col); margin: 0 auto; }
.cat { padding: 40px 0 8px; }
.cat__h { text-align: center; margin: 0 0 6px; padding: 0 20px; }
.cat__h span { display: block; font-weight: 500; font-size: 15px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-2); padding-left: .3em; }
.cat__h svg { width: 30px; height: 30px; margin: 10px auto 0; color: var(--sea); opacity: .8; }

/* διακοσμητικό ── ◆ ── όπως στον έντυπο κατάλογο */
.orn { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 10px auto; }
.orn::before, .orn::after { content: ""; width: 44px; height: 1px; background: var(--line); }
.orn > i { width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }
.legal .orn::before { width: 64px; }

/* ---------- πιάτο ---------- */
.dish { text-align: center; padding: 0 0 46px; }
.dish__stage {
  position: relative; width: 100%; aspect-ratio: 1 / 1; margin: 0 auto;
  background: url("../media/dishes/paper.webp") center / cover no-repeat;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.dish__stage {
  /* οι άκρες σβήνουν μέσα στο χαρτί της σελίδας */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%), linear-gradient(180deg, transparent 0, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%), linear-gradient(180deg, transparent 0, #000 10%, #000 90%, transparent 100%);
  mask-composite: intersect;
}
.dish__v, .dish__a, .dish__still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dish__v { background: transparent; }
.dish__still { opacity: 0; }
/* το animation καρέ-καρέ σε canvas, όπου δεν παίζει το video (Messenger κ.λπ., βλ. menu.js) */
.dish__a { opacity: 0; }
.anim-img .dish__v { display: none; }
.dish.is-anim .dish__a, .dish.is-end .dish__still { opacity: 1; }
.dish.is-still .dish__v { display: none; }
.dish.is-still .dish__still { opacity: 1; }
.dish.is-still.is-pop .dish__still { animation: pop 1.1s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes pop {
  0% { opacity: 0; transform: scale(.55); filter: blur(10px); }
  60% { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: scale(1); }
}
.dish__replay {
  position: absolute; right: 13%; bottom: 13%; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid rgba(160, 129, 79, .45);
  background: rgba(241, 235, 224, .82); color: var(--ink-2); cursor: pointer;
  opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
}
.dish__replay svg { width: 18px; height: 18px; }
.dish.is-done .dish__replay { opacity: 1; visibility: visible; }
.dish.is-still:not(.can-play) .dish__replay { display: none; }
.dish.is-wait .dish__still { opacity: 0; }
.dish__body { padding: 0 24px; margin-top: -4%; position: relative; }
.dish__n { margin: 0; font-weight: 500; font-size: 27px; line-height: 1.15; letter-spacing: .005em; }
.dish__n .mk { color: var(--gold); margin-left: 2px; }
.dish__d { margin: 0 auto; max-width: 30ch; text-wrap: balance; font-style: italic; font-size: 18px; line-height: 1.4; color: var(--ink-2); }
.dish__p { margin: 10px 0 0; font-size: 21px; font-weight: 500; font-variant-numeric: lining-nums; letter-spacing: .02em; }
.dish__meta { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 12px; font: 500 12.5px/1.2 var(--ui); color: var(--ink-3); letter-spacing: .02em; }
.dish__meta li { display: flex; align-items: center; gap: 4px; }
.dish__meta svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tags { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.tags li { font: 600 11px/1 var(--ui); letter-spacing: .14em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; border: 1px solid rgba(85, 112, 95, .45); color: var(--sea); }
.tags li.chef { border-color: rgba(160, 129, 79, .55); color: var(--gold); }

/* ---------- κρασιά ---------- */
.wines { list-style: none; margin: 18px 0 0; padding: 0 22px; }
.wines li { display: grid; grid-template-columns: 1fr auto auto; gap: 2px 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px dotted var(--line); }
.wines li:last-child { border-bottom: 0; }
.wines b { grid-column: 1; grid-row: 1; font-weight: 500; font-size: 21px; }
.wines small { grid-column: 1; grid-row: 2; font-style: italic; font-size: 16px; color: var(--ink-2); }
.wines li > .pr:nth-child(3) { grid-column: 2; }
.wines li > .pr:nth-child(4) { grid-column: 3; }
.wines .pr { grid-row: 1 / span 2; font-size: 18px; font-variant-numeric: lining-nums tabular-nums; text-align: right; min-width: 64px; }
.wines .pr.na { color: var(--ink-3); }
.wines__head { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; padding: 0 22px; font: 600 11px var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.wines__head span { text-align: right; min-width: 64px; }
.wines__head span:first-child { text-align: left; }
.wines__al { margin: 14px 22px 0; text-align: center; font: 500 12.5px var(--ui); color: var(--ink-3); }

/* ---------- νομικά ---------- */
.legal { margin: 30px 16px 0; padding: 30px 20px 26px; border: 1px solid var(--line); box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5px rgba(185, 168, 141, .6); text-align: center; }
.legal .orn { margin-top: 0; }
.legal h2 { margin: 6px 0 14px; font-weight: 500; font-size: 15px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-2); }
.legal h3 { margin: 26px 0 8px; font-weight: 500; font-size: 13px; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-2); }
.legal__notes { list-style: none; margin: 0; padding: 0; font-size: 16.5px; line-height: 1.45; color: var(--ink-2); }
.legal__notes li + li { margin-top: 8px; }
.legal__notes .mk { color: var(--gold); font-weight: 600; }
.legal__p { margin: 0 0 12px; font-size: 16px; font-style: italic; color: var(--ink-2); }
.legal__al { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; text-align: left; font: 500 13px var(--ui); color: var(--ink-2); }
.legal__al li { display: flex; align-items: center; gap: 7px; }
.legal__al svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; color: var(--ink-3); }
.legal__receipt { margin: 24px 0 0; padding: 14px 10px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font: 600 11.5px/1.5 var(--ui); letter-spacing: .04em; }
.legal__receipt p { margin: 0; }
.legal__receipt p + p { margin-top: 6px; color: var(--ink-2); font-weight: 500; }
.legal__meta { margin: 14px 0 0; font: 500 12.5px/1.6 var(--ui); color: var(--ink-3); }

/* ---------- υποσέλιδο ---------- */
.ftr { text-align: center; padding: 46px 20px calc(40px + env(safe-area-inset-bottom)); font-size: 16px; color: var(--ink-2); }
.ftr p { margin: 4px 0; }
.ftr a { text-decoration: none; border-bottom: 1px solid var(--line); }
.ftr__sprig { width: 34px; height: 34px; margin: 0 auto 6px; color: var(--sea); }
.ftr__name { font-weight: 500; font-size: 17px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
.ftr__demo { margin-top: 16px !important; font: 500 12px var(--ui); letter-spacing: .06em; color: var(--ink-3); }

/* μεγαλύτερες οθόνες: ίδια στήλη, λίγο περισσότερος αέρας */
@media (min-width: 700px) {
  .cover { padding: 28px; }
  .dish { padding-bottom: 64px; }
  .dish__n { font-size: 30px; }
}

/* ?diag=1: τι βλέπει το κινητό (menu.js) */
.diag { position: fixed; z-index: 99; left: 8px; right: 8px; bottom: 8px; max-height: 45vh; overflow: auto; margin: 0; padding: 8px 10px; font: 11px/1.4 ui-monospace, Menlo, monospace; white-space: pre-wrap; word-break: break-all; background: #fff; color: #000; border: 1px solid #000; }
