/* ---------------------------------------------------------
   Elia Restaurant, Pythagorio, Samos
   One idea: the harbour after dark, and an olive tree that
   grows one year per scroll step from 2006 to 2026.
--------------------------------------------------------- */
:root {
  --night: #08131c;      /* harbour after dark */
  --deep: #0d2233;       /* water */
  --sea: #2b4d66;        /* Aegean, for lines on dark */
  --mist: #e7ebdf;       /* text on dark */
  --paper: #eceee4;      /* sea-salt paper */
  --paper-2: #e1e6d8;
  --ink: #0f1c25;
  --ink-soft: rgba(15, 28, 37, 0.68);
  --lantern: #e3a23b;    /* the one warm light */

  --serif: "Bodoni Moda", "Times New Roman", serif;
  --sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --max: 1240px;
  --header-h: 68px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, figure, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--lantern);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------------------------------------------------------
   Buttons
--------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 999px;
  font: 500 15px/1 var(--sans);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.btn--lantern { background: var(--lantern); color: var(--night); }
.btn--lantern:hover { background: #f0b458; }
.btn--line { border-color: rgba(231, 235, 223, 0.45); color: var(--mist); }
.btn--line:hover { border-color: var(--mist); background: rgba(231, 235, 223, 0.08); }
.btn--ink { border-color: var(--ink); color: var(--ink); }
.btn--ink:hover { background: var(--ink); color: var(--paper); }

/* ---------------------------------------------------------
   Header
--------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  color: var(--mist);
  transition: background-color 0.35s, backdrop-filter 0.35s;
}
.site-header.is-solid {
  background: rgba(8, 19, 28, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 27px/1 var(--serif);
  text-decoration: none;
}
.brand svg { width: 22px; height: 22px; color: var(--lantern); }
.main-nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 34px); font-size: 15px; }
.main-nav a { text-decoration: none; }
.main-nav a:not(.reserve-btn) { opacity: 0.85; }
.main-nav a:not(.reserve-btn):hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
.reserve-btn {
  padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--lantern); color: var(--lantern);
  transition: background-color 0.25s, color 0.25s;
}
.reserve-btn:hover { background: var(--lantern); color: var(--night); }

/* ---------------------------------------------------------
   Hero
--------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
  background: var(--night);
  color: var(--mist);
  padding: 0 var(--gutter);
}
.hero-photo { position: absolute; inset: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 19, 28, 0.55) 0%, rgba(8, 19, 28, 0) 26%),
    linear-gradient(0deg, var(--night) 2%, rgba(8, 19, 28, 0.78) 30%, rgba(8, 19, 28, 0) 62%);
}
.hero-intro { position: relative; isolation: isolate; align-self: flex-end; max-width: 30rem; margin-bottom: clamp(8px, 2vw, 24px); }
.hero-intro::before {
  content: ""; position: absolute; z-index: -1; inset: -70px -60px -50px -70px;
  background: radial-gradient(closest-side, rgba(8, 19, 28, 0.86), rgba(8, 19, 28, 0));
}
.hero-lede { font: 400 clamp(1.15rem, 1.6vw, 1.4rem)/1.45 var(--serif); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.wordmark {
  position: relative;
  margin: 0 0 0 -0.04em;
  font: 400 clamp(9rem, 35vw, 34rem)/0.78 var(--serif);
  letter-spacing: -0.02em;
  color: var(--mist);
  padding-bottom: 0.06em;
  user-select: none;
}
.wordmark-glyphs { display: block; white-space: nowrap; }
.wordmark-glyphs > span { display: inline-block; }

/* The one page-load moment: the four letters rise out of the dark. */
html.js .wordmark-glyphs > span {
  opacity: 0;
  transform: translateY(0.22em);
  transition: opacity 1.4s cubic-bezier(0.2, 0.7, 0.2, 1), transform 1.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
html.js .wordmark-glyphs > span:nth-child(2) { transition-delay: 0.14s; }
html.js .wordmark-glyphs > span:nth-child(3) { transition-delay: 0.28s; }
html.js .wordmark-glyphs > span:nth-child(4) { transition-delay: 0.42s; }
html.js .hero-photo img { transform: scale(1.07); transition: transform 3.4s cubic-bezier(0.2, 0.6, 0.2, 1); }
html.js .hero-intro { opacity: 0; transition: opacity 1.2s 0.9s; }
html.js body.hero-ready .wordmark-glyphs > span { opacity: 1; transform: none; }
html.js body.hero-ready .hero-photo img { transform: none; }
html.js body.hero-ready .hero-intro { opacity: 1; }

/* ---------------------------------------------------------
   Chapter: 2006 to 2026, one tree
   js/main.js turns scroll into growth (0..1). Every limb, leaf
   group and olive carries --start / --span: the slice of that
   range in which it grows.
--------------------------------------------------------- */
.chapter {
  --grow: 1;
  --ground: 15svh;
  position: relative;
  background: linear-gradient(180deg, var(--night) 0%, #0b1d2b 55%, #123047 100%);
  color: var(--mist);
}
.chapter-sticky { position: relative; }
.stage { position: relative; height: 100svh; min-height: 560px; overflow: hidden; }

html.js .chapter.is-scrub { height: 560vh; }
html.js .chapter.is-scrub .chapter-sticky { position: sticky; top: 0; height: 100svh; }
html.js .chapter.is-scrub .stage { height: 100%; }

/* lantern light in the canopy, brightening as it fills */
.glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 34% 46% at 72% 42%, rgba(227, 162, 59, 0.16), rgba(227, 162, 59, 0) 70%);
  opacity: var(--grow);
}

.year {
  position: absolute; z-index: 1;
  left: var(--gutter);
  top: clamp(92px, 15svh, 150px);
  font: 400 clamp(6rem, 17vw, 17rem)/0.85 var(--serif);
  letter-spacing: -0.03em;
  color: var(--mist);
  user-select: none;
}
.digit { display: inline-block; width: 0.62em; text-align: center; }

.ground {
  position: absolute; left: 0; right: 0; bottom: var(--ground);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(231, 235, 223, 0.55) 18%, rgba(231, 235, 223, 0.55) 82%, transparent);
  transform-origin: 74% 50%;
}
html.js .chapter.is-scrub .ground { transform: scaleX(clamp(0, calc(var(--grow) / 0.08), 1)); }

.olive-tree {
  position: absolute; z-index: 1;
  right: 4vw; bottom: calc(var(--ground) - 1px);
  height: min(74svh, 820px); width: auto; max-width: 62vw;
}
.olive-reflection {
  position: absolute;
  right: 4vw; bottom: calc(var(--ground) - 1px);
  height: min(74svh, 820px); width: auto; max-width: 62vw;
  transform: scaleY(-1);
  transform-origin: 50% 100%;
  opacity: 0.26;
  /* local coordinates: the bottom edge is the trunk foot, which sits on the quay */
  -webkit-mask-image: linear-gradient(0deg, #000 0%, transparent 100%);
  mask-image: linear-gradient(0deg, #000 0%, transparent 100%);
  clip-path: inset(calc(100% - var(--ground)) 0 0 0);
  pointer-events: none;
}

/* colours */
.bark { stroke: #8a7d66; }
.bark-hi { stroke: #d3c7a8; opacity: 0.5; }
.bark-lo { stroke: #2f281f; opacity: 0.55; }
.leaf-a { fill: #6f8a5c; }
.leaf-b { fill: #a3b48c; }
.leaf-c { fill: #8aa072; }
.leaf-d { fill: #d5dec4; }
.grow-olive { fill: #4a3346; }

/* Growth is driven from js/main.js (it writes dashoffset / opacity / transform
   on the few limbs that are mid-growth each frame). Without JS the tree is
   simply drawn in full. */
.grow-path { stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
.grow-leaf, .grow-olive { transform-box: fill-box; transform-origin: 50% 50%; }

/* the story beats, one at a time */
.beats { padding: 40px var(--gutter) 72px; display: grid; gap: 28px; max-width: 42rem; }
.beat { font: 400 clamp(1.7rem, min(2.8vw, 5.4svh), 2.9rem)/1.2 var(--serif); letter-spacing: -0.005em; }

html.js .chapter.is-scrub .beats {
  position: absolute; z-index: 2;
  left: 0; bottom: calc(var(--ground) + 5svh);
  width: min(46rem, 43vw); padding: 0 var(--gutter);
  display: block;
}
html.js .chapter.is-scrub .beat {
  position: absolute; left: var(--gutter); right: 0; bottom: 0;
  opacity: min(
    clamp(0, calc((var(--grow) - var(--s)) / 0.04), 1),
    clamp(0, calc((var(--e) - var(--grow)) / 0.04), 1)
  );
  transform: translateY(calc((1 - min(
    clamp(0, calc((var(--grow) - var(--s)) / 0.04), 1),
    clamp(0, calc((var(--e) - var(--grow)) / 0.04), 1)
  )) * 14px));
}

@media (max-width: 860px) {
  .chapter { --ground: 31svh; }
  .year { top: 84px; font-size: clamp(5.2rem, 26vw, 9rem); }
  .olive-tree { right: 50%; transform: translateX(50%); height: min(62svh, 700px); max-width: 98vw; }
  .olive-reflection { display: none; }
  .glow { background: radial-gradient(ellipse 60% 40% at 50% 44%, rgba(227, 162, 59, 0.14), rgba(227, 162, 59, 0) 70%); }
  html.js .chapter.is-scrub .beats { bottom: 3svh; width: 100%; }
  html.js .chapter.is-scrub .beat { left: var(--gutter); right: var(--gutter); }
  .beat { font-size: clamp(1.4rem, 5.8vw, 1.9rem); }
}

/* ---------------------------------------------------------
   Story
--------------------------------------------------------- */
.story { padding: clamp(80px, 12vw, 170px) 0; }
.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 8vw, 120px);
  align-items: start;
}
.story-quote {
  font: 400 clamp(2.3rem, 5vw, 4.4rem)/1.08 var(--serif);
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.story-copy { display: grid; gap: 1.2em; max-width: 34rem; color: var(--ink-soft); padding-top: 0.6em; }
@media (max-width: 860px) { .story-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------
   The table: a pinned strip. Vertical scroll slides the dishes
   sideways (js/main.js). Without JS or with reduced motion it is
   an ordinary horizontally scrollable strip.
--------------------------------------------------------- */
.section-title {
  font: 400 clamp(2.6rem, 6vw, 5.2rem)/1 var(--serif);
  letter-spacing: -0.015em;
}
.gallery { --h: min(64svh, 700px); background: var(--night); color: var(--mist); }
.gallery-sticky {
  position: relative;
  height: 100svh; min-height: 560px;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x proximity;
  scroll-padding-left: var(--gutter);
  padding-top: calc(var(--header-h) + 4svh);
}
.gallery-track {
  display: flex; align-items: flex-start; gap: clamp(28px, 5vw, 72px);
  width: max-content;
  padding: 0 var(--gutter) 0;
}
.gallery-track > li { flex: none; scroll-snap-align: start; }

.gallery-intro { width: min(84vw, 30rem); align-self: center; padding-top: 4svh; }
.gallery-intro p { margin-top: 22px; color: rgba(231, 235, 223, 0.78); font-size: 1.05rem; max-width: 24rem; }

.panel figure { margin: 0; }
.panel-photo { height: var(--h); overflow: hidden; background: var(--deep); }
.panel--tall .panel-photo { width: calc(var(--h) * 0.78); }
.panel--wide .panel-photo { width: calc(var(--h) * 1.32); }
.panel-photo img { width: 100%; height: 100%; object-fit: cover; }
.panel figcaption {
  display: grid; grid-template-columns: 1fr auto; column-gap: 20px; row-gap: 4px;
  margin-top: 18px;
}
.panel--tall figcaption { width: calc(var(--h) * 0.78); }
.panel--wide figcaption { width: calc(var(--h) * 1.32); }
.panel-name { font: 400 clamp(1.5rem, 2.4vw, 2.2rem)/1.15 var(--serif); }
.panel-price { font: 500 1rem/2 var(--sans); color: var(--lantern); white-space: nowrap; }
.panel-desc { grid-column: 1 / -1; color: rgba(231, 235, 223, 0.72); font-size: 0.97rem; line-height: 1.45; max-width: 30rem; }

.gallery-end { width: min(84vw, 24rem); align-self: center; display: grid; gap: 22px; justify-items: start; padding-right: var(--gutter); }
.gallery-end p { color: rgba(231, 235, 223, 0.7); font-size: 0.95rem; }

.gallery-progress {
  display: none;
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(20px, 4svh, 40px);
  height: 1px; background: rgba(231, 235, 223, 0.2);
}
.gallery-progress span { display: block; height: 100%; background: var(--lantern); transform-origin: 0 50%; transform: scaleX(0); }

html.js .gallery.is-scrub .gallery-sticky { position: sticky; top: 0; overflow: hidden; scroll-snap-type: none; }
html.js .gallery.is-scrub .gallery-track { will-change: transform; }
html.js .gallery.is-scrub .gallery-progress { display: block; }
.panel-photo img { transform: scale(1.14); }

/* ---------------------------------------------------------
   The rest of the menu, in short
--------------------------------------------------------- */
.menu-short { padding: clamp(70px, 10vw, 140px) 0 clamp(70px, 10vw, 130px); }
.short-grid {
  margin-top: clamp(32px, 5vw, 64px);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
}
.short-grid h3 { font: 400 clamp(1.4rem, 2vw, 1.8rem)/1.15 var(--serif); padding-bottom: 14px; border-bottom: 1px solid rgba(15, 28, 37, 0.3); }
.short-grid li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(15, 28, 37, 0.12); color: var(--ink-soft); font-size: 0.97rem; line-height: 1.35; }
.short-grid li span:last-child { white-space: nowrap; color: var(--ink); font-weight: 500; }
.menu-foot {
  margin-top: 40px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
}
.menu-note { max-width: 32rem; font-size: 0.9rem; color: var(--ink-soft); }
@media (max-width: 960px) { .short-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .short-grid { grid-template-columns: 1fr; } .gallery { --h: min(56svh, 520px); } }

/* ---------------------------------------------------------
   Evenings
--------------------------------------------------------- */
.evenings { background: var(--paper-2); padding: clamp(70px, 10vw, 140px) 0; }
.evenings-grid {
  margin-top: clamp(36px, 6vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: start;
}
.evenings-big { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.evenings-side { display: grid; gap: 22px; margin-top: clamp(40px, 12vw, 180px); }
.evenings-side img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.evenings-side p { color: var(--ink-soft); font-size: 0.97rem; max-width: 24rem; }
@media (max-width: 860px) {
  .evenings-grid { grid-template-columns: 1fr; }
  .evenings-side { margin-top: 0; }
}

/* ---------------------------------------------------------
   Visit
--------------------------------------------------------- */
.visit { background: var(--deep); color: var(--mist); padding: clamp(70px, 10vw, 140px) 0; }
.visit-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 7vw, 100px);
  align-items: stretch;
}
.visit-info { display: grid; gap: 34px; align-content: start; justify-items: start; }
.facts { display: grid; gap: 18px; }
.facts dt { font-size: 0.88rem; color: rgba(231, 235, 223, 0.6); }
.facts dd { font: 400 1.3rem/1.35 var(--serif); }
.facts a { text-decoration: none; border-bottom: 1px solid rgba(231, 235, 223, 0.35); }
.facts a:hover { border-color: var(--lantern); }
.hours { border-collapse: collapse; width: 100%; max-width: 26rem; }
.hours th, .hours td { padding: 13px 0; border-top: 1px solid rgba(231, 235, 223, 0.16); text-align: left; font-weight: 400; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 1px solid rgba(231, 235, 223, 0.16); }
.hours td { text-align: right; font-family: var(--serif); font-size: 1.15rem; }
.visit-note { max-width: 26rem; color: rgba(231, 235, 223, 0.72); font-size: 0.97rem; }
.map-frame {
  width: 100%; min-height: 420px; height: 100%; border: 0;
  filter: grayscale(0.55) contrast(0.95) brightness(0.92);
}
@media (max-width: 860px) {
  .visit-grid { grid-template-columns: 1fr; }
  .map-frame { min-height: 320px; }
}

/* ---------------------------------------------------------
   Footer: the name again, cropped by the bottom of the page
--------------------------------------------------------- */
.site-footer { background: var(--night); color: var(--mist); padding-top: 34px; overflow: hidden; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: 0.92rem; color: rgba(231, 235, 223, 0.7); }
.footer-social { display: flex; gap: 22px; }
.footer-social a { text-decoration: none; }
.footer-social a:hover { color: var(--lantern); }
.footer-mark {
  margin-top: clamp(20px, 4vw, 48px);
  padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  font: 400 clamp(9rem, 38vw, 36rem)/0.74 var(--serif);
  letter-spacing: -0.02em;
  color: rgba(231, 235, 223, 0.08);
  white-space: nowrap;
  user-select: none;
  transform: translateY(0.08em);
}

/* ---------------------------------------------------------
   Menu page (menu.html)
--------------------------------------------------------- */
.page-head { background: var(--night); color: var(--mist); padding: calc(var(--header-h) + clamp(50px, 9vw, 120px)) 0 clamp(50px, 8vw, 100px); }
.page-head .section-title { font-size: clamp(3.4rem, 10vw, 9rem); }
.page-head p { margin-top: 22px; max-width: 34rem; color: rgba(231, 235, 223, 0.75); }
.full-menu { padding: clamp(50px, 8vw, 100px) 0 clamp(70px, 10vw, 140px); }
.menu-intro { max-width: 40rem; color: var(--ink-soft); margin-bottom: clamp(40px, 7vw, 80px); }
.course {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(20px, 5vw, 80px);
  padding: clamp(28px, 4vw, 48px) 0;
  border-top: 1px solid rgba(15, 28, 37, 0.16);
}
.course h2 { font: 400 clamp(1.9rem, 3.4vw, 2.8rem)/1.1 var(--serif); }
.course .wine-note { grid-column: 2; color: var(--ink-soft); max-width: 36rem; margin-bottom: 8px; }
.items { grid-column: 2; }
.items li { display: grid; grid-template-columns: 1fr auto; column-gap: 24px; padding: 14px 0; border-bottom: 1px solid rgba(15, 28, 37, 0.1); }
.items li:last-child { border-bottom: 0; }
.item-name { font: 400 1.35rem/1.25 var(--serif); }
.item-desc { grid-column: 1; color: var(--ink-soft); font-size: 0.95rem; }
.item-price { grid-row: 1; grid-column: 2; font-weight: 500; white-space: nowrap; }
.course-feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 72px); align-items: center; padding: clamp(28px, 4vw, 48px) 0; border-top: 1px solid rgba(15, 28, 37, 0.16); }
.course-feature img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.course-feature h2 { font: 400 clamp(1.9rem, 3.4vw, 2.8rem)/1.1 var(--serif); }
.course-feature p { margin-top: 14px; color: var(--ink-soft); max-width: 32rem; }
.course-feature .item-price { display: block; margin-top: 14px; font-size: 1.1rem; }
.cta-band { background: var(--deep); color: var(--mist); padding: clamp(70px, 10vw, 130px) 0; }
.cta-band h2 { font: 400 clamp(2.6rem, 6vw, 5rem)/1 var(--serif); }
.cta-band p { margin-top: 18px; max-width: 32rem; color: rgba(231, 235, 223, 0.75); }
.cta-band .hero-actions { margin-top: 30px; }
@media (max-width: 860px) {
  .course, .course-feature { grid-template-columns: 1fr; }
  .course .wine-note, .items { grid-column: 1; }
}

/* ---------------------------------------------------------
   Narrow screens: header
--------------------------------------------------------- */
@media (max-width: 720px) {
  .main-nav a:not(.reserve-btn) { display: none; }
  .reserve-num { display: none; }
  .hero { padding-bottom: 6px; }
  .hero-intro { align-self: stretch; max-width: none; }
}
