/* ————————————————————————————————
   Crackle & Crumb — bánh mì & noodle cafe
   Palette drawn from the brand logo:
   flour cream / dark chocolate / rust / wheat / crust
   (greens survive only where the food needs them)
   Type: Paytone One (display) + Archivo (body)
   ———————————————————————————————— */

:root {
  --paper: #faf4e6;
  --card: #fffdf6;
  --ink: #33211a;
  --ink-soft: #6d5849;
  --rust: #9c4a24;
  --rust-deep: #7a3517;
  --herb: #47714d;
  --wheat: #d9a45b;
  --crust: #b5793f;
  --rule: rgba(51, 33, 26, 0.16);
  --display: 'Paytone One', 'Arial Rounded MT Bold', 'Segoe UI', sans-serif;
  --body: 'Archivo', 'Segoe UI', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* the full-bleed ticker uses 100vw, which includes the scrollbar */
}

a { color: var(--rust-deep); text-underline-offset: 3px; }
a:hover { color: var(--rust); }

:focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection { background: var(--wheat); color: var(--ink); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.amp { color: var(--rust); }

/* ——— Header ——— */

.site-head {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem clamp(1.25rem, 4vw, 3rem);
  background: rgba(250, 244, 230, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--ink);
}

.site-head-mark {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--display);
  font-size: 1.1rem;
  color: var(--ink);
  text-decoration: none;
}

.head-logo { width: 36px; height: 36px; }

.site-head nav { display: flex; gap: clamp(0.9rem, 3vw, 1.8rem); }

.site-head nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-head nav a:hover { color: var(--rust); }

/* ——— Layout ——— */

main { max-width: 72rem; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }

section { padding: clamp(3rem, 8vh, 5.5rem) 0; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--herb);
  margin-bottom: 0.9rem;
}

.section-head { margin-bottom: 2.4rem; }

.section-head h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.7rem, 4.5vw, 2.5rem);
  line-height: 1.2;
}

/* ——— Hero ——— */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-top: clamp(2.5rem, 7vh, 5rem);
}

.hero-logo { margin: 0 0 1.5rem; }

.hero-logo img {
  display: block;
  width: min(100%, 20rem);
  height: auto;
}

.hero-sub {
  margin-top: 1.4rem;
  max-width: 26rem;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: var(--ink-soft);
}

.hours-chip {
  display: inline-block;
  margin-top: 1.6rem;
  padding: 0.45rem 1.1rem;
  background: var(--herb);
  color: var(--paper);
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.hero-ctas {
  display: flex;
  gap: 0.9rem;
  margin-top: 1.8rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.7rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 10px;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-solid {
  background: var(--rust);
  color: var(--paper);
  border: 2px solid var(--rust);
}

.btn-solid:hover { background: var(--rust-deep); border-color: var(--rust-deep); color: var(--paper); }

.btn-outline {
  border: 2px solid var(--ink);
  color: var(--ink);
  background: transparent;
}

.btn-outline:hover { background: var(--ink); color: var(--paper); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn:hover { transform: none; transition: none; }
}

/* ——— Anatomy diagram ——— */

.anatomy { position: relative; }

.anatomy svg { width: 100%; height: auto; display: block; }

.anatomy-labels .lab {
  position: absolute;
  font-size: clamp(0.62rem, 1.3vw, 0.82rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  padding: 0.2em 0.55em;
  white-space: nowrap;
  box-shadow: 2px 2px 0 var(--ink);
}

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; }
  .anatomy { max-width: 34rem; }
}

/* On narrow screens the floating labels can't fit — stack them under the diagram */
@media (max-width: 640px) {
  .anatomy .leaders { display: none; }
  .anatomy-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.9rem;
  }
  .anatomy-labels .lab {
    position: static;
    white-space: normal;
    text-align: center;
  }
  .site-head {
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.7rem 1rem;
  }
}

/* ——— Ticker ——— */

.ticker {
  overflow: hidden;
  background: var(--rust);
  color: var(--paper);
  margin: 0 calc(50% - 50vw); /* full-bleed out of the centred column */
  padding: 0.55rem 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.ticker-track {
  display: flex;
  width: max-content;
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
  animation: ticker 28s linear infinite;
}

.ticker-track span { padding-right: 0.5em; }

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-25%); }
}

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

/* ——— Menu board ——— */

.menu-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.8rem, 4vw, 3.5rem);
  align-items: start;
}

@media (max-width: 820px) {
  .menu-columns { grid-template-columns: 1fr; }
}

.menu-col h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.35rem;
  color: var(--rust-deep);
  margin: 2rem 0 0.8rem;
}

.menu-col h3:first-child { margin-top: 0; }

.col-note {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 1.2rem;
  max-width: 30rem;
}

.board { list-style: none; }

.board-item {
  display: flex;
  gap: 0.9rem;
  padding: 0.75rem 0;
  align-items: flex-start;
}

.board-item + .board-item { border-top: 1.5px dashed var(--rule); }

.num {
  flex: 0 0 auto;
  min-width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 0.95rem;
  color: var(--paper);
  background: var(--ink);
  border-radius: 8px;
  padding: 0 0.3rem;
  margin-top: 0.15rem;
}

.board-copy { flex: 1; min-width: 0; }

.board-line {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.item-name { font-weight: 600; }

.board-line::after {
  content: "";
  order: 1;
  flex: 1;
  border-bottom: 2px dotted var(--rule);
  transform: translateY(-4px);
  min-width: 1rem;
}

.item-name { order: 0; }

.item-price {
  order: 2;
  font-weight: 700;
  color: var(--rust-deep);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.item-desc {
  margin-top: 0.15rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.menu-fine {
  margin-top: 2.2rem;
  font-size: 0.88rem;
  font-style: italic;
  color: var(--ink-soft);
}

/* ——— Baguette-score divider ——— */

.score-divider {
  height: 18px;
  margin: 0 auto;
  max-width: 16rem;
  background: repeating-linear-gradient(
    55deg,
    transparent 0 18px,
    var(--crust) 18px 24px
  );
  border-radius: 9px;
  opacity: 0.75;
}

/* ——— Bread story ——— */

.bread-copy { max-width: 40rem; }

.bread-copy p + p { margin-top: 1.1rem; }

.bread-copy strong { color: var(--rust-deep); }

/* ——— Visit ——— */

.visit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.2rem;
}

.visit-card {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 14px;
  box-shadow: 4px 4px 0 var(--ink);
  padding: 1.6rem 1.5rem;
}

.visit-card h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--herb);
  margin-bottom: 0.8rem;
}

.visit-card p { font-size: 0.95rem; }
.visit-card p + p { margin-top: 0.7rem; }

.visit-note { color: var(--ink-soft); font-size: 0.88rem; }

.hours { display: grid; gap: 0.45rem; }

.hours div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.95rem;
}

.hours dt { color: var(--ink-soft); }
.hours dd { font-weight: 600; font-variant-numeric: tabular-nums; }

/* ——— Footer ——— */

.site-foot {
  text-align: center;
  padding: 3rem 1.5rem 2.6rem;
  margin-top: 2rem;
  background: var(--ink);
  color: var(--paper);
}

.site-foot a { color: var(--wheat); }
.site-foot a:hover { color: var(--paper); }

.foot-mark {
  font-family: var(--display);
  font-size: 1.3rem;
  margin-bottom: 0.9rem;
}

.foot-line { font-size: 0.9rem; opacity: 0.85; margin-bottom: 0.35rem; }

.foot-fine {
  margin-top: 1.6rem;
  font-size: 0.78rem;
  opacity: 0.6;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

/* ——— 404 ——— */

.lost {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.lost h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.2rem, 8vw, 4rem);
  margin-bottom: 1.2rem;
}

.lost p { color: var(--ink-soft); max-width: 28rem; margin: 0 auto 2rem; }
