/* Tacos Mañana sample site: a market-stall poster. Loud color bands, Bagel Fat One, drawn chiles and a paper ticket. */
:root {
  --rosa: #e4007c;
  --rosa-deep: #b8005f;
  --sol: #ffc21a;
  --sol-soft: #fff1c7;
  --verde: #0b7a4b;
  --verde-soft: #c9ead6;
  --ink: #2a0e4a;
  --paper: #ffffff;
  --chile: #d4142a;

  --display: "Bagel Fat One", "Arial Rounded MT Bold", "Arial Black", sans-serif;
  --sans: "Archivo", "Arial", system-ui, sans-serif;

  --text-meta: .75rem;
  --text-secondary: .875rem;
  --text-body: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: 2.4rem;

  --motion-150: 150ms;
  --motion-200: 200ms;
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --wide: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--text-body)/1.55 var(--sans); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; }
h2 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h3 { font-size: var(--step-2); }
b { font-weight: 600; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.order :focus-visible, .footer :focus-visible, .dock :focus-visible, .hero :focus-visible, .top :focus-visible, .salsas :focus-visible { outline-color: var(--sol); }
.builder :focus-visible { outline-color: var(--ink); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--sol); color: var(--ink); padding: .75rem 1rem; z-index: 30; font-weight: 600; }
.skip:focus { top: 1rem; }
.wrap { width: 100%; max-width: var(--wide); margin: 0 auto; padding-inline: var(--gutter); }
.lead { font-size: var(--step-1); line-height: 1.45; max-width: 36rem; }
.small { font-size: var(--text-secondary); }

/* header on the pink band */
.top { background: var(--rosa); color: var(--paper); display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; padding: 1rem var(--gutter) .5rem; }
.logo {
  display: inline-grid; justify-items: center; padding: .55rem 1rem .6rem;
  background: var(--sol); color: var(--ink); border: 3px solid var(--ink); border-radius: 20px;
  font: 400 1.35rem/0.95 var(--display); text-decoration: none; transform: rotate(-5deg);
}
.logo span + span { font-size: .8em; }
.nav { display: flex; flex-wrap: wrap; gap: 0 .25rem; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .45rem; font-weight: 600; font-stretch: 112%; text-decoration: none; }
@media (min-width: 768px) { .nav a { padding: 0 .65rem; } }
.nav a:hover { text-decoration: underline wavy; text-decoration-thickness: 2px; }
.sample-tag { flex-basis: 100%; font-size: var(--text-meta); }
@media (min-width: 900px) {
  .sample-tag { flex-basis: auto; margin-left: auto; max-width: 15rem; text-align: right; }
}

/* hero */
.hero { background: var(--rosa); color: var(--paper); display: grid; gap: 2.5rem; padding: 2rem var(--gutter) 3rem; }
.hero h1 { font-size: clamp(2.9rem, 11vw, 6.3rem); max-width: 11ch; }
.hero-copy { display: grid; gap: 1.4rem; align-content: center; }
.hero-text { font-size: var(--step-1); line-height: 1.45; max-width: 30rem; }
.status { display: flex; align-items: center; gap: .55rem; font-weight: 600; font-stretch: 112%; }
.status::before { content: ""; width: 1rem; height: 1rem; border-radius: 50%; background: var(--paper); border: 3px solid var(--ink); flex: none; }
.status.is-open::before { background: var(--sol); }
.hero-pic { position: relative; transform: rotate(2deg); }
.hero-pic img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 6px solid var(--paper); border-radius: 30px; }
.scribble { display: flex; align-items: flex-end; gap: .4rem; margin: .9rem 0 0 1rem; max-width: 18rem; font-weight: 500; font-style: italic; transform: rotate(-4deg); }
.arrow { width: 3.5rem; flex: none; color: var(--sol); transform: scaleY(-1); }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.05fr 1fr; padding: 3rem max(var(--gutter), calc((100% - var(--wide)) / 2 + var(--gutter))) 4rem; gap: 3rem; }
  .scribble { margin: 1.1rem 0 0 2.5rem; }
}
.edge { display: block; width: 100%; height: 34px; }
.edge-rosa { background: var(--sol); fill: var(--rosa); }

/* buttons: fat pills with an ink border */
.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 1.5rem;
  background: var(--sol); color: var(--ink);
  border: 3px solid var(--ink); border-radius: 999px;
  font: 600 var(--text-body)/1 var(--sans); font-stretch: 115%;
  text-decoration: none; cursor: pointer;
  transition: transform var(--motion-150) var(--ease-out);
}
.btn:active { transform: translateY(2px); }
.btn-line { background: var(--paper); }
.btn-ink { background: var(--ink); color: var(--paper); }
@media (hover: hover) { .btn:hover { transform: rotate(-2deg); } }

/* tacos */
.menu { background: var(--sol); padding: 3rem 0 4.5rem; }
.menu .lead { margin-top: .75rem; }
.tiles { list-style: none; margin: 2.75rem 0 0; padding: 0; display: grid; gap: 2rem 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.tile { position: relative; display: grid; gap: .6rem; align-content: start; padding: 1.6rem 1.4rem 1.4rem; background: var(--paper); border: 3px solid var(--ink); border-radius: 26px; transform: rotate(-1deg); transition: transform var(--motion-150) var(--ease-out); }
.tile:nth-child(even) { transform: rotate(1.2deg); }
.tile h3 { padding-right: 4.5rem; }
@media (hover: hover) { .tile:hover { transform: rotate(0) translateY(-4px); } }
.stamp { position: absolute; top: -18px; right: 14px; width: 4.6rem; height: 4.6rem; display: grid; place-items: center; background: var(--rosa); color: var(--paper); border: 3px solid var(--ink); border-radius: 50%; font: 400 1.1rem/1 var(--display); transform: rotate(10deg); }
.heat { display: flex; gap: .15rem; color: var(--chile); }
.heat svg { width: 24px; height: 24px; fill: currentColor; }
.heat svg.off { fill: none; color: rgba(42, 14, 74, .35); }
.sides { margin-top: 2.5rem; font-weight: 500; max-width: 44rem; }

/* salsa bar */
.salsas { background: var(--verde); color: var(--paper); padding: 4rem 0; }
.salsa-grid { display: grid; gap: 3rem; align-items: center; }
.salsa-list { list-style: none; margin: 2rem 0 0; padding: 0; }
.salsa-list li { display: grid; grid-template-columns: 1fr auto; gap: .1rem 1rem; padding: 1rem 0; border-bottom: 2px dashed rgba(255, 255, 255, .45); }
.salsa-list b { font: 400 var(--step-2)/1.1 var(--display); }
.salsa-list span:not(.heat) { grid-column: 1; font-size: var(--text-secondary); }
.salsa-list .heat { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--sol); }
.salsa-list .heat svg.off { color: rgba(255, 255, 255, .55); }
.salsa-pic { position: relative; width: min(84vw, 400px); justify-self: center; }
.salsa-pic img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 6px solid var(--paper); transform: rotate(-4deg); }
.burst { position: absolute; left: -18px; top: -18px; width: 8.5rem; height: 8.5rem; color: var(--sol); }
.burst-text { position: absolute; left: -18px; top: -18px; width: 8.5rem; height: 8.5rem; display: grid; place-items: center; text-align: center; padding: 1.6rem; color: var(--ink); font: 400 1rem/1.05 var(--display); transform: rotate(-10deg); }
@media (min-width: 900px) { .salsa-grid { grid-template-columns: 1.1fr 1fr; gap: 4rem; } }

/* order: the ticket */
.order { background: var(--ink); color: var(--paper); padding: 4.5rem 0; }
.order-grid { display: grid; gap: 2.5rem; align-items: start; }
.order-copy { display: grid; gap: 1rem; }
.order-copy h2 { color: var(--sol); }
.squiggle { width: 12rem; height: 1.25rem; color: var(--rosa); }
.builder {
  --r: 9px;
  background: var(--paper); color: var(--ink);
  padding: 2.25rem clamp(1.1rem, 4vw, 2rem) 2.25rem;
  display: grid; gap: 1.1rem;
  -webkit-mask: radial-gradient(var(--r) at 50% 0, #0000 98%, #000) 50% 0 / calc(var(--r) * 3) 51% repeat-x, radial-gradient(var(--r) at 50% 100%, #0000 98%, #000) 50% 100% / calc(var(--r) * 3) 51% repeat-x;
  mask: radial-gradient(var(--r) at 50% 0, #0000 98%, #000) 50% 0 / calc(var(--r) * 3) 51% repeat-x, radial-gradient(var(--r) at 50% 100%, #0000 98%, #000) 50% 100% / calc(var(--r) * 3) 51% repeat-x;
}
.ticket-head { font: 400 var(--step-3)/1 var(--display); color: var(--rosa-deep); }
.lines { list-style: none; margin: 0; padding: 0; }
.lines li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 2px dashed rgba(42, 14, 74, .25); }
.line-name { font-weight: 600; }
.line-name small { display: block; font-weight: 400; font-size: var(--text-secondary); }
.stepper { display: inline-flex; align-items: center; gap: .4rem; }
.stepper button { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--ink); background: var(--paper); color: var(--ink); font: 600 1.25rem/1 var(--sans); cursor: pointer; }
.stepper button[data-step="1"] { background: var(--sol); }
.stepper button:active { transform: scale(.94); }
.stepper output { min-width: 2ch; text-align: center; font: 400 var(--step-1)/1 var(--display); }
.bump { animation: bump var(--motion-150) var(--ease-out); }
@keyframes bump { 50% { transform: scale(1.3); } }
.lines li.has-qty { background: linear-gradient(90deg, var(--sol-soft), transparent); }
.total { display: flex; justify-content: space-between; align-items: baseline; border-top: 3px solid var(--ink); padding-top: .9rem; font: 400 var(--step-2)/1 var(--display); }
.total output { display: inline-block; }
.ticket-fields { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.field { display: grid; gap: .35rem; font-weight: 600; font-size: var(--text-secondary); font-stretch: 112%; }
.optional { font-weight: 400; }
.field input, .field select { min-height: 48px; width: 100%; padding: 0 .9rem; border: 3px solid var(--ink); border-radius: 14px; font: 400 var(--text-body) var(--sans); color: var(--ink); background: var(--paper); }
.btn-big { width: 100%; min-height: 58px; background: var(--rosa); color: var(--paper); font-size: var(--step-1); }
.error { font-weight: 600; color: var(--chile); }
.done { background: var(--sol); border: 3px solid var(--ink); border-radius: 18px; padding: 1rem 1.1rem; font-weight: 500; transform: rotate(-1deg); }
@media (min-width: 900px) { .order-grid { grid-template-columns: 1fr 1.15fr; gap: 4rem; } .order-copy { position: sticky; top: 2rem; } }

/* photo strip */
.strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; padding: 3.5rem var(--gutter); max-width: var(--wide); margin: 0 auto; }
.strip figure { border: 3px solid var(--ink); border-radius: 22px; overflow: hidden; transform: rotate(-2deg); }
.strip figure:nth-child(even) { transform: rotate(1.5deg) translateY(10px); }
.strip img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.strip figure:nth-child(3) img { object-position: 60% 100%; }
@media (min-width: 768px) { .strip { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; } }

/* hours as seven tiles, and a drawn map */
.visit { padding: 2rem 0 4.5rem; }
.visit-grid { display: grid; gap: 3.5rem; }
.hours, .find { display: grid; gap: 1.25rem; align-content: start; }
.week { display: block; width: 100%; border-collapse: separate; }
.week tbody { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; }
.week tr { display: grid; justify-items: center; gap: .1rem; padding: .7rem .2rem; border: 3px solid var(--ink); border-radius: 18px; background: var(--paper); }
.week th { font: 400 var(--step-1)/1 var(--display); }
.week td { font-size: var(--text-secondary); font-weight: 500; font-stretch: 105%; white-space: nowrap; }
.week tr.is-today { background: var(--sol); transform: rotate(-4deg); position: relative; }
.week tr.is-today::after { content: "today"; position: absolute; top: -12px; right: -6px; background: var(--rosa); color: var(--paper); font-size: var(--text-meta); font-weight: 600; padding: .1rem .45rem; border-radius: 8px; border: 2px solid var(--ink); }
@media (min-width: 560px) { .week tbody { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.find p:not(.small) { max-width: 34rem; }
.map svg { width: 100%; height: auto; display: block; }
.map-bg { fill: var(--sol-soft); stroke: var(--ink); stroke-width: 3; }
.map-road { fill: none; stroke: var(--ink); stroke-width: 16; stroke-linecap: round; }
.map-market { fill: var(--verde-soft); stroke: var(--ink); stroke-width: 3; }
.map-text { font: 600 16px var(--sans); fill: var(--ink); }
.map-street { font: 600 15px var(--sans); fill: var(--ink); }
.map-bus { fill: var(--rosa); stroke: var(--ink); stroke-width: 3; }
.map-bus-text { font: 600 13px var(--sans); fill: var(--paper); }
.map-burst { color: var(--rosa); }
.map-name { font: 400 17px var(--display); fill: var(--paper); }
@media (max-width: 599.98px) {
  .map-text, .map-street { font-size: 24px; }
}
@media (min-width: 900px) { .visit-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }

/* contact */
.contact { background: var(--sol); padding: 4rem 0; }
.contact .wrap { display: grid; gap: 1.1rem; }
.phone { font: 400 clamp(2.4rem, 10vw, 5rem)/1 var(--display); }
.contact p:not(.phone) { max-width: 36rem; font-weight: 500; }

.footer { background: var(--ink); color: var(--paper); padding: 2.5rem 0 3rem; font-size: var(--text-secondary); }
.footer .wrap { display: grid; gap: .6rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--sol); }

/* phone dock: order, call and map stay one tap away */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--ink); border-top: 3px solid var(--sol); }
.dock a, .dock button { display: flex; align-items: center; justify-content: center; min-height: 56px; color: var(--paper); background: none; border: 0; font: 600 var(--text-body) var(--sans); font-stretch: 112%; text-decoration: none; cursor: pointer; }
.dock a:first-child { background: var(--rosa); }
body { padding-bottom: 59px; }
@media (min-width: 768px) { .dock { display: none; } body { padding-bottom: 0; } }

/* call panel */
.call { width: min(26rem, calc(100% - 2rem)); padding: 2rem; border: 4px solid var(--ink); border-radius: 28px; background: var(--paper); color: var(--ink); }
.call::backdrop { background: rgba(42, 14, 74, .6); }
.call[open] { display: grid; gap: 1rem; }
.call .phone { font-size: var(--step-3); color: var(--rosa-deep); }
.call .btn { justify-self: start; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
