/* Direction: Kettle & Clay — clay-smoke night, saffron ember, a high-contrast serif menu.
   The print sheet tokens (--x-sheet*) stay the same in both modes: paper is paper. */
/* Completed by the platform from the short form: both modes, every
   palette token, each text-on-ground pair at its floor. To restyle, write the
   short form again (the decisions in one :root) and it is completed again. */

:root {
  color-scheme: dark;
  --canvas: #15100c;
  --surface: #1d1711;
  --surface-2: #261e16;
  --border: #342a20;
  --border-strong: #5b5855;
  --ink: #f7efe3;
  --muted: #b1a394;
  --accent: #e3a33c;
  --accent-hover: #e7b159;
  --accent-ink: #15100c;
  --accent-text: #efc072;
  --accent-strong: #f6d79b;
  --accent-soft: #2e2214;
  --accent-border: #725222;
  --success: #7fc08b;
  --success-ink: #ffffff;
  --success-soft: #2c3728;
  --success-strong: #7fc08b;
  --warning: #e0b44f;
  --warning-ink: #ffffff;
  --warning-soft: #42341b;
  --warning-strong: #e0b44f;
  --danger: #e3705f;
  --danger-ink: #ffffff;
  --danger-soft: #42251e;
  --danger-strong: #e57b6c;
  --chart-1: #e3a33c;
  --chart-2: #96d275;
  --chart-3: #29acad;
  --chart-4: #93c1fd;
  --chart-5: #b579ce;
  --chart-6: #fba1a7;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --display-weight: 600;
  --display-tracking: -0.02em;
  --eyebrow-tracking: 0.2em;
  --radius-card: 16px;
  --radius-btn: 999px;
  --radius-input: 10px;
  --card-pad: 1.5rem;
  --x-on-photo: #ffffff;
  --x-paper: rgba(227, 163, 60, 0.05);
  --x-sheet: #fffdf6;
  --x-sheet-ink: #1a140e;
  --x-sheet-muted: #6b5e4c;
  --x-sheet-rule: rgba(26, 20, 14, 0.18);
  --x-sheet-accent: #a8681a;
  --x-qr-dark: #1a140e;
  --x-qr-light: #fffdf6;
  --font-mono: "JetBrains Mono Variable", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
}

html[data-theme="light"] {
  color-scheme: light;
  --canvas: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3f3f3;
  --border: #dededd;
  --border-strong: #b9b7b6;
  --ink: #15100c;
  --muted: #6a6764;
  --accent: #e3a33c;
  --accent-hover: #c18b33;
  --accent-ink: #15100c;
  --accent-text: #8a6325;
  --accent-strong: #8a6325;
  --accent-soft: #fbf2e4;
  --accent-border: #f2d6a7;
  --success: #7fc08b;
  --success-ink: #15100c;
  --success-soft: #f0f7f1;
  --success-strong: #4d7555;
  --warning: #e0b44f;
  --warning-ink: #15100c;
  --warning-soft: #fbf6ea;
  --warning-strong: #886e30;
  --danger: #e3705f;
  --danger-ink: #15100c;
  --danger-soft: #fceeec;
  --danger-strong: #a35044;
  --chart-1: #c28406;
  --chart-2: #659e43;
  --chart-3: #028c8d;
  --chart-4: #5594e4;
  --chart-5: #965bae;
  --chart-6: #e0717c;
}

.menu-paper {
  background-image: radial-gradient(var(--x-paper) 1px, transparent 1px);
  background-size: 18px 18px;
}

/* The dotted leader between a dish and its price, like a printed card. */
.dish-rule {
  flex: 1 1 auto;
  min-width: 1.5rem;
  margin: 0 0.6rem;
  border-bottom: 1px dotted var(--border);
  transform: translateY(-0.3rem);
}

.dish {
  transition: background-color 180ms ease, transform 180ms ease;
}
.dish:hover {
  background-color: var(--surface-2);
}

.dish-out {
  opacity: 0.55;
}

.cat-strip {
  scrollbar-width: none;
}
.cat-strip::-webkit-scrollbar {
  display: none;
}

.hero-scrim {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 8%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.6) 100%);
}

html.reduced-motion .dish:hover {
  transform: none;
}

/* ---------- Printable sheets (QR poster + table tents) ---------- */
.sheet {
  background: var(--x-sheet);
  color: var(--x-sheet-ink);
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.8);
  border-radius: 6px;
}

.sheet-a4 {
  width: 100%;
  max-width: 210mm;
  aspect-ratio: 210 / 297;
  margin-inline: auto;
}

.sheet-rule {
  border-color: var(--x-sheet-rule);
}

.qr-plate {
  background: var(--x-qr-light);
  border: 1px solid var(--x-sheet-rule);
  border-radius: 8px;
  display: grid;
  place-items: center;
  padding: 0.75rem;
}
.qr-plate canvas,
.qr-plate img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}

.tent {
  border: 1px dashed var(--x-sheet-rule);
  border-radius: 4px;
}

@media print {
  @page {
    margin: 10mm;
  }
  html,
  body {
    background: var(--x-sheet) !important;
  }
  .no-print {
    display: none !important;
  }
  .sheet {
    box-shadow: none;
    border-radius: 0;
    max-width: none;
    width: 100%;
    page-break-inside: avoid;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .sheet-a4 {
    aspect-ratio: auto;
    min-height: 268mm;
  }
}
