/* Chị Marissa Bánh Mì — Saigon shopfront-sign palette */
:root {
  --gold: #f3b02c;      /* baguette crust, hero sign */
  --red: #c1272d;       /* lacquer red, prices & ticker */
  --teal: #0e5f52;      /* pandan teal, story panel */
  --ink: #241505;       /* near-black brown */
  --cream: #fbf3e4;     /* rice-paper white */
  --white: #fffdf7;

  --display: "Bungee", sans-serif;
  --script: "Pacifico", cursive;
  --body: "Be Vietnam Pro", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

a { color: inherit; }

:focus-visible {
  outline: 3px dashed var(--ink);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--gold);
  padding: 0.5rem 1rem;
  z-index: 20;
}
.skip-link:focus { left: 0; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1.25rem;
  background: var(--ink);
  color: var(--gold);
}

.topbar-name {
  font-family: var(--script);
  font-size: 1.15rem;
}

.topbar-nav {
  display: flex;
  gap: 1.5rem;
  font-family: var(--display);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.topbar-nav a { text-decoration: none; }
.topbar-nav a:hover { color: var(--white); }

/* ---------- hero: painted enamel sign ---------- */
.hero {
  background: var(--gold);
  padding: clamp(1.5rem, 5vw, 4rem);
}

.hero-sign {
  border: 4px solid var(--ink);
  box-shadow: inset 0 0 0 6px var(--gold), inset 0 0 0 8px var(--ink);
  padding: clamp(2.5rem, 8vw, 6rem) clamp(1.25rem, 5vw, 4rem);
  text-align: center;
}

.hero-script {
  font-family: var(--script);
  font-size: clamp(1.75rem, 5vw, 3rem);
  color: var(--teal);
}

.hero-title {
  font-family: var(--display);
  font-size: clamp(3.25rem, 14vw, 10rem);
  line-height: 1;
  color: var(--red);
  text-shadow: 0.045em 0.045em 0 var(--ink);
  letter-spacing: 0.01em;
  margin: 0.1em 0 0.25em;
}

.hero-sub {
  font-weight: 600;
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  max-width: 34em;
  margin: 0 auto;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.btn {
  font-family: var(--display);
  font-size: 0.95rem;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--ink);
  color: var(--gold);
  padding: 0.8em 1.6em;
  border: 3px solid var(--ink);
  transition: background 0.15s, color 0.15s;
}

.btn:hover {
  background: var(--red);
  color: var(--white);
}

.hero-hours {
  font-weight: 700;
  border-bottom: 3px solid var(--red);
  padding-bottom: 0.15em;
}

/* ---------- ticker ---------- */
.ticker {
  background: var(--red);
  color: var(--cream);
  border-top: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
  overflow: hidden;
  white-space: nowrap;
}

.ticker-track {
  display: inline-block;
  padding: 0.55em 0;
  font-family: var(--display);
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  text-transform: uppercase;
  animation: ticker 28s linear infinite;
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* ---------- menu ---------- */
.menu {
  max-width: 68rem;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) 1.25rem;
}

.section-title {
  font-family: var(--display);
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  margin-bottom: 1.75rem;
}

.section-title-en {
  font-family: var(--script);
  font-size: 0.6em;
  color: var(--red);
  text-transform: none;
}

.menu-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 1.5rem;
}

.menu-card {
  background: var(--white);
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 1.5rem 1.5rem 1.75rem;
}

.menu-card-banh_mi {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
}

.menu-card-banh_mi .menu-list { margin-bottom: 1.5rem; }

.menu-combo {
  margin-top: auto;
  padding: 0.9em 1em 0.8em;
  background: var(--cream);
  border: 2px dashed var(--red);
  font-size: 0.95rem;
  text-align: center;
}

.menu-combo strong {
  font-family: var(--display);
  font-weight: 400;
  color: var(--red);
}

.menu-card-title {
  display: inline-block;
  font-family: var(--display);
  font-size: 1.3rem;
  color: var(--white);
  background: var(--red);
  padding: 0.25em 0.7em;
  margin: -2.35rem 0 0.75rem -0.25rem;
  border: 3px solid var(--ink);
}

.menu-card-drinks .menu-card-title { background: var(--teal); }
.menu-card-sides .menu-card-title { background: var(--gold); color: var(--ink); }

.menu-card-note {
  font-style: italic;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.menu-list { list-style: none; }

.menu-item { margin-bottom: 1.1rem; }
.menu-item:last-child { margin-bottom: 0; }

.menu-item-head {
  display: flex;
  align-items: baseline;
  gap: 0.5em;
}

.menu-item-name { font-weight: 700; }

.menu-item-dots {
  flex: 1;
  border-bottom: 2px dotted var(--ink);
  opacity: 0.45;
}

.menu-item-price {
  font-family: var(--display);
  font-size: 0.9rem;
  color: var(--red);
}

.menu-item-desc {
  display: block;
  font-size: 0.9rem;
}

.menu-loading {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-style: italic;
  font-size: 0.9rem;
}

.menu-spinner {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  border: 3px solid var(--ink);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: menu-spin 0.8s linear infinite;
}

@keyframes menu-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .menu-spinner { animation-duration: 2.4s; }
}

.menu-error {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--red);
}

/* ---------- story ---------- */
.story {
  background: var(--teal);
  color: var(--cream);
  padding: clamp(3.5rem, 8vw, 6rem) 1.25rem;
}

.story-inner { max-width: 42rem; margin: 0 auto; }

.story-title {
  font-family: var(--script);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--gold);
  margin-bottom: 1.25rem;
  line-height: 1.3;
}

.story-inner p + p { margin-top: 1rem; }

.story-image {
  display: block;
  width: 100%;
  margin-bottom: 1.25rem;
  border: 3px solid var(--gold);
  border-radius: 6px;
}

@media (min-width: 640px) {
  .story-inner { display: flow-root; }
  .story-image {
    float: left;
    max-width: 315px;
    margin: 0.4rem 1.75rem 1rem 0;
  }
}

.story .menu-spinner {
  border-color: var(--cream);
  border-top-color: var(--gold);
}

.story .menu-error { color: var(--gold); }

/* ---------- visit ---------- */
.visit {
  background: var(--gold);
  border-top: 4px solid var(--ink);
  padding: clamp(3rem, 7vw, 5rem) 1.25rem;
  text-align: center;
}

.visit-title {
  font-family: var(--display);
  font-size: clamp(2.25rem, 7vw, 4rem);
  color: var(--red);
  text-shadow: 0.045em 0.045em 0 var(--ink);
}

.visit-sub { font-weight: 600; margin: 0.5rem 0 2.25rem; }

.visit-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  text-align: left;
}

.visit-block {
  background: var(--white);
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 1.5rem 1.75rem;
  min-width: 16rem;
}

.visit-block h3 {
  font-family: var(--display);
  font-size: 1rem;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.hours div {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.hours dt { font-weight: 700; }

.hours .menu-loading,
.hours .menu-error {
  justify-content: flex-start;
  gap: 0.6em;
}

.visit-block p + p { margin-top: 0.75rem; }

/* ---------- footer ---------- */
.footer {
  background: var(--ink);
  color: var(--cream);
  text-align: center;
  font-size: 0.85rem;
  padding: 1.5rem 1.25rem;
}

/* ---------- responsive & motion ---------- */
@media (max-width: 44rem) {
  .menu-grid { grid-template-columns: 1fr; }
  .menu-card-banh_mi { grid-row: auto; }
  .topbar-nav { gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
}
