@font-face {
  font-family: "Outfit";
  src: url("/fonts/outfit-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("/fonts/outfit-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("/fonts/outfit-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("/fonts/outfit-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #24170f;
  --espresso: #3c2415;
  --espresso-soft: #5c3b28;
  --cream: #fbf3e6;
  --cream-deep: #f3e4cf;
  --paper: #fffaf4;
  --gold: #a56b2a;
  --line: rgba(36, 23, 15, 0.14);
  --good: #1d6b42;
  --good-bg: #e7f6ee;
  --warn-bg: #f8e7c8;
  --bad: #8e2f2a;
  --bad-bg: #fbeceb;
  --shadow: 0 14px 34px rgba(60, 36, 21, 0.08);
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 50% -120px, #f6e2c4 0%, transparent 70%),
    var(--cream);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.45;
  padding-bottom: calc(108px + env(safe-area-inset-bottom));
}
body.sheet-open { overflow: hidden; }
body.confirmed,
body[data-page="admin"] { padding-bottom: 32px; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
a { color: var(--espresso); touch-action: manipulation; }
h1, h2, h3, legend { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
h1 { margin: 0; }
h2 { font-size: 1.7rem; margin: 0 0 8px; }
h3 { font-size: 1.2rem; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
[hidden] { display: none !important; }

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--espresso);
  color: #fffaf4;
  padding: 10px 14px;
  border-radius: 999px;
  z-index: 80;
}
.skip:focus { top: 12px; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero, .sticky-tools, #menu, .site-footer, .confirm, .admin-main {
  width: min(880px, calc(100% - 28px));
  margin-left: auto;
  margin-right: auto;
}
.hero { padding: 22px 0 18px; border-bottom: 2px dashed rgba(36, 23, 15, 0.16); }
.hero-row, .brand { display: flex; align-items: center; gap: 12px; }
.hero-row { justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.brand { flex: 1 1 220px; min-width: 0; }
h1 { font-size: clamp(1.8rem, 8vw, 2.35rem); }
.mark { width: 52px; height: 52px; flex: none; }
.eyebrow {
  margin: 0 0 4px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lede { margin-top: 12px; max-width: 38rem; color: var(--espresso-soft); }
.friday-line { margin-top: 8px; font-weight: 700; }
.phone-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--espresso);
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid var(--line);
  white-space: nowrap;
}

.sticky-tools {
  position: sticky;
  top: 0;
  z-index: 20;
  width: min(880px, calc(100% - 28px));
  padding-top: 8px;
  background: rgba(251, 243, 230, 0.94);
  backdrop-filter: blur(12px);
}
.banner { margin: 8px 0 0; }
.banner p, .pause {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--warn-bg);
  color: var(--ink);
  font-weight: 650;
}
.banner a { font-weight: 800; }
.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background: transparent;
  color: var(--espresso);
  font-weight: 700;
}
.tab[aria-selected="true"] { background: var(--espresso); color: #fffaf4; }

#menu { padding-bottom: 12px; }
.intro { padding: 8px 0 14px; }
.intro p { color: var(--espresso-soft); }
.grid { display: grid; gap: 12px; }
.drink, .panel, .confirm-card, .ticket, .pay-box, .summary {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.drink { padding: 16px; display: grid; gap: 10px; }
.drink-top, .summary-row, .ticket-pay, .line, .copy-row, .prep-count {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}
.price, .line-price, .summary-total { color: var(--gold); font-weight: 800; }
.recipe, .hint, .ticket p, .base-list { color: var(--espresso-soft); }
.base-list { display: grid; gap: 6px; font-size: 0.95rem; }
.base-list strong { color: var(--ink); }
.size-prices { font-weight: 650; }
.badge {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--good-bg);
  color: var(--good);
  font-weight: 700;
  font-size: 0.92rem;
}

.btn, .step, .text-btn {
  min-height: 48px;
  border-radius: 999px;
  font-weight: 700;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border: 1.5px solid var(--espresso);
  background: transparent;
  color: var(--espresso);
  text-decoration: none;
  text-align: center;
}
.btn.primary { background: var(--espresso); color: #fffaf4; }
.btn:disabled, .step:disabled { opacity: 0.45; cursor: not-allowed; }
.text-btn {
  border: 0;
  background: transparent;
  color: var(--espresso);
  padding: 0 8px;
}
.text-btn.danger { color: var(--bad); }
.site-footer { padding: 8px 0 20px; color: var(--espresso-soft); display: grid; gap: 4px; }
.site-footer a { font-weight: 700; }

.cart-bar {
  position: fixed;
  z-index: 30;
  left: max(14px, calc(50% - 426px));
  right: max(14px, calc(50% - 426px));
  bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--espresso);
  color: #fffaf4;
  box-shadow: 0 14px 30px rgba(36, 23, 15, 0.28);
  font-weight: 700;
}
body.sheet-open .cart-bar,
body.confirmed .cart-bar { display: none; }

.overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(36, 23, 15, 0.48);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sheet:focus { outline: none; }
.sheet {
  width: min(680px, 100%);
  max-height: min(92vh, 920px);
  background: var(--paper);
  border-radius: 24px 24px 0 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -16px 40px rgba(36, 23, 15, 0.24);
}
.sheet-head, .sheet-foot { padding: 14px 16px; }
.sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.sheet-head h2 { font-size: 1.45rem; }
.sheet-body { overflow: auto; padding: 8px 16px 18px; }
.sheet-foot {
  border-top: 1px solid var(--line);
  padding-bottom: calc(14px + env(safe-area-inset-bottom));
  display: grid;
  gap: 8px;
}
.sheet-foot .btn { width: 100%; }
.center { text-align: center; }

.field, .block, .choice-set { display: grid; gap: 8px; margin: 14px 0; }
.field label, .label-text, legend { font-weight: 700; }
input[type="text"], input[type="tel"], input[type="email"], input[type="password"], input[type="date"], select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1.5px solid rgba(36, 23, 15, 0.22);
  background: #fff;
  font-size: 16px;
}
textarea { min-height: 96px; resize: vertical; }
.choices, .stack { display: grid; gap: 8px; }
.choice, .pick {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1.5px solid rgba(36, 23, 15, 0.16);
  background: #fff;
  font-weight: 650;
}
.pick { align-items: flex-start; }
.pick span, .choice span { display: grid; gap: 2px; }
.pick small, .choice small { color: var(--espresso-soft); font-weight: 500; }
.choice:has(input:checked), .pick:has(input:checked) {
  border-color: var(--espresso);
  background: #f8ecdc;
  box-shadow: inset 0 0 0 1px var(--espresso);
}
.choice input, .pick input { width: 1.15rem; height: 1.15rem; margin-top: 2px; accent-color: var(--espresso); }
.stepper { display: flex; align-items: center; gap: 8px; }
.step {
  width: 48px;
  border: 1.5px solid var(--espresso);
  background: #fff;
  color: var(--espresso);
  font-size: 1.3rem;
}
.qty-value { min-width: 1.5rem; text-align: center; font-weight: 800; }
.line {
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.line-copy { display: grid; gap: 4px; }
.line-actions { display: grid; justify-items: end; gap: 4px; }
.field-error { color: var(--bad); font-weight: 700; }
.alert {
  background: var(--bad-bg);
  color: var(--bad);
  border-radius: 14px;
  padding: 12px 14px;
  display: grid;
  gap: 6px;
  font-weight: 650;
}
.empty-cart { padding: 8px 0 4px; }

.confirm { padding: 22px 0 32px; }
.confirm-card { padding: 20px 16px 16px; display: grid; gap: 14px; }
.confirm-card h1 { font-size: 2rem; }
.summary, .pay-box { padding: 14px; box-shadow: none; display: grid; gap: 8px; }
.summary-list { list-style: none; margin: 0; padding: 0; }
.summary-list li { padding: 10px 0; border-bottom: 1px solid var(--line); display: grid; gap: 3px; }
.summary-total { font-size: 1.2rem; font-weight: 800; }
.copy-row { align-items: center; padding: 8px 0; }
.copy-value { font-weight: 800; overflow-wrap: anywhere; }
.confirm-actions { display: grid; gap: 8px; }

.missing { width: min(640px, calc(100% - 32px)); margin: 12vh auto; display: grid; gap: 14px; }
.admin-main { display: grid; gap: 14px; padding-top: 16px; }
.panel { padding: 16px; display: grid; gap: 12px; }
.prep-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.prep-toolbar .field { margin: 0; flex: 1 1 180px; }
.prep-count { font-weight: 800; padding: 4px 0 8px; }
.school-block { margin: 18px 0; }
.school-block h2 { border-left: 6px solid var(--espresso); padding-left: 10px; }
.batch { margin: 8px 0 12px; padding-left: 18px; }
.batch li { margin: 4px 0; }
.ticket { padding: 14px; margin: 10px 0; display: grid; gap: 8px; }
.ticket-drinks { margin: 0; padding-left: 18px; }
.status {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  font-weight: 800;
  background: var(--warn-bg);
}
.status.paid { background: var(--good-bg); color: var(--good); }
.muted { color: var(--espresso-soft); font-size: 0.92rem; overflow-wrap: anywhere; }

@media (min-width: 760px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .choices { grid-template-columns: 1fr 1fr; }
  .confirm-actions { grid-template-columns: 1fr 1fr; }
  .overlay { align-items: center; padding: 24px; }
  .sheet { border-radius: 24px; max-height: min(88vh, 860px); }
  .sheet-foot { padding-bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

@media print {
  body[data-page="admin"] {
    background: #fff;
    padding: 0;
    color: #000;
  }
  body[data-page="admin"] .no-print { display: none !important; }
  body[data-page="admin"] .hero { border: 0; }
  body[data-page="admin"] .ticket,
  body[data-page="admin"] .panel,
  body[data-page="admin"] .drink { box-shadow: none; }
  .ticket, .school-block { break-inside: avoid; }
  a { color: #000; text-decoration: none; }
  @page { margin: 0.55in; size: letter; }
}
