/* ==========================================================
   Taquería Doña Chela: site.css
   Move: colour-block. Flat bands of the grandmother's turquoise,
   marigold and one deep-teal band per page, with hard edges.
   Lent from grid/catalog: dotted-leader price lists.
   Chile red means "tap here" and nothing else.
   ========================================================== */

/* ---------- 1. Tokens ---------- */

:root {
  /* palette */
  --turquoise: #dcf3ef;
  --marigold: #ffd27a;
  --teal: #0b3d3a;
  --teal-mid: #22655f;
  --chile: #a8221b;
  --white: #ffffff;

  /* foundation roles */
  --color-bg: var(--turquoise);
  --color-fg: var(--teal);
  --color-muted: var(--teal-mid);
  --color-surface: var(--marigold);
  --color-accent: var(--chile);
  --color-accent-fg: var(--white);
  --color-border: var(--teal-mid);
  --color-focus: var(--chile);

  /* type */
  --font-body: "Figtree", Arial, sans-serif;
  --font-heading: "Bricolage Grotesque", Arial, sans-serif;
  --weight-body: 400;
  --weight-heading: 800;
  --leading-body: 1.55;
  --leading-heading: 1.04;
  --measure: 62ch;

  --step-0: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-1: clamp(1.22rem, 1.13rem + 0.4vw, 1.45rem);
  --step-display: clamp(2.2rem, 1.45rem + 3.6vw, 4.25rem);
  --step-h2: clamp(1.85rem, 1.4rem + 2.1vw, 3rem);
  --step-big: clamp(2.4rem, 1.45rem + 4.6vw, 5.25rem);
  --step-phone: clamp(2.4rem, 0.9rem + 7.2vw, 7rem);

  /* shape */
  --radius: 3px;
  --border-width: 2px;
  --dots: 3px dotted var(--teal-mid);
  --rule: url("img/tortilla-rule.svg");
}

/* ---------- 2. Base type ---------- */

h1 {
  font-size: var(--step-display);
  letter-spacing: -0.025em;
}

h2 {
  font-size: var(--step-h2);
  letter-spacing: -0.02em;
}

h3 {
  font-size: var(--step-2);
  font-weight: 600;
  letter-spacing: -0.01em;
}

a {
  font-weight: 600;
}

.lead {
  font-size: var(--step-1);
  line-height: 1.4;
}

/* a standalone "go there" link: full tap height, wraps like text */
.more {
  display: inline-block;
  min-height: var(--tap);
  padding-block: 0.65rem;
  line-height: 1.4;
  font-size: var(--step-0);
}

.more::after {
  content: "\2192";
  margin-inline-start: 0.4em;
  display: inline-block;
  transition: transform 0.15s ease;
}

.more:hover::after {
  transform: translateX(3px);
}

/* ---------- 3. Header and nav ---------- */

.site-header {
  border-bottom: 0;
  background: var(--turquoise);
}

.site-brand {
  font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.015em;
}

.nav-toggle {
  border-color: var(--teal-mid);
  font-weight: 600;
}

.site-nav a {
  font-weight: 600;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  text-decoration-color: var(--chile);
  text-decoration-thickness: 3px;
}

@media (max-width: 47.99em) {
  .site-nav ul {
    border-top: 2px solid var(--teal-mid);
  }
  .site-nav a {
    font-size: var(--step-1);
  }
}

/* ---------- 4. Buttons ---------- */

.button {
  padding: 0.6rem 1.2rem;
  font-size: 1.0625rem;
  font-weight: 600;
  border-width: 2px;
}

.button--quiet {
  background: transparent;
  color: var(--chile);
  border-color: var(--chile);
}

/* ---------- 5. Bands ---------- */

.band--marigold {
  background: var(--marigold);
}

.band--teal {
  background: var(--teal);
  color: var(--white);
  --color-focus: var(--marigold);
}

.band--teal :is(h1, h2, h3),
.band--teal .bignum {
  color: var(--marigold);
}

.band--teal a:not(.button) {
  color: var(--marigold);
}

.band--teal .button {
  background: var(--marigold);
  border-color: var(--marigold);
  color: var(--teal);
}

/* Two-part band layout: label side and content side */
.split {
  display: grid;
  gap: var(--space-l);
}

@media (min-width: 56em) {
  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--space-xl);
    align-items: start;
  }
  .split--even {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .split--center {
    align-items: center;
  }
}

/* Big numbers: prices and the phone, set like signage */
.bignum {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--step-big);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  max-inline-size: none;
}

.bignum small {
  font-size: 0.4em;
  font-weight: 600;
  letter-spacing: 0;
}

.bignum a {
  color: var(--chile);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 0.045em;
  text-underline-offset: 0.12em;
}

.bignum a:hover,
.bignum a:focus-visible {
  text-decoration-thickness: 0.09em;
}

.band--teal .bignum a {
  color: var(--marigold);
  text-decoration-color: var(--marigold);
}

/* the phone number set as large as a headline */
.bignum--call {
  font-size: var(--step-phone);
}

/* ---------- 6. The stamp (signature) ---------- */

.stamp {
  width: 150px;
  height: 150px;
  color: var(--chile);
  transform: rotate(-6deg);
  flex: none;
}

.stamp__disc,
.stamp__knock {
  fill: var(--marigold);
}

.stamp__text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 11.5px;
}

/* ---------- 7. Home hero ---------- */

.hero {
  position: relative;
  padding-block: var(--space-l) 5rem;
}

.hero h1 {
  max-inline-size: 15ch;
}

.hero__lede {
  font-size: var(--step-1);
  line-height: 1.4;
}

.hero__actions {
  --cluster-space: var(--space-xs);
  padding-top: var(--space-2xs);
}

.hero__aside {
  margin-top: var(--space-l);
  display: grid;
  gap: var(--space-s);
}

.hero .hours {
  font-size: var(--step-0);
}

/* phone: the stamp is pressed across the hero's bottom edge, right side */
.hero .stamp {
  position: absolute;
  right: var(--gutter);
  bottom: 0;
  width: 112px;
  height: 112px;
  transform: translateY(50%) rotate(-6deg);
  z-index: 1;
}

@media (min-width: 60em) {
  .hero {
    padding-block: var(--space-2xl);
  }
  .hero__grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--space-xl);
    align-items: center;
  }
  .hero__aside {
    margin-top: 0;
    padding-inline-start: var(--space-l);
    border-inline-start: var(--dots);
  }
  /* wide: pressed across the bottom edge, between the two columns */
  .hero .stamp {
    right: auto;
    left: 58.333%;
    bottom: calc(-1 * var(--space-2xl));
    width: 150px;
    height: 150px;
    transform: translate(-50%, 50%) rotate(-6deg);
  }
}

/* ---------- 8. Price lists (dotted leaders) ---------- */

.menu-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-s);
}

.menu-list > li {
  max-inline-size: none;
}

.dish__line {
  display: flex;
  align-items: flex-end;
  gap: 0.4rem;
  max-inline-size: none;
  font-size: var(--step-1);
  line-height: 1.3;
}

/* The name takes the row; its dotted leader starts right after the last
   word (on whichever line that is) and is clipped at the name's edge.
   The right padding keeps at least a short run of dots before the price. */
.dish__name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  padding-inline-end: 1.6em;
  font-weight: 600;
}

.dish__name::after {
  content: "";
  display: inline-block;
  width: 100vw;
  margin-inline: 0.3em -100vw;
  border-bottom: var(--dots);
  vertical-align: 0.2em;
}

.dish__price {
  flex: none;
  font-family: var(--font-heading);
  font-weight: 800;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.dish__price small {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72em;
}

.dish__note {
  color: var(--teal-mid);
  margin-top: 0.1rem;
}

.trompo {
  display: inline-block;
  width: auto;
  height: 1.55em;
  vertical-align: -0.35em;
  margin-inline-start: 0.35em;
}

@media (min-width: 56em) {
  /* home: six tacos as two columns of three */
  .menu-list--cols {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, auto);
    grid-auto-flow: column;
    gap: var(--space-s) var(--space-xl);
  }
}

/* menu page categories */
.jump {
  --cluster-space: var(--space-xs);
}

.menu-cols {
  display: grid;
  gap: var(--space-l);
}

.menu-rule {
  border-top: var(--dots);
}

.menu-cat {
  display: grid;
  gap: var(--space-s);
  align-content: start;
}

.menu-cat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s);
}

.menu-cat__head .stamp {
  width: 104px;
  height: 104px;
  margin-block: -0.5rem;
}

.menu-cat .menu-list {
  margin-top: var(--space-2xs);
}

@media (min-width: 56em) {
  .menu-cols {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
  .menu-cols > .menu-rule {
    display: none;
  }
  .menu-cols > .menu-cat + .menu-rule + .menu-cat {
    border-inline-start: var(--dots);
    padding-inline-start: var(--space-xl);
  }
  /* both column heads share one height so the price lists line up */
  .menu-cat__head {
    min-height: 124px;
  }
  .menu-cat__head .stamp {
    width: 124px;
    height: 124px;
    margin-block: 0;
  }
}

/* ---------- 9. Hours table ---------- */

.hours {
  max-inline-size: 32rem;
  font-size: var(--step-0);
}

.hours caption {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--step-1);
  padding-block-end: var(--space-xs);
}

.hours th,
.hours td {
  padding-block: 0.55rem;
  border-bottom: 1px solid var(--teal-mid);
}

.hours th {
  font-weight: 600;
}

.hours td {
  white-space: nowrap;
}

.hours tr:first-child th,
.hours tr:first-child td {
  border-top: 1px solid var(--teal-mid);
}

/* ---------- 10. Lists with tortilla discs ---------- */

.discs {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-xs);
}

.discs li {
  display: flex;
  gap: var(--space-xs);
  align-items: baseline;
  font-size: var(--step-1);
  font-weight: 600;
}

.discs li::before {
  content: "";
  flex: none;
  width: 0.8em;
  height: 0.8em;
  border-radius: 50%;
  background: var(--teal-mid);
  transform: translateY(0.08em);
}

/* numbered steps: each number sits on a tortilla */
.steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: var(--space-m);
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: var(--space-s);
  align-items: center;
  font-size: var(--step-1);
  line-height: 1.35;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--marigold);
  color: var(--teal);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
}

/* ---------- 11. Home catering band ---------- */

.cater-band .switcher {
  --switcher-at: 44rem;
  --switcher-gap: var(--space-l);
  align-items: start;
}

/* ---------- 12. About ---------- */

.story {
  display: grid;
  gap: var(--space-l);
}

.story .prose > p {
  font-size: var(--step-1);
  line-height: 1.45;
}

.who-box {
  display: grid;
  gap: var(--space-s);
  align-content: start;
  padding-top: var(--space-m);
  border-top: var(--dots);
}

.who-box h2 {
  font-size: var(--step-1);
}

.who {
  display: grid;
  gap: var(--space-s);
  margin: 0;
}

.who dt {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--step-2);
  line-height: 1.1;
}

.who dd {
  margin: 0;
}

@media (min-width: 56em) {
  .story {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    gap: var(--space-2xl);
  }
  .who-box {
    border-top: 0;
    padding-top: 0;
    padding-inline-start: var(--space-l);
    border-inline-start: var(--dots);
  }
}

.still {
  list-style: none;
  padding: 0;
  display: grid;
}

.still li {
  max-inline-size: none;
  display: flex;
  align-items: center;
  gap: var(--space-s);
  padding-block: var(--space-s);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--step-2);
  line-height: 1.2;
  border-bottom: var(--dots);
}

.still li:first-child {
  border-top: var(--dots);
}

.still li::before {
  content: "";
  flex: none;
  width: 0.7em;
  height: 0.7em;
  border-radius: 50%;
  background: var(--teal-mid);
}

.still .trompo {
  height: 2.2em;
  margin-inline-start: auto;
  flex: none;
}

.demo-note {
  font-size: var(--step--1);
  color: var(--teal-mid);
}

/* ---------- 13. Catering page ---------- */

.cater-hero .bignum {
  font-size: clamp(3.75rem, 2rem + 7.5vw, 7.5rem);
  line-height: 0.9;
  padding-block: var(--space-2xs);
}

.cater-hero .bignum small {
  font-size: 0.3em;
}

/* ---------- 14. Contact ---------- */

.contact-grid {
  display: grid;
  gap: var(--space-xl);
}

.panel {
  background: var(--marigold);
  padding: var(--space-l) var(--gutter);
  margin-inline: calc(-1 * var(--gutter));
}

.panel address {
  font-style: normal;
  font-size: var(--step-1);
  line-height: 1.4;
}

.form input:not([type="hidden"], [type="checkbox"], [type="radio"]),
.form textarea {
  background: var(--white);
  border-color: var(--teal-mid);
}

@media (min-width: 56em) {
  .contact-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }
  .panel {
    margin-inline: 0;
    padding: var(--space-l);
  }
}

/* ---------- 15. Footer ---------- */

.site-footer {
  margin-block-start: 0;
  padding-block: 0 var(--space-l);
  border-top: 0;
  background: var(--teal);
  color: var(--white);
  font-size: var(--step-0);
  --color-focus: var(--marigold);
}

/* the tortilla stack: half-discs standing right on the footer's top edge */
.site-footer::before {
  content: "";
  display: block;
  height: 2.5rem;
  margin-bottom: var(--space-xl);
  background: var(--turquoise) var(--rule) repeat-x left 0 bottom -14px / auto 28px;
}

.site-footer a {
  color: var(--marigold);
}

.footer-grid {
  display: grid;
  gap: var(--space-l);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  align-items: start;
}

.footer-name {
  font-family: var(--font-heading);
  font-size: var(--step-2);
  line-height: 1.1;
  color: var(--marigold);
}

.footer-name strong {
  font-weight: 800;
}

.footer-head {
  font-weight: 600;
  color: var(--marigold);
}

.site-footer address a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
}

.footer-stamp {
  width: 96px;
  height: 96px;
  transform: rotate(-6deg);
}

.site-footer .site-credit {
  max-inline-size: none;
  color: var(--white);
  margin-top: var(--space-l);
  padding-top: var(--space-s);
  border-top: 1px solid var(--teal-mid);
  font-size: var(--step--1);
}

.site-footer .site-credit a {
  color: var(--marigold);
}

/* ---------- 16. 404 ---------- */

.lost-links {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-3xs);
}

.lost-links .more {
  font-size: var(--step-1);
}
