/* Layout: a taqueria counter on a trading desk. Painted-sign hero, ticker
   tape, a pool plate, nutrition label and a heat-level menu board. */
:root {
  --bg: #F5D99B;          /* tortilla */
  --bg-band: #EDC77E;     /* toasted tortilla */
  --fg: #2A1A10;          /* black bean */
  --fg-soft: #5E4431;
  --accent: #C8311C;      /* salsa roja */
  --on-accent: #FFF6E6;
  --accent-2: #3F7F2A;    /* guac */
  --paper: #FFFBF0;       /* plate and label stock, stays paper in both themes */
  --paper-ink: #22160D;
  --paper-soft: #6B5544;
  --board: #2A1A10;       /* menu board */
  --board-ink: #F5D99B;
  --board-soft: #CDB38A;
  --rule: rgba(42, 26, 16, .22);
  --shadow: #2A1A10;
  --font-display: "Shrikhand", "Cooper Black", "Georgia", serif;
  --font-body: "Recursive", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Recursive", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --casual: "CASL" .6, "MONO" 0;
  --mono: "CASL" 0, "MONO" 1;
  --step--1: .8125rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: clamp(2.2rem, 1.4rem + 3.2vw, 3.6rem);
  --step-3: clamp(3.4rem, .5rem + 14vw, 7.5rem);
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1C130D;
    --bg-band: #271A11;
    --fg: #F5DFB0;
    --fg-soft: #CDB38A;
    --accent: #F0553A;
    --on-accent: #1C130D;
    --accent-2: #7CC456;
    --paper: #F7EBCF;
    --paper-ink: #22160D;
    --paper-soft: #6B5544;
    --board: #0F0A06;
    --board-ink: #F5DFB0;
    --board-soft: #B39A74;
    --rule: rgba(245, 223, 176, .2);
    --shadow: #4A2E1A;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1C130D;
  --bg-band: #271A11;
  --fg: #F5DFB0;
  --fg-soft: #CDB38A;
  --accent: #F0553A;
  --on-accent: #1C130D;
  --accent-2: #7CC456;
  --paper: #F7EBCF;
  --paper-ink: #22160D;
  --paper-soft: #6B5544;
  --board: #0F0A06;
  --board-ink: #F5DFB0;
  --board-soft: #B39A74;
  --rule: rgba(245, 223, 176, .2);
  --shadow: #4A2E1A;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-variation-settings: var(--casual);
  font-size: var(--step-0);
  line-height: 1.55;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 30;
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap {
    padding-left: max(32px, env(safe-area-inset-left, 0px));
    padding-right: max(32px, env(safe-area-inset-right, 0px));
  }
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  background: var(--fg);
  color: var(--bg);
  padding: .5rem 1rem;
  z-index: 50;
}
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 8px); }

.eyebrow {
  font-family: var(--font-mono);
  font-variation-settings: var(--mono);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}
h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-2);
  line-height: 1.02;
  letter-spacing: -.01em;
}
.fine { font-size: var(--step--1); color: var(--fg-soft); max-width: 46ch; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: .7rem 1.35rem;
  border: 3px solid var(--fg);
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-variation-settings: "CASL" 1, "MONO" 0;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--shadow); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--shadow); }
.btn-ghost { background: transparent; color: var(--fg); }
.btn[aria-disabled="true"] { opacity: .6; cursor: default; pointer-events: none; }
.btn-sm { min-height: 40px; padding: .45rem 1rem; font-size: .9rem; box-shadow: 3px 3px 0 var(--shadow); }
.actions { display: flex; flex-wrap: wrap; gap: .85rem; }

/* Nav */
.nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: var(--bg);
  border-bottom: 3px solid var(--fg);
}
.nav-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 64px; }
.nav-mark {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  text-decoration: none;
  color: var(--accent);
  margin-right: auto;
}
.nav-mark img { width: 36px; height: 36px; }
.nav-links { display: none; gap: 1.5rem; }
.nav-links a { text-decoration: none; font-weight: 650; font-size: .95rem; }
.nav-links a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; text-decoration-color: var(--accent); }
@media (min-width: 900px) { .nav-links { display: flex; } }

/* Hero */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4.5rem); overflow: hidden; }
.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.25fr .9fr; }
  .hero-grid .hero-title { font-size: clamp(3.4rem, 1rem + 8.4vw, 7.5rem); }
}
.hero-copy { display: grid; gap: 1.5rem; min-width: 0; }
.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-3);
  line-height: .9;
  letter-spacing: -.02em;
  color: var(--accent);
  text-shadow: 4px 4px 0 var(--shadow);
  margin-left: -.04em;
}
.hero-lede { font-size: var(--step-1); line-height: 1.45; max-width: 34ch; font-weight: 500; }

.ca {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  padding: .7rem .8rem .7rem 1rem;
  border: 2px dashed var(--fg);
  border-radius: var(--radius);
  max-width: 36rem;
}
.ca-label {
  font-family: var(--font-mono);
  font-variation-settings: var(--mono);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-soft);
}
.ca-value {
  flex: 1 1 14rem;
  min-width: 0;
  font-family: var(--font-mono);
  font-variation-settings: var(--mono);
  font-size: .92rem;
  overflow-wrap: anywhere;
}
.ca-copy {
  border: 2px solid var(--fg);
  background: var(--fg);
  color: var(--bg);
  border-radius: 999px;
  font: inherit;
  font-weight: 750;
  font-size: .85rem;
  padding: .35rem .9rem;
  cursor: pointer;
}
.ca-copy:disabled { opacity: .4; cursor: not-allowed; }

.hero-art { position: relative; display: grid; justify-items: center; }
.mascot {
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  width: min(320px, 70vw);
  animation: drop .9s cubic-bezier(.2, 1.4, .4, 1) both, bob 4s ease-in-out .9s infinite;
  -webkit-tap-highlight-color: transparent;
}
.mascot img { width: 100%; }
.mascot.squish img { animation: squish .45s ease; }
.mascot-hint {
  font-family: var(--font-mono);
  font-variation-settings: var(--mono);
  font-size: var(--step--1);
  color: var(--fg-soft);
  margin-top: .25rem;
}
.sticker {
  position: absolute;
  width: clamp(110px, 24vw, 160px);
  top: 0;
  right: max(0px, calc(50% - 230px));
  transform: rotate(12deg);
}
.sticker-disc { fill: var(--accent-2); stroke: var(--fg); stroke-width: 4; }
.sticker-spin { transform-origin: 100px 100px; animation: spin 26s linear infinite; }
.sticker-ring {
  font-family: var(--font-mono);
  font-variation-settings: var(--mono);
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: 1.5px;
  fill: var(--on-accent);
}
.sticker-big { font-family: var(--font-display); font-size: 40px; fill: var(--on-accent); }
.sticker-small {
  font-family: var(--font-body);
  font-variation-settings: "CASL" 1, "MONO" 0;
  font-weight: 800;
  font-size: 16px;
  fill: var(--on-accent);
}

@keyframes drop { from { transform: translateY(-60px) rotate(-8deg); } to { transform: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes squish { 0% { transform: scale(1, 1); } 30% { transform: scale(1.12, .86); } 60% { transform: scale(.94, 1.08); } 100% { transform: scale(1, 1); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Ticker tape */
.tape {
  background: var(--fg);
  color: var(--bg);
  border-block: 3px solid var(--fg);
  overflow: hidden;
  transform: rotate(-1.2deg);
  margin-inline: -2vw;
}
.tape-track {
  display: flex;
  width: max-content;
  animation: tape 32s linear infinite;
}
.tape-track span {
  font-family: var(--font-mono);
  font-variation-settings: var(--mono);
  font-weight: 750;
  font-size: .95rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: .8rem 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 1.4rem;
}
.tape-track span::after { content: "▲"; color: var(--accent-2); font-size: .7rem; }
.tape-track span:nth-child(3n)::after { content: "▼"; color: var(--accent); }
@keyframes tape { to { transform: translateX(-50%); } }

main { overflow-x: clip; }

/* Sections */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }

/* Pair */
.pair-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) {
  .pair-grid { grid-template-columns: 1fr 1.1fr; align-items: start; }
}
.pair-copy { display: grid; gap: 1.1rem; max-width: 34rem; min-width: 0; }
.pair-copy p:last-child { font-family: var(--font-display); font-size: var(--step-1); color: var(--accent-2); }
.pair-board { display: grid; gap: 1.25rem; min-width: 0; }
.plate {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: .5rem;
  padding: 1.5rem 1rem;
  border: 3px solid var(--fg);
  border-radius: 999px / 70%;
  background: var(--paper);
  color: var(--paper-ink);
  box-shadow: 6px 6px 0 var(--shadow);
}
.plate-side { display: grid; justify-items: center; text-align: center; gap: .3rem; min-width: 0; }
.plate-side strong { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; line-height: 1.1; }
.plate-side > span:last-child { font-size: var(--step--1); color: var(--paper-soft); }
.coin {
  width: 84px;
  height: 84px;
  margin-block: 4px;
}
.coin-cmg {
  width: 84px;
  height: 84px;
  margin-block: 4px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 3px solid var(--paper-ink);
  background: var(--paper-ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-variation-settings: var(--mono);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: .04em;
  box-shadow: inset 0 0 0 5px var(--paper-ink), inset 0 0 0 7px var(--paper);
}
.plate-mid { display: grid; justify-items: center; gap: .25rem; }
.plate-mid svg { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.plate-mid span {
  font-family: var(--font-mono);
  font-variation-settings: var(--mono);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--paper-soft);
}
.flows { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.flows li { display: flex; gap: .75rem; align-items: baseline; }
.flows b {
  flex: none;
  width: 3.5rem;
  font-family: var(--font-mono);
  font-variation-settings: var(--mono);
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}
.math-note { font-size: var(--step--1); color: var(--fg-soft); }


/* Nutrition label */
.inside-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .inside-grid { grid-template-columns: minmax(0, 400px) 1fr; gap: 4rem; } }
.inside-copy { display: grid; gap: 1.1rem; max-width: 36rem; min-width: 0; }
.label {
  background: var(--paper);
  color: var(--paper-ink);
  border: 2px solid var(--paper-ink);
  padding: .5rem .7rem .7rem;
  font-family: "Helvetica Neue", Helvetica, Arial, var(--font-body);
  font-variation-settings: "CASL" 0, "MONO" 0;
  box-shadow: 6px 6px 0 var(--shadow);
  transform: rotate(-1deg);
  max-width: 400px;
  width: 100%;
  min-width: 0;
}
.label-title {
  font-family: var(--font-body);
  font-variation-settings: "CASL" 0, "MONO" 0;
  font-weight: 1000;
  font-size: clamp(2.1rem, 9vw, 2.75rem);
  line-height: 1;
  letter-spacing: -.02em;
  padding-bottom: .3rem;
  border-bottom: 1px solid var(--paper-ink);
}
.label-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .28rem;
  border-bottom: 1px solid var(--paper-ink);
  font-size: .95rem;
  font-variant-numeric: tabular-nums;
}
.label-row > span:last-child { text-align: right; font-weight: 700; }
.label-serving { border-bottom: 10px solid var(--paper-ink); padding-block: .4rem; font-weight: 800; }
.label-cal { border-bottom: 5px solid var(--paper-ink); font-weight: 1000; font-size: 1.6rem; line-height: 1.1; }
.label-cal > span:last-child { font-weight: 1000; }
.label-dv { text-align: right; font-weight: 800; font-size: .85rem; padding-block: .25rem; border-bottom: 1px solid var(--paper-ink); }
.label-indent > span:first-child { padding-left: 1.25rem; }
.label-last { border-bottom: 10px solid var(--paper-ink); }
.label-foot { font-size: .78rem; line-height: 1.35; padding-top: .45rem; }

/* Menu board */
.section-board { background: var(--board); color: var(--board-ink); }
.section-board .eyebrow { color: var(--accent-2); }
.section-board h2 { margin-top: .75rem; }
.menu {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0 3rem;
}
@media (min-width: 760px) { .menu { grid-template-columns: 1fr 1fr; } }
.menu li { padding-block: 1.25rem; border-bottom: 2px dotted var(--board-soft); display: grid; gap: .4rem; min-width: 0; }
.menu-head { display: flex; align-items: baseline; gap: 1rem; }
.menu-head h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.8rem; line-height: 1.1; }
.menu-head::after { content: ""; flex: 1; order: 1; border-bottom: 2px dotted var(--board-soft); transform: translateY(-.3em); }
.heat { order: 2; display: inline-flex; gap: 4px; }
.heat i {
  width: 14px;
  height: 22px;
  background: var(--accent);
  border-radius: 50% 50% 50% 50% / 30% 30% 70% 70%;
  position: relative;
  transform: rotate(18deg);
}
.heat i::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 4px;
  width: 6px;
  height: 7px;
  background: var(--accent-2);
  border-radius: 3px 3px 0 0;
}
.menu p { color: var(--board-soft); max-width: 40ch; }

/* CTA */
.cta { text-align: center; }
.cta-inner { display: grid; justify-items: center; gap: 1.25rem; }
.cta-title { font-size: clamp(3.2rem, 2rem + 8vw, 7rem); color: var(--accent); text-shadow: 4px 4px 0 var(--shadow); line-height: 1; }
.cta .actions { justify-content: center; }
.cta-inner > p:not(.fine) { font-size: var(--step-1); max-width: 30ch; }

/* Footer */
.foot { border-top: 3px solid var(--fg); padding-block: 2rem 2.5rem; }
.foot-inner { display: grid; gap: 1rem; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 1.5rem; }
.foot-mark { font-family: var(--font-display); font-size: 1.6rem; color: var(--accent); }
.foot-legal { font-size: .72rem; color: var(--fg-soft); line-height: 1.55; padding-top: 1rem; border-top: 1px solid var(--rule); }
.foot-small { font-family: var(--font-mono); font-variation-settings: var(--mono); font-size: .75rem; color: var(--fg-soft); }

/* Toast and particle layer */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 20px);
  transform: translateX(-50%);
  z-index: 40;
  width: max-content;
  max-width: calc(100vw - 32px);
  background: var(--fg);
  color: var(--bg);
  padding: .75rem 1.1rem;
  border-radius: var(--radius);
  font-weight: 650;
  font-size: .95rem;
  box-shadow: 4px 4px 0 var(--accent);
}
.spill { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 35; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mascot, .mascot.squish img, .sticker-spin, .tape-track { animation: none; }
  .btn, .btn:hover, .btn:active { transition: none; }
}
