/* Shared structure for all versions. Each version sets the colour tokens
   and adds its own decoration on top. */
:root {
  --bg: #13100d;
  --text: #efe6d6;
  --soft: #b9ad9b;
  --faint: #7d7163;
  --accent: #e3a35a;
  --accent-soft: rgba(227, 163, 90, .13);
  --line: rgba(239, 230, 214, .11);
  --leader: rgba(239, 230, 214, .2);
  --card-bg: linear-gradient(180deg, rgba(42,32,24,.55), rgba(28,23,18,.55));
  --card-border: rgba(239, 230, 214, .11);
  --card-shadow: 0 1.5rem 3rem rgba(0,0,0,.25);
  --photo-bg: #2a2018;
  --logo-color: #efe6d6;
  --moon-filter: sepia(1) saturate(2.1) hue-rotate(-14deg) brightness(1.02);
  --moon-glow: 0 0 1.6rem rgba(240,180,95,.35), 0 0 5rem rgba(227,163,90,.22);
  --display: "Anton", Impact, "Arial Narrow", sans-serif;
  --font: "Rubik", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 300 1rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.page { position: relative; z-index: 2; }
.wrap { width: min(54rem, 100% - 2rem); margin-inline: auto; }

/* ——— header and logo */
.hero { position: relative; padding: 2.6rem 0 1.4rem; text-align: center; }
.logo {
  display: inline-block;
  position: relative;
  margin: 0;
  padding-right: 1.1em;
  text-align: left;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3.2rem, 12vw, 4.8rem);
  line-height: .94;
  letter-spacing: .005em;
  color: var(--logo-color);
  -webkit-box-reflect: below .06em linear-gradient(transparent 50%, rgba(0,0,0,.3));
}
.logo span { display: block; white-space: nowrap; }
.logo__moon {
  position: absolute;
  top: -.34em; right: -.05em;
  width: 1.2em; height: 1.2em;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--moon-glow);
}
/* the NASA photo has a dark margin around the disc — crop it away */
.logo__moon img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.16);
  filter: var(--moon-filter);
}
.hero__line {
  /* leave room for the logo's reflection */
  margin: clamp(3.4rem, 12vw, 4.8rem) auto 0;
  max-width: 22rem;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--soft);
}
.hero__line em { color: var(--text); }
.hero__meta {
  margin: .9rem 0 0;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .3rem 1rem;
  font-size: .85rem;
  color: var(--faint);
}
.hero__open { display: inline-flex; align-items: center; gap: .45rem; color: var(--soft); }
/* ——— language switch: pinned to the corner, above the page, below the lightbox */
.lang-switch {
  position: fixed; z-index: 8;
  top: calc(.9rem + env(safe-area-inset-top));
  right: calc(.9rem + env(safe-area-inset-right));
  padding: .3rem .6rem;
  font-family: var(--display); font-size: .8rem; letter-spacing: .06em;
  color: var(--soft); text-decoration: none;
  background: rgba(19, 16, 13, .6);
  border: 1px solid var(--card-border); border-radius: .25rem;
  backdrop-filter: blur(6px);
  transition: color .2s, border-color .2s;
}
.lang-switch:hover, .lang-switch:focus-visible { color: var(--accent); border-color: var(--accent); }
.dot { width: .45rem; height: .45rem; border-radius: 50%; background: var(--faint); }
.dot.is-on { background: var(--accent); box-shadow: 0 0 .7rem var(--accent); }

/* ——— headings in the sign's typeface */
h2 {
  margin: 0 0 .9rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.7rem, 4.6vw, 2.2rem);
  line-height: 1;
  letter-spacing: .01em;
  text-transform: lowercase;
}
h2 small {
  display: inline-block;
  margin-left: .5rem;
  font-family: var(--font);
  font-size: .9rem;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
  color: var(--accent);
  vertical-align: .35em;
}

section { padding: 1.6rem 0; }

.intro {
  margin: 0 auto;
  max-width: 30rem;
  text-align: center;
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--soft);
}
.intro strong { display: block; margin-bottom: .2rem; font-weight: 500; color: var(--text); }
.intro em { color: var(--text); }

.card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: .7rem;
  padding: 1.4rem 1.3rem;
  box-shadow: var(--card-shadow);
}
.board { display: grid; gap: 1rem; }
@media (min-width: 48rem) {
  .board { grid-template-columns: 1.5fr 1fr; align-items: stretch; }
  .card { padding: 1.6rem 1.7rem; }
}

.menu { list-style: none; margin: 0; padding: 0; }
.menu li + li { margin-top: .8rem; }
.menu .row { display: flex; align-items: baseline; gap: .5rem; }
.menu h3 { margin: 0; font-size: 1rem; font-weight: 500; white-space: nowrap; }
.menu .leader, .hours .leader { flex: 1; border-bottom: 1px dotted var(--leader); transform: translateY(-.25rem); }
.menu .tag { font-size: .78rem; color: var(--accent); white-space: nowrap; }
.menu p { margin: .1rem 0 0; font-size: .92rem; line-height: 1.45; color: var(--soft); }

.hours { list-style: none; margin: 0; padding: 0; font-size: .95rem; }
.hours li { display: flex; align-items: baseline; gap: .5rem; padding: .28rem 0; }
.hours .day { font-weight: 400; }
.hours .time { font-variant-numeric: tabular-nums; color: var(--soft); }
.hours li.is-today .day, .hours li.is-today .time { color: var(--accent); font-weight: 500; }
.hours li.is-closed .day, .hours li.is-closed .time { color: var(--faint); font-style: italic; }
.pay, .smoke { margin: .9rem 0 0; font-size: .9rem; color: var(--soft); }
.pay + .smoke { margin-top: .3rem; }

/* ——— big photos */
.gallery {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: .5rem;
}
@media (min-width: 40rem) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery li:first-child, .gallery li:last-child { grid-column: 1 / -1; }
  .gallery li:first-child img, .gallery li:last-child img { aspect-ratio: 16 / 9; }
  .gallery li:last-child img { object-position: center 60%; }
}
.gallery a { display: block; overflow: hidden; border-radius: .5rem; background: var(--photo-bg); }
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: brightness(.92);
  transition: filter .5s ease, transform 1s ease;
}
.gallery a:hover img, .gallery a:focus-visible img { filter: brightness(1); transform: scale(1.015); }

/* ——— find us */
.find { display: grid; gap: 1rem; align-items: center; }
@media (min-width: 40rem) { .find { grid-template-columns: 1fr auto; } }
.address { font-style: normal; font-size: 1.05rem; line-height: 1.5; }
.button {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem 1.15rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 400;
  white-space: nowrap;
  transition: background .3s ease;
}
.button:hover, .button:focus-visible { background: var(--accent-soft); }

footer { position: relative; padding: 1.6rem 0 2.2rem; text-align: center; color: var(--faint); font-size: .8rem; }
footer p { margin: .15rem 0; }
.consent-link {
  font: inherit; color: inherit; background: none; border: 0; padding: 0;
  text-decoration: underline; text-underline-offset: .2em; cursor: pointer;
}

/* ——— analytics consent: a slim bar at the bottom, never a popup */
.consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem 1.2rem;
  padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom));
  background: rgba(19, 16, 13, .94);
  border-top: 1px solid var(--line);
  color: var(--soft); font-size: .85rem;
}
.consent[hidden] { display: none; }
.consent__text { max-width: 42rem; }
.consent p { margin: 0; }
.consent summary { display: inline; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.consent summary::-webkit-details-marker { display: none; }
.consent details p { margin-top: .4rem; font-size: .8rem; line-height: 1.5; }
.consent__btns { display: flex; gap: .5rem; }
.consent .button { padding: .35rem .9rem; font: inherit; background: none; cursor: pointer; }

/* ——— lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 10;
  display: grid; place-items: center;
  background: rgba(10, 8, 6, .94);
  padding: 1rem;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 90vh; border-radius: .3rem; }
.lightbox button {
  position: absolute;
  width: 3rem; height: 3rem;
  border: 0; border-radius: 50%;
  background: rgba(239,230,214,.1);
  color: #efe6d6;
  font-size: 1.6rem; line-height: 1;
  cursor: pointer;
}
.lightbox button:hover, .lightbox button:focus-visible { background: rgba(239,230,214,.2); }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lb-close { right: 1rem; top: 1rem; }

.fade { opacity: 0; transform: translateY(.6rem); transition: opacity .9s ease, transform .9s ease; }
.fade.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .fade { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
}

/* film grain, shared by the dark versions */
.grain::after {
  content: "";
  position: fixed; inset: -50%;
  pointer-events: none;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 1;
}
