/* The Ritualist, Rhodes Old Town. Forest at night: the old tree over the courtyard, leaves,
   warm string lights and fireflies; the sage-green menu board with the gold grape-and-R mark;
   minimal, quiet type like their printed menu. */
:root {
  /* Brand tokens — change these per restaurant */
  --night: #141D17;
  --pine: #1D2A21;
  --pine-2: #253629;
  --moss: #7D9B76;           /* their menu board */
  --sage: #B5C7AC;
  --bark: #6B5340;
  --glow: #F4D38E;           /* string lights */
  --gold: #D2B474;           /* their mark */
  --cream: #EFEADF;
  --ink: #141D17;
  --muted: #A8B3A4;
  --line: rgba(239, 234, 223, .14);

  --f-display: "EB Garamond", Garamond, Georgia, serif;
  --f-body: "Manrope", "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: 1180px;
  --h2: clamp(2.1rem, 1.4rem + 2.8vw, 3.6rem);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--cream); font: 400 1rem/1.65 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; }
h2 { font-size: var(--h2); }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .03em; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--glow); color: var(--ink); padding: 8px 12px; }
.skip:focus { left: 16px; }

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

/* Leaves, for the canopy and backgrounds */
.leaves, .origins, .visit {
  background-color: var(--pine);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='160' viewBox='0 0 180 160'%3E%3Cg fill='%23B5C7AC' fill-opacity='.05'%3E%3Cpath d='M20 40c10-14 30-16 44 0-14 16-34 14-44 0Z' transform='rotate(-25 42 40)'/%3E%3Cpath d='M110 30c10-14 30-16 44 0-14 16-34 14-44 0Z' transform='rotate(30 132 30)'/%3E%3Cpath d='M60 110c10-14 30-16 44 0-14 16-34 14-44 0Z' transform='rotate(-60 82 110)'/%3E%3Cpath d='M140 120c10-14 30-16 44 0-14 16-34 14-44 0Z' transform='rotate(10 162 120)'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 180px 160px;
}

/* ---------- Logo ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 22px; height: 34px; color: var(--gold); flex: none; }
.logo { font: italic 500 1.65rem/1 var(--f-display); color: var(--cream); letter-spacing: .01em; }

/* ---------- Header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--night); }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--night) 90%, transparent); backdrop-filter: blur(10px); 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 .82rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; }
.nav a:hover { color: var(--glow); }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font: 700 .8rem/1 var(--f-body); letter-spacing: .1em; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--cream); }
.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: var(--pine-2); border: 1px solid var(--line); border-radius: 14px; min-width: 200px; box-shadow: 0 20px 40px rgba(0,0,0,.4); }
.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(--cream); cursor: pointer; text-align: left; font: 500 .98rem/1 var(--f-body); padding: 11px 12px; }
.lang-list button span { font-size: .72rem; font-weight: 700; color: var(--muted); }
.lang-list button:hover, .lang-list button[aria-current="true"] { background: rgba(255,255,255,.06); }
.lang-list button[aria-current="true"] span { color: var(--glow); }

/* ---------- Hero: the old tree at dusk ---------- */
.hero { position: relative; min-height: min(92vh, 820px); display: grid; align-items: end; overflow: hidden; background: var(--night); }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; filter: saturate(.9); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse at 30% 30%, transparent 30%, rgba(14,20,16,.5) 80%), linear-gradient(0deg, rgba(14,20,16,.95) 0%, rgba(14,20,16,.55) 45%, rgba(14,20,16,.15) 75%); }
/* A canopy of leaves hanging over the top */
.canopy { position: absolute; z-index: 2; left: 0; right: 0; top: -10px; height: 120px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='120' viewBox='0 0 260 120'%3E%3Cg fill='%23141D17'%3E%3Cpath d='M0 0h260v22c-20 6-34 2-50 12-10 6-24 4-34 14-14-10-30-6-44-16-16 8-30 4-46 14-12-8-26-4-38-14C34 36 16 30 0 32Z'/%3E%3Cpath d='M40 30c6-12 22-14 32 0-10 14-26 12-32 0Z' transform='rotate(70 56 30)'/%3E%3Cpath d='M120 40c6-12 22-14 32 0-10 14-26 12-32 0Z' transform='rotate(100 136 40)'/%3E%3Cpath d='M200 34c6-12 22-14 32 0-10 14-26 12-32 0Z' transform='rotate(60 216 34)'/%3E%3Cpath d='M86 50c5-10 18-12 26 0-8 12-21 10-26 0Z' transform='rotate(110 99 50)'/%3E%3C/g%3E%3C/svg%3E") repeat-x 0 0 / 260px 120px; opacity: .92; }
/* Fireflies */
.flies { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.flies i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 10px 3px rgba(244,211,142,.7); animation: drift 9s ease-in-out infinite alternate, blink 3s ease-in-out infinite; }
@keyframes drift { 0% { transform: translate(0, 0); } 50% { transform: translate(22px, -16px); } 100% { transform: translate(-14px, 12px); } }
@keyframes blink { 0%, 100% { opacity: .15; } 50% { opacity: 1; } }
.hero-in { position: relative; z-index: 3; width: 100%; padding-block: 160px clamp(44px, 7vw, 90px); }
.hero-copy { max-width: 640px; display: grid; gap: 18px; }
.eyebrow { font: 700 .78rem/1.3 var(--f-body); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.hero h1 { font-size: clamp(3rem, 1.6rem + 5.4vw, 6.2rem); color: #FBF7EE; }
.h1-a { display: block; }
.h1-b { display: block; font-style: italic; color: var(--glow); }
.lede { max-width: 34em; color: #DCD8CC; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 0 26px; font: 700 .82rem/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; border-radius: 999px; border: 1px solid transparent; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.btn-solid { background: var(--glow); color: var(--ink); box-shadow: 0 0 30px rgba(244,211,142,.3); }
.btn-solid:hover { background: #FFE3A6; box-shadow: 0 0 40px rgba(244,211,142,.5); }
.btn-line { border-color: rgba(239,234,223,.45); color: var(--cream); }
.btn-line:hover { border-color: var(--glow); color: var(--glow); }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 2px 0 0; padding: 0; font-size: .92rem; color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 9px; color: var(--cream); font-weight: 600; }
.status i { width: 9px; height: 9px; border-radius: 50%; background: #999; }
.status.is-open i { background: #9BE08F; box-shadow: 0 0 10px 2px rgba(155,224,143,.6); }
.status.is-closed i { background: #E0877A; }

/* ---------- Menu: the sage board ---------- */
.menu { padding: clamp(48px, 7vw, 96px) var(--gutter-r) clamp(48px, 7vw, 96px) var(--gutter); background: var(--night); }
.menu-card { max-width: 980px; margin-inline: auto; background: var(--moss); color: var(--ink); border-radius: 6px; padding: clamp(34px, 5vw, 64px) clamp(20px, 5vw, 64px) clamp(28px, 4vw, 48px); box-shadow: 0 30px 70px rgba(0,0,0,.45), inset 0 0 0 1px rgba(0,0,0,.08);
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px); background-size: 5px 5px; }
.menu-head { display: grid; justify-items: center; text-align: center; gap: 6px; }
.menu-mark { width: 34px; height: 52px; color: var(--gold); filter: drop-shadow(0 1px 0 rgba(0,0,0,.25)); margin-bottom: 6px; }
.menu-head h2 { color: var(--ink); }
.menu-note { color: #2F3D31; font-size: .9rem; }
.tabs { display: flex; gap: 4px; margin: 26px 0 6px; overflow-x: auto; scrollbar-width: none; position: sticky; top: calc(60px + env(safe-area-inset-top, 0px)); z-index: 5; background: var(--moss); padding-block: 10px; border-bottom: 1px solid rgba(20,29,23,.25); justify-content: safe center; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; background: transparent; border: 1px solid transparent; border-radius: 999px; cursor: pointer; color: var(--ink); font: 700 .78rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; padding: 11px 14px; }
.tab:hover { border-color: rgba(20,29,23,.35); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--glow); }
.part { padding-top: 26px; }
.panel h3 { font: italic 500 clamp(1.6rem, 1.3rem + 1vw, 2.1rem)/1 var(--f-display); text-align: center; margin: 0 0 14px; }
.items { list-style: none; margin: 0 auto; padding: 0; max-width: 640px; text-align: center; }
.item { padding: 12px 0; break-inside: avoid; border-bottom: 1px solid rgba(20,29,23,.14); }
.item:last-child { border-bottom: 0; }
.item.flash { animation: flash 1.8s ease-out; }
@keyframes flash { 0%, 30% { background: rgba(244,211,142,.55); } 100% { background: transparent; } }
.item-row { display: flex; justify-content: center; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.item-name { font: 700 1.02rem/1.3 var(--f-body); }
.item-fill { display: none; }
.item-size { font-size: .8rem; color: #2F3D31; }
.item-price { font: 600 1.15rem/1 var(--f-display); font-variant-numeric: tabular-nums; }
.item-with { margin-top: 4px; font-size: .9rem; color: #263328; }
.part-note { margin-top: 10px; font-size: .88rem; color: #2F3D31; text-align: center; font-style: italic; }
.menu-more { margin: 30px auto 0; text-align: center; font: italic 500 1.12rem/1.4 var(--f-display); color: var(--ink); max-width: 34em; }

/* ---------- Lights across Greece ---------- */
.origins-in { padding-block: clamp(56px, 8vw, 110px); display: grid; gap: 30px; }
.origins-head { display: grid; gap: 10px; max-width: 40em; }
.origins-head p { color: var(--muted); }
.night { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 22px; align-items: stretch; }
.night-map { position: relative; aspect-ratio: 1.15; border-radius: 18px; background: radial-gradient(ellipse at 60% 60%, #1E3326 0%, #111A14 75%); border: 1px solid var(--line); overflow: hidden;
  background-image: radial-gradient(ellipse at 60% 60%, rgba(30,51,38,.9) 0%, rgba(17,26,20,1) 75%), radial-gradient(rgba(181,199,172,.18) 1px, transparent 1px); background-size: auto, 22px 22px; background-blend-mode: normal, normal; }
.light { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; border: 0; background: none; cursor: pointer; padding: 0; }
.light::before { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 14px 4px rgba(244,211,142,.55); transition: transform .2s, box-shadow .2s; }
.light:hover::before { transform: scale(1.3); }
.light.on::before { background: #fff; transform: scale(1.5); box-shadow: 0 0 22px 8px rgba(244,211,142,.85); }
.light-name { position: absolute; left: 50%; top: 34px; transform: translateX(-50%); white-space: nowrap; font: 600 .72rem/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.light.on .light-name { color: var(--glow); }
.night-card { background: var(--pine-2); border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px; display: grid; gap: 10px; align-content: start; }
.nc-place { font: 700 .76rem/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.nc-what { font-size: clamp(1.7rem, 1.4rem + 1vw, 2.2rem); color: var(--glow); }
.nc-dish { color: var(--cream); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.nc-dish b { font-weight: 700; }
.nc-price { font: 600 1.15rem/1 var(--f-display); color: var(--gold); margin-left: auto; }
.nc-with { font-size: .9rem; color: var(--muted); }
.nc-go { justify-self: start; margin-top: 6px; background: none; border: 0; border-bottom: 1px solid var(--glow); color: var(--glow); font: 700 .78rem/1.6 var(--f-body); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; padding: 0; }

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

/* ---------- 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 solid var(--line); }
.info dt { font: 700 .72rem/1.6 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.info dd { margin: 0; }
.phone { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.mini { display: inline-flex; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 7px; font: 700 .78rem/1 var(--f-body); letter-spacing: .06em; text-decoration: none; border: 1px solid var(--line); background: transparent; color: var(--cream); padding: 9px 13px; cursor: pointer; border-radius: 999px; }
.chip:hover { border-color: var(--glow); color: var(--glow); }
.chip svg { width: 16px; height: 16px; }
.map { position: relative; min-height: 380px; border-radius: 18px; overflow: hidden; background: var(--pine-2); border: 1px solid var(--line); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map figcaption { position: absolute; left: 12px; bottom: 12px; background: var(--night); color: var(--cream); padding: 6px 12px; border-radius: 999px; font-size: .8rem; }

/* ---------- Footer ---------- */
.foot { background: #0E1510; color: var(--muted); border-top: 1px solid var(--line); }
.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: .88rem; }
.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(8, 12, 9, .92); }
.lightbox img { max-height: 88vh; width: auto; margin: auto; border-radius: 10px; }
.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(--glow); color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise 1s cubic-bezier(.2,.7,.2,1) both; }
  .hero-copy > *:nth-child(2) { animation-delay: .08s; }
  .hero-copy > *:nth-child(3) { animation-delay: .16s; }
  .hero-copy > *:nth-child(4) { animation-delay: .24s; }
  .hero-copy > *:nth-child(5) { animation-delay: .32s; }
  .light::before { animation: blink 3.4s ease-in-out infinite; }
  .light:nth-child(3n)::before { animation-delay: -1.2s; }
  .light:nth-child(3n+1)::before { animation-delay: -2.3s; }
  .light.on::before { animation: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@keyframes rise { from { transform: translateY(14px); opacity: .001; } to { transform: none; opacity: 1; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .visit-in, .night { grid-template-columns: 1fr; }
  .map { min-height: 300px; }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .lang { margin-left: auto; }
  .logo { font-size: 1.45rem; }
  .hero { min-height: 680px; }
  .hero-in { padding-top: 130px; }
  .canopy { height: 90px; background-size: 200px 92px; }
  .tabs { top: calc(58px + env(safe-area-inset-top, 0px)); justify-content: flex-start; }
  .info > div { grid-template-columns: 1fr; gap: 2px; }
  .foot .credit { margin-left: 0; }
  .btn { flex: 1 1 auto; }
  .menu { padding-inline: 10px; }
  .menu-card { padding-inline: 16px; }
  .night-map { aspect-ratio: 1; }
  .light-name { font-size: .62rem; top: 30px; }
}
.light.up .light-name { top: auto; bottom: 34px; }
