/* ==========================================================================
   NerdyMedia.co — "The Classified Column"
   A classified / directory page as the building language: hairline columns,
   category letters, line listings against display ads. One spot colour.
   ========================================================================== */

/* --- Tokens --------------------------------------------------------------- */

:root {
  /* brand (binding) */
  --ink: #111111;
  --paper: #ffffff;
  --spot: #635bff;
  --stock: #f4f4f5;

  /* derived ink steps — all tested against paper for contrast */
  --ink-72: #4a4a52;   /* secondary text on paper: 8.0:1 */
  --ink-55: #6a6a74;   /* tertiary / meta: 5.2:1 */
  --rule: #d6d6dd;     /* hairline */
  --rule-strong: #111111;
  --spot-deep: #4b44d6;
  --spot-ink: #2a2580;

  /* type */
  --display: "Archivo", "Archivo Black", system-ui, sans-serif;
  --text: "Onest", system-ui, -apple-system, sans-serif;

  /* measure + rhythm */
  --page: 1420px;
  --gutter: clamp(18px, 3.2vw, 44px);
  --col-gap: clamp(20px, 2.4vw, 40px);

  --space-2xs: 6px;
  --space-xs: 12px;
  --space-s: 20px;
  --space-m: 34px;
  --space-l: 48px;
  --space-xl: clamp(54px, 5.6vw, 88px);
  --space-2xl: clamp(76px, 8vw, 124px);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset ---------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.55;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--spot);
  outline-offset: 3px;
}

.spotblock :focus-visible,
.footer :focus-visible { outline-color: #ffffff; }

::selection { background: var(--spot); color: #fff; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  z-index: 100;
  font-weight: 600;
}
.skip:focus { left: 8px; top: 8px; }

.u-hidden { display: none !important; }

.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;
}

/* --- Page frame ----------------------------------------------------------- */

.page {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.rule-top { border-top: 1px solid var(--rule); }
.rule-bottom { border-bottom: 1px solid var(--rule); }
.rule-heavy { border-top: 2px solid var(--ink); }

/* --- Type scale ----------------------------------------------------------- */

.display,
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 92%;          /* Archivo's width axis: denser column setting */
  letter-spacing: -0.032em;
  line-height: 0.9;
  text-wrap: balance;
}

.t-hero { font-stretch: 88%; }

.t-hero {
  font-size: clamp(2.9rem, 7.4vw, 5.9rem);
}

.t-section {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
}

.t-sub {
  font-size: clamp(1.35rem, 2.1vw, 1.85rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.lede {
  font-size: clamp(1.06rem, 1.35vw, 1.28rem);
  line-height: 1.5;
  max-width: 34ch;
  color: var(--ink-72);
}

.body-copy p {
  max-width: 68ch;
  color: var(--ink-72);
}
.body-copy p + p { margin-top: 1em; }

/* category label — a directory rubric, never sits above a heading */
.rubric {
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 88%;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-55);
}

.rubric--ink { color: var(--ink); }
.rubric--spot { color: var(--spot-ink); }

/* --- Masthead ------------------------------------------------------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s);
  min-height: 74px;
  flex-wrap: wrap;
}

.masthead__end {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.6vw, 24px);
}

.wordmark {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.045em;
  font-size: 1.32rem;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  white-space: nowrap;
}
.wordmark i { font-style: normal; font-weight: 500; }
.wordmark b { font-weight: 800; }
.wordmark s { text-decoration: none; color: var(--spot); }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
}

.nav a:not(.btn) {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 0;
  position: relative;
  color: var(--ink);
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--spot);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav a:not(.btn):hover::after,
.nav a:not(.btn):focus-visible::after { transform: scaleX(1); }
.nav a:not(.btn)[aria-current="page"] { color: var(--spot-ink); }
.nav a:not(.btn)[aria-current="page"]::after { transform: scaleX(1); background: currentColor; }

.masthead__edition {
  font-family: var(--display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-55);
  white-space: nowrap;
}

/* --- Buttons -------------------------------------------------------------- */

.btn {
  --btn-bg: var(--ink);
  --btn-fg: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bg);
  padding: 15px 24px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.97rem;
  letter-spacing: -0.015em;
  text-decoration: none;
  cursor: pointer;
  border-radius: 0;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover { --btn-bg: var(--spot); border-color: var(--spot); }
.btn:active { transform: translateY(1px); }

.btn .arrow { transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--spot { --btn-bg: var(--spot); --btn-fg: #fff; }
.btn--spot:hover { --btn-bg: var(--ink); border-color: var(--ink); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: #fff; }

.btn--onspot {
  --btn-bg: #ffffff;
  --btn-fg: var(--spot-ink);
  border-color: #ffffff;
}
.btn--onspot:hover { --btn-bg: var(--ink); --btn-fg: #fff; border-color: var(--ink); }

.btn--sm { padding: 11px 17px; font-size: 0.88rem; }

.textlink {
  color: var(--spot-ink);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}
.textlink:hover { color: var(--ink); }

/* --- Hero ----------------------------------------------------------------- */

.hero {
  border-bottom: 1px solid var(--ink);
  padding-block: clamp(30px, 4vw, 54px) clamp(34px, 4.5vw, 66px);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}

/* left: the listings column */
.listings {
  border-top: 2px solid var(--ink);
  padding-top: 10px;
}

.listings__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
}

.listing {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  align-items: baseline;
  padding: 9px 0;
  border-top: 1px solid var(--rule);
  font-size: 0.83rem;
  line-height: 1.3;
  color: var(--ink-55);
}

.listing b {
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 88%;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.74rem;
  color: var(--ink-72);
}

.listing span { text-align: right; font-variant-numeric: tabular-nums; }

.listings__note {
  padding: 14px 0 0;
  border-top: 1px solid var(--rule);
  font-size: 0.83rem;
  line-height: 1.45;
  color: var(--ink-55);
  max-width: 34ch;
}

/* right: the display ad */
.ad {
  border: 2px solid var(--ink);
  padding: clamp(22px, 3vw, 44px);
  position: relative;
  background: var(--paper);
}

.ad--hero { padding-bottom: clamp(26px, 3vw, 40px); }

.ad__rule {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: clamp(16px, 2vw, 26px);
  margin-bottom: clamp(18px, 2.4vw, 30px);
  border-bottom: 1px solid var(--ink);
  flex-wrap: wrap;
}

.ad__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 2.6vw, 34px);
}

@media (min-width: 900px) {
  .ad__body { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: end; }
}

.ad__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: clamp(20px, 2.4vw, 28px);
}

.ad__terms {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--ink-55);
}

.ad__services {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: clamp(22px, 2.6vw, 30px);
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}
.ad__services li {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-72);
}
.ad__services li + li { padding-left: 18px; border-left: 1px solid var(--rule); }

@media (max-width: 620px) {
  .ad__services { gap: 6px 14px; }
  .ad__services li + li { padding-left: 0; border-left: 0; }
  .ad__services li + li::before { content: none; }
}

/* --- Section shell -------------------------------------------------------- */

.section { padding-block: var(--space-xl); border-bottom: 1px solid var(--rule); }
.section--stock { background: var(--stock); }
.section--tight { padding-block: var(--space-l); }

/* reverse-out: the loudest thing a classified page can buy */
.section--ink {
  background: var(--ink);
  color: #ffffff;
  border-bottom: 0;
}
.section--ink h2,
.section--ink h3 { color: #ffffff; }
.section--ink .lede { color: #d9d9de; }
.section--ink .rubric { color: #a9a3ff; }
.section--ink .steps { border-top-color: #ffffff; }
.section--ink .steps > li { border-bottom-color: #333338; }
.section--ink .steps p { color: #d9d9de; }
.section--ink .steps__no { color: #a9a3ff; }
@media (min-width: 860px) {
  .section--ink .steps > li + li { border-left-color: #333338; }
}
.section--ink .ad {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}
.section--ink .ad .display { color: var(--ink); }
.section--ink .ad__terms { color: var(--ink-55); }
.section--ink :focus-visible { outline-color: #ffffff; }

.section__head {
  display: grid;
  gap: var(--space-s);
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  margin-bottom: var(--space-l);
}

@media (min-width: 900px) {
  .section__head {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: var(--col-gap);
  }
  .section__head .lede { justify-self: start; max-width: 42ch; }
}

/* heading with its index set beside it, never above it */
.headline-row {
  display: flex;
  align-items: baseline;
  gap: clamp(12px, 2vw, 22px);
}
.headline-row .rubric { flex: none; transform: translateY(-0.15em); }

/* --- The switch: line listing vs display ---------------------------------- */

.switch {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 3vw, 44px);
}

@media (min-width: 980px) {
  .switch { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: start; }
}

.switch__control {
  display: inline-flex;
  border: 1px solid var(--ink);
  background: var(--paper);
  padding: 3px;
  gap: 3px;
}

.switch__control button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 10px 16px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  color: var(--ink-72);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.switch__control button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.switch__control button:hover:not([aria-pressed="true"]) { color: var(--ink); background: var(--stock); }

.stage {
  border: 2px solid var(--ink);
  background: var(--paper);
  padding: clamp(18px, 2.4vw, 32px);
  min-height: 340px;
  display: grid;
  align-content: center;
  position: relative;
  overflow: hidden;
}

.stage__panel { grid-area: 1 / 1; }

/* line-listing state */
.stage__line {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 12px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: baseline;
  font-size: 0.86rem;
  color: var(--ink-55);
  max-width: 46ch;
}
.stage__line b {
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 88%;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.78rem;
  color: var(--ink-72);
}

.stage__caption {
  margin-top: 18px;
  font-size: 0.92rem;
  color: var(--ink-55);
  max-width: 44ch;
}

/* display state */
.stage__display { display: grid; gap: 14px; }

.stage__display .t-sub { font-size: clamp(1.6rem, 3.4vw, 2.6rem); }

.stage__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}
.stage__meta li { font-size: 0.84rem; color: var(--ink-72); }

/* the authored motion: the ad being set.
   The incoming panel wipes OVER the outgoing one — the outgoing panel stays
   visible for the length of the wipe, so the frame is never empty mid-switch. */
.js-anim .stage__panel[data-state="hidden"] {
  clip-path: inset(0 100% 0 0);
  pointer-events: none;
  visibility: hidden;
  z-index: 1;
  transition: clip-path 0.72s var(--ease), visibility 0s linear 0.72s;
}
.js-anim .stage__panel[data-state="shown"] {
  clip-path: inset(0 0 0 0);
  visibility: visible;
  z-index: 2;
  transition: clip-path 0.72s var(--ease), visibility 0s linear 0s;
}

/* --- Offer steps ---------------------------------------------------------- */

.steps {
  display: grid;
  gap: 0;
  grid-template-columns: minmax(0, 1fr);
  border-top: 2px solid var(--ink);
}

@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps > li + li { border-left: 1px solid var(--rule); }
}

.steps > li {
  padding: clamp(22px, 2.4vw, 32px) clamp(18px, 2vw, 28px) clamp(26px, 3vw, 40px);
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 860px) {
  .steps > li { border-bottom: 0; }
}

.steps__no {
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.72em;
  letter-spacing: 0;
  color: var(--spot);
  margin-right: 0.5em;
}

.steps h3 { font-size: 1.3rem; margin-bottom: 12px; letter-spacing: -0.03em; }
.steps p { color: var(--ink-72); font-size: 0.97rem; max-width: 36ch; }

/* --- Directory (services) ------------------------------------------------- */

.directory { border-top: 2px solid var(--ink); }

.entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px clamp(20px, 3vw, 56px);
  padding: clamp(18px, 2.1vw, 28px) 0;
  border-bottom: 1px solid var(--rule);
  position: relative;
}

@media (min-width: 860px) {
  .entry {
    grid-template-columns: 42px minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
  }
}

.entry__letter {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0;
  color: var(--spot);
  line-height: 1;
  padding-top: 0.35em;
}

.entry h3 {
  font-size: clamp(1.45rem, 2.5vw, 2.1rem);
  letter-spacing: -0.035em;
}

@media (max-width: 859px) {
  .entry { grid-template-columns: 26px minmax(0, 1fr); }
  .entry__letter { padding-top: 0.2em; font-size: 1rem; }
  .entry__head,
  .entry__text { grid-column: 2; }
}

.entry__head { min-width: 0; }

.entry { transition: background 0.25s var(--ease); }
.entry:hover { background: var(--stock); }
.section--stock .entry:hover { background: #eaeaee; }
.entry:hover .entry__letter { color: var(--ink); }
.entry__letter { transition: color 0.25s var(--ease); }

.listing { transition: background 0.2s var(--ease); }
.listing:hover { background: var(--stock); }
.listing:hover b { color: var(--ink); }

.entry__text { color: var(--ink-72); max-width: 54ch; }

.entry__text p + p { margin-top: 0.8em; }

.entry__detail {
  margin-top: 18px;
  display: grid;
  gap: 0;
  max-width: 30ch;
}
.entry__detail li {
  font-size: 0.85rem;
  color: var(--ink-55);
  padding: 7px 0;
  border-top: 1px solid var(--rule);
}
.entry__detail li:last-child { border-bottom: 1px solid var(--rule); }

/* --- Column set (editorial text) ------------------------------------------ */

.columns {
  column-count: 1;
  column-gap: clamp(24px, 3vw, 52px);
  column-rule: 1px solid var(--rule);
}
@media (min-width: 780px) { .columns { column-count: 2; } }
@media (min-width: 1180px) { .columns--3 { column-count: 3; } }

.columns p {
  margin: 0 0 1em;
  max-width: 62ch;
  color: var(--ink-72);
  break-inside: avoid-column;
}
.columns p:first-child::first-letter {
  font-family: var(--display);
  font-weight: 800;
  font-size: 3.1em;
  line-height: 0.78;
  float: left;
  padding: 0.06em 0.12em 0 0;
  color: var(--ink);
}

.columns .pull {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--ink);
  break-inside: avoid-column;
  padding: 18px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  margin-bottom: 1em;
  max-width: none;
}

/* --- Facts strip ---------------------------------------------------------- */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  border-top: 2px solid var(--ink);
}
.facts > div {
  padding: 20px clamp(16px, 2vw, 26px) 24px;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 720px) {
  .facts > div + div { border-left: 1px solid var(--rule); }
}
.facts dt { margin-bottom: 8px; }
.facts dd {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.facts dd small {
  display: block;
  font-family: var(--text);
  font-weight: 400;
  font-size: 0.87rem;
  letter-spacing: 0;
  color: var(--ink-55);
  margin-top: 6px;
  line-height: 1.4;
}

/* --- Spot block (the paid page) ------------------------------------------- */

.spotblock {
  background: var(--spot);
  color: #fff;
  border-bottom: 1px solid var(--spot);
}

.spotblock .page { padding-block: var(--space-xl); }

.spotblock__grid {
  display: grid;
  gap: clamp(26px, 4vw, 60px);
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
}
@media (min-width: 900px) {
  .spotblock__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
}

.spotblock h2 { color: #fff; }
.spotblock p { color: #ffffff; max-width: 40ch; }
.spotblock .rubric { color: #ffffff; }

.spotblock__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--space-s); }

.spotblock a:not(.btn) { color: #fff; }

/* --- Form ----------------------------------------------------------------- */

.form {
  display: grid;
  gap: 0;
  border-top: 2px solid var(--ink);
}

.field {
  display: grid;
  gap: 8px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 760px) {
  .field {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 18px;
    align-items: baseline;
  }
}

.field > label { align-self: baseline; }

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  padding: 4px 0 6px;
  font-size: 1.02rem;
  color: var(--ink);
  border-radius: 0;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-55); }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-bottom-color: var(--spot);
}
.field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }

.field--invalid input,
.field--invalid textarea { border-bottom-color: #b3261e; }

.field__error {
  grid-column: 1 / -1;
  font-size: 0.86rem;
  color: #b3261e;
}
@media (min-width: 760px) { .field__error { grid-column: 2; } }

.form__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-s);
}

.form__note { font-size: 0.88rem; color: var(--ink-55); max-width: 46ch; }

.form__status {
  margin-top: var(--space-s);
  border: 1px solid var(--ink);
  padding: 16px 18px;
  font-size: 0.95rem;
  background: var(--stock);
}
.form__status[hidden] { display: none; }

/* --- Footer --------------------------------------------------------------- */

.footer {
  background: var(--ink);
  color: #fff;
  padding-block: var(--space-xl) var(--space-l);
}

.footer a { color: #fff; }

.footer__grid {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  grid-template-columns: minmax(0, 1fr);
  padding-bottom: var(--space-l);
  border-bottom: 1px solid #333338;
}
@media (min-width: 820px) {
  .footer__grid { grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); }
}

.footer .wordmark { color: #fff; font-size: 1.5rem; }
.footer .wordmark s { color: #a9a3ff; }

.footer__claim {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  letter-spacing: -0.035em;
  line-height: 1;
  margin-top: 18px;
  max-width: 18ch;
}

.footer__list { display: grid; gap: 10px; margin-top: 16px; }
.footer__list a { text-decoration: none; font-size: 0.97rem; color: #d9d9de; }
.footer__list a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.footer .rubric { color: #8f8f99; }

.footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  justify-content: space-between;
  padding-top: var(--space-s);
  font-size: 0.85rem;
  color: #8f8f99;
}

.footer__pending {
  font-size: 0.85rem;
  color: #8f8f99;
  margin-top: 10px;
  max-width: 30ch;
}


/* --- Set photography ------------------------------------------------------
   Pictures are set like pictures on a printed page: inside a hairline, with a
   caption under them. Never a background, never behind type.
   -------------------------------------------------------------------------- */

.band {
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  padding-block: 0 14px;
}

/* a band that runs edge to edge; its caption stays on the page measure */
.band--bleed { max-width: none; padding-inline: 0; border-top-width: 0; }
.band--bleed img { border-inline: 0; max-height: 72vh; }
.band--bleed figcaption {
  max-width: var(--page);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.band figure { margin: 0; }

.band img {
  width: 100%;
  height: auto;
  max-height: 62vh;          /* a band never takes the whole screen */
  object-fit: cover;
  display: block;
  border: 1px solid var(--ink);
}

.band figcaption,
.plate figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 20px;
  padding-top: 10px;
  font-size: 0.86rem;
  color: var(--ink-55);
}

.band figcaption .rubric,
.plate figcaption .rubric { flex: none; }

.plate { margin: 0; }

.plate img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--ink);
}

.plate figcaption { padding-top: 9px; font-size: 0.84rem; }

.plates {
  display: grid;
  gap: clamp(18px, 2.4vw, 34px);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 760px) {
  .plates--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plates--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* a picture set beside running text */
.with-plate {
  display: grid;
  gap: clamp(22px, 3vw, 46px);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
@media (min-width: 900px) {
  .with-plate { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
  .with-plate--flip > .plate { order: -1; }
  /* a spec strip beside a picture gets two columns, not four */
  .with-plate .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .with-plate .facts > div:nth-child(odd) { border-left: 0; }
}

/* --- Ticker ---------------------------------------------------------------
   The crawl: one line of ink that never stops, the way a classified page
   advertises itself on the way to the next section.
   -------------------------------------------------------------------------- */

.ticker {
  background: var(--ink);
  color: #ffffff;
  overflow: hidden;
  border-block: 1px solid var(--ink);
  padding-block: 14px;
}

.ticker__track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: ticker 44s linear infinite;
}

.ticker__track span {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 92%;
  font-size: clamp(1.15rem, 2.2vw, 1.7rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  padding-inline: clamp(18px, 2.4vw, 34px);
  white-space: nowrap;
}

.ticker__track span:nth-child(even) { color: var(--spot); }

@keyframes ticker {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
}

/* --- Reveal (never hides content without JS) ------------------------------ */

.js-anim [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
}
.js-anim [data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .js-anim [data-reveal] { opacity: 1; transform: none; }
}

/* --- Small screens -------------------------------------------------------- */

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__listings { order: 0; }
  .listings li.listing:nth-child(n + 5) { display: none; }
  .listings__note { padding-top: 10px; font-size: 0.8rem; }
  .listing { padding: 7px 0; }
  .masthead__edition { display: none; }

  .masthead__inner { gap: 0; padding-top: 4px; min-height: 0; }
  .wordmark { order: 1; padding-block: 14px; }
  .masthead__end { order: 2; margin-left: auto; padding-block: 10px; }
  .nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    border-top: 1px solid var(--rule);
    padding-block: 6px;
    gap: 10px;
  }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  /* the column leads on a phone, so the ad must earn its height back:
     smaller display size keeps the primary action inside the first viewport */
  .t-hero { font-size: clamp(2.35rem, 10vw, 3rem); }
  .ad--hero { padding-bottom: 20px; }
  .ad__rule { padding-bottom: 12px; margin-bottom: 16px; }
  .ad__actions { margin-top: 18px; }
  .nav { gap: 14px; }
  .nav a { font-size: 0.9rem; }
  .masthead__inner { min-height: 64px; }
  .ad { padding: 20px 18px; }
}
