@import url("assets/fonts.css");

:root {
  --cream: #fbf7f0;
  --paper: #fffdf9;
  --ink: #2b2420;
  --muted: #6b5f57;
  --red: #9b1c1c;
  --red-dark: #7a1414;
  --gold: #b8893b;
  --line: #e8dfd2;
  --hero-cream: #f5ebe0;
  --hero-cream-faint: rgba(245, 235, 224, 0.32);
  --radius: 10px;
  --max: 1120px;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--red); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  z-index: 10;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  flex-wrap: wrap;
}
.brand {
  font: 700 26px/1 var(--serif);
  color: var(--red);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.brand span { color: var(--ink); font-style: italic; font-weight: 500; }
.nav { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a[aria-current="page"],
.nav a:hover { border-bottom-color: var(--red); }

/* Buttons and links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 2px solid var(--red);
  background: var(--red);
  color: #fff;
  font: 600 15px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn.ghost { background: transparent; color: var(--red); }
.btn.ghost:hover { background: var(--red); color: #fff; }
.btn.small { min-height: 36px; padding: 6px 14px; font-size: 14px; }

/* Hero */
.hero {
  position: relative;
  color: #fff;
  background: #2a1a14 url("assets/stock/pexels-6937435.jpg") center / cover no-repeat;
}
.hero::after {
  content: "Stock image";
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font: 600 11px/1 var(--sans);
  padding: 5px 8px;
  border-radius: 999px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(30, 12, 8, 0.85) 0%, rgba(30, 12, 8, 0.45) 60%, rgba(30, 12, 8, 0.25) 100%);
}
.hero .wrap {
  position: relative;
  padding: 88px 0 96px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 12px;
}
.hero h1 {
  font: 700 clamp(40px, 7vw, 68px)/1.05 var(--serif);
  margin: 0 0 28px;
  max-width: 14ch;
}
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn.ghost { color: #fff; border-color: #fff; }
.hero .btn.ghost:hover { background: #fff; color: var(--ink); }

/* Sections */
section.block { padding: 64px 0; }
section.block.tight { padding: 40px 0; }
section.alt { background: var(--paper); border-block: 1px solid var(--line); }
h2 {
  font: 700 clamp(28px, 4vw, 38px)/1.15 var(--serif);
  margin: 0 0 12px;
}
h3 { font: 700 22px/1.25 var(--serif); margin: 0 0 8px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head p { margin: 0; color: var(--muted); max-width: 52ch; }
.muted { color: var(--muted); }
.small-note { font-size: 14px; color: var(--muted); }

/* Cards and grids */
.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .grid.three { grid-template-columns: repeat(3, 1fr); }
  .grid.two { grid-template-columns: repeat(2, 1fr); }
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card .meta { color: var(--muted); font-size: 15px; margin: 0; }
.card .map { margin: 0; }
.card .map iframe { display: block; width: 100%; height: 200px; border: 1px solid var(--line); border-radius: calc(var(--radius) / 2); }
.card .map figcaption { font-size: 12px; color: var(--muted); margin-top: 4px; }
.card .actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.card .actions .btn { flex: 1 1 auto; }
.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 999px;
  background: #f3e7d6;
  color: #6b4a1e;
}
.tag.pending { background: #f6efe4; color: var(--muted); border: 1px dashed #c9b9a4; }
.tag.hot { background: #f7dede; color: var(--red-dark); }

/* Hours */
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hours th { font-weight: 500; color: var(--muted); padding-right: 16px; }
.hours td { font-weight: 600; }

/* Split layout */
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } }
.photo {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
}
.photo.tall { aspect-ratio: 4 / 5; }

.panel-note {
  background: #fdf3e1;
  border: 1px solid #ecd5a6;
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 15px;
}

/* Page hero (inner pages) */
.page-hero {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 48px 0 40px;
}
.page-hero h1 { font: 700 clamp(36px, 6vw, 52px)/1.1 var(--serif); margin: 0 0 10px; }
.page-hero p { margin: 0; max-width: 60ch; color: var(--muted); font-size: 18px; }

/* Menu */
.menu-tools {
  position: sticky;
  top: 0;
  background: var(--cream);
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  z-index: 4;
}
.search-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.search-row input[type="search"] {
  flex: 1 1 260px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #cbbfae;
  border-radius: 8px;
  font: 400 16px var(--sans);
  background: var(--paper);
}
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; align-items: center; }
.filters label { font-size: 14px; font-weight: 600; color: var(--muted); }
.filters select {
  min-height: 40px;
  padding: 6px 10px;
  border: 1px solid #cbbfae;
  border-radius: 8px;
  background: var(--paper);
  font: 400 15px var(--sans);
  color: var(--ink);
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.chip {
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #cbbfae;
  background: var(--paper);
  color: var(--ink);
  font: 500 14px var(--sans);
  cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.result-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0 12px;
  color: var(--muted);
  font-size: 15px;
}
.result-line button {
  background: none;
  border: none;
  color: var(--red);
  font: 600 15px var(--sans);
  cursor: pointer;
  padding: 6px 0;
}
.dish-list { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .dish-list { grid-template-columns: 1fr 1fr; } }
.dish {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}
.dish img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 8px;
}
.dish-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.dish h3 { font: 700 18px/1.3 var(--sans); margin: 0; }
.dish .price { font-weight: 700; white-space: nowrap; color: var(--red-dark); }
.dish .num { font-size: 12px; color: var(--muted); }
.dish p { margin: 6px 0 8px; font-size: 15px; color: var(--muted); }
.dish .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.empty {
  display: none;
  text-align: center;
  padding: 40px 16px;
  background: var(--paper);
  border: 1px dashed #cbbfae;
  border-radius: var(--radius);
}
.empty.show { display: block; }
.menu-footer-note { margin-top: 32px; }

/* Order bar */
.order-bar {
  position: sticky;
  bottom: 0;
  background: var(--ink);
  color: #fff;
  z-index: 6;
}
.order-bar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  flex-wrap: wrap;
}
.order-bar label { font-size: 13px; color: #d8cbbb; display: block; }
.order-bar select {
  min-height: 40px;
  border-radius: 8px;
  padding: 6px 10px;
  font: 500 15px var(--sans);
  border: none;
  margin-top: 2px;
}
.order-bar .btn { border-color: var(--gold); background: var(--gold); color: var(--ink); }
.order-bar .btn:hover { background: #d19e4c; border-color: #d19e4c; }

/* Forms */
form.inquiry { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field .hint { font-size: 13px; color: var(--muted); }
.field input, .field select, .field textarea {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cbbfae;
  border-radius: 8px;
  background: #fff;
  font: 400 16px var(--sans);
  color: var(--ink);
  width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field .error { color: var(--red-dark); font-size: 14px; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--red); }
.field.invalid .error { display: block; }
.form-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-grid .full { grid-column: 1 / -1; }
.form-status {
  display: none;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: #e9f1e6;
  border: 1px solid #b9d1b0;
}
.form-status.show { display: block; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list li { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.contact-list strong { display: block; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: #e6dccf;
  padding: 48px 0 110px;
  font-size: 15px;
}
.site-footer .brand { color: #fff; }
.site-footer .brand span { color: var(--gold); }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1.2fr 0.8fr; } }
.site-footer a { color: #f3d9a4; }
.site-footer h4 { font: 600 13px var(--sans); text-transform: uppercase; letter-spacing: 0.12em; color: #fff; margin: 0 0 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.fine { margin-top: 28px; padding-top: 20px; border-top: 1px solid #4a3f37; font-size: 13px; color: #b8aa9a; }

/* Notice bar for proof-of-concept */
.poc-bar {
  background: var(--gold);
  color: var(--ink);
  font-size: 14px;
  text-align: center;
  padding: 8px 16px;
}
.poc-bar strong { font-weight: 700; }

@media (max-width: 640px) {
  .menu-tools { position: static; }
  .hero .wrap { padding: 64px 0 72px; }
  section.block { padding: 48px 0; }
  .nav { gap: 4px 14px; font-size: 15px; }
  .dish { grid-template-columns: 76px 1fr; }
  .dish img { width: 76px; height: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- v2: notice, bag, team, admin ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.notice {
  background: var(--red);
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-weight: 500;
}
.notice[hidden] { display: none; }
.bullets { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 15px; }
.add-btn { margin-top: 10px; }
.form-status.error { background: #f8e4e4; border-color: #e6b7b7; }

/* Header bag button */
.nav button,
.bag-toggle {
  background: none;
  border: none;
  padding: 6px 0;
  font: 500 16px var(--sans);
  color: var(--ink);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.bag-toggle:hover { border-bottom-color: var(--red); }
.bag-count {
  display: inline-block;
  min-width: 24px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

/* Bag drawer */
.bag-dialog {
  width: min(560px, calc(100% - 24px));
  max-height: calc(100vh - 32px);
  border: none;
  border-radius: 14px;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.bag-dialog::backdrop { background: rgba(30, 20, 15, 0.5); }
.bag-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--paper);
}
.bag-head h2 { font-size: 24px; margin: 0; }
.bag-body { padding: 18px 22px 24px; overflow: auto; max-height: calc(100vh - 110px); }
.bag-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bag-lines li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.bag-lines .muted { display: block; font-size: 14px; }
.qty { display: inline-flex; align-items: center; gap: 4px; }
.qty button {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid #cbbfae;
  background: #fff;
  font: 600 18px var(--sans);
  color: var(--ink);
  cursor: pointer;
}
.qty span { min-width: 28px; text-align: center; font-weight: 700; }
.bag-total { display: flex; justify-content: space-between; margin: 16px 0; font-size: 17px; }
.suggest { background: #fdf6ea; border: 1px solid #ecd5a6; border-radius: var(--radius); padding: 14px 16px; margin: 8px 0 18px; }
.suggest h3 { font: 700 18px var(--serif); margin: 0 0 10px; }
.suggest-grid { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 480px) { .suggest-grid { grid-template-columns: 1fr 1fr; } }
.suggest-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 15px;
}
.bag-form { display: grid; gap: 14px; margin-top: 8px; }
.bag-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Team */
.person { text-align: left; align-items: flex-start; }
.avatar {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red), #c0553a);
  color: #fff;
  display: grid;
  place-items: center;
  font: 700 24px var(--serif);
}
.role { margin: -4px 0 0; color: var(--gold); font-weight: 600; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; }

/* Admin */
body.admin { background: #f4efe7; }
.admin-tag {
  margin-left: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--ink);
  color: #fff;
  padding: 4px 9px;
  border-radius: 6px;
}
.admin .nav { gap: 6px; }
.admin .nav [role="tab"] { padding: 8px 12px; border-radius: 8px; }
.admin .nav [role="tab"][aria-selected="true"] { background: var(--ink); color: #fff; }
.admin .site-header .wrap { justify-content: flex-start; }
.admin .site-header .nav { margin-left: auto; }
.admin-main { padding: 24px 0 64px; }
.admin-status { min-height: 24px; font-weight: 600; color: #3b6b34; margin: 0 0 12px; }
.admin-status.error { color: var(--red-dark); }
.admin-toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.admin-toolbar input {
  flex: 1 1 280px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #cbbfae;
  border-radius: 8px;
  font: 400 16px var(--sans);
  background: #fff;
}
.admin-list { display: grid; gap: 14px; }
.admin-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: grid;
  gap: 14px;
}
.admin-card h2 { font-size: 22px; margin: 6px 0 0; }
.admin-card .field input, .admin-card .field textarea, .admin-card .field select {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #cbbfae;
  border-radius: 8px;
  font: 400 15px var(--sans);
  background: #fff;
}
.admin-card .field textarea { min-height: 70px; resize: vertical; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important; font-size: 13px !important; }
.item-head { display: flex; gap: 14px; align-items: center; }
.item-head img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.grid-fields { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid-fields { grid-template-columns: repeat(3, 1fr); } }
.checks { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin: 0; display: grid; gap: 8px; }
.checks legend { font-weight: 600; font-size: 14px; padding: 0 4px; }
.checks label { display: flex; gap: 8px; align-items: center; font-size: 15px; }
.admin-actions { display: flex; gap: 10px; align-items: center; }

/* Placeholder notes for features not yet connected */
.not-live {
  background: #fdf3e1;
  border: 1px dashed #c9a25a;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  margin: 0;
  color: #6b4a1e;
}
.avatar-photo { width: 72px; height: 72px; border-radius: 999px; object-fit: cover; }

/* Logo: the SVG replaces the old text wordmark */
.brand { display: inline-flex; align-items: center; }
.brand img { height: 56px; width: auto; display: block; }
.site-footer .brand img { height: 60px; filter: brightness(0) invert(1); }

/* Room photos, photo picker, admin headings */
.room-photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; }
.photo-picker { display: grid; gap: 12px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 640px) { .photo-picker { grid-template-columns: 160px 1fr; } }
.photo-picker > img { width: 160px; height: 120px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.photo-controls { display: grid; gap: 10px; }
.photo-controls label { display: grid; gap: 4px; font-size: 14px; font-weight: 600; }
.photo-controls select, .photo-controls input[type="file"] { min-height: 40px; font: 400 15px var(--sans); }
.admin-heading { font-size: 24px; margin: 28px 0 10px; }
.admin .item-head .thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }

/* Admin dashboard (sample data) */
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); margin: 16px 0; }
@media (min-width: 900px) { .kpis { grid-template-columns: repeat(5, 1fr); } }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 2px; }
.kpi span { font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.kpi strong { font: 700 26px/1.2 var(--serif); }
.kpi small { color: var(--muted); font-size: 13px; }
.dash-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .dash-grid { grid-template-columns: 1fr 1fr; } .dash-wide { grid-column: 1 / -1; } }
.chart { width: 100%; height: auto; display: block; }
.chart .axis { font: 500 12px var(--sans); fill: var(--muted); }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: 6px; }
.legend i, .share-list i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.hbar { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin-bottom: 12px; }
.hbar-label { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.hbar-label span { color: var(--muted); }
.hbar-track { background: #f1ebe2; border-radius: 6px; height: 14px; overflow: hidden; }
.hbar-track > div { height: 100%; border-radius: 6px; }
.hbar-value { font-weight: 700; font-size: 14px; }
.stack-bar { display: flex; height: 28px; border-radius: 8px; overflow: hidden; margin-bottom: 14px; }
.share-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 15px; }
.share-list li { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.heat { display: grid; grid-template-columns: 48px repeat(11, 1fr); gap: 4px; align-items: center; font-size: 12px; }
.heat-head { text-align: center; color: var(--muted); }
.heat-day { color: var(--muted); font-weight: 600; }
.heat-cell { height: 28px; border-radius: 4px; }

/* Testimonials */
.quote { margin: 0; }
.quote blockquote { margin: 0; font: 400 19px/1.55 var(--serif); font-style: italic; color: var(--ink); }
.quote figcaption { display: grid; gap: 2px; margin-top: auto; font-size: 15px; }
.quote figcaption span { color: var(--muted); font-size: 14px; }

/* Bag: copy list and fallback */
.bag-disclaimer { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.copy-status { font-size: 14px; color: #3b6b34; margin: 6px 0 0; }
.copy-fallback { width: 100%; min-height: 140px; font: 400 14px/1.5 var(--sans); padding: 10px; border: 1px solid #cbbfae; border-radius: 8px; margin-top: 8px; }

/* Menu: favorites, chips, detail dialog */
.fav-button {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid #cbbfae;
  background: rgba(255, 255, 255, 0.92);
  color: var(--red);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.fav-button[aria-pressed="true"] { background: var(--red); color: #fff; border-color: var(--red); }
.dish { position: relative; }
.dish-title { background: none; border: none; padding: 0; font: 700 18px/1.3 var(--sans); color: var(--ink); text-align: left; cursor: pointer; }
.dish-title:hover { text-decoration: underline; }
.chip .x { margin-left: 6px; font-weight: 700; }
.more-row { text-align: center; margin-top: 20px; }
.dish-dialog {
  width: min(680px, calc(100% - 24px));
  max-height: calc(100vh - 32px);
  border: none;
  border-radius: 14px;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.dish-dialog::backdrop { background: rgba(30, 20, 15, 0.5); }
.detail { display: grid; gap: 0; }
.detail img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.detail-body { padding: 20px 22px 24px; display: grid; gap: 12px; }
.detail-body h2 { font-size: 26px; margin: 0; }
.detail-body .num { color: var(--muted); font-size: 14px; }
.detail-note { font-size: 14px; color: #6b4a1e; background: #fdf3e1; border-radius: 8px; padding: 10px 12px; margin: 0; }
.detail-controls { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.detail-controls select { min-height: 40px; padding: 6px 10px; border: 1px solid #cbbfae; border-radius: 8px; font: 400 15px var(--sans); }
.detail-controls .btn { flex: 1 1 200px; }
.qty-control { display: inline-flex; align-items: center; gap: 4px; }
.qty-control button { width: 40px; height: 40px; border-radius: 999px; border: 1px solid #cbbfae; background: #fff; font: 600 18px var(--sans); cursor: pointer; }
.qty-control output { min-width: 32px; text-align: center; font-weight: 700; }

/* Stock image tag: one pill at the bottom-right of every stock photo */
.stock-wrap { position: relative; display: block; }
.stock-tag {
  position: absolute;
  right: 8px;
  bottom: 8px;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font: 600 11px/1 var(--sans);
  padding: 5px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.stock-wrap.small { width: max-content; }
.stock-wrap.small .stock-tag { right: 2px; bottom: 2px; font-size: 10px; padding: 3px 6px; }
.stock-wrap > img { display: block; }
.dish .stock-wrap.small { align-self: start; }

/* Hero name: animated 第一鍋 at the top of the home hero */
.hero.has-name .wrap { text-align: center; padding: 28px 0 56px; }
.hero.has-name h1 { margin-inline: auto; max-width: 30ch; font-size: clamp(30px, 5vw, 52px); }
.hero-line { display: block; }
.hero.has-name .actions { justify-content: center; }
.hero.has-name::before { background: linear-gradient(180deg, rgba(30, 12, 8, 0.78) 0%, rgba(30, 12, 8, 0.7) 100%); }
.name-art { width: min(100%, var(--name-w, 380px)); margin: 0 auto; }
.name-chars { display: grid; grid-template-columns: repeat(3, 1fr); }
.name-char { aspect-ratio: 1; }
.name-char svg { display: block; width: 100%; height: 100%; }
/* Both words share one coordinate space (ink bounds of the logo paths, 1920.89 x 275.66),
   so the lettering is centred by its ink, not by its svg boxes. */
.name-words { position: relative; width: var(--letters-w, 84%); margin: 4px auto 0; transform: translateX(0.64%); /* centres the lettering ink on the character ink, which sits 0.6% right of its box */ aspect-ratio: 1920.89 / 275.66; }
.name-word { position: absolute; display: block; }
.name-word.first { left: 0; width: 50.62%; top: 0.6%; height: 96.6%; }
.name-word.wok { left: 59.18%; width: 40.82%; top: 0; height: 100%; }
.name-word g { fill: var(--hero-cream); }
.name-art.is-armed .name-word { clip-path: inset(0 100% 0 0); }
.name-art.is-armed .name-word.show { clip-path: inset(0 0 0 0); transition: clip-path 0.9s cubic-bezier(0.4, 0, 0.2, 1); }
.name-art.is-armed .name-word.wok.show { transition-delay: 0.7s; }
.name-replay {
  display: block;
  margin: 2px auto 8px;
  min-height: 32px;
  padding: 4px 12px;
  background: none;
  border: 0;
  color: var(--hero-cream);
  font: 500 14px/1 var(--sans);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.name-replay:hover { color: #fff; }
.name-replay:focus-visible { outline: 2px solid var(--hero-cream); outline-offset: 2px; border-radius: 4px; }
.name-replay:disabled { opacity: 0.45; cursor: default; }
.hero.is-static .name-replay { visibility: hidden; }
@media (prefers-reduced-motion: reduce) {
  .name-art.is-armed .name-word,
  .name-art.is-armed .name-word.show { clip-path: none; transition: none; }
}

/* Hero on phones: keep both buttons above the fold at 360 x 740 */
@media (max-width: 640px) {
  .hero.has-name .wrap { padding: 16px 0 44px; }
  .hero.has-name { --name-w: 250px; }
  .hero.has-name .eyebrow { display: none; }
  .hero.has-name h1 { font-size: 30px; margin-bottom: 18px; }
  .hero.has-name .actions { gap: 8px; }
  .hero.has-name .btn { padding: 10px 16px; font-size: 14px; }
}

/* Media sources page */
.source-list { display: grid; gap: 20px; margin-top: 20px; }
.source-item { display: grid; grid-template-columns: 160px 1fr; gap: 20px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.source-item[hidden] { display: none; }
.source-thumb { width: 160px; height: 107px; object-fit: cover; border-radius: 6px; background: var(--paper); }
.source-body h3 { margin: 0 0 8px; font-size: 20px; }
.source-ref { font: 600 14px var(--sans); color: var(--red); margin-right: 6px; }
.source-flag { margin: 0 0 10px; padding: 8px 12px; background: #fdf3e1; border: 1px solid #ecd5a6; border-radius: 6px; font-size: 15px; }
.source-facts { margin: 0; display: grid; gap: 6px; font-size: 15px; }
.source-facts div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 12px; }
.source-facts dt { color: var(--muted); }
.source-facts dd { margin: 0; overflow-wrap: anywhere; }
.source-find { min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; font: inherit; width: min(100%, 22rem); margin-top: 6px; }
@media (max-width: 640px) {
  .source-item { grid-template-columns: 1fr; padding: 16px; }
  .source-thumb { width: 100%; height: auto; aspect-ratio: 3 / 2; }
  .source-facts div { grid-template-columns: 1fr; gap: 0; }
}
