/* Papi's Birria — the menu page (menu.html). Loads after styles.css.
   White is the ground, ink does the reading, and red is spent in one place:
   the favorites band and the favorite tags, so red means "order this". */

:root { --jump-h: calc(4rem + 3px); }

.carta { padding-top: var(--nav-h); }
.nav__links a[aria-current="page"] { border-bottom-color: currentColor; }

/* Head ---------------------------------------------------------------------- */
.carta-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 4vw, 2.5rem); }
.carta-head__row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.25rem 1.25rem; }
.carta-head .shout { font-size: clamp(4.25rem, 15vw, 8rem); }
.carta-head__marker {
  margin: 0 0 0.35em 0.15em;
  font-size: clamp(1.5rem, 4.5vw, 2.4rem);
  color: var(--ink);
  text-shadow: none;
  transform: rotate(-3deg);
  transform-origin: left bottom;
}
.carta-head__lede { margin: 1.25rem 0 0; max-width: 46ch; font-size: 1.1rem; }

/* Jump bar: sticky under the nav, one chip per section --------------------- */
.jump {
  position: sticky; top: var(--nav-h); z-index: 30;
  background: var(--white);
  border-bottom: var(--rule) solid var(--ink);
}
.jump__list {
  position: relative;
  display: flex; gap: 0.5rem;
  margin: 0; padding: 0.75rem var(--gutter);
  list-style: none;
  overflow-x: auto; overscroll-behavior-x: contain;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.jump__list::-webkit-scrollbar { display: none; }
.jump__list li { flex: 0 0 auto; display: flex; }
.jump a {
  display: inline-flex; align-items: center;
  min-height: 2.5rem; padding: 0.35rem 0.9rem;
  border: 2px solid var(--ink);
  font-stretch: 75%; font-weight: 800; font-size: 0.95rem; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  transition: background-color 0.18s var(--ease-out), color 0.18s var(--ease-out), border-color 0.18s var(--ease-out);
}
.jump a:hover { background: var(--ink); color: var(--white); }
.jump a[aria-current="true"] { background: var(--red); border-color: var(--red); color: var(--white); }
.jump a:focus-visible { outline-offset: 2px; }
@media (min-width: 900px) {
  .jump__list { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; padding-inline: 0; }
}

/* Sections ------------------------------------------------------------------ */
.favs, .carta-section { scroll-margin-top: calc(var(--nav-h) + var(--jump-h) + 1rem); }
.favs + .carta-section { scroll-margin-top: calc(var(--nav-h) + var(--jump-h)); }

.carta-section { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.carta-section + .carta-section { padding-top: 0; }
.carta-section__head {
  margin-bottom: 0.25rem; padding-bottom: 0.75rem;
  border-bottom: var(--rule) solid var(--ink);
}
.carta-section__head .shout { font-size: clamp(2.6rem, 9vw, 4rem); }
.carta-section__head .tag { vertical-align: middle; margin-left: 0.35em; }
.carta-section__note { margin: 0.75rem 0 0; max-width: 40ch; }

.dishes, .specials { list-style: none; margin: 0; padding: 0; }
.dish {
  padding: 0.95rem 0 1rem;
  border-bottom: 2px solid var(--ink);
  break-inside: avoid;
  line-height: 1.2;
}
/* Name and price run inline, so the price follows the last word instead of lining up in a column. */
.dish__name { font-stretch: 68%; font-weight: 900; font-size: 1.4rem; line-height: 1.05; letter-spacing: 0.01em; text-transform: uppercase; }
.dish__sub { display: inline; margin-left: 0.3em; font-stretch: 100%; font-weight: 500; font-size: 0.95rem; letter-spacing: 0; text-transform: none; }
.dish__price { margin-left: 0.55rem; font-weight: 600; font-size: 1.2rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dish__price--ghost { display: inline-block; width: 2.4ch; height: 0.9em; border-bottom: 2px dashed rgba(23, 18, 15, 0.28); vertical-align: baseline; }
.dish__note { display: block; margin: 0.35rem 0 0; max-width: 44ch; line-height: 1.55; }

/* Prices: the body's no-prices class hides them all; drop the class to show prices again. */
.no-prices .dish__price, .no-prices .dish__price-note, .no-prices .fav__price, .no-prices .fav__variants b { display: none; }

/* Tags: red says "favorite", an outline says "when" -------------------------- */
.tag {
  display: inline-block; vertical-align: 0.2em; margin-left: 0.2em;
  padding: 0.2em 0.5em 0.15em;
  font-stretch: 75%; font-weight: 800; font-size: 0.75rem; line-height: 1.2; letter-spacing: 0.08em; text-transform: uppercase;
  white-space: nowrap;
}
.tag--fav { background: var(--red); color: var(--white); }
.tag--outline { border: 2px solid currentColor; padding-block: 0.12em 0.08em; }

/* Favorites band: the one red ground on the page ---------------------------- */
.favs { padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 5vw, 3rem); }
.favs__head { margin-bottom: 0.5rem; padding-bottom: 0.75rem; border-bottom: var(--rule) solid var(--white); }
.favs__head .shout { font-size: clamp(2.6rem, 9vw, 4rem); }
.favs__sub { margin: 0.5rem 0 0; font-size: 1.1rem; }
.favs__list { list-style: none; margin: 0; padding: 0; }
.fav { padding: 1.25rem 0 1.5rem; border-bottom: var(--rule) solid var(--white); }
.fav:last-child { border-bottom: 0; }
.fav__row { line-height: 1; }
.fav__name { display: inline; font-stretch: 62%; font-weight: 900; font-size: clamp(2.1rem, 7.5vw, 2.9rem); line-height: 0.95; text-transform: uppercase; }
.fav__price { margin-left: 0.6rem; font-weight: 600; font-size: 1.4rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fav__desc { margin: 0.6rem 0 0; max-width: 42ch; font-size: 1.05rem; }
.fav__variants { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0.75rem 0 0; padding: 0; list-style: none; }
.fav__variants li { display: flex; gap: 0.4rem; align-items: baseline; font-stretch: 75%; font-weight: 800; font-size: 1rem; letter-spacing: 0.05em; text-transform: uppercase; }
.fav__variants b { font-stretch: 100%; font-weight: 600; font-size: 1.2rem; letter-spacing: 0; font-variant-numeric: tabular-nums; }

/* Signature band: ink ground, the site's main-event seal, red headline ------ */
.signature { padding: clamp(1.75rem, 4vw, 2.5rem) 0; }
.signature__inner { display: flex; align-items: center; gap: clamp(1rem, 3vw, 1.75rem); }
.signature__seal { position: relative; flex: none; width: clamp(84px, 12vw, 120px); height: clamp(84px, 12vw, 120px); display: grid; place-items: center; }
.signature__seal svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--red); }
.signature__seal span { position: relative; font-stretch: 70%; font-weight: 900; font-size: clamp(0.8rem, 1.4vw, 1rem); line-height: 0.95; letter-spacing: 0.04em; text-transform: uppercase; text-align: center; transform: rotate(-8deg); }
.signature__text h2 { font-size: clamp(2.2rem, 7vw, 3.5rem); color: var(--red); }
.signature__price { margin-left: 0.2em; font-stretch: 100%; font-weight: 600; font-size: 0.5em; letter-spacing: 0; text-transform: none; color: var(--white); vertical-align: 0.3em; font-variant-numeric: tabular-nums; }
.signature__text p { margin: 0.5rem 0 0; max-width: 52ch; font-size: 1.05rem; color: var(--white-dim); }

/* Specials: day, plate, side ----------------------------------------------- */
.special {
  display: grid; grid-template-columns: 3.75rem 1fr; gap: 0.1rem 1rem; align-items: baseline;
  padding: 0.95rem 0 1rem;
  border-bottom: 2px solid var(--ink);
}
.special__day { font-stretch: 75%; font-weight: 800; font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase; }
.special__name { font-stretch: 68%; font-weight: 900; font-size: 1.4rem; line-height: 1.05; letter-spacing: 0.01em; text-transform: uppercase; }
.special__side { grid-column: 2; }

/* Foot of the menu ---------------------------------------------------------- */
.carta-foot { padding: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(3rem, 7vw, 5rem); }
.carta-foot p { max-width: 52ch; }

/* Wider screens: heads on the left, two columns of dishes on the right ------ */
@media (min-width: 720px) {
  .dishes { columns: 2; column-gap: clamp(1.5rem, 3vw, 3rem); }
}
@media (min-width: 820px) {
  .carta-section__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 clamp(2rem, 5vw, 4.5rem); align-items: start; }
  .carta-section__head { position: sticky; top: calc(var(--nav-h) + var(--jump-h) + 1.25rem); margin-bottom: 0; }
  .favs__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 3vw, 3rem); }
  .fav { border-bottom: 0; padding-top: 1.5rem; }
  .fav + .fav { border-left: var(--rule) solid var(--white); padding-left: clamp(1.5rem, 3vw, 3rem); }
  .fav__name { font-size: clamp(2.1rem, 3.2vw, 2.9rem); }
}
