/* Taqueria Tejupilco: "Adobe and Cilantro" (dark theme).
   Edit the colors below to re-theme the whole site. */

@font-face { font-family: "Outfit"; font-weight: 500; font-display: swap; src: url("../assets/fonts/outfit-500.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 700; font-display: swap; src: url("../assets/fonts/outfit-700.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 800; font-display: swap; src: url("../assets/fonts/outfit-800.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url("../assets/fonts/plexmono-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url("../assets/fonts/plexmono-500.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 600; font-display: swap; src: url("../assets/fonts/plexmono-600.woff2") format("woff2"); }

:root {
  --tj-bg: #2e140e;       /* adobe */
  --tj-surface: #3f1d14;
  --tj-deep: #230f0a;
  --tj-line: #5a2c20;
  --tj-ink: #f6e9cf;      /* masa cream */
  --tj-muted: #cdb899;
  --tj-accent: #a8c34a;   /* cilantro lime: buttons, prices, highlights */
  --tj-display: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --tj-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --tj-pad: clamp(1.25rem, 6vw, 6rem);
}

/* reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, p, ul, figure, dl { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; }

/* Smooth anchor scrolling only on mouse devices; phones keep native scrolling. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  background: var(--tj-bg);
  color: var(--tj-ink);
  font-family: var(--tj-display);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
:focus-visible { outline: 2px solid var(--tj-accent); outline-offset: 3px; }
section[id] { scroll-margin-top: 4.5rem; }
.tj-mono { font-family: var(--tj-mono); }
.skip { position: absolute; left: -999px; top: 0.5rem; z-index: 100; padding: 0.6rem 1rem; background: var(--tj-accent); color: var(--tj-deep); font-weight: 700; }
.skip:focus { left: 0.5rem; }

/* buttons and links */
.tj-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 2.9rem; padding: 0.7rem 1.35rem;
  border: 2px solid var(--tj-accent); border-radius: 2px;
  background: var(--tj-accent); color: var(--tj-deep);
  font-family: var(--tj-display); font-weight: 700; font-size: 1rem;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}
.tj-btn:hover { transform: translateY(-2px); background: transparent; color: var(--tj-accent); }
.tj-btn--sm { min-height: 2.5rem; padding: 0.5rem 1rem; font-size: 0.92rem; }
.tj-link {
  display: inline-flex; align-items: center; min-height: 2.9rem;
  color: var(--tj-ink); font-weight: 500; text-decoration: underline;
  text-decoration-color: var(--tj-accent); text-decoration-thickness: 0.14em; text-underline-offset: 0.32em;
}
.tj-link:hover { color: var(--tj-accent); }
.tj-link > span[aria-hidden] { margin-left: 0.4em; }

/* logo plate: the real logo has black lettering, so it sits on a cream ground */
.tj-logo-plate { display: inline-flex; align-items: center; padding: 0.2rem 0.4rem; background: var(--tj-ink); border-radius: 2px; }
.tj-logo-plate img { height: 2.7rem; width: auto; }

/* nav */
.tj-nav {
  position: fixed; z-index: 50; inset: 0 0 auto 0;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0.9rem var(--tj-pad);
  padding-top: max(0.9rem, env(safe-area-inset-top));
  background: linear-gradient(to bottom, var(--tj-bg) 0%, color-mix(in srgb, var(--tj-bg) 70%, transparent) 65%, transparent 100%);
}
.tj-brand { display: inline-flex; align-items: center; gap: 0.7rem; margin-right: auto; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.tj-navlinks { display: flex; gap: 1.6rem; font-weight: 500; }
.tj-navlinks a { color: var(--tj-muted); }
.tj-navlinks a:hover { color: var(--tj-ink); }
@media (max-width: 640px) { .tj-navlinks { display: none; } }
@media (max-width: 520px) { .tj-nav .tj-brand > span:not(.tj-logo-plate) { display: none; } }

/* shared section pieces */
.tj-section { max-width: 88rem; margin: 0 auto; padding: clamp(4.5rem, 9vw, 8rem) var(--tj-pad); }
.tj-band { background: var(--tj-deep); border-block: 1px solid var(--tj-line); }
.tj-band > .tj-section { margin-inline: auto; }
.tj-eyebrow { margin-bottom: 1rem; color: var(--tj-accent); font-family: var(--tj-mono); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.tj-h2 { max-width: 14ch; font-size: clamp(2.5rem, 6vw, 5.25rem); font-weight: 800; line-height: 0.96; letter-spacing: -0.04em; text-wrap: balance; }
.tj-lede { margin-top: 1.25rem; max-width: 46ch; color: var(--tj-muted); font-size: clamp(1.02rem, 1.4vw, 1.2rem); line-height: 1.55; }
.tj-fine { margin-top: 2rem; color: var(--tj-muted); font-family: var(--tj-mono); font-size: 0.78rem; }

/* hero */
.tj-hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 5rem); align-items: center;
  min-height: min(100svh, 58rem);
  padding: 7rem max(var(--tj-pad), calc((100vw - 88rem) / 2)) 4rem;
  border-bottom: 1px solid var(--tj-line);
}
.tj-hero__title { max-width: 13ch; font-size: clamp(2.75rem, 7vw, 6.25rem); font-weight: 800; line-height: 0.95; letter-spacing: -0.045em; text-wrap: balance; }
.tj-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.75rem; margin-top: 2rem; }
.tj-hero__tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; padding: 0; list-style: none; font-family: var(--tj-mono); font-size: 0.8rem; }
.tj-hero__tags li { padding: 0.4rem 0.7rem; border: 1px solid var(--tj-line); border-radius: 2px; color: var(--tj-muted); }
.tj-hero__photo { margin: 0 0.9rem 0.9rem 0; }
.tj-hero__photo img { width: 100%; height: min(72svh, 42rem); object-fit: cover; border-radius: 2px; box-shadow: 0.9rem 0.9rem 0 var(--tj-line); }
@media (max-width: 820px) {
  .tj-hero { grid-template-columns: 1fr; min-height: 0; padding-top: 6.5rem; padding-bottom: 3rem; }
  .tj-hero__photo img { height: 24rem; }
}

/* menu tickets */
.tj-tickets { columns: 3; column-gap: 1.5rem; margin-top: clamp(2rem, 4vw, 3.5rem); }
.tj-ticket {
  break-inside: avoid; margin-bottom: 1.5rem; padding: 2rem 1.75rem 2.25rem;
  background: var(--tj-surface); border: 1px solid var(--tj-line); border-radius: 2px;
  -webkit-mask: radial-gradient(circle 11px at 0 4.5rem, transparent 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 11px at 100% 4.5rem, transparent 97%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 11px at 0 4.5rem, transparent 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 11px at 100% 4.5rem, transparent 97%, #000) right / 51% 100% no-repeat;
}
.tj-ticket__title { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.tj-ticket__note { max-width: 34ch; margin: 0.4rem 0 1.5rem; color: var(--tj-muted); font-family: var(--tj-mono); font-size: 0.78rem; line-height: 1.5; }
.tj-ticket ul { padding: 0; list-style: none; }
.tj-ticket__title + ul { margin-top: 1.25rem; }
.tj-row { padding: 0.5rem 0; }
.tj-row__line { display: flex; align-items: baseline; gap: 0.6rem; font-size: 1.05rem; font-weight: 500; }
.tj-row__name { min-width: 0; }
.tj-row__lead { flex: 1; min-width: 1rem; border-bottom: 2px dotted var(--tj-line); transform: translateY(-0.25rem); }
.tj-row__price { white-space: nowrap; color: var(--tj-accent); font-family: var(--tj-mono); font-weight: 600; font-size: 0.98rem; }
.tj-row__detail { max-width: 36ch; margin-top: 0.2rem; color: var(--tj-muted); font-size: 0.88rem; line-height: 1.4; }
@media (max-width: 1100px) { .tj-tickets { columns: 2; } }
@media (max-width: 700px) { .tj-tickets { columns: 1; } .tj-ticket { -webkit-mask: none; mask: none; } }

/* food photo mosaic */
.tj-mosaic { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1rem; margin-top: clamp(2rem, 4vw, 3.5rem); padding: 0; list-style: none; }
.tj-mosaic li { position: relative; overflow: hidden; border-radius: 2px; aspect-ratio: 16 / 10; background: var(--tj-surface); }
.tj-mosaic li.tall { grid-row: span 2; aspect-ratio: auto; }
.tj-mosaic figure { height: 100%; }
.tj-mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.tj-mosaic li:hover img { transform: scale(1.04); }
.tj-mosaic figcaption {
  position: absolute; inset: auto 0 0 0; padding: 3rem 1.1rem 1.1rem;
  background: linear-gradient(to top, color-mix(in srgb, var(--tj-deep) 94%, transparent), transparent);
  font-size: 0.95rem; line-height: 1.4;
}
.tj-mosaic figcaption strong { display: block; margin-bottom: 0.15rem; font-family: var(--tj-mono); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
@media (max-width: 900px) {
  .tj-mosaic { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0.9rem; padding-bottom: 1rem; margin-inline: calc(var(--tj-pad) * -1); padding-inline: var(--tj-pad); overscroll-behavior-x: contain; }
  .tj-mosaic li, .tj-mosaic li.tall { flex: 0 0 78%; aspect-ratio: 4 / 5; scroll-snap-align: start; }
}

/* reputation */
.tj-rep { display: grid; grid-template-columns: auto 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.tj-numeral { font-size: clamp(9rem, 26vw, 22rem); font-weight: 800; line-height: 0.8; letter-spacing: -0.06em; }
.tj-facts { display: grid; gap: 0.9rem; margin-top: 2rem; padding: 0; list-style: none; font-family: var(--tj-mono); font-size: 0.9rem; color: var(--tj-muted); }
.tj-facts li { padding-top: 0.9rem; border-top: 1px solid var(--tj-line); }
.tj-facts strong { color: var(--tj-ink); font-weight: 600; }
@media (max-width: 820px) { .tj-rep { grid-template-columns: 1fr; } }

/* visit */
.tj-ledger { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 6vw, 6rem); margin-top: clamp(2rem, 4vw, 3.5rem); }
.tj-addr { margin-bottom: 1.5rem; font-size: clamp(1.7rem, 3.2vw, 2.6rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.03em; }
.tj-contact { display: grid; gap: 0.5rem; margin-bottom: 1.5rem; padding: 0; list-style: none; }
.tj-contact a { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 2.5rem; font-family: var(--tj-mono); font-size: 1rem; }
.tj-contact a:hover { color: var(--tj-accent); }
.tj-icon { width: 1.25rem; height: 1.25rem; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tj-good { display: grid; gap: 0.6rem; margin-top: 2rem; padding: 0; list-style: none; color: var(--tj-muted); line-height: 1.5; }
.tj-good li { position: relative; padding-left: 1.2rem; }
.tj-good li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 0.5rem; height: 2px; background: var(--tj-accent); }
.tj-hours { width: 100%; font-family: var(--tj-mono); font-size: 0.95rem; }
.tj-hours caption { padding-bottom: 1rem; text-align: left; color: var(--tj-accent); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.tj-hours th, .tj-hours td { padding: 0.85rem 0; border-top: 1px solid var(--tj-line); text-align: left; font-weight: 500; }
.tj-hours td { text-align: right; }
.tj-hours th { color: var(--tj-muted); }
.tj-hours tr:last-child th, .tj-hours tr:last-child td { border-bottom: 1px solid var(--tj-line); }
.tj-hours .is-closed td { color: var(--tj-muted); }
@media (max-width: 820px) { .tj-ledger { grid-template-columns: 1fr; } }

/* order online */
.tj-order { background: var(--tj-surface); border-block: 1px solid var(--tj-line); }
.tj-order__inner { max-width: 88rem; margin: 0 auto; padding: clamp(4rem, 8vw, 7rem) var(--tj-pad); }
.tj-partners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: clamp(2rem, 4vw, 3rem) 0 1.75rem; padding: 0; list-style: none; }
.tj-partner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 5.5rem; padding: 1.25rem 1.5rem;
  border: 2px solid var(--tj-ink); border-radius: 2px; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em;
  transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.tj-partner:hover { transform: translateY(-3px); border-color: var(--tj-accent); color: var(--tj-accent); }
.tj-partner .tj-icon { width: 1.75rem; height: 1.75rem; }
@media (max-width: 760px) { .tj-partners { grid-template-columns: 1fr; } }

/* footer */
.tj-footer { max-width: 88rem; margin: 0 auto; padding: 3.5rem var(--tj-pad) calc(3rem + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2.5rem; color: var(--tj-muted); line-height: 1.6; }
.tj-footer h3 { margin-bottom: 0.75rem; color: var(--tj-ink); font-family: var(--tj-mono); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.tj-footer a:hover { color: var(--tj-accent); }
.tj-footer .tj-logo-plate { margin-bottom: 1.25rem; padding: 0.75rem 1rem; }
.tj-footer .tj-logo-plate img { height: 9rem; }
.tj-legal { grid-column: 1 / -1; padding-top: 1.5rem; border-top: 1px solid var(--tj-line); font-family: var(--tj-mono); font-size: 0.78rem; }
@media (max-width: 760px) { .tj-footer { grid-template-columns: 1fr; } }
