@font-face {
  font-family: "Commissioner";
  src: url("fonts/commissioner-greek-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: "Commissioner";
  src: url("fonts/commissioner-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =========================================================
   THEME: the only block that changes per café (plus the @font-face rules above).
   --paper      page background          --card       menu chip background
   --ink        main text + buttons      --muted      secondary text
   --line       dividers                 --accent     "open now" box (main brand color)
   --accent-ink text on --accent         --highlight  menu category titles
   --closed     "closed now" box         --dot-open / --dot-closed  status dot colors
   --radius     corner roundness (0 = sharp, 999px = pill)
   --font-display  headlines, café name   --font-body  everything else
   Contrast: --ink on --paper and --accent-ink on --accent must be at least 4.5:1.
   ========================================================= */
:root {
  --paper: #fcecf2;
  --card: #fff7fa;
  --ink: #3d1533;
  --muted: #6f4763;
  --line: #eec5d6;
  --accent: #c2185b;
  --accent-ink: #fff5f9;
  --highlight: #7b3594;
  --closed: #6e4866;
  --dot-open: #a8e08e;
  --dot-closed: #f7c6da;
  --radius: 14px;
  --font-display: "Commissioner", system-ui, sans-serif;
  --font-body: "Commissioner", system-ui, sans-serif;
  --gutter: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
}

a { color: inherit; }
:focus-visible { outline: 3px solid var(--highlight); outline-offset: 2px; border-radius: 6px; }

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

/* Demo bar */
.demo-bar {
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  text-align: center;
  padding: 7px var(--gutter);
}

/* Header */
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
}
.top .mini-name { font-family: var(--font-display); font-weight: 650; font-size: 15px; text-decoration: none; }
.lang {
  display: inline-flex;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
}
.lang button {
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  background: transparent;
  color: var(--ink);
  border: 0;
  padding: 5px 12px;
  cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* Hero */
.hero { padding: 44px 0 26px; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(46px, 14vw, 84px);
  line-height: 0.95;
  font-weight: 820;
  letter-spacing: -0.035em;
  margin: 0 0 14px;
}
.hero p { margin: 0; font-size: 19px; color: var(--muted); max-width: 30ch; }

/* Live status: the one bold element */
.status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
}
.status.is-closed { background: var(--closed); }
.status .dot {
  flex: none;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--dot-open);
  box-shadow: 0 0 0 0 var(--dot-open);
  animation: pulse 2.4s infinite;
}
.status.is-closed .dot { background: var(--dot-closed); animation: none; }
.status strong { display: block; font-size: 19px; font-weight: 750; line-height: 1.2; }
.status span.sub { font-size: 15px; opacity: .85; }
@keyframes pulse {
  70% { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
@media (prefers-reduced-motion: reduce) { .status .dot { animation: none; } }

/* Actions */
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  font-weight: 650;
  font-size: 16px;
  text-decoration: none;
  background: transparent;
}
.btn.primary { background: var(--ink); color: var(--paper); }

/* Sections */
section { padding: 34px 0 10px; }
h2 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 780;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

/* Menu */
.cat-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--paper);
  margin: 0 calc(-1 * var(--gutter));
  padding: 10px var(--gutter);
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--line);
}
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav a {
  flex: none;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.cat { padding-top: 22px; scroll-margin-top: 62px; }
.cat h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--highlight);
  margin: 0 0 6px;
}
.item {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.item:last-child { border-bottom: 0; }
.item .row { display: flex; align-items: baseline; gap: 8px; }
.item .nm { font-weight: 600; }
.item .lead { flex: 1; border-bottom: 2px dotted var(--line); transform: translateY(-4px); min-width: 16px; }
.item .pr { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.item .ds { font-size: 15px; color: var(--muted); margin-top: 2px; }

/* Hours */
.hours { list-style: none; margin: 0; padding: 0; }
.hours li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.hours li.today { font-weight: 750; }
.hours li.today .d::after {
  content: attr(data-today);
  margin-left: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-ink);
  background: var(--accent);
  padding: 2px 8px;
  border-radius: 999px;
  vertical-align: 2px;
}

/* Location */
.addr { font-size: 19px; margin: 0 0 14px; }

footer {
  margin-top: 40px;
  padding: 22px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

/* Menu-only page (QR) */
.menu-page .hero { padding: 26px 0 6px; }
.menu-page .hero h1 { font-size: clamp(36px, 11vw, 56px); }
.menu-page .status { margin-top: 16px; padding: 12px 16px; }

@media (min-width: 700px) {
  .hero { padding-top: 72px; }
}
