/* ==========================================================================
   IndyHaunt.com — redesign
   Design source: Figma "13th Hour" › indyhaunt.com (node 214:2)
   Plain CSS, no build step.

   The header and footer are single shared components — the markup block is
   byte-identical on every page, and the active nav item is driven off
   <body data-page="…"> so nothing per-page has to be edited by hand.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Colour — the design is a single dark theme, not light/dark aware */
  --bg: #000;
  --fg: #fff;
  --fg-dim: rgba(255, 255, 255, 0.8);
  --accent: #e0561c; /* sampled from the "HAUNT" glyphs in the logo */
  --rule: rgba(255, 255, 255, 0.14);
  --closed: #9aa0a6;

  /* Type */
  --font-display: "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step-hero: clamp(2.25rem, 11vw, 3rem); /* 48px at >=437px wide */
  --step-section: clamp(1.75rem, 5.5vw, 2.25rem); /* 36px desktop */
  --step-body: 1rem; /* 16px / 1.5 */
  --step-nav: 1rem; /* 16px desktop, 14px on narrow */

  /* Measure — from the Figma text-box widths */
  --measure-copy: 40.375rem; /* 646.15px */
  --measure-wide: 47.15rem; /* 754.33px */

  /* Rhythm */
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --section-y: clamp(3rem, 7vw, 4.5rem);

  /* Photo bands: --veil is the black laid over the photo.
     0.70 == the 30% opacity used in Figma; lower is brighter. */
  --veil: 0.7;
  --edge-h: clamp(1.125rem, 2.2vw, 1.875rem); /* 30px max on desktop */
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--step-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* grunge edges bleed 1px past the section box */
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

p {
  margin: 0;
}

p + p {
  margin-top: 1.5em; /* the blank-line rhythm used in the design */
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: 75rem; /* 1200px inside the 1280 frame */
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.stack-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.measure-copy {
  max-width: var(--measure-copy);
}

.measure-wide {
  max-width: var(--measure-wide);
}

/* --------------------------------------------------------------------------
   Photo bands + grunge edges
   A photo dimmed by a flat black veil (identical to Figma's opacity layer),
   torn off at the top and/or bottom with a repeating SVG edge.
   -------------------------------------------------------------------------- */
.backdrop {
  position: relative;
  background-color: var(--bg);
  background-image: linear-gradient(rgba(0, 0, 0, var(--veil)), rgba(0, 0, 0, var(--veil))),
    var(--backdrop-src);
  background-size: cover, cover;
  background-position: center, var(--backdrop-pos, center);
  background-repeat: no-repeat, no-repeat;
}

.backdrop--edge-top::before,
.backdrop--edge-bottom::after {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  height: var(--edge-h);
  background-image: url("../img/edge-grunge.svg");
  background-repeat: repeat-x;
  background-size: 900px 100%;
  pointer-events: none;
}

@media (max-width: 40rem) {
  .backdrop--edge-top::before,
  .backdrop--edge-bottom::after {
    background-size: 480px 100%; /* keep the tear from stretching flat */
  }
}

.backdrop--edge-bottom::after {
  bottom: -1px;
  background-position: bottom left;
}

.backdrop--edge-top::before {
  top: -1px;
  background-position: top left;
  transform: scaleY(-1);
}

/* --------------------------------------------------------------------------
   Banner — the shared shell that carries the header over a photo band
   -------------------------------------------------------------------------- */
.banner {
  padding-bottom: calc(var(--edge-h) + clamp(2rem, 5vw, 3.25rem));
}

/* --------------------------------------------------------------------------
   Shared header — identical markup on every page
   Desktop: logo left, nav right.  Narrow: nav on top, logo centered below.
   -------------------------------------------------------------------------- */
.site-header {
  padding-block: clamp(1rem, 2.5vw, 1.5rem);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 3vw, 2rem);
}

.site-header__logo {
  display: block;
  flex: 0 0 auto;
}

.site-header__logo img {
  width: clamp(9rem, 15vw, 11.25rem); /* 180px desktop */
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2rem);
}

.site-nav__link {
  font-family: var(--font-display);
  font-size: var(--step-nav);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg-dim);
  transition: color 0.15s ease;
}

.site-nav__link:hover {
  color: var(--accent);
}

/* Active page — driven off <body data-page>, so the header block itself
   never changes between pages. */
body[data-page="guide"] .site-nav__link[data-nav="guide"],
body[data-page="blog"] .site-nav__link[data-nav="blog"],
body[data-page="about"] .site-nav__link[data-nav="about"] {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.875rem 2.25rem;
  border: 2px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.btn:hover {
  border-color: #b8410f;
  background: #b8410f;
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  --backdrop-src: url("../img/hero-skyline.jpg");
  --backdrop-pos: center 40%;
  --veil: 0.62; /* brighter than the other bands, but not by much */
}

.hero__title {
  font-size: var(--step-hero);
  margin-top: clamp(1.25rem, 3vw, 2rem);
}

.hero__copy {
  margin-top: clamp(1.5rem, 3vw, 1.75rem);
}

.hero__cta {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section {
  padding-block: var(--section-y);
}

.section__title {
  font-size: var(--step-section);
}

.section__intro {
  margin-top: 1.5rem;
}

/* --------------------------------------------------------------------------
   Haunt logo grid
   -------------------------------------------------------------------------- */
.haunts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 2.75rem) clamp(1.5rem, 3vw, 2rem);
  align-items: center;
  justify-items: center;
  max-width: 38rem;
  margin: clamp(2.5rem, 6vw, 3.75rem) auto 0;
  padding: 0;
  list-style: none;
}

.haunt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
}

.haunt a {
  display: block;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.haunt a:hover {
  transform: scale(1.04);
  filter: drop-shadow(0 0 1.5rem rgba(224, 86, 28, 0.45));
}

/* Each logo keeps its own designed height; width follows its aspect ratio. */
.haunt img {
  width: auto;
  height: var(--logo-h);
  max-width: 100%;
  object-fit: contain;
}

.haunt--thirteenth img {
  --logo-h: clamp(10rem, 18vw, 14.34rem); /* 229.45px */
}

.haunt--fear-farm img {
  --logo-h: clamp(5.3rem, 9.5vw, 7.605rem); /* 121.68px */
}

.haunt--scream-park img {
  --logo-h: clamp(4.75rem, 8.5vw, 6.788rem); /* 108.61px */
}

.haunt--hanna img {
  --logo-h: clamp(4.5rem, 8vw, 6.417rem); /* 102.66px */
}

.haunt--necropolis img {
  --logo-h: clamp(4.75rem, 8.5vw, 6.75rem);
}

.haunt--the-haunt img {
  --logo-h: clamp(5rem, 9vw, 7rem);
}

/* Odd one out on a 2-up grid: centre it across both columns */
.haunt:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

/* Desktop: featured marks sit in two rows of three. */
@media (min-width: 64rem) {
  .haunts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 62rem;
    gap: clamp(1.5rem, 3vw, 2.5rem);
  }

  .haunt:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .haunt--thirteenth img {
    --logo-h: 9.5rem;
  }

  .haunt--fear-farm img {
    --logo-h: 5rem;
  }

  .haunt--scream-park img {
    --logo-h: 4.5rem;
  }

  .haunt--hanna img {
    --logo-h: 4.25rem;
  }

  .haunt--necropolis img {
    --logo-h: 5.5rem;
  }

  .haunt--the-haunt img {
    --logo-h: 5.5rem;
  }
}

/* --------------------------------------------------------------------------
   Pills
   -------------------------------------------------------------------------- */
.pill {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--fg-dim);
  white-space: nowrap;
}

.pill--closed {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: var(--closed);
}

/* --------------------------------------------------------------------------
   About band
   -------------------------------------------------------------------------- */
.about {
  --backdrop-src: url("../img/about-pumpkins.jpg");
  --backdrop-pos: center 55%;
  padding-block: calc(var(--edge-h) + clamp(1.75rem, 4vw, 2.75rem));
}

.about a,
.prose a {
  color: var(--fg);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.about a:hover,
.prose a:hover {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Page head (guide / about)
   -------------------------------------------------------------------------- */
.page-head {
  --backdrop-src: url("../img/hero-skyline.jpg");
  --backdrop-pos: center 40%;
  --veil: 0.6;
}

.page-head__title {
  font-size: var(--step-section);
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
}

/* --------------------------------------------------------------------------
   Prose
   -------------------------------------------------------------------------- */
.prose > * + * {
  margin-top: 1.5rem;
}

.prose strong {
  color: var(--fg);
}

/* --------------------------------------------------------------------------
   Blog — article body

   Everything under `.article` is generated from markdown by tools/build.js, so
   these rules are the only place the shape of a post is decided. Long-form copy
   runs at --fg-dim on black; <strong> is what snaps back to full white.
   -------------------------------------------------------------------------- */
.article {
  width: 100%;
  text-align: left; /* the wrap is .stack-center; prose is not */
  color: var(--fg-dim);
}

.article h2 {
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
  font-size: clamp(1.5rem, 4.5vw, 1.875rem);
  line-height: 1.05;
  color: var(--fg);
}

/* Short accent bar under every section head — the one recurring mark that
   tells you where a new section starts while scrolling. */
.article h2::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 3px;
  margin-top: 0.875rem;
  background: var(--accent);
}

.article h3 {
  margin-top: clamp(1.75rem, 4vw, 2.25rem);
  font-size: clamp(1.125rem, 3vw, 1.3125rem);
  line-height: 1.15;
  color: var(--fg);
}

.article ul,
.article ol {
  padding-left: 1.5rem;
}

.article li + li {
  margin-top: 0.625rem;
}

.article li::marker {
  color: var(--accent);
}

.article li > ul,
.article li > ol {
  margin-top: 0.625rem;
}

.article blockquote {
  margin: 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 3px solid var(--accent);
  color: var(--fg);
}

.article blockquote > * + * {
  margin-top: 1rem;
}

.article hr {
  height: 0;
  margin-block: clamp(2rem, 5vw, 2.75rem);
  border: 0;
  border-top: 1px solid var(--rule);
}

.article img {
  width: 100%;
  border: 1px solid var(--rule);
}

.article code {
  padding: 0.1em 0.35em;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.9em;
}

/* Wide tables scroll inside their own box so the page never moves sideways. */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-scroll table {
  width: 100%;
  min-width: 32rem;
  border-collapse: collapse;
  text-align: left;
}

.table-scroll th,
.table-scroll td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  font-size: 0.9375rem;
}

.table-scroll thead th {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
  white-space: nowrap;
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

.table-scroll tbody tr:last-child td,
.table-scroll tbody tr:last-child th {
  border-bottom: 0;
}

/* --------------------------------------------------------------------------
   Blog — article head and table of contents
   -------------------------------------------------------------------------- */
.article__kicker {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.article__kicker a {
  color: var(--accent);
  text-decoration: none;
}

.article__kicker a:hover {
  text-decoration: underline;
}

.article__kicker span[aria-hidden] {
  color: rgba(255, 255, 255, 0.35);
}

/* The h1 sits directly under the kicker, so it loses page-head's top margin. */
.article__kicker + .page-head__title {
  margin-top: 0.875rem;
}

.article__dek {
  margin-top: clamp(1rem, 3vw, 1.5rem);
  font-size: 1.0625rem;
  color: var(--fg-dim);
}

.toc {
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.03);
}

.toc__title {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg);
}

.toc__list {
  margin: 0.875rem 0 0;
  padding-left: 1.25rem;
}

.toc__list li + li {
  margin-top: 0.5rem;
}

.toc__list li::marker {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.toc__list a {
  color: var(--fg-dim);
  text-decoration: none;
}

.toc__list a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Anchor jumps land the heading clear of the top of the viewport. */
.article :target {
  scroll-margin-top: 1.5rem;
}

/* --------------------------------------------------------------------------
   Blog — post cards, used on /blog and under each article
   -------------------------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: clamp(1.25rem, 3vw, 1.75rem);
  width: 100%;
  max-width: 60rem;
  margin: clamp(2rem, 4vw, 2.75rem) auto 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.card:hover {
  border-color: rgba(224, 86, 28, 0.5);
  background: rgba(224, 86, 28, 0.05);
  transform: translateY(-2px);
}

.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 0.625rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.card__meta span[aria-hidden] {
  color: rgba(255, 255, 255, 0.35);
}

.card__title {
  margin-top: 0.75rem;
  font-size: clamp(1.125rem, 3vw, 1.3125rem);
  line-height: 1.1;
}

.card__title a {
  text-decoration: none;
}

.card__title a:hover {
  color: var(--accent);
}

.card__dek {
  margin-top: 0.875rem;
  color: var(--fg-dim);
}

.card__more {
  margin-top: auto;
  padding-top: 1.25rem;
}

.card__more a {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent);
}

.card__more a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Comparison table
   Wide content scrolls inside its own container so the page never scrolls
   horizontally on a phone.
   -------------------------------------------------------------------------- */
.compare {
  width: 100%;
  max-width: 60rem;
  margin: clamp(2.5rem, 5vw, 3.25rem) auto 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.compare table {
  width: 100%;
  min-width: 44rem;
  border-collapse: collapse;
  text-align: left;
}

.compare caption {
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--fg-dim);
  text-align: left;
}

.compare th,
.compare td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

.compare thead th {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
  white-space: nowrap;
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

.compare tbody th {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--fg);
}

.compare td {
  font-size: 0.9375rem;
  color: var(--fg-dim);
}

.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
  border-bottom: 0;
}

.compare a {
  color: var(--fg);
  text-underline-offset: 0.15em;
}

.compare a:hover {
  color: var(--accent);
}

/* Unknown values shouldn't read as loudly as real ones */
.compare .unknown {
  color: rgba(255, 255, 255, 0.45);
}

.compare .is-closed th,
.compare .is-closed td {
  color: var(--closed);
}

/* --------------------------------------------------------------------------
   Ranked attractions
   -------------------------------------------------------------------------- */
.ranks {
  display: grid;
  gap: 1px;
  width: 100%;
  max-width: 60rem;
  margin: clamp(2.5rem, 5vw, 3.25rem) auto 0;
  padding: 0;
  list-style: none;
  background: var(--rule);
  border-top: 1px solid var(--rule);
}

.rank {
  display: grid;
  grid-template-columns: 2.75rem 16rem minmax(0, 1fr);
  align-items: start;
  gap: clamp(1rem, 3vw, 1.75rem);
  padding: clamp(1.5rem, 3vw, 2rem) clamp(0.5rem, 2vw, 1.25rem);
  background: var(--bg);
  text-align: left;
}

.rank__num {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.rank__media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 5.5rem;
}

.rank__media img {
  width: auto;
  max-width: 100%;
  max-height: 9.5rem;
  object-fit: contain;
}

.haunt__wordmark,
.rank__wordmark {
  color: var(--fg);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 0.9;
  text-align: center;
  text-transform: uppercase;
}

.haunt__wordmark span,
.rank__wordmark span {
  display: block;
  color: var(--accent);
}

.rank__name {
  font-size: 1.25rem;
}

.rank__name a {
  text-decoration: none;
}

.rank__name a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Badge sits inline, just right of the attraction name */
.rank__name .pill {
  margin-left: 0.625rem;
  vertical-align: middle;
}

/* Link and address share one line under the description */
.rank__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.375rem clamp(1rem, 3vw, 1.75rem);
  margin-top: 1rem;
}

.rank__address {
  font-size: 0.9375rem;
  color: var(--fg-dim);
}

.rank__body {
  margin-top: 0.75rem;
  color: var(--fg-dim);
}

.rank__link {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent);
}

.rank__link:hover {
  text-decoration: underline;
}

/* Closed for good — desaturated logo, struck through, badged */
.rank--closed .rank__num,
.rank--closed .rank__name {
  color: var(--closed);
}

.rank--closed .rank__body {
  color: rgba(255, 255, 255, 0.55);
}

.rank--closed .rank__media img {
  filter: grayscale(1);
  opacity: 0.5;
}

/* --------------------------------------------------------------------------
   Shared footer — identical markup on every page
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}

.site-footer__logo {
  display: block;
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
}

.site-footer__logo img {
  width: clamp(9.5rem, 16vw, 12rem);
}

.site-footer__copy {
  max-width: 28rem;
  color: var(--fg-dim);
}

.site-footer__meta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem clamp(1rem, 3vw, 2rem);
  font-size: 0.875rem;
  color: var(--fg-dim);
}

.site-footer__meta a {
  text-decoration: none;
}

.site-footer__meta a:hover {
  color: var(--accent);
}

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

/* --------------------------------------------------------------------------
   Narrow viewports — the Figma 430px frame stacks everything single-column
   -------------------------------------------------------------------------- */
@media (max-width: 48rem) {
  /* Single column: rank number, then a full-width logo, then the copy. */
  .rank {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "num"
      "media"
      "text";
    row-gap: clamp(0.875rem, 3vw, 1.25rem);
    padding-inline: 0;
  }

  .rank__num {
    grid-area: num;
  }

  .rank__media {
    grid-area: media;
    width: 100%;
    min-height: 0;
  }

  .rank__media img {
    width: 100%;
    height: auto;
    max-height: none;
  }

  .rank__wordmark {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .rank__text {
    grid-area: text;
  }

  .rank__name {
    font-size: 1.125rem;
  }
}

@media (max-width: 40rem) {
  :root {
    --step-nav: 0.875rem; /* 14px on mobile */
  }

  /* Nav above the logo, both centered — the Figma mobile frame */
  .site-header__inner {
    flex-direction: column-reverse;
    gap: clamp(1rem, 4vw, 1.5rem);
  }

  .site-header__logo img {
    width: clamp(11rem, 48vw, 14.375rem);
  }

  /* One logo per row, each at 80% of the column so they breathe */
  .haunts {
    grid-template-columns: minmax(0, 1fr);
    max-width: none;
    gap: clamp(2rem, 7vw, 2.75rem);
  }

  .haunt a {
    display: block;
    width: 80%;
  }

  .haunt img {
    width: 100%;
    height: auto;
    max-height: none;
  }
}
