/* ==========================================================================
   Papi's Birria — launch site
   World: a lucha libre fight poster, three inks (red, ink, white), each a ground.
   Faces: Archivo (variable width) for the wood-type stacks and bands,
          Permanent Marker for the truck's own hand lettering.
   ========================================================================== */

:root {
  --red: #DE1C23;
  --ink: #17120F;
  --white: #FFF8F2;
  --white-dim: #F4E6DC;
  --hot: #FFE4E0;

  --font-poster: "Archivo", "Arial Narrow", Arial, sans-serif;
  --font-marker: "Permanent Marker", "Marker Felt", "Segoe Print", "Bradley Hand", cursive;

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 78rem;
  --nav-h: 4.5rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --rule: 3px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--red) var(--ink); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-poster);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--white);
  background: var(--ink);
  caret-color: var(--red);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--ink); color: var(--white); }
.ground-ink ::selection { background: var(--white); color: var(--ink); }
.ground-white ::selection { background: var(--red); color: var(--white); }

::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--red); border: 3px solid var(--ink); }

img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 3px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 900; }
strong { font-weight: 800; }

:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
.ground-red :focus-visible { outline-color: var(--white); }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 0.5rem; left: 0.5rem; z-index: 100; padding: 0.6rem 0.9rem; background: var(--white); color: var(--ink); font-weight: 800; transform: translateY(-200%); }
.skip-link:focus { transform: none; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* Grounds: each ink is a ground somewhere ----------------------------------- */
.ground-red { position: relative; background: var(--red); color: var(--white); }
.ground-red::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("../assets/img/wave.svg") 0 0 / 520px 520px;
  opacity: 0.09;
}
.ground-red > * { position: relative; }
.ground-ink { background: var(--ink); color: var(--white); }
.ground-white { background: var(--white); color: var(--ink); }

/* Type ---------------------------------------------------------------------- */
.shout {
  font-family: var(--font-poster);
  font-stretch: 62%;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.86;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.marker {
  font-family: var(--font-marker);
  font-weight: 400;
  line-height: 1.1;
  color: var(--white);
  text-shadow: -1px -1px 0 var(--ink), 1px -1px 0 var(--ink), -1px 1px 0 var(--ink), 1px 1px 0 var(--ink), 0.07em 0.07em 0 var(--ink);
}
.lede { font-size: 1.2rem; line-height: 1.5; font-weight: 500; }
.band {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5em 0.75em;
  margin: 2rem 0 0;
  padding: 0.55em 0;
  border-block: var(--rule) solid currentColor;
  font-stretch: 75%;
  font-weight: 800;
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.band__dot { width: 0.5em; height: 0.5em; background: currentColor; border-radius: 50%; }

/* Buttons ------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 3.25rem;
  padding: 0.75rem 1.5rem;
  border: 3px solid currentColor;
  background: transparent;
  color: inherit;
  font-family: var(--font-poster);
  font-stretch: 75%;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s var(--ease-out), color 0.18s var(--ease-out), transform 0.18s var(--ease-out);
}
.btn:hover { background: currentColor; }
.btn:hover > * { color: var(--ink); }
.ground-red .btn:hover, .hero .btn:hover { color: var(--red); background: var(--white); border-color: var(--white); }
.ground-ink .btn:hover { color: var(--ink); background: var(--white); border-color: var(--white); }
.ground-white .btn:hover { color: var(--white); background: var(--ink); border-color: var(--ink); }
.btn:active { transform: translateY(2px); }
.btn--primary { background: var(--ink); color: var(--white); border-color: var(--ink); }
.ground-ink .btn--primary { background: var(--red); border-color: var(--red); }
.ground-white .btn--primary { background: var(--red); border-color: var(--red); color: var(--white); }
.ground-white .btn--primary:hover { background: var(--ink); border-color: var(--ink); }
.btn--small { min-height: 2.5rem; padding: 0.4rem 1rem; font-size: 0.9rem; border-width: 2px; }

/* Nav ----------------------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 1rem;
  height: var(--nav-h);
  padding-inline: var(--gutter);
  color: var(--white);
  background: transparent;
  transition: background-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.nav--solid { background: var(--ink); box-shadow: 0 2px 0 var(--red); }
.nav__brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; margin-right: auto; }
.nav__badge { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 0 2px var(--ink); }
.nav__name { font-stretch: 68%; font-weight: 900; font-size: 1.35rem; text-transform: uppercase; letter-spacing: 0.01em; }
.nav__links { display: none; gap: 1.75rem; }
.nav__links a { font-stretch: 75%; font-weight: 800; font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; padding: 0.4rem 0; border-bottom: 3px solid transparent; }
.nav__links a:hover { border-bottom-color: currentColor; }
.nav__actions { display: flex; align-items: center; gap: 0.75rem; }
.nav__ig { display: none; place-items: center; width: 2.5rem; height: 2.5rem; }
.nav__toggle { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; }
.nav__toggle path { transition: transform 0.25s var(--ease-out), opacity 0.2s; transform-box: fill-box; transform-origin: center; }
.nav__toggle[aria-expanded="true"] .bar1 { transform: translateY(5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .bar2 { opacity: 0; }
.nav__toggle[aria-expanded="true"] .bar3 { transform: translateY(-5px) rotate(-45deg); }
@media (max-width: 400px) { .nav__name { display: none; } }

.menu {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 1rem) var(--gutter) 2rem;
  background: var(--red);
  color: var(--white);
}
.menu[hidden] { display: none; }
.menu__links { display: flex; flex-direction: column; }
.menu__links a {
  font-stretch: 62%; font-weight: 900; font-size: clamp(3rem, 14vw, 6rem); line-height: 0.95;
  text-transform: uppercase; text-decoration: none;
  padding: 0.1em 0; border-bottom: var(--rule) solid var(--white);
}
.menu__links a:hover { color: var(--ink); }
.menu__foot { margin: 2rem 0 0; font-stretch: 75%; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }

@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__ig { display: grid; }
  .nav__toggle { display: none; }
}

/* Hero ---------------------------------------------------------------------- */
.hero {
  position: relative;
  display: grid; place-items: center;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 1rem) var(--gutter) 2.5rem;
  background: var(--red);
  color: var(--white);
  overflow: hidden;
}
.hero--night { background: #0D0B0C; }
.hero.hero--static::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("../assets/img/wave.svg") 0 0 / 520px 520px; opacity: 0.09;
}
.stage { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__bill {
  position: relative;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  width: min(100%, 52rem);
  gap: 0.25rem;
}
.hero__slot { width: clamp(200px, min(32vh, 70vw), 360px); aspect-ratio: 1; margin-bottom: clamp(1rem, 3vh, 2rem); }
.hero__fallback { width: 100%; height: 100%; border-radius: 50%; }
.hero--js .hero__fallback { visibility: hidden; }
.hero__tag { margin: 0 0 0.6rem; font-size: clamp(1.5rem, 4vw, 2.5rem); }
.hero__shout { font-size: clamp(3.4rem, 10.5vw, 6rem); }
.hero__shout .line { display: block; }
.hero__venue { margin: 1.25rem 0 0; font-size: clamp(1.05rem, 1.8vw, 1.25rem); max-width: 34ch; text-wrap: balance; }
.hero__venue strong { display: block; margin-top: 0.3rem; font-stretch: 75%; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 1.5rem; }
.hero__replay {
  display: inline-flex; align-items: center; gap: 0.45em;
  margin-top: 1.25rem; padding: 0.4rem 0.2rem; border: 0; border-bottom: 2px solid transparent;
  background: none; color: var(--white); font: inherit; font-family: var(--font-marker); font-size: 1.05rem; cursor: pointer;
}
.hero__replay:hover { border-bottom-color: currentColor; }
.hero__replay[hidden] { display: none; }
.hero__skip {
  position: absolute; right: var(--gutter); bottom: 1.5rem; z-index: 2;
  padding: 0.5rem 0.9rem; border: 2px solid rgba(255, 248, 242, 0.5); background: rgba(13, 11, 12, 0.55);
  color: var(--white); font: inherit; font-stretch: 75%; font-weight: 800; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer;
}
.hero__skip:hover { border-color: var(--white); }
.hero__skip[hidden] { display: none; }

/* Story --------------------------------------------------------------------- */
.story { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.story__grid { display: grid; gap: 2.5rem; align-items: start; }
.story__photo { margin: 0; }
.story__photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center; }
.story__photo figcaption { margin-top: 0.6rem; font-stretch: 75%; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.9; }
.story__text .shout { font-size: clamp(2.8rem, 7vw, 5.5rem); margin-bottom: 1.5rem; }
.story__text p { max-width: 66ch; }
.story__text p.band { max-width: none; }

@media (min-width: 820px) {
  .story__grid { grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 4.5rem); }
  .story__photo { position: sticky; top: calc(var(--nav-h) + 1.5rem); }
}

/* The card ------------------------------------------------------------------ */
.card { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.card__head { display: grid; gap: 1rem; align-items: end; margin-bottom: clamp(2rem, 5vw, 3.5rem); padding-bottom: 1.25rem; border-bottom: var(--rule) solid var(--white); }
.card__head .shout { font-size: clamp(3.4rem, 9vw, 6rem); color: var(--red); }
.card__sub { margin: 0; max-width: 42ch; color: var(--white-dim); }
@media (min-width: 820px) { .card__head { grid-template-columns: auto 1fr; gap: 3rem; } .card__sub { justify-self: end; text-align: right; } }

.main-event {
  position: relative;
  display: grid; gap: 1rem;
  padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: var(--rule) solid var(--white);
}
.main-event__name { font-size: clamp(2.8rem, 8vw, 6rem); color: var(--white); max-width: 10ch; }
.main-event__desc { margin: 0; max-width: 52ch; font-size: 1.15rem; }
.main-event__how { display: flex; gap: 0.6em; margin: 0.5rem 0 0; font-family: var(--font-marker); font-size: clamp(1.4rem, 3vw, 2rem); color: var(--red); }
.main-event__seal {
  position: absolute; right: 0; top: clamp(1rem, 4vw, 3rem);
  width: clamp(84px, 12vw, 132px); aspect-ratio: 1;
  display: grid; place-items: center;
  color: var(--ink);
}
.main-event__seal svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--red); }
.main-event__seal span { position: relative; font-stretch: 70%; font-weight: 900; font-size: clamp(1rem, 1.5vw, 1.25rem); line-height: 0.95; letter-spacing: 0.04em; text-transform: uppercase; text-align: center; color: var(--white); transform: rotate(-8deg); }
@media (min-width: 820px) {
  .main-event { grid-template-columns: auto 1fr; grid-template-areas: "seal name" "seal desc" "seal how"; column-gap: 2.5rem; align-items: start; }
  .main-event__seal { position: relative; right: auto; top: auto; grid-area: seal; margin-top: 0.4rem; justify-self: start; }
  .main-event__name { grid-area: name; }
  .main-event__desc { grid-area: desc; }
  .main-event__how { grid-area: how; }
}

.card__also { margin: clamp(2rem, 5vw, 3.5rem) 0 1rem; font-stretch: 68%; font-weight: 900; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1; letter-spacing: 0.01em; text-transform: uppercase; color: var(--red); }
.card__list { display: grid; gap: 0 clamp(2rem, 4vw, 4rem); }
.item { position: relative; padding: 1.25rem 0 1.5rem; }
.item .rule { position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--white); transform-origin: left center; }
.item h4 { font-stretch: 62%; font-weight: 900; font-size: clamp(1.9rem, 3.6vw, 2.6rem); line-height: 0.95; text-transform: uppercase; }
.item p { margin: 0.5rem 0 0; max-width: 42ch; color: var(--white-dim); }
@media (min-width: 720px) { .card__list { grid-template-columns: 1fr 1fr; } }

.salsa { margin-top: clamp(2rem, 5vw, 3.5rem); padding-top: 1.5rem; border-top: var(--rule) solid var(--white); max-width: 60ch; }
.salsa h3 { font-stretch: 68%; font-weight: 900; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1; letter-spacing: 0.01em; text-transform: uppercase; color: var(--red); margin-bottom: 0.6rem; }
.salsa p { margin: 0; font-size: 1.1rem; }

/* Visit --------------------------------------------------------------------- */
.visit { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.visit__grid { display: grid; gap: 2.5rem; align-items: start; }
.visit__text .shout { font-size: clamp(2.8rem, 7vw, 5.5rem); margin-bottom: 1.5rem; }
.visit__address { display: grid; margin: 0 0 1.5rem; font-stretch: 68%; font-weight: 900; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.05; text-transform: uppercase; }
.visit__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hours { margin-top: 2.5rem; padding-top: 1.25rem; border-top: var(--rule) solid var(--ink); max-width: 36ch; }
.hours h3 { font-stretch: 68%; font-weight: 900; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1; letter-spacing: 0.01em; text-transform: uppercase; color: var(--red); }
.hours__ghost { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 1.25rem; margin: 0.75rem 0; font-stretch: 75%; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(23, 18, 15, 0.28); }
.hours__ghost span:nth-child(even) { border-bottom: 2px dashed rgba(23, 18, 15, 0.22); }
.hours p:last-child { margin: 0; }
.visit__map { position: relative; aspect-ratio: 4 / 3; background: var(--ink); border: var(--rule) solid var(--ink); }
.visit__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(0.85) contrast(1.05); }
@media (min-width: 820px) { .visit__grid { grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); } .visit__map { aspect-ratio: auto; min-height: 100%; } }

/* Follow -------------------------------------------------------------------- */
.follow { position: relative; padding: calc(clamp(180px, 26vw, 330px) * 0.484 + 3rem) 0 clamp(3.5rem, 8vw, 6rem); overflow: hidden; }
.follow__truck { position: absolute; left: 0; top: clamp(0.5rem, 2vw, 1.5rem); width: clamp(180px, 26vw, 330px); height: auto; opacity: 0.95; pointer-events: none; }
.follow__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; }
.follow__title { margin: 0; font-size: clamp(2.2rem, 7vw, 4.75rem); }
.follow__sub { margin: 0 0 1rem; font-size: 1.15rem; max-width: 40ch; }
.follow__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Footer -------------------------------------------------------------------- */
.foot { padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem; border-top: var(--rule) solid var(--red); }
.foot__grid { display: grid; gap: 1.5rem; align-items: start; }
.foot__badge { width: 96px; height: 96px; border-radius: 50%; }
.foot__name { font-stretch: 68%; font-weight: 900; font-size: 1.6rem; text-transform: uppercase; margin-bottom: 0.4rem; }
.foot__text p { margin: 0 0 0.35rem; color: var(--white-dim); max-width: 48ch; }
.foot__legal { margin: 0; font-size: 0.9rem; color: var(--white-dim); }
@media (min-width: 720px) { .foot__grid { grid-template-columns: auto 1fr auto; gap: 2.5rem; } .foot__legal { align-self: end; } }

/* Motion fallbacks ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
