/* Rancho Meat Market: site styles. One file for every page. */

@font-face {
  font-family: "Satoshi";
  src: url("/fonts/satoshi-variable.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Coolvetica Condensed";
  src: url("/fonts/coolvetica-condensed.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f7f2ea;
  --sand: #efe6d8;
  --surface: #ffffff;
  --ink: #1b1512;
  --text: #3b312b;
  --muted: #65584f;
  --line: rgba(27, 21, 18, 0.12);
  --red: #c22228;
  --red-hover: #a51c21;
  --gold: #e8a92b;
  --dark: #1b1512;
  --dark-2: #2a211c;
  --on-dark: #f7f2ea;
  --on-dark-muted: rgba(247, 242, 234, 0.76);
  --radius-lg: 28px;
  --radius-md: 20px;
  --max: 1240px;
  --gutter: clamp(20px, 4vw, 32px);
  --section: clamp(72px, 10vw, 128px);
  --header-h: 72px;
  --font-display:
    "Coolvetica Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --font-body:
    "Satoshi", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --shadow:
    0 1px 2px rgba(27, 21, 18, 0.04), 0 10px 30px rgba(27, 21, 18, 0.07);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img,
video,
svg {
  display: block;
  max-width: 100%;
}
img,
video {
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
p {
  margin: 0;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  overflow-wrap: break-word;
  text-wrap: balance;
}
:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 6px;
}
.ico {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: currentColor;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}
.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.cq {
  container-type: inline-size;
  min-width: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition:
    background-color 0.2s var(--ease),
    color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}
.btn:active {
  transform: scale(0.98);
}
.btn--red {
  background: var(--red);
  color: #fff;
}
.btn--red:hover {
  background: var(--red-hover);
}
.btn--ink {
  background: var(--ink);
  color: #fff;
}
.btn--ink:hover {
  background: #000;
}
.btn--line {
  border-color: rgba(27, 21, 18, 0.28);
  color: var(--ink);
  background: transparent;
}
.btn--line:hover {
  border-color: var(--ink);
  background: rgba(27, 21, 18, 0.04);
}
.btn--light {
  background: var(--on-dark);
  color: var(--ink);
}
.btn--light:hover {
  background: #fff;
}
.btn--line-light {
  border-color: rgba(247, 242, 234, 0.4);
  color: var(--on-dark);
}
.btn--line-light:hover {
  border-color: var(--on-dark);
  background: rgba(247, 242, 234, 0.06);
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Call buttons: store name + phone number */
.calls {
  display: grid;
  gap: 12px;
}
.call {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 10px 24px 10px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition:
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}
.call:active {
  transform: scale(0.99);
}
.call__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex: none;
}
.call__icon .ico {
  width: 22px;
  height: 22px;
}
.call__text {
  display: grid;
  min-width: 0;
  line-height: 1.25;
}
.call__label {
  font-size: 14px;
  font-weight: 500;
}
.call__num {
  font-size: 19px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.call--red {
  background: var(--red);
  color: #fff;
}
.call--red:hover {
  background: var(--red-hover);
}
.call--red .call__icon {
  background: rgba(255, 255, 255, 0.16);
}
.call--white {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
.call--white:hover {
  border-color: rgba(27, 21, 18, 0.32);
}
.call--white .call__icon {
  background: var(--sand);
  color: var(--red);
}
.call--white .call__label {
  color: var(--muted);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 242, 234, 0.88);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--header-h);
}
.brand {
  display: block;
  flex: none;
  margin-right: auto;
}
.brand img {
  width: auto;
  height: 42px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  transition: background-color 0.2s var(--ease);
}
.nav__link:hover,
.nav__link[aria-current="page"] {
  background: rgba(27, 21, 18, 0.07);
}
.lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color 0.2s var(--ease);
}
.lang:hover {
  border-color: rgba(27, 21, 18, 0.4);
}
.lang .ico {
  width: 18px;
  height: 18px;
}
.header-call {
  min-height: 44px;
  padding: 0 18px;
  font-size: 15px;
}
.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
}
.menu-btn .ico {
  width: 22px;
  height: 22px;
}
.menu-btn .ico-close {
  display: none;
}
.menu-btn[aria-expanded="true"] .ico-open {
  display: none;
}
.menu-btn[aria-expanded="true"] .ico-close {
  display: block;
}
.mobile-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  padding: 8px var(--gutter) 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 40px rgba(27, 21, 18, 0.12);
}
.mobile-menu__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 30px;
  text-transform: uppercase;
}
.mobile-menu__links a[aria-current="page"] {
  color: var(--red);
}
.mobile-menu .calls {
  margin-top: 20px;
}
@media (max-width: 899px) {
  .nav__link,
  .header-call {
    display: none;
  }
  .menu-btn {
    display: inline-flex;
  }
}
@media (min-width: 900px) {
  .mobile-menu {
    display: none !important;
  }
  .brand img {
    height: 50px;
  }
  :root {
    --header-h: 80px;
  }
}
@media (max-width: 379px) {
  .brand img {
    height: 36px;
  }
  .lang {
    padding: 0 12px;
  }
}

/* ---------- Hero (home) ---------- */
.hero {
  padding-top: clamp(28px, 5vw, 64px);
}
.hero__top {
  display: grid;
  gap: 24px;
}
.hero h1 {
  font-size: clamp(3.25rem, 17.5cqi, 9.5rem);
  line-height: 0.88;
}
.hero__lead {
  max-width: 34rem;
  color: var(--text);
  font-size: clamp(1.125rem, 1.4vw, 1.25rem);
  line-height: 1.55;
}
.hero__side {
  display: grid;
  gap: 22px;
  align-content: end;
}
.proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: var(--muted);
  font-size: 15px;
}
.proof__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.proof__item .ico {
  width: 18px;
  height: 18px;
}
.proof a.proof__item {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(27, 21, 18, 0.3);
  text-underline-offset: 4px;
}
.proof a.proof__item:hover {
  text-decoration-color: var(--ink);
}
.star {
  color: var(--gold);
}
@media (min-width: 960px) {
  .hero__top {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
    gap: 56px;
  }
}

/* Video panels */
.panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(36px, 5vw, 64px);
}
.panel {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--sand);
  isolation: isolate;
}
.panel video,
.panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.panel:hover video,
.panel:hover img {
  transform: scale(1.03);
}
.panel__num {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.panel__tag {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  padding: 8px 8px 8px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
}
.panel__go {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex: none;
  background: var(--red);
  color: #fff;
  transition: transform 0.2s var(--ease);
}
.panel:hover .panel__go {
  transform: translateX(2px);
}
.panel__go .ico {
  width: 20px;
  height: 20px;
}
@media (max-width: 959px) {
  .panels {
    display: flex;
    gap: 12px;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .panels::-webkit-scrollbar {
    display: none;
  }
  .panel {
    flex: 0 0 44%;
    scroll-snap-align: start;
  }
}
@media (max-width: 599px) {
  .panel {
    flex-basis: 78%;
  }
}

/* ---------- Sections ---------- */
.section {
  padding-block: var(--section);
}
.section--sand {
  background: var(--sand);
}
.section--dark {
  background: var(--dark);
  color: var(--on-dark);
}
.section--dark h2,
.section--dark h3 {
  color: var(--on-dark);
}
.h2 {
  font-size: clamp(2.6rem, 10cqi, 5.25rem);
  line-height: 0.92;
}
.lede {
  max-width: 36rem;
  font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
  line-height: 1.6;
}
.section-head {
  display: grid;
  gap: 20px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
@media (min-width: 900px) {
  .section-head--split {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
    gap: 56px;
  }
}
.media {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--sand);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--wide {
  aspect-ratio: 16 / 9;
}
.media--tall {
  aspect-ratio: 4 / 5;
}
.media--photo {
  aspect-ratio: 3 / 2;
}
@media (max-width: 599px) {
  .media--wide {
    aspect-ratio: 4 / 3;
  }
}
/* One column on tablets: a 4:5 photo at full width would fill the screen. */
@media (min-width: 480px) and (max-width: 899px) {
  .media--tall {
    aspect-ratio: 4 / 3;
  }
}

/* Facts row */
.facts {
  display: grid;
  gap: 0;
  margin-top: clamp(32px, 5vw, 56px);
}
.fact {
  padding-block: 24px;
  border-top: 1px solid var(--line);
}
.fact h3 {
  font-size: clamp(1.75rem, 2.4vw, 2.125rem);
  line-height: 1;
  margin-bottom: 10px;
}
.fact p {
  max-width: 24rem;
  color: var(--muted);
}
@media (min-width: 800px) {
  .facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
  }
}

/* Split layout: media + text */
.split {
  display: grid;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .split--top {
    align-items: start;
  }
  .split--reverse > :first-child {
    order: 2;
  }
  .sticky {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
}
.stack {
  display: grid;
  gap: 22px;
  align-content: start;
}

/* Meat list (home) */
.cuts {
  border-bottom: 1px solid var(--line);
}
.cuts a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding-block: 18px;
  border-top: 1px solid var(--line);
}
.cuts strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 2.6vw, 2.125rem);
  font-weight: 400;
  line-height: 1.05;
  text-transform: uppercase;
  transition: color 0.2s var(--ease);
}
.cuts span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.5;
}
.cuts .ico {
  width: 22px;
  height: 22px;
  color: var(--ink);
  transition:
    transform 0.2s var(--ease),
    color 0.2s var(--ease);
}
.cuts a:hover strong,
.cuts a:hover .ico {
  color: var(--red);
}
.cuts a:hover .ico {
  transform: translateX(3px);
}

/* Reviews */
.rating {
  display: grid;
  gap: 18px;
  align-content: end;
}
.rating__score {
  display: flex;
  align-items: center;
  gap: 14px;
}
.rating__score b {
  color: var(--on-dark);
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 5.5rem);
  font-weight: 400;
  line-height: 0.85;
}
.rating__score .ico {
  width: 40px;
  height: 40px;
}
.rating p {
  color: var(--on-dark-muted);
}
.quotes {
  display: grid;
  gap: 16px;
}
@media (min-width: 800px) {
  .quotes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.quote {
  display: grid;
  gap: 20px;
  align-content: space-between;
  margin: 0;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-md);
  background: var(--dark-2);
}
.quote blockquote {
  margin: 0;
  color: var(--on-dark);
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  line-height: 1.6;
}
.quote figcaption {
  color: var(--on-dark-muted);
  font-size: 14.5px;
  font-weight: 600;
}

/* Store cards */
.stores {
  display: grid;
  gap: 20px;
}
@media (min-width: 800px) {
  .stores {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.store {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.store__photo {
  aspect-ratio: 4 / 3;
  background: var(--sand);
}
.store__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.store__body {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: clamp(22px, 3vw, 32px);
}
.store h2,
.store h3 {
  font-size: clamp(1.875rem, 3vw, 2.375rem);
  line-height: 1;
}
.store__rows {
  display: grid;
  gap: 8px;
  color: var(--text);
}
.store__row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.store__row .ico {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: var(--red);
}
.store .btn-row {
  margin-top: 6px;
}
.store .btn {
  flex: 1 1 160px;
}

/* ---------- Page heroes (inner pages) ---------- */
.page-hero {
  padding-top: clamp(28px, 5vw, 64px);
  padding-bottom: var(--section);
}
.page-hero h1 {
  font-size: clamp(3.5rem, 17cqi, 8rem);
  line-height: 0.9;
}
.page-hero .split {
  align-items: center;
}

/* Menu list */
.menu-list {
  border-bottom: 1px solid var(--line);
}
.menu-item {
  display: grid;
  gap: 10px;
  padding-block: clamp(22px, 3vw, 32px);
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.menu-item__num {
  color: var(--red);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}
.menu-item h3 {
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  line-height: 1;
}
.menu-item p {
  max-width: 44rem;
  font-size: clamp(1rem, 1.25vw, 1.125rem);
}
@media (min-width: 900px) {
  .menu-item {
    grid-template-columns: 64px minmax(0, 4fr) minmax(0, 7fr);
    align-items: baseline;
    gap: 24px;
  }
}
.photo-row {
  display: grid;
  gap: 16px;
}
@media (min-width: 760px) {
  .photo-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.photo-row .media {
  aspect-ratio: 4 / 3;
}

/* Call band */
.band {
  text-align: center;
}
.band .h2 {
  font-size: clamp(2.8rem, 10cqi, 5.5rem);
}
.band__inner {
  display: grid;
  justify-items: center;
  gap: 22px;
  max-width: 760px;
  margin-inline: auto;
}
.band p {
  color: var(--on-dark-muted);
  max-width: 34rem;
}
.band .calls {
  width: 100%;
  max-width: 640px;
  margin-top: 8px;
}
@media (min-width: 700px) {
  .band .calls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.band .call--white {
  border-color: transparent;
}
.band__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 20px;
  color: var(--on-dark-muted);
  font-size: 15px;
}
.band__links a {
  color: var(--on-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(247, 242, 234, 0.4);
}

/* Call page */
.phone-cards {
  display: grid;
  gap: 16px;
}
.phone-card {
  display: grid;
  gap: 14px;
  padding: clamp(22px, 3vw, 30px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.phone-card h2 {
  font-size: clamp(1.75rem, 2.6vw, 2.125rem);
  line-height: 1;
}
.phone-card address {
  color: var(--muted);
  font-style: normal;
}
.phone-card__num {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.phone-card__num:hover {
  color: var(--red);
}
.note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}
.note .ico {
  width: 20px;
  height: 20px;
  color: var(--red);
}

/* Social links */
.social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Footer ---------- */
.site-footer {
  padding-top: clamp(64px, 8vw, 96px);
  padding-bottom: 32px;
  background: var(--dark);
  color: var(--on-dark-muted);
  font-size: 15.5px;
}
.footer-grid {
  display: grid;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(247, 242, 234, 0.14);
}
.footer-brand img {
  width: 200px;
  height: auto;
}
.footer-brand p {
  max-width: 22rem;
  margin-top: 18px;
}
.footer-col h2 {
  margin-bottom: 14px;
  color: var(--on-dark);
  font-size: 22px;
  line-height: 1;
}
.footer-col li + li {
  margin-top: 10px;
}
.footer-col a {
  color: var(--on-dark);
  transition: color 0.2s var(--ease);
}
.footer-col a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.footer-store {
  display: grid;
  gap: 2px;
}
.footer-store b {
  color: var(--on-dark);
  font-weight: 700;
}
.footer-store + .footer-store {
  margin-top: 16px;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 24px;
  font-size: 14.5px;
}
.footer-bottom a {
  color: var(--on-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(247, 242, 234, 0.35);
}
.footer-bottom a:hover {
  text-decoration-color: var(--on-dark);
}
@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
    gap: 48px;
  }
}
@media (max-width: 899px) {
  .site-footer {
    text-align: center;
  }
  .footer-brand img {
    margin-inline: auto;
  }
  .footer-brand p {
    margin-inline: auto;
  }
  .footer-bottom {
    justify-content: center;
  }
}

/* ---------- Error pages ---------- */
.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 48px var(--gutter);
  text-align: center;
}
.error-card {
  display: grid;
  justify-items: center;
  gap: 20px;
  max-width: 560px;
}
.error-card img {
  width: 220px;
  height: auto;
}
.error-code {
  color: var(--red);
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.08em;
}
.error-card h1 {
  font-size: clamp(3rem, 12vw, 5rem);
  line-height: 0.9;
}
.error-card .btn-row {
  justify-content: center;
}

/* ---------- Motion ---------- */
[data-reveal] {
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}
.reveal-on [data-reveal]:not(.is-in) {
  opacity: 0;
  transform: translateY(18px);
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .reveal-on [data-reveal]:not(.is-in) {
    opacity: 1;
    transform: none;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
