@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  /* The season sets these three; everything else is mixed from them. */
  --accent: #b4410f;
  --bg: #fdf3e7;
  --ink: #3b1d0e;

  --card: #ffffff;
  --muted: color-mix(in srgb, var(--ink) 72%, var(--bg));
  --line: color-mix(in srgb, var(--ink) 12%, transparent);
  --accent-soft: color-mix(in srgb, var(--accent) 12%, var(--card));
  --accent-strong: color-mix(in srgb, var(--accent) 82%, black);
  --board: color-mix(in srgb, var(--ink) 88%, black);
  --radius: 20px;
  --shadow: 0 1px 2px rgb(0 0 0 / 5%), 0 12px 32px -16px rgb(0 0 0 / 28%);
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.8s ease, color 0.8s ease;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

a { color: inherit; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 32px;
  /* Full-width bar; the side padding lines its contents up with the hero. */
  padding: 16px max(28px, calc((100% - 1184px) / 2));
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  box-shadow: 0 1px 0 var(--line);
  transition: background-color 0.8s ease;
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
}
.brand img { border-radius: 10px; }
.nav nav { display: flex; gap: 24px; margin-right: auto; }
.nav nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.nav nav a:hover { color: var(--ink); }
.season-pill {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  max-width: 1184px;
  height: clamp(440px, 64vh, 620px);
  margin: 4px auto 0;
  border-radius: 28px;
  overflow: hidden;
  background: radial-gradient(circle at 75% 40%, color-mix(in srgb, var(--accent) 55%, var(--ink)), var(--ink));
  color: #fff;
  isolation: isolate;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.9s ease, transform 6s ease-out;
  z-index: -2;
}
.hero-photo.ready { opacity: 1; transform: scale(1); }
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgb(12 7 4 / 82%) 0%, rgb(12 7 4 / 55%) 42%, rgb(12 7 4 / 8%) 78%),
    linear-gradient(0deg, rgb(12 7 4 / 45%) 0%, transparent 40%);
}
.hero-content {
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: 660px;
  padding: 56px;
}
.eyebrow {
  margin: 0 0 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.85;
}
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); line-height: 1.02; letter-spacing: -0.025em; }
.hero-banner { margin: 18px 0 28px; font-size: 1.15rem; max-width: 520px; opacity: 0.92; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}
.button.primary { background: var(--accent); color: #fff; }
.button.primary:not(:disabled):hover { background: var(--accent-strong); }
.button.ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 65%); }
.button.ghost:hover { background: rgb(255 255 255 / 12%); }
.button.wide { width: 100%; margin-top: 14px; }
.button:disabled { background: color-mix(in srgb, var(--ink) 8%, var(--card)); color: var(--muted); cursor: not-allowed; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Layout ---------- */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 44px;
  align-items: start;
  max-width: 1240px;
  margin: 64px auto 0;
  padding: 0 28px;
}
.menu section + section { margin-top: 56px; }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.section-head h2 { font-size: 2rem; }
.section-head p { margin: 0; color: var(--muted); }

/* ---------- Drink cards ---------- */
.grid { display: grid; gap: 20px; }
.specials { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.classics { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

.drink {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.drink:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgb(0 0 0 / 5%), 0 22px 44px -18px rgb(0 0 0 / 35%); }
.drink-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--swatch) 70%, white), var(--swatch));
}
.classics .drink-photo { aspect-ratio: 3 / 2; }
.drink-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* One light grade so photos from different sources sit together. */
  filter: saturate(0.92) contrast(1.04) sepia(0.06);
  transition: transform 0.7s ease;
}
.drink:hover .drink-photo img { transform: scale(1.05); }
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgb(255 255 255 / 92%);
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.drink-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.drink-body h3 { font-size: 1.2rem; }
.drink-body p { margin: 6px 0 16px; color: var(--muted); font-size: 0.92rem; }
.drink-buy { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.price { font-weight: 650; font-variant-numeric: tabular-nums; }
.add {
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.add:hover, .add.added { background: var(--accent); color: #fff; }

/* ---------- Order bag ---------- */
.side { display: grid; gap: 20px; position: sticky; top: 88px; }
.bag {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.bag h2 { font-size: 1.45rem; margin-bottom: 14px; }
.cart { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cart li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; }
.line-name { font-weight: 550; }
.stepper { display: inline-flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.stepper button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font: inherit;
  line-height: 1;
  cursor: pointer;
}
.stepper button:hover { border-color: var(--accent); color: var(--accent); }
.line-price { min-width: 56px; text-align: right; font-variant-numeric: tabular-nums; }
.total {
  display: flex;
  justify-content: space-between;
  margin: 18px 0 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 1.1rem;
  font-weight: 700;
}
label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 0.88rem; }
input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}
.hint { margin: 12px 0 0; min-height: 1.4em; font-size: 0.92rem; }
.hint.ok { padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-strong); font-weight: 600; }
.empty { color: var(--muted); font-size: 0.92rem; }

/* ---------- Pickup board ---------- */
.pickup {
  background: var(--board);
  color: #f6f1ea;
  border-radius: var(--radius);
  padding: 20px 22px 22px;
  transition: background-color 0.8s ease;
}
.pickup-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.pickup h2 { font-size: 1.3rem; }
.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgb(255 255 255 / 60%);
  animation: ping 2s infinite;
}
.board { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.board li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgb(255 255 255 / 10%);
}
.board li:last-child { border-bottom: 0; }
.board .number { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.board .drinks { opacity: 0.75; font-size: 0.92rem; }
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.brewing .status { color: #f5b75a; }
.brewing .status::before { animation: blink 1.4s ease-in-out infinite; }
.ready .status { color: #6ee09b; }
.board .empty { color: rgb(246 241 234 / 70%); padding: 8px 0; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 20;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 16px 24px 16px 20px;
  border-radius: 26px;
  font-size: 1.05rem;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 18px 40px -12px rgb(0 0 0 / 45%);
  transform: translateX(-50%);
  animation: rise 0.45s ease;
}
.toast::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 10px;
  border-radius: 50%;
  background: #5fd38d;
  vertical-align: 0;
}
.toast .sha {
  margin: 0 2px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgb(255 255 255 / 16%);
  font: 600 0.9em ui-monospace, SFMono-Regular, Menlo, monospace;
}
.updated .hero { animation: glow 1.6s ease 1; }

/* ---------- Footer ---------- */
footer {
  max-width: 1240px;
  margin: 72px auto 0;
  padding: 28px 28px 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}
footer p { margin: 0 0 10px; }
summary { cursor: pointer; font-weight: 600; }
#credits { list-style: none; margin: 12px auto 0; padding: 0; max-width: 820px; text-align: left; columns: 2 320px; }
#credits li { margin-bottom: 6px; break-inside: avoid; }

@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgb(255 255 255 / 60%); }
  80%, 100% { box-shadow: 0 0 0 10px rgb(255 255 255 / 0%); }
}
@keyframes blink { 50% { opacity: 0.25; } }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 16px); } }
@keyframes glow {
  40% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 70%, transparent); }
}

/* On wider screens the photo fills the right side and fades into the season color behind the text. */
@media (min-width: 701px) {
  .hero-photo {
    left: auto;
    right: 0;
    width: 72%;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 38%);
    mask-image: linear-gradient(90deg, transparent, #000 38%);
  }
  .hero-shade {
    background:
      linear-gradient(90deg, rgb(12 7 4 / 50%) 0%, rgb(12 7 4 / 15%) 50%, transparent 72%),
      linear-gradient(0deg, rgb(12 7 4 / 30%) 0%, transparent 35%);
  }
}

@media (max-width: 1000px) {
  .layout { grid-template-columns: 1fr; gap: 40px; }
  .side { position: static; }
}
@media (max-width: 700px) {
  .nav { gap: 16px; padding: 12px 18px; }
  .nav nav { display: none; }
  .brand { margin-right: auto; }
  .hero { margin: 0 12px; border-radius: 22px; height: 480px; }
  .hero-content { padding: 28px; }
  .hero-shade { background: linear-gradient(0deg, rgb(12 7 4 / 82%) 0%, rgb(12 7 4 / 55%) 55%, rgb(12 7 4 / 20%) 100%); }
  .layout { padding: 0 18px; margin-top: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
