/* Dinnertime — opening soon.
   One idea: the evening table from above. Your plate, a tealight, and across the table a place laid
   only in outline: the +1, offered, never promised. Carob-night ground, linen text, one warm light. */

@font-face { font-family: "Piazzolla"; src: url("/assets/fonts/Piazzolla.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Piazzolla"; src: url("/assets/fonts/Piazzolla-Italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Commissioner"; src: url("/assets/fonts/Commissioner.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --carob: #170D12;        /* the page: carob night, a wine-black */
  --table: #22141B;        /* the tabletop */
  --table-raised: #2D1C24; /* the menu card */
  --linen: #F6EFE6;        /* text, your plate */
  --ash: #BDA9AF;          /* secondary text */
  --tealight: #F2B347;     /* the one warm light and the one action colour */
  --tealight-hover: #F7C46A;
  --olive: #A9BA7C;        /* "both say yes" */
  --seat-line: #8E7680;    /* the dashed place: offered, not agreed */
  --line: rgba(246, 239, 230, 0.14);

  --font-display: "Piazzolla", "Noto Serif", Georgia, "Palatino Linotype", serif;
  --font-body: "Commissioner", "Segoe UI", -apple-system, system-ui, Roboto, sans-serif;

  /* Type scale on a 1.333 ratio from a 1.0625rem body. */
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.4rem;
  --step-2: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
  --step-3: clamp(2.6rem, 1.6rem + 4vw, 4.75rem);

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --duration-course: 480ms;
  --duration-flicker: 4.2s;
}

/* Greek runs 15–20 % longer: one notch smaller for the display sizes. */
:lang(el) {
  --step-2: clamp(1.45rem, 1.1rem + 1.4vw, 2rem);
  --step-3: clamp(2.2rem, 1.4rem + 3.4vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--linen);
  background-color: var(--carob);
  /* The only light in the room: the tealight's glow, where the table stands. */
  /* Sized to its own box so the ellipse fades out fully instead of stopping at the first screen's edge. */
  background-image: radial-gradient(56rem 40rem at 70% 24rem, rgba(242, 179, 71, 0.10), transparent 70%);
  background-size: 100% 60rem;
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
}

/* Linen texture: a faint turbulence grain on the page ground only. */
body { position: relative; }
body::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .95 0 0 0 0 .9 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; }
img, video, svg { display: block; max-width: 100%; }

:focus-visible { outline: 2px solid var(--tealight); outline-offset: 3px; border-radius: 4px; }

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

.skip {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 10;
  padding: .6rem 1rem; background: var(--tealight); color: var(--carob); font-weight: 600; text-decoration: none;
  border-radius: 6px;
}
.skip:focus { top: 1rem; }

[hidden] { display: none !important; }

/* ── Masthead ─────────────────────────────────────────────────────────── */

.masthead {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem var(--gutter) 0;
  max-width: 82rem; margin: 0 auto;
}

.wordmark {
  display: inline-flex; align-items: center; gap: .55rem;
  min-height: 44px;
  font-family: var(--font-display); font-weight: 500; font-size: 1.45rem;
  font-variation-settings: "opsz" 30; letter-spacing: -0.015em;
  text-decoration: none; color: var(--linen);
}
.wordmark-mark { width: 1.6rem; height: 1.6rem; color: var(--linen); }

.lang { display: inline-flex; gap: .25rem; }
.lang button {
  min-width: 44px; min-height: 44px; padding: 0 .6rem;
  font: inherit; font-size: var(--step--1); letter-spacing: .04em;
  color: var(--ash); background: none; border: 1px solid transparent; border-radius: 999px; cursor: pointer;
}
.lang button[aria-pressed="true"] { color: var(--linen); border-color: var(--seat-line); }
.lang button:hover { color: var(--linen); }

/* ── Hero: the table from above ───────────────────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  max-width: 82rem; margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 4.5rem) var(--gutter) clamp(4rem, 9vw, 8rem);
}

.hero-copy { order: 2; max-width: 38rem; }

h1 {
  margin: 0;
  font-family: var(--font-display); font-weight: 400;
  font-size: var(--step-3); line-height: 1.04; letter-spacing: -0.02em;
  text-wrap: balance;
}

.lede {
  margin: 1.5rem 0 0; max-width: 32rem;
  font-size: 1.15rem; line-height: 1.65; color: var(--ash);
}

.status {
  display: flex; align-items: center; gap: .6rem;
  margin: 2rem 0 1.5rem; color: var(--linen);
}
.status-dot {
  width: .55rem; height: .55rem; border-radius: 50%; background: var(--tealight);
  box-shadow: 0 0 0 .3rem rgba(242, 179, 71, .14);
}

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 1.6rem;
  font: inherit; font-size: .9375rem; font-weight: 600; letter-spacing: .01em; text-decoration: none;
  color: var(--carob); background: var(--tealight);
  border: 0; border-radius: 999px; cursor: pointer;
  transition: background-color .12s ease;
}
.button:hover { background: var(--tealight-hover); }

/* The figure: the table, your place, the tealight, the outlined place across. */
.table { order: 1; margin: 0 auto; width: min(100%, 34rem); }
.table-art { width: 100%; height: auto; overflow: visible; }

.tabletop { fill: var(--table); filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); }
.table-edge { fill: none; stroke: var(--line); stroke-width: 1; }

.place { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.place--yours { stroke: var(--linen); }
.place--yours .plate { fill: var(--table-raised); }
.place--yours .plate-rim { stroke-opacity: .35; stroke-width: 1.4; }
.place--offered { stroke: var(--seat-line); stroke-dasharray: 6 6; stroke-linecap: butt; }

.placecard-card { fill: var(--table-raised); stroke: var(--seat-line); stroke-width: 1.2; }
.placecard-crease { stroke: var(--line); stroke-width: 1; }
.placecard text { fill: var(--linen); font-family: var(--font-display); font-style: italic; font-size: 13px; }

.tealight-glass { fill: rgba(246, 239, 230, .05); stroke: rgba(246, 239, 230, .38); stroke-width: 1.4; }
.tealight-cup { fill: #3A2730; stroke: rgba(246, 239, 230, .18); }
.flame { fill: var(--tealight); transform-box: fill-box; transform-origin: 50% 100%; }

.course { fill: var(--tealight); stroke: var(--tealight); stroke-width: 1.6; }

.brandline {
  margin: .75rem auto 0; max-width: 24ch; text-align: center;
  font-family: var(--font-display); font-style: italic; font-size: var(--step-1); line-height: 1.3;
  color: var(--ash); text-wrap: balance;
}

@media (min-width: 56.25rem) { /* 900 px */
  .hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .hero-copy { order: 1; }
  .table { order: 2; width: min(44vw, 36rem); margin-right: 0; }
}

/* Motion: the copy settles once, the courses fill one by one after 1.2 s, and the tealight
   flickers. The flicker is the only loop, and main.js pauses it off-screen or in a hidden tab. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-copy > * { animation: rise .9s var(--ease-out) both; }
  .js .hero-copy > :nth-child(1) { animation-delay: .15s; }
  .js .hero-copy > :nth-child(2) { animation-delay: .3s; }
  .js .hero-copy > :nth-child(3) { animation-delay: .45s; }
  .js .table-art { animation: fade 1.2s var(--ease-out) both; }
  .js .course { animation: course var(--duration-course) var(--ease-out) both; }
  .js .course:nth-child(1) { animation-delay: 1.2s; }
  .js .course:nth-child(2) { animation-delay: calc(1.2s + var(--duration-course)); }
  .js .course:nth-child(3) { animation-delay: calc(1.2s + 2 * var(--duration-course)); }
  .js .flame { animation: flicker var(--duration-flicker) ease-in-out infinite; }
  .js .flame.is-paused { animation-play-state: paused; }
}
@keyframes rise { from { opacity: 0; transform: translateY(.6rem); } }
@keyframes fade { from { opacity: 0; } }
@keyframes course { from { fill: transparent; stroke: var(--seat-line); } }
@keyframes flicker {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  23% { opacity: .94; transform: scaleY(.98); }
  37% { opacity: .88; transform: scaleY(.97); }
  52% { opacity: .97; transform: scaleY(1.02); }
  61% { opacity: .92; transform: scaleY(1.03); }
  80% { opacity: .98; transform: scaleY(.99); }
}

/* ── Tonight's menu ───────────────────────────────────────────────────── */

.menu { padding: 0 var(--gutter) clamp(5rem, 10vw, 8rem); }

.menu-card {
  max-width: 42rem; margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 5vw, 3.5rem);
  background: var(--table-raised);
  border: 1px solid var(--line); border-radius: 4px;
  box-shadow: 0 1px 0 rgba(246, 239, 230, .05) inset, 0 30px 60px -40px rgba(0, 0, 0, .7);
}

.menu h2 {
  margin: 0; text-align: center;
  font-family: var(--font-display); font-weight: 400; font-style: italic;
  font-size: var(--step-2); letter-spacing: -0.01em;
}
.menu-note { margin: .4rem 0 2.25rem; text-align: center; color: var(--ash); font-size: var(--step--1); }

.menu-list { margin: 0; }
.menu-item + .menu-item { margin-top: 2rem; }
.menu-item dt { font-weight: normal; }

.course-label {
  display: flex; align-items: center; gap: .5rem; margin-bottom: .3rem;
  font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ash);
}
/* Greek capitals drop their accents and read as shouting: sentence case in EL. */
:lang(el) .course-label { text-transform: none; letter-spacing: .01em; font-size: .8125rem; }
.course-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--tealight); flex: none; }
.course-dot--dashed { width: 12px; height: 12px; background: none; border: 1.5px dashed var(--ash); }

.dish {
  display: flex; align-items: baseline; gap: .6rem;
  font-family: var(--font-display); font-size: var(--step-1); line-height: 1.25;
}
.leader {
  flex: 1 1 2rem; min-width: 1.5rem;
  border-bottom: 2px dotted rgba(189, 169, 175, .45);
  transform: translateY(-.3rem);
}
.price { flex: none; font-style: italic; color: var(--tealight); }
.menu-item--optional .price { color: var(--olive); }
.menu-item dd { margin: .4rem 0 0; max-width: 32rem; color: var(--ash); }

@media (max-width: 30rem) {
  .dish { flex-wrap: wrap; }
  .leader { display: none; }
  .price { width: 100%; font-size: var(--step-0); }
}

/* ── House rules: hospitality, not small print ────────────────────────── */

.rules {
  max-width: 72rem; margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) var(--gutter) clamp(4rem, 9vw, 7rem);
  border-top: 1px solid var(--line);
}
.rules h2 {
  margin: 0; font-family: var(--font-display); font-weight: 400;
  font-size: var(--step-2); letter-spacing: -0.01em;
}
.rules-note { margin: .4rem 0 2rem; color: var(--ash); font-size: var(--step--1); }
.rules-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.1rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr));
}
@media (min-width: 64rem) { .rules-list { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.rules-list li { display: flex; align-items: flex-start; gap: .75rem; line-height: 1.45; }
.icon {
  flex: none; width: 1.5rem; height: 1.5rem; margin-top: -.05rem; color: var(--tealight);
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}

/* ── Quiet ────────────────────────────────────────────────────────────── */

.quiet {
  max-width: 52rem; margin: 0 auto; text-align: center;
  padding: 0 var(--gutter) clamp(5rem, 10vw, 8rem);
}
.quiet-line {
  margin: 0 auto; max-width: 26ch;
  font-family: var(--font-display); font-weight: 400; font-style: italic;
  font-size: var(--step-2); line-height: 1.25; letter-spacing: -0.01em;
  text-wrap: balance;
}
.quiet-aside { margin: 1.25rem auto 0; max-width: 34rem; color: var(--ash); }

/* ── Save a seat ──────────────────────────────────────────────────────── */

.seat {
  max-width: 40rem; margin: 0 auto; text-align: center;
  padding: clamp(3rem, 7vw, 5rem) var(--gutter) clamp(4rem, 9vw, 6rem);
  border-top: 1px solid var(--line);
}
.seat h2 {
  margin: 0; font-family: var(--font-display); font-weight: 400;
  font-size: var(--step-2); letter-spacing: -0.01em;
}
.seat-lede, .seat-closed { margin: .75rem auto 0; max-width: 32rem; color: var(--ash); }

.seat-form {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem;
  margin: 2rem auto 0; max-width: 32rem;
}
.seat-form input {
  flex: 1 1 15rem; min-height: 48px; padding: 0 1.2rem;
  font: inherit; color: var(--linen); background: rgba(246, 239, 230, .06);
  border: 1.5px solid var(--seat-line); border-radius: 999px;
}
.seat-form input::placeholder { color: rgba(189, 169, 175, .85); }
.seat-form input[aria-invalid="true"] { border-color: #F08C7A; }
.seat-privacy { margin: 1rem auto 0; max-width: 30rem; font-size: var(--step--1); color: var(--ash); }
.seat-status { min-height: 1.6em; margin: 1rem 0 0; }
.seat-status--ok { color: var(--olive); }
.seat-status--error { color: #F08C7A; }

/* ── Footer ───────────────────────────────────────────────────────────── */

.footer {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center;
  max-width: 82rem; margin: 0 auto; padding: 2rem var(--gutter) 2.5rem;
  font-size: var(--step--1); color: var(--ash);
}
.footer p { margin: 0; }
.footer nav { display: flex; gap: 1.5rem; }
.footer a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: .2em; }
.footer a:hover { color: var(--linen); }

/* ── Legal pages ──────────────────────────────────────────────────────── */

.legal { max-width: 42rem; margin: 0 auto; padding: 3rem var(--gutter) 5rem; }
.legal h1 { font-size: var(--step-2); }
.legal h2 { font-family: var(--font-display); font-weight: 400; font-size: var(--step-1); margin: 2.25rem 0 .5rem; }
.legal h3 { font-size: var(--step-0); font-weight: 600; margin: 1.5rem 0 .25rem; }
.legal p, .legal li { max-width: 38rem; }
.legal ul { padding-left: 1.25rem; }
.legal li + li { margin-top: .4rem; }
.legal-address { font-style: normal; font-size: var(--step-1); font-family: var(--font-display); line-height: 1.4; margin: 1rem 0 2rem; }
.legal-updated { color: var(--ash); font-size: var(--step--1); }
.legal-aside { color: var(--ash); border-left: 2px solid var(--seat-line); padding-left: 1rem; }
.legal a { color: var(--tealight); text-underline-offset: .2em; }
.legal-back { margin-top: 3rem; }
/* On the legal pages the language switch is a pair of links, not buttons. */
.lang a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0 .6rem;
  font-size: var(--step--1); letter-spacing: .04em; text-decoration: none;
  color: var(--ash); border: 1px solid transparent; border-radius: 999px;
}
.lang a[aria-current="page"] { color: var(--linen); border-color: var(--seat-line); }
.lang a:hover { color: var(--linen); }
