/* Layla's printed menu. See DESIGN.md for the design rules. */
:root {
  --canvas: #f5edde;
  --paper: #fff9ed;
  --ink: #353334;
  --muted: #625856;
  --rule: #d1beab;
  --wash: #dcefeb;
  --stage-light: #f4fcfa;
  --stage-trim: #63a5a5;
  --counter-brass: #e4bb7c;
  --counter-radius: .375rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #201b1b;
    --paper: #2c2425;
    --ink: #fff1d9;
    --muted: #d8c9b2;
    --rule: #806861;
    --wash: #283d3b;
    --stage-light: #39615d;
    --stage-trim: #548f8b;
  }
}

body {
  border-block-start-color: var(--wine);
  background: radial-gradient(ellipse at top, var(--paper), transparent 38rem), var(--canvas);
}

header, main, footer { max-inline-size: 38rem; }
header { padding-block-start: 1rem; }
header::after { opacity: .8; }
header button { border-radius: 2rem; padding-inline: 1rem; }
footer { border-block-start: 1px solid var(--rule); margin-block-start: .75rem; }
main { padding-block-start: .875rem; }
main > h2, .receipt h2 {
  color: var(--wine-ink);
  font-size: clamp(2rem, 8.8vw, 3.25rem);
  line-height: 1.04;
}

.quiz-progress { border-block-start: 0; margin-block-end: .875rem; }
.cafe-floor, .brew-station, .flavor-shelf, .budget-tray {
  border-radius: var(--counter-radius);
  background: var(--wash);
  border: 1px solid var(--stage-trim);
  padding: .625rem;
}
.cafe-floor { gap: .5rem; }
.cafe-floor::before { content: none; }
.cafe-floor button, .brew-station button, .flavor-shelf button, .budget-tray button {
  border-radius: var(--counter-radius);
}
.cafe-floor [data-seat="study"] { --zone: #4d4961; }
.cafe-floor [data-seat="quick"] { --zone: var(--wine); }
.flavor-shelf button {
  border-block-start: .25rem solid var(--flavor-ink);
  background: color-mix(in srgb, var(--paper) 83%, var(--flavor-fill));
}
.flavor-shelf button[aria-pressed="true"] {
  border-block-start-color: var(--flavor-ink);
}
.cafe-floor .choice-copy, .brew-station .choice-copy, .flavor-shelf .choice-copy {
  font-size: .875rem;
  font-weight: 700;
}
.budget-tray { gap: .375rem; }
.budget-tray button {
  min-block-size: 3.5rem;
  border-inline-start: .25rem solid var(--budget-accent);
}
.budget-tray button[aria-pressed="true"] { border-inline-start-color: var(--budget-accent); }

.counter-scene, .receipt-cup-tray {
  min-block-size: 7rem;
  background: radial-gradient(ellipse at 50% 0%, var(--stage-light), var(--wash) 75%);
  border-radius: var(--counter-radius) var(--counter-radius) 0 0;
  border: 1px solid var(--stage-trim);
}
.counter-scene::before, .receipt-cup-tray::before { opacity: .65; }
.counter-arch, .counter-arch::after { border-color: var(--stage-trim); }
.showcase-results { --edition-stage-height: clamp(11.25rem, 46vw, 12.5rem); }
.showcase-results .podium { --stage-height: var(--edition-stage-height); }
.showcase-results .podium::before {
  background-color: var(--wash);
  border: 1px solid var(--stage-trim);
  border-radius: var(--counter-radius) var(--counter-radius) 0 0;
}
.showcase-deck {
  inset-block-start: calc(1rem + var(--edition-stage-height) - .25rem);
  block-size: .25rem;
  border-color: var(--counter-brass);
  background: var(--wine);
}
.podium-entry[data-place="1"] {
  --step: 5.125rem;
  --cup-height: 5.5rem;
}
.podium-entry[data-place="1"] .podium-stage::after {
  border-block-start: 2px solid var(--counter-brass);
}
.podium-ticket {
  border-radius: 0 0 var(--counter-radius) var(--counter-radius);
  border-color: var(--rule);
}
.podium-entry[data-place="1"] .podium-ticket { border-color: var(--wine-ink); }
.receipt-printer {
  border-color: var(--counter-brass);
  border-radius: 0;
  background: var(--wine);
}
.receipt-slot .receipt {
  border-radius: 0;
  border-inline: 1px solid var(--rule);
  border-block-end: 3px dotted var(--rule);
}

@media (prefers-reduced-motion: no-preference) {
  .cafe-floor button, .brew-station button, .flavor-shelf button, .budget-tray button {
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
  }
}
