/* =============================================================================
   The Local Network marketing site: brand v2 tokens and every section of the
   home and partners pages. Tokens mirror web/src/app/globals.css (BRANDING.md).

   © COPYRIGHT: Babewyn Ltd - 2026
   Author: Tony Craven
   ============================================================================= */

/* ── Fonts (vendored, as the app does: no third-party requests) ─────────── */

@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  src: url('../fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  src: url('../fonts/atkinson-hyperlegible-next-latin-wght-italic.woff2') format('woff2');
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Libre Caslon Text';
  src: url('../fonts/libre-caslon-text-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Libre Caslon Text';
  src: url('../fonts/libre-caslon-text-latin-400-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Libre Caslon Text';
  src: url('../fonts/libre-caslon-text-latin-700-normal.woff2') format('woff2');
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Libre Caslon Display';
  src: url('../fonts/libre-caslon-display-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ── Tokens ──────────────────────────────────────────────────────────────── */

:root {
  --font-body: 'Atkinson Hyperlegible Next', system-ui, sans-serif;
  --font-display: 'Libre Caslon Text', 'Iowan Old Style', 'Palatino Linotype', serif;
  --font-hero: 'Libre Caslon Display', 'Libre Caslon Text', 'Iowan Old Style', serif;

  --navy: #050d1a;
  --navy-soft: #0b1c30;
  --navy-line: rgba(244, 237, 226, 0.14);

  --cream: #f4ede2;
  --cream-soft: #faf6ee;
  --cream-line: #e5dac7;
  --book-paper: #fffefa;
  --surface: #ffffff;
  --surface-line: #e2d5bd;

  --ink: #1b1b1b;
  --ink-soft: #5b5850;
  --paper: #f4ede2;
  --paper-soft: rgba(244, 237, 226, 0.72);

  --gold: #c79a4b;
  --gold-deep: #a97f35;
  --gold-ink: #7d5a1e;

  --alert-ink: #8a2f24;
  --alert-line: #b4322a;
  --line-blue: #6f93b8;
  --line-sage: #8fa06b;

  --brand-focus-ring: #7cb0ff;
  --brand-shadow-soft: 0 1px 2px rgba(5, 13, 26, 0.06), 0 12px 28px -16px rgba(5, 13, 26, 0.22);
  --brand-shadow-lift: 0 6px 12px rgba(5, 13, 26, 0.08), 0 26px 50px -20px rgba(5, 13, 26, 0.32);
  --brand-radius-md: 16px;
  --brand-radius-lg: 24px;
  --brand-radius-pill: 999px;
  --brand-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --brand-ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  --nav-h: 56px;
  --frame-max: 1320px;
  --rule: 24px;
}

/* ── Base ────────────────────────────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  padding: 8px 16px;
  border-radius: var(--brand-radius-pill);
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus {
  top: 10px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* The centred content width every section lines up on. */
.frame {
  width: 100%;
  max-width: var(--frame-max);
  margin-inline: auto;
  padding-inline: 16px;
}
@media (min-width: 768px) {
  .frame {
    padding-inline: 48px;
  }
}
@media (min-width: 1024px) {
  .frame {
    padding-inline: 64px;
  }
}

/* Small uppercase label with a leading hairline. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.eyebrow::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--gold-deep);
}
.eyebrow--on-navy {
  color: var(--gold);
}
.eyebrow--on-navy::before {
  background: var(--gold);
}

.display-heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.875rem;
  line-height: 1.2;
  color: var(--ink);
}

.hero-heading {
  font-family: var(--font-hero);
  font-weight: 400;
  font-size: clamp(1.875rem, 3.4vw, 2.25rem);
  line-height: 1.2;
  color: var(--ink);
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */

/* Navy on gold, never white on gold (BRANDING.md contrast rule). */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 0;
  border-radius: var(--brand-radius-pill);
  background: var(--gold);
  color: var(--navy);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--brand-ease-out);
}
.btn-gold:hover {
  background: var(--gold-deep);
}
.btn-gold--sm {
  padding: 6px 14px;
}
.btn-gold--lg {
  padding: 12px 28px;
  font-size: 16px;
}
.btn-gold--raised {
  box-shadow: var(--brand-shadow-soft);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 26px;
  border: 2px solid var(--gold);
  border-radius: var(--brand-radius-pill);
  color: var(--paper);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s var(--brand-ease-out);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 0;
  border-radius: var(--brand-radius-pill);
  box-shadow: inset 0 0 0 1.5px var(--cream-line);
  background: var(--surface);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}
.btn-outline:hover:not(:disabled) {
  box-shadow: inset 0 0 0 1.5px var(--gold);
}
.btn-outline:disabled {
  opacity: 0.4;
  cursor: default;
}

/* ── Navigation ──────────────────────────────────────────────────────────── */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--navy);
  color: var(--paper);
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -4px rgba(0, 0, 0, 0.1);
}
.site-nav__inner {
  height: var(--nav-h);
  padding-inline: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-nav__brand {
  flex: none;
  display: flex;
  align-items: center;
  border-radius: 4px;
  transition: opacity 0.2s;
}
.site-nav__brand:hover {
  opacity: 0.8;
}
.site-nav__mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
.site-nav__lockup {
  display: none;
  width: 90px;
  height: 40px;
}
@media (min-width: 640px) {
  .site-nav__mark {
    display: none;
  }
  .site-nav__lockup {
    display: block;
  }
}
.site-nav__links {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav__link {
  display: block;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--paper-soft);
  text-decoration: none;
  transition:
    color 0.2s,
    background 0.2s;
}
.site-nav__link:hover {
  color: var(--paper);
  background: var(--navy-line);
}
.site-nav__link[aria-current='page'] {
  color: var(--paper);
  background: var(--navy-line);
}
.site-nav__cta {
  flex: none;
}
@media (max-width: 379px) {
  .site-nav__link {
    padding-inline: 8px;
  }
  .site-nav__cta {
    padding-inline: 10px;
  }
}

/* ── Landing hero ────────────────────────────────────────────────────────── */

.landing-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(480px, 74vh, 680px);
  overflow: hidden;
  background: var(--cream);
  color: var(--paper);
}
.landing-hero__art {
  position: absolute;
  inset: 0;
}
.landing-hero__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}
/* The navy fade under the words, stopped short of the torn-paper edge. */
.landing-hero__art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(5, 13, 26, 1) 0%,
    rgba(5, 13, 26, 1) 38%,
    rgba(5, 13, 26, 0.9) 48%,
    rgba(5, 13, 26, 0.55) 62%,
    rgba(5, 13, 26, 0.2) 78%,
    rgba(5, 13, 26, 0.04) 96%
  );
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 66%, transparent 76%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 66%, transparent 76%);
}
.landing-hero__content {
  position: relative;
  width: 100%;
  max-width: 64rem;
  padding: clamp(0.25rem, 1.25vw, 0.75rem) 16px clamp(6rem, 13vw, 8.5rem);
}
@media (min-width: 768px) {
  .landing-hero__content {
    padding-left: 80px;
  }
}
@media (min-width: 1024px) {
  .landing-hero__content {
    padding-left: 112px;
  }
}
.landing-hero__text {
  max-width: 32rem;
  text-align: center;
}
.landing-hero__wordmark {
  width: auto;
  height: 160px;
  margin: 0 auto 24px;
}
@media (min-width: 768px) {
  .landing-hero__wordmark {
    height: 200px;
  }
}
.landing-hero__title {
  margin-bottom: 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.25;
}
@media (min-width: 768px) {
  .landing-hero__title {
    font-size: 1.5rem;
  }
}
.landing-hero__lede {
  max-width: 28rem;
  margin: 0 auto 32px;
  line-height: 1.625;
  color: var(--paper-soft);
}
.landing-hero__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}
@media (min-width: 640px) {
  .landing-hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}
/* A short hero (the partners page): same artwork, less height. */
.landing-hero--short {
  min-height: clamp(420px, 60vh, 560px);
}
.landing-hero__eyebrow {
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.landing-hero__heading {
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  text-wrap: balance;
}

/* ── About ───────────────────────────────────────────────────────────────── */

/* The illustration band: anchored right, dissolving left into the cream. */
.photo-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(315px, 43.5vh, 420px);
  overflow: hidden;
}
.photo-hero__art {
  position: absolute;
  inset: 0;
}
.photo-hero__photo {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  aspect-ratio: 1441 / 757;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 35%);
  mask-image: linear-gradient(to right, transparent 0%, #000 35%);
}
.photo-hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-hero__art::before,
.photo-hero__art::after {
  content: '';
  position: absolute;
}
.photo-hero__art::before {
  inset: 0;
  background: linear-gradient(
    100deg,
    var(--cream) 0%,
    var(--cream) 28%,
    rgba(244, 237, 226, 0.86) 48%,
    rgba(244, 237, 226, 0.4) 68%,
    rgba(244, 237, 226, 0.05) 92%
  );
}
.photo-hero__art::after {
  inset: auto 0 0;
  height: 22%;
  background: linear-gradient(
    to top,
    var(--cream) 0%,
    rgba(244, 237, 226, 0.7) 45%,
    rgba(244, 237, 226, 0) 100%
  );
}
.photo-hero__content {
  position: relative;
  width: 100%;
  max-width: 64rem;
  padding: 48px 16px;
}
@media (min-width: 768px) {
  .photo-hero__content {
    padding-left: 80px;
  }
}
@media (min-width: 1024px) {
  .photo-hero__content {
    padding-left: 96px;
  }
}
.photo-hero__text {
  max-width: 32rem;
}
.photo-hero__subtitle {
  max-width: 28rem;
  margin-top: 16px;
  line-height: 1.625;
  color: var(--ink-soft);
}

.mission {
  padding: 56px 16px;
}
@media (min-width: 768px) {
  .mission {
    padding-inline: 80px 48px;
  }
}
@media (min-width: 1024px) {
  .mission {
    padding-inline: 96px 64px;
  }
}
.mission__grid {
  display: grid;
  gap: 48px;
  align-items: start;
}
@media (min-width: 768px) {
  .mission__grid {
    grid-template-columns: 1fr 1fr;
  }
}
.mission__title {
  margin-bottom: 16px;
  font-size: 1.5rem;
}
.mission__copy {
  display: grid;
  gap: 16px;
  line-height: 1.625;
  color: var(--ink-soft);
}
.mission__copy strong {
  color: var(--ink);
}
.mission__copy a {
  font-weight: 500;
  color: var(--gold-ink);
  text-decoration: none;
}
.mission__copy a:hover {
  text-decoration: underline;
}

/* ── Signpost and its feature card ──────────────────────────────────────── */

.signpost {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 768px) {
  .signpost {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
  }
}
.signpost__svg {
  width: 100%;
  max-width: 300px;
  margin-inline: auto;
}
@media (min-width: 768px) {
  .signpost__svg {
    flex: 1;
    min-width: 240px;
    max-width: 340px;
    margin-inline: 0;
  }
}
@media (min-width: 1024px) {
  .signpost__svg {
    max-width: 440px;
  }
}
.stop-gold {
  stop-color: var(--gold);
}
.stop-gold-deep {
  stop-color: var(--gold-deep);
}
.finger__boss {
  fill: var(--gold-deep);
  opacity: 0.85;
}
.finger {
  --finger-fill: url(#tln-finger-iron);
  --finger-ink: var(--paper);
  --finger-line-opacity: 0.4;
  cursor: pointer;
  outline: none;
}
/* A finger's shape is drawn through <use>, so it is styled by what it inherits. */
.finger.is-active {
  --finger-fill: url(#tln-finger-gold);
  --finger-ink: var(--navy);
  --finger-line-opacity: 0.55;
}
.finger__shape {
  fill: var(--finger-fill);
}
.finger__line,
.finger__chevron {
  fill: none;
  stroke: var(--finger-ink);
}
.finger__line {
  stroke-width: 0.9;
  opacity: var(--finger-line-opacity);
}
.finger__chevron {
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.85;
}
.finger__label {
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.6px;
  fill: var(--finger-ink);
}
.finger:focus-visible {
  outline: 2.5px solid var(--brand-focus-ring);
  outline-offset: 3px;
}

.signpost__cards {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 200px;
  margin-inline: auto;
}
@media (min-width: 768px) {
  .signpost__cards {
    flex: none;
    margin-inline: 0;
  }
}
/* Without JavaScript every card shows; with it, the active finger's only. */
.js .sign-card:not(.is-active) {
  display: none;
}
.sign-card {
  aspect-ratio: 1;
  overflow: hidden;
  padding: 16px;
  border: 1px solid var(--navy-line);
  border-radius: var(--brand-radius-lg);
  background: var(--navy);
  box-shadow: var(--brand-shadow-soft);
}
.sign-card__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
  border: 1px solid var(--navy-line);
  border-radius: 50%;
  background: var(--navy-soft);
  font-size: 16px;
}
.sign-card__title {
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--paper);
}
.sign-card__body {
  font-size: 12px;
  line-height: 1.625;
  color: var(--paper-soft);
}
.sign-card__body a {
  color: var(--gold);
}

/* ── How it works (navy) ─────────────────────────────────────────────────── */

.steps {
  padding: 56px 0;
  background: var(--navy);
  color: var(--paper);
}
.steps__inner {
  max-width: 64rem;
  margin-inline: auto;
  padding-inline: 16px;
}
.steps__title {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.875rem;
  text-align: center;
}
.steps__lede {
  margin-bottom: 40px;
  text-align: center;
  color: var(--paper-soft);
}
.steps__grid {
  display: grid;
  gap: 32px;
  padding: 0;
  list-style: none;
}
@media (min-width: 768px) {
  .steps__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.step {
  text-align: center;
}
.step__icon {
  margin-bottom: 12px;
  font-size: 36px;
  line-height: 1;
}
.step__num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
}
.step__title {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
}
.step__body {
  font-size: 14px;
  line-height: 1.625;
  color: var(--paper-soft);
}

/* ── Contact: framed photo header ───────────────────────────────────────── */

.contact {
  padding-top: 32px;
}
.contact__head {
  display: grid;
  align-items: center;
  gap: 8px;
}
@media (min-width: 768px) {
  .contact__head {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 0;
  }
}
.contact__head-text {
  position: relative;
  z-index: 1;
  padding-bottom: 24px;
}
@media (min-width: 768px) {
  .contact__head-text {
    padding-block: 32px;
  }
}
.contact__photo {
  order: -1;
  height: clamp(160px, 42vw, 240px);
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
}
.contact__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (min-width: 768px) {
  .contact__photo {
    order: 0;
    width: calc(100% + 6rem);
    max-width: 760px;
    height: 320px;
    margin-left: -6rem;
    justify-self: end;
    -webkit-mask-image:
      linear-gradient(to right, transparent 0%, #000 30%),
      linear-gradient(to bottom, transparent 0%, #000 15%, #000 75%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
      linear-gradient(to right, transparent 0%, #000 30%),
      linear-gradient(to bottom, transparent 0%, #000 15%, #000 75%, transparent 100%);
    mask-composite: intersect;
  }
}
.contact__desk {
  padding-top: 8px;
  padding-bottom: 72px;
}

/* ── The book: boards, ruled pages, rings (shared by contact and partners) ─ */

.book {
  --board: 7px;
  --accent: var(--gold);
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.book__board {
  display: flex;
  min-width: 0;
  background: var(--navy-soft);
  box-shadow: var(--brand-shadow-lift);
}
.book__board--left {
  padding: var(--board) 0 var(--board) var(--board);
  border-radius: 6px 0 0 6px;
}
.book__board--right {
  padding: var(--board) var(--board) var(--board) 0;
  border-radius: 0 6px 6px 0;
}
.book__gutter {
  position: absolute;
  top: -3px;
  bottom: -3px;
  left: calc(50% - 6px);
  z-index: 2;
  width: 12px;
  border-radius: 4px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.45), rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.45)),
    var(--navy-soft);
  pointer-events: none;
}

.page {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: var(--rule) 22px;
  line-height: var(--rule);
  color: var(--ink);
  background-color: var(--book-paper);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0 calc(var(--rule) - 1px),
    rgba(229, 218, 199, 0.7) calc(var(--rule) - 1px) var(--rule)
  );
}
.page--left {
  border-radius: 3px 0 0 3px;
  box-shadow:
    inset -22px 0 24px -20px rgba(5, 13, 26, 0.38),
    -2px 0 0 #ece2cf,
    -4px 0 0 #e1d5bf;
}
.page--right {
  padding-left: 24px;
  border-radius: 0 3px 3px 0;
  box-shadow:
    inset 22px 0 24px -20px rgba(5, 13, 26, 0.38),
    2px 0 0 #ece2cf,
    4px 0 0 #e1d5bf;
}

/* Ring-bound notebook (contact): two boards either side of brass rings. */
.book--rings {
  column-gap: 20px;
}
.book--rings .book__board {
  padding: var(--board);
  border-radius: 6px;
}
.book--rings .page {
  border-radius: 3px;
  box-shadow: none;
}
.book__rings {
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 50%;
  z-index: 4;
  width: 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  transform: translateX(-50%);
  pointer-events: none;
}
.book__ring {
  position: relative;
  height: 10px;
  background:
    radial-gradient(circle at 8px 5px, rgba(5, 13, 26, 0.55) 3.5px, transparent 4.5px),
    radial-gradient(circle at calc(100% - 8px) 5px, rgba(5, 13, 26, 0.55) 3.5px, transparent 4.5px);
}
.book__ring::after {
  content: '';
  position: absolute;
  top: 0;
  left: 7px;
  right: 7px;
  height: 9px;
  border: 2.5px solid var(--gold-deep);
  border-top-color: #e8c987;
  border-radius: 9px;
  box-shadow:
    0 1px 1px rgba(5, 13, 26, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* On a phone the pages stack, the left page first. */
@media (max-width: 767px) {
  .book:not(.book--shelf) {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 16px;
  }
  .book:not(.book--shelf) .book__board--left,
  .book:not(.book--shelf) .book__board--right {
    padding: var(--board);
    border-radius: 6px;
  }
  .book:not(.book--shelf) .page {
    border-radius: 3px;
    box-shadow: none;
  }
  .book:not(.book--shelf) .book__gutter {
    display: none;
  }
  .book--rings {
    margin-top: 28px;
    row-gap: 36px;
  }
  .book__rings {
    display: none;
  }
  /* Each page bound across its head, as a reporter's pad is. */
  .book--rings .book__board {
    position: relative;
  }
  .book--rings .book__board::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 18px;
    right: 18px;
    height: 22px;
    background: repeating-linear-gradient(
      to right,
      transparent 0 6px,
      var(--gold-deep) 6px 8.5px,
      transparent 8.5px 12px,
      #e8c987 12px 14.5px,
      transparent 14.5px 34px
    );
    -webkit-mask-image: linear-gradient(to bottom, #000 0 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0 70%, transparent 100%);
  }
}
@media (max-width: 479px) {
  .page {
    padding: var(--rule) 12px var(--rule) 14px;
  }
}

/* ── Contact form on the ruled pages ────────────────────────────────────── */

.kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.page-heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
}
.blank-rule {
  height: var(--rule);
}
.meta {
  font-size: 12.5px;
  color: var(--ink-soft);
}
.meta a {
  color: var(--gold-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.choices {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--rule);
  margin: 0 -8px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 14px;
  color: var(--ink-soft);
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}
.choice:hover {
  color: var(--ink);
  background: rgba(199, 154, 75, 0.08);
}
.choice:has(input:checked) {
  color: var(--ink);
  font-weight: 600;
  background: rgba(199, 154, 75, 0.2);
}
.choice:has(input:focus-visible) {
  outline: 3px solid var(--brand-focus-ring);
  outline-offset: 1px;
}
.choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.choice__icon {
  flex: none;
  width: 20px;
  text-align: center;
}

.selected-type {
  display: flex;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
}
/* Every type's hint is stacked in one grid cell so choosing a type never
   changes the page's height. */
.type-hints {
  display: grid;
}
.type-hints > * {
  grid-area: 1 / 1;
}
.js .type-hints > :not(.is-active) {
  visibility: hidden;
}

.field-row {
  display: grid;
  column-gap: 24px;
}
@media (min-width: 1100px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}
.field-label {
  display: block;
  height: var(--rule);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field-input,
.field-textarea {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
}
.field-input {
  height: var(--rule);
  padding: 0 2px;
  border-bottom: 1px solid rgba(91, 88, 80, 0.55);
  line-height: calc(var(--rule) - 1px);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.field-textarea {
  height: calc(var(--rule) * 6);
  padding: 0 2px;
  border-left: 2px solid rgba(91, 88, 80, 0.3);
  resize: none;
  line-height: var(--rule);
}
.field-input::placeholder,
.field-textarea::placeholder {
  color: rgba(91, 88, 80, 0.6);
}
.field-input:focus,
.field-textarea:focus {
  outline: none;
  border-color: var(--gold-deep);
  box-shadow: 0 1px 0 var(--gold-deep);
}
.field-input:focus-visible,
.field-textarea:focus-visible {
  outline: 2px solid var(--brand-focus-ring);
  outline-offset: 2px;
}
.field-input[aria-invalid='true'],
.field-textarea[aria-invalid='true'] {
  border-color: var(--alert-line);
}
.field-input[aria-invalid='true']:focus,
.field-textarea[aria-invalid='true']:focus {
  box-shadow: 0 1px 0 var(--alert-line);
}
/* The ruled line under a field: its error or blank, always one rule tall. */
.field-hint {
  height: var(--rule);
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12.5px;
  color: var(--ink-soft);
}
.field-hint.is-error {
  font-weight: 600;
  color: var(--alert-ink);
}
.field-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  height: var(--rule);
}
.field-count {
  flex: none;
  font-size: 12px;
  color: var(--ink-soft);
}
.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.book-button {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  margin: auto 0 6px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--brand-radius-pill);
  background: var(--navy);
  color: var(--paper);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    opacity 0.2s;
}
.book-button:hover:not(:disabled) {
  background: var(--gold);
  color: var(--navy);
}
.book-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.book-button span {
  transition: transform 0.25s var(--brand-ease-out);
}
.book-button:hover:not(:disabled) span {
  transform: translateX(3px);
}
.notice {
  font-size: 14px;
  color: var(--gold-ink);
}
.notice.is-error {
  color: var(--alert-ink);
}
/* The sent and failed pages share the form page's place. */
.right-views {
  flex: 1;
  display: grid;
}
.right-views > * {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.right-views > [hidden] {
  display: none;
}

/* ── Partners: prospectus header, ribbons, page controls ───────────────── */

/* Each prospectus's accent, its ink (AA on the page) and its board, as the app derives them. */
.prospectus--network {
  --accent: #c79a4b;
  --accent-ink: #8b6c35;
  --front-board: #46361a;
  --spine-cloth: #10233a;
}
.prospectus--councils {
  --accent: #6f93b8;
  --accent-ink: #587491;
  --front-board: #2b3948;
  --spine-cloth: #0b1c30;
}
.prospectus--bids {
  --accent: #c17a52;
  --accent-ink: #9c6342;
  --front-board: #4d3121;
  --spine-cloth: #08152a;
}
.prospectus--sponsors {
  --accent: #a9709a;
  --accent-ink: #936186;
  --front-board: #493042;
  --spine-cloth: #10233a;
}
.library__books {
  display: grid;
  gap: 48px;
}
.prospectus {
  scroll-margin-top: var(--nav-h);
}
.prospectus__top {
  padding-block: 16px;
}
.prospectus__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 40px;
}
.prospectus__title {
  margin-top: 10px;
  max-width: 22ch;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  color: var(--ink);
  text-wrap: balance;
}
.prospectus__summary {
  max-width: 60ch;
  margin-top: 12px;
  color: var(--ink-soft);
}
.prospectus__desk {
  padding-block: 8px 56px;
}

.ribbons {
  display: flex;
  gap: 6px;
  padding-inline: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}
.ribbons::-webkit-scrollbar {
  display: none;
}
.ribbon {
  flex: none;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 12px 10px;
  border: 0;
  border-radius: 6px 6px 0 0;
  background: color-mix(in srgb, var(--accent) 62%, var(--navy-soft));
  color: var(--paper);
  font: inherit;
  cursor: pointer;
  opacity: 0.8;
  transition:
    opacity 0.2s,
    padding 0.2s var(--brand-ease-out);
}
.ribbon:hover {
  opacity: 1;
}
.ribbon[aria-selected='true'] {
  padding-top: 12px;
  background: var(--navy-soft);
  opacity: 1;
}
.ribbon__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
}
.ribbon__title {
  font-size: 12.5px;
  font-weight: 500;
}
/* Without JavaScript there are no tabs: every chapter is a spread, in order. */
.ribbons {
  display: none;
}
.js .ribbons {
  display: flex;
}
.chapters {
  display: grid;
  gap: 32px;
}
.js .chapter[hidden] {
  display: none;
}

/* A desktop page is twenty-two rules tall, whatever is written on it. */
@media (min-width: 768px) {
  .prospectus .page {
    min-height: calc(var(--rule) * 22);
  }
}

.turns {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}
.js .turns {
  display: flex;
}
.folio {
  font-family: var(--font-display);
  font-style: italic;
  text-align: center;
  color: var(--ink-soft);
}

/* ── Partners: what is written on a page ────────────────────────────────── */

.chapter-num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.chapter-title {
  margin-bottom: var(--rule);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: var(--rule);
}
.copy {
  font-size: 15px;
  line-height: var(--rule);
  color: var(--ink);
}
.copy p,
.copy ul,
.copy h4 {
  margin: 0 0 var(--rule);
}
.copy > :last-child {
  margin-bottom: 0;
}
.copy h4 {
  margin-bottom: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--accent-ink);
}
.copy p,
.copy li {
  color: var(--ink-soft);
}
.copy strong {
  color: var(--ink);
}
.copy em {
  font-family: var(--font-display);
  font-style: italic;
}
.copy ul {
  padding-left: 20px;
}
.copy a {
  color: var(--gold-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* The prospectus's title page, in its board. */
.front {
  flex: 1;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  min-height: calc(var(--rule) * 14);
  padding: 24px;
  border-radius: 3px;
  text-align: center;
  background: var(--front-board);
  box-shadow:
    inset 0 0 0 10px var(--front-board),
    inset 0 0 0 11px var(--gold);
}
.front__rule {
  width: 56px;
  height: 2px;
  background: var(--accent);
}
.front__kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.6;
  color: var(--paper-soft);
}
.front__title {
  max-width: 18ch;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.15;
  color: var(--gold);
  text-wrap: balance;
}
.front__imprint {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

/* A figure tipped into the book, not printed on the ruling. */
.plate {
  flex: 1;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
}
.plate__frame {
  padding: 8px;
  border: 1px solid var(--surface-line);
  background: var(--surface);
  box-shadow: var(--brand-shadow-soft);
  transform: rotate(-0.4deg);
}
.plate__frame img {
  width: auto;
  max-width: 100%;
  max-height: calc(var(--rule) * 16);
  height: auto;
  object-fit: contain;
}
.plate__caption {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  color: var(--ink-soft);
}
.plate__caption b {
  font-weight: 600;
  color: var(--accent-ink);
}

/* ── Partners: the library shelf ────────────────────────────────────────── */

.library {
  display: grid;
  gap: 28px;
  padding-block: 56px 48px;
}
.library__lede {
  max-width: 34rem;
  margin-top: 14px;
  color: var(--ink-soft);
}
/* Without JavaScript the shelf cannot open a book: the glance band below is the way in. */
.shelf {
  display: none;
}
.js .shelf {
  --shelf-h: 244px;
  --plank: 10px;
  --under: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 40px;
}
@media (min-width: 900px) {
  .js .shelf {
    grid-template-columns: minmax(0, max-content) auto;
    justify-content: start;
    align-items: end;
  }
}
/* Fixed-height slots, so one repeating gradient draws a plank under every row. */
.shelf__spines {
  --row-gap: 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  align-content: flex-end;
  column-gap: 3px;
  row-gap: var(--row-gap);
  padding: 0 20px var(--under);
  background-image: linear-gradient(
    to bottom,
    transparent var(--shelf-h),
    var(--gold-deep) var(--shelf-h),
    var(--gold-deep) calc(var(--shelf-h) + 1px),
    var(--navy) calc(var(--shelf-h) + 1px),
    var(--navy) calc(var(--shelf-h) + var(--plank)),
    rgba(5, 13, 26, 0.18) calc(var(--shelf-h) + var(--plank)),
    transparent calc(var(--shelf-h) + var(--under) + 8px)
  );
  background-size: 100% calc(var(--shelf-h) + var(--row-gap));
}
.shelf__slot {
  display: flex;
  align-items: flex-end;
  height: var(--shelf-h);
}
.spine {
  position: relative;
  flex: none;
  width: 46px;
  height: 220px;
  padding: 0;
  border: 0;
  border-radius: 3px 3px 1px 1px;
  background: none;
  cursor: pointer;
}
.spine:focus-visible {
  outline: 3px solid var(--brand-focus-ring);
  outline-offset: 4px;
}
.spine__body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  border-radius: inherit;
  color: var(--paper);
  background-color: var(--spine-cloth, var(--navy-soft));
  background-image:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.5),
      rgba(255, 255, 255, 0.12) 28%,
      rgba(255, 255, 255, 0.03) 58%,
      rgba(0, 0, 0, 0.45)
    ),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 3px);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.35),
    3px 0 5px -3px rgba(5, 13, 26, 0.45);
  transition:
    transform 0.45s var(--brand-ease-out),
    opacity 0.35s var(--brand-ease-soft),
    filter 0.35s var(--brand-ease-soft);
}
.spine__band {
  flex: none;
  width: 100%;
  height: 6px;
  border-top: 1px solid rgba(199, 154, 75, 0.75);
  border-bottom: 1px solid rgba(199, 154, 75, 0.75);
}
.spine__label {
  flex: none;
  display: grid;
  place-items: center;
  width: calc(100% - 12px);
  height: 30px;
  border-radius: 1px;
  background: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(5, 13, 26, 0.35);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
}
/* Reads top to bottom, the British spine convention. */
.spine__title {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: #e3c07e;
}
.spine:hover .spine__body,
.spine:focus-visible .spine__body {
  transform: translateY(-10px);
}
/* Taken down: the spine stays in its slot, dimmed, while its book is open. */
.spine[aria-pressed='true'] {
  cursor: default;
}
.spine[aria-pressed='true'] .spine__body {
  transform: none;
  opacity: 0.38;
  filter: saturate(0.4);
}
.shelf__stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 0 20px var(--under) 28px;
}
.shelf__stage::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--under) - var(--plank));
  height: var(--plank);
  border-top: 1px solid var(--gold-deep);
  background: var(--navy);
  box-shadow: 0 8px 10px -8px rgba(5, 13, 26, 0.45);
}
@media (max-width: 639px) {
  .js .shelf {
    --shelf-h: 228px;
  }
  .shelf__spines {
    --row-gap: 36px;
    padding: 0 4px var(--under);
  }
  .spine {
    width: 40px;
    height: 208px;
  }
  .spine__body {
    gap: 6px;
    padding: 7px 0;
  }
  .spine__label {
    height: 22px;
    font-size: 12px;
  }
  .spine__title {
    font-size: 12.5px;
  }
  .shelf__stage {
    padding: 0 0 var(--under);
  }
}

/* The book on the shelf: twelve rules tall, both pages showing at every width. */
.book--shelf {
  z-index: 1;
  width: min(100%, 500px);
  transition:
    opacity 0.25s var(--brand-ease-soft),
    transform 0.35s var(--brand-ease-out);
}
.book--shelf .page {
  height: calc(var(--rule) * 12);
  overflow: hidden;
}
.book--shelf.is-swapping {
  opacity: 0;
  transform: translate(-24px, -12px) scale(0.97);
}
@media (max-width: 479px) {
  .book--shelf .page {
    padding-inline: 10px;
  }
}
.book__bookmark {
  position: absolute;
  top: -10px;
  right: 34px;
  z-index: 2;
  width: 14px;
  height: 58px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold) 50%, var(--gold-deep));
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
  box-shadow: 0 2px 4px rgba(5, 13, 26, 0.25);
  pointer-events: none;
}
.book--shelf .page--right {
  position: relative;
}
.emblem {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 6px 0;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
}
.shelf-book__title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
}
.shelf-book__tagline {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-soft);
}
@media (max-width: 479px) {
  .shelf-book__title {
    font-size: 17px;
  }
}
.toc {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
}
.toc a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  height: var(--rule);
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s;
}
.toc a:hover {
  color: var(--gold-ink);
}
.toc__num {
  flex: none;
  min-width: 18px;
  font-family: var(--font-display);
  color: var(--gold-ink);
}
.toc__name {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 600;
}
.toc__dots {
  flex: 1;
  min-width: 12px;
  border-bottom: 1.5px dotted rgba(91, 88, 80, 0.5);
  transform: translateY(-4px);
}
@media (max-width: 479px) {
  .toc {
    font-size: 12.5px;
  }
  .toc__dots {
    display: none;
  }
}
a.book-button {
  text-decoration: none;
}

/* ── Partners: every prospectus at a glance, and the feature ───────────── */

.glance {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  padding-block: 56px;
}
.glance__item {
  display: grid;
  align-content: start;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
}
.glance__kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.glance__kicker::before {
  content: '';
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}
.glance__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
}
.glance__text {
  color: var(--ink-soft);
}
.glance__go {
  font-weight: 600;
  color: var(--accent-ink);
}
.glance__item:hover .glance__title {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.feature {
  padding-block: 56px;
  border-top: 1px solid var(--cream-line);
  background: var(--cream-soft);
}
.feature__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 40px;
  align-items: center;
}
@media (max-width: 899px) {
  .feature__inner {
    grid-template-columns: minmax(0, 1fr);
  }
}
.feature__title {
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.15;
}
.feature .copy {
  --accent-ink: var(--gold-ink);
}

/* ── Watercolour break and onward band ──────────────────────────────────── */

.wash {
  position: relative;
  height: clamp(150px, 24vh, 280px);
  overflow: hidden;
}
.wash img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.wash::before,
.wash::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
}
.wash::before {
  top: 0;
  height: 55%;
  background: linear-gradient(to bottom, var(--cream), rgba(244, 237, 226, 0));
}
.wash::after {
  bottom: 0;
  height: 60%;
  background: linear-gradient(to top, var(--navy), rgba(5, 13, 26, 0));
}
.onward {
  padding: 24px 0 64px;
  background: var(--navy);
  color: var(--paper);
}
.onward__inner {
  display: grid;
  gap: 28px;
  align-items: end;
}
@media (min-width: 900px) {
  .onward__inner {
    grid-template-columns: 1fr auto;
    gap: 48px;
  }
}
.onward__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.75rem;
  line-height: 1.15;
}
.onward__text {
  max-width: 52ch;
  margin-top: 12px;
  color: var(--paper-soft);
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

.site-footer {
  position: relative;
  margin-top: 18px;
  padding: 48px 16px calc(24px + env(safe-area-inset-bottom));
  background: var(--navy);
  color: var(--paper);
}
.site-footer--flush {
  margin-top: 0;
}
.site-footer__inner {
  display: grid;
  gap: 40px;
  max-width: 72rem;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .site-footer__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
  }
}
.site-footer__logo {
  display: inline-block;
  border-radius: 4px;
}
.site-footer__logo img {
  width: 126px;
  height: 56px;
}
.site-footer__tagline {
  margin-top: 12px;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--paper-soft);
}
.legend {
  display: grid;
  gap: 32px 24px;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
}
/* A legend entry: the line's colour as a rule, its stops as rings on it. */
.legend__line {
  --line: var(--gold);
}
.legend__line:nth-child(2) {
  --line: var(--line-blue);
}
.legend__line:nth-child(3) {
  --line: var(--line-sage);
}
.legend__name {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.legend__name::before {
  content: '';
  width: 22px;
  height: 4px;
  border-radius: 2px;
  background: var(--line);
}
.legend__stops {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0 0 0 9px;
  border-left: 4px solid var(--line);
  list-style: none;
}
.legend__stop {
  position: relative;
  display: inline-block;
  padding: 5px 0 5px 16px;
  font-size: 0.9rem;
  color: var(--paper-soft);
  text-decoration: none;
  transition: color 0.2s var(--brand-ease-soft);
}
.legend__stop::before {
  content: '';
  position: absolute;
  left: -19px;
  top: 50%;
  width: 10px;
  height: 10px;
  border: 2.5px solid var(--line);
  border-radius: 50%;
  background: var(--navy);
  transform: translateY(-50%);
}
.legend__stop:hover {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legend__stop:hover::before {
  background: var(--paper);
}
.site-footer__colophon {
  max-width: 72rem;
  margin: 40px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--navy-line);
  font-size: 0.78rem;
  color: var(--paper-soft);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
