/* Zimbabwe Touchline: site styles */

/* ---------- Base ---------- */
:root {
  --ink: #141414;
  --ink-soft: #2e2e2e;
  --grey: #595959;
  --rule: #d9d4c7;
  --paper: #ffffff;
  --cream: #f7f3ea;
  --red: #c8102e;
  --red-deep: #9d0c24;
  --gold: #e8b100;
  --f-mast: "Lora", "Georgia", "Times New Roman", serif;
  --f-head: "IBM Plex Serif", "Georgia", "Times New Roman", serif;
  --f-text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1240px;
  --pad: 16px;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.6 var(--f-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
button { font: inherit; color: inherit; }

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

.skip-link {
  position: absolute;
  left: 8px;
  top: -80px;
  z-index: 100;
  padding: .7rem 1rem;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 8px; outline-color: var(--gold); }

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

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--pad));
  margin-inline: auto;
  padding-inline: var(--pad);
}
.wrap--narrow { max-width: calc(780px + 2 * var(--pad)); }

.main { display: block; min-height: 55vh; padding-block: 1.25rem 3rem; }
.main:focus { outline: none; }

/* ---------- Masthead ---------- */
.masthead { background: var(--paper); border-bottom: 6px double var(--ink); }
.masthead::before {
  content: "";
  display: block;
  height: 6px;
  background: var(--ink);
  border-bottom: 2px solid var(--gold);
  box-sizing: content-box;
}

.masthead__strip {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-block: .55rem;
  border-bottom: 1px solid var(--rule);
  font: 600 .72rem/1.3 var(--f-text);
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--grey);
}
.masthead__tagline, .masthead__links { display: none; }
.masthead__date { font-variant-numeric: tabular-nums; }

.masthead__brand { padding-block: 1rem .85rem; text-align: center; }
.masthead__title {
  font: 700 clamp(2rem, 9.4vw, 3rem)/1 var(--f-mast);
  letter-spacing: -.012em;
}
.masthead__home { display: inline-block; color: var(--ink); text-decoration: none; }
.masthead__home:hover { color: var(--red); }

@media (min-width: 800px) {
  .masthead__strip { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; }
  .masthead__date { justify-self: start; }
  .masthead__tagline {
    display: block;
    font: italic 500 1rem/1.2 var(--f-mast);
    letter-spacing: 0;
    text-transform: none;
    color: var(--ink);
  }
  .masthead__links { display: flex; justify-content: flex-end; gap: 1.4rem; }
  .masthead__links-a { color: var(--grey); text-decoration: none; }
  .masthead__links-a:hover { color: var(--red); text-decoration: underline; }
  .masthead__brand { display: flex; align-items: center; gap: 1.75rem; padding-block: 1.3rem 1.15rem; }
  .masthead__brand::before, .masthead__brand::after {
    content: "";
    flex: 1;
    height: 7px;
    border-block: 1px solid var(--ink);
  }
  .masthead__title { font-size: clamp(3rem, 5.6vw, 4.6rem); }
}

/* ---------- Breaking ticker ---------- */
.ticker { display: flex; align-items: stretch; background: var(--red); color: #fff; font: 500 .875rem/1 var(--f-text); }
.ticker :focus-visible { outline-color: #fff; }

.ticker__label {
  flex: none;
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .7rem .9rem;
  background: var(--ink);
  color: var(--gold);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.ticker__label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  animation: ticker-blink 1.6s ease-in-out infinite;
}

.ticker__viewport { flex: 1; min-width: 0; display: flex; align-items: center; overflow: hidden; }
.ticker__track { display: flex; flex: none; width: max-content; white-space: nowrap; will-change: transform; }
.ticker__item { display: flex; align-items: center; padding-inline: 1.25rem; }
.ticker__item::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-right: 1.25rem;
  background: var(--gold);
  transform: rotate(45deg);
}
.ticker__link { display: block; padding-block: .75rem; color: #fff; text-decoration: none; }
.ticker__link:hover { text-decoration: underline; }

.ticker__toggle {
  flex: none;
  padding: 0 .9rem;
  background: rgba(0, 0, 0, .22);
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, .35);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}
.ticker__toggle:hover { background: rgba(0, 0, 0, .4); }
.ticker__toggle[aria-pressed="true"] { background: var(--ink); color: var(--gold); }

.ticker--running .ticker__track { animation: ticker-scroll var(--ticker-time, 60s) linear infinite; }
.ticker--running:hover .ticker__track,
.ticker--running:focus-within .ticker__track,
.ticker--paused .ticker__track { animation-play-state: paused; }

@media (max-width: 559px) {
  .ticker__label { gap: 0; padding-inline: .65rem; font-size: .66rem; letter-spacing: .1em; }
  .ticker__label::before { display: none; }
  .ticker__toggle { padding-inline: .6rem; font-size: .62rem; }
}

@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes ticker-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

@media (prefers-reduced-motion: reduce) {
  .ticker__label::before { animation: none; }
  .ticker--running .ticker__track { animation: none; }
}

/* ---------- Section menu ---------- */
.menu {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
  box-shadow: 0 1px 0 var(--rule);
}
.menu__inner { display: flex; align-items: center; justify-content: center; }
.menu__list { display: flex; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.menu__list::-webkit-scrollbar { display: none; }
.menu__link {
  display: block;
  padding: .95rem .9rem;
  border-bottom: 3px solid transparent;
  font: 600 .78rem/1 var(--f-text);
  letter-spacing: .09em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.menu__link:hover { color: var(--red); }
.menu__link--here { border-bottom-color: var(--gold); }

.menu__toggle { display: none; }
.js .menu__inner { justify-content: flex-start; }
.js .menu__toggle {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .95rem 0;
  background: none;
  border: 0;
  font: 600 .78rem/1 var(--f-text);
  letter-spacing: .09em;
  text-transform: uppercase;
  cursor: pointer;
}
.menu__bars, .menu__bars::before, .menu__bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.menu__bars { position: relative; }
.menu__bars::before, .menu__bars::after { content: ""; position: absolute; left: 0; }
.menu__bars::before { top: -6px; }
.menu__bars::after { top: 6px; }
.menu--open .menu__bars { background: transparent; }
.menu--open .menu__bars::before { top: 0; transform: rotate(45deg); }
.menu--open .menu__bars::after { top: 0; transform: rotate(-45deg); }

.js .menu__list {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  flex-direction: column;
  overflow: visible;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
  box-shadow: 0 16px 24px rgba(0, 0, 0, .16);
}
.js .menu--open .menu__list { display: flex; }
.js .menu__link {
  padding: 1rem var(--pad);
  border-bottom: 1px solid var(--rule);
  border-left: 5px solid transparent;
}
.js .menu__link--here { border-left-color: var(--gold); }

@media (min-width: 900px) {
  .js .menu__toggle { display: none; }
  .js .menu__inner { justify-content: center; }
  .js .menu__list {
    display: flex;
    position: static;
    flex-direction: row;
    overflow-x: auto;
    border-bottom: 0;
    box-shadow: none;
  }
  .js .menu__link {
    padding: 1rem 1.15rem;
    border-bottom: 3px solid transparent;
    border-left: 0;
  }
  .js .menu__link--here { border-bottom-color: var(--gold); border-left-color: transparent; }
}

/* ---------- Story cards ---------- */
.story__kicker {
  margin-bottom: .45rem;
  font: 700 .7rem/1 var(--f-text);
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--red);
}
.story__kicker-a { text-decoration: none; }
.story__kicker-a:hover { text-decoration: underline; }

.story__title { font: 700 1.2rem/1.25 var(--f-head); letter-spacing: -.005em; }
.story__link { text-decoration: none; }
.story__link:hover { color: var(--red); text-decoration: underline; text-underline-offset: .15em; }

.story__chapo { margin-top: .5rem; font-size: .95rem; line-height: 1.55; color: var(--ink-soft); }

.story__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .15rem .5rem;
  margin-top: .6rem;
  font: 500 .75rem/1.4 var(--f-text);
  color: var(--grey);
}
.story__by { font-weight: 600; color: var(--ink); text-decoration: none; }
.story__by:hover { color: var(--red); text-decoration: underline; }
.story__dot { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: currentColor; }

.story__media { display: block; overflow: hidden; background: var(--cream); }
.story__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

@media (prefers-reduced-motion: no-preference) {
  .story__img { transition: transform .45s ease; }
  .story__media:hover .story__img { transform: scale(1.035); }
}

.story--lead .story__media { margin-bottom: .95rem; }
.story--lead .story__title { font-size: clamp(1.6rem, 5.4vw, 2.4rem); line-height: 1.14; }
.story--lead .story__chapo { margin-top: .7rem; font-size: 1.05rem; }

.story--row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: .9rem;
  padding-block: 1rem;
  border-top: 1px solid var(--rule);
}
.story--row .story__title { font-size: 1.02rem; }
.story--row .story__chapo { display: none; }
.story--row .story__kicker { margin-bottom: .35rem; }
.story--row .story__media { align-self: start; }
.story--plain { display: block; }

.story--tile .story__media { margin-bottom: .7rem; }
.story--tile .story__title { font-size: 1.12rem; }

.story--text { padding-block: .8rem; border-top: 1px solid var(--rule); }
.story--text .story__title { font-size: .98rem; font-weight: 600; }

@media (min-width: 560px) {
  .story--row { grid-template-columns: 200px minmax(0, 1fr); gap: 1.25rem; }
  .story--row .story__title { font-size: 1.15rem; }
  .story--row .story__chapo { display: block; }
}

/* ---------- Front page: three columns ---------- */
.front { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.25rem; }

.front__next { margin-top: 1.5rem; border-top: 2px solid var(--ink); }
.front__next .story--row:first-child { border-top: 0; }

.ranking__title, .feed__title {
  position: relative;
  padding-bottom: .75rem;
  border-bottom: 3px solid var(--ink);
  font: 700 .8rem/1 var(--f-text);
  letter-spacing: .18em;
  text-transform: uppercase;
}
.ranking__title::after, .feed__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 46px;
  height: 3px;
  background: var(--red);
}

.ranking__item {
  display: grid;
  grid-template-columns: 2.3rem minmax(0, 1fr);
  gap: .55rem;
  padding-block: .9rem;
  border-bottom: 1px solid var(--rule);
}
.ranking__num { font: 700 1.9rem/1 var(--f-mast); color: var(--red); font-variant-numeric: lining-nums; }
.ranking__link { font: 600 .98rem/1.32 var(--f-head); text-decoration: none; }
.ranking__link:hover { color: var(--red); text-decoration: underline; text-underline-offset: .15em; }
.ranking__meta {
  margin-top: .4rem;
  font: 600 .66rem/1 var(--f-text);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--grey);
}

.feed__item { padding-block: .85rem; border-bottom: 1px solid var(--rule); }
.feed__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .2rem .45rem;
  margin-bottom: .4rem;
  font: 700 .66rem/1.2 var(--f-text);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--grey);
}
.feed__meta time { color: var(--red); }
.feed__sep { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.feed__link {
  display: block;
  font: 700 .8rem/1.4 var(--f-text);
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #383838;
  text-decoration: none;
}
.feed__link:hover { color: var(--red); text-decoration: underline; text-underline-offset: .15em; }

@media (min-width: 800px) {
  .front { grid-template-columns: minmax(0, 1fr) 300px; column-gap: 2.25rem; }
  .front__centre { grid-column: 1; grid-row: 1 / span 2; }
  .front__left { grid-column: 2; grid-row: 1; }
  .front__right { grid-column: 2; grid-row: 2; }
  .front--no-left .front__centre { grid-row: 1; }
  .front--no-left .front__right { grid-row: 1; }
}

@media (min-width: 1100px) {
  .front {
    grid-template-columns: 250px minmax(0, 1fr) 285px;
    grid-template-areas: "left centre right";
    column-gap: 0;
  }
  .front__centre { grid-area: centre; padding-inline: 1.75rem; }
  .front__left { grid-area: left; padding-right: 1.5rem; border-right: 1px solid var(--ink); }
  .front__right { grid-area: right; padding-left: 1.5rem; border-left: 1px solid var(--ink); }
  .front--no-left { grid-template-columns: minmax(0, 1fr) 285px; grid-template-areas: "centre right"; }
  .front--no-left .front__centre { padding-left: 0; }
}

/* ---------- Front page: section shelves ---------- */
.shelves {
  display: grid;
  gap: 2.25rem;
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 6px double var(--ink);
}
.shelf__title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--red);
  font: 700 1.3rem/1.1 var(--f-head);
}
.shelf__title-a { text-decoration: none; }
.shelf__title-a::after { content: " \2192"; color: var(--gold); }
.shelf__title-a:hover { color: var(--red); }

@media (min-width: 640px) {
  .shelves { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
}
@media (min-width: 1000px) {
  .shelves { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 2.5rem; }
}

.more { margin-top: 2.75rem; }
.more--archive { margin-top: .75rem; }
.more__title, .related__title {
  margin-bottom: .25rem;
  padding-bottom: .65rem;
  border-bottom: 3px solid var(--ink);
  font: 700 1.3rem/1.1 var(--f-head);
}
.more__list, .related__list { display: grid; column-gap: 2.5rem; }
@media (min-width: 900px) {
  .more__list, .related__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Pagination ---------- */
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 6px double var(--ink);
}
.pager__link {
  min-width: 8.5rem;
  padding: .9rem 1.1rem;
  border: 2px solid var(--ink);
  font: 700 .76rem/1 var(--f-text);
  letter-spacing: .1em;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
}
.pager__link:hover { background: var(--ink); color: #fff; }
.pager__link--off { border-color: transparent; pointer-events: none; }
.pager__status { font: 500 .8rem/1.3 var(--f-text); color: var(--grey); text-align: center; }

@media (max-width: 559px) {
  .pager__link { min-width: 0; padding-inline: .8rem; }
  .pager__link--off { display: none; }
}

/* ---------- Section and author headers, breadcrumbs ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem .45rem;
  padding-block: .35rem 1rem;
  font: 500 .75rem/1.4 var(--f-text);
  color: var(--grey);
}
.crumbs__item + .crumbs__item::before { content: "/"; margin-right: .45rem; color: #8c8c8c; }
.crumbs__link { text-decoration: none; }
.crumbs__link:hover { color: var(--red); text-decoration: underline; }

.head { position: relative; margin-bottom: 1.75rem; padding-bottom: 1.1rem; border-bottom: 3px solid var(--ink); }
.head::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 72px; height: 3px; background: var(--gold); }
.head__label {
  margin-bottom: .55rem;
  font: 700 .72rem/1 var(--f-text);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
}
.head__title { font: 700 clamp(2rem, 6vw, 3.1rem)/1.05 var(--f-head); letter-spacing: -.01em; }
.head__count { margin-top: .75rem; font: 500 .85rem/1.4 var(--f-text); color: var(--grey); }
.head__bio { max-width: 44rem; margin-top: .75rem; color: var(--ink-soft); }
.head--person { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.head__avatar, .byline__avatar, .bio__avatar {
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold);
  font-family: var(--f-mast);
  font-weight: 700;
}
.head__avatar { width: 68px; height: 68px; font-size: 1.45rem; }
@media (min-width: 640px) {
  .head__avatar { width: 88px; height: 88px; font-size: 1.85rem; }
}

.notice {
  margin-bottom: 1.5rem;
  padding: .9rem 1rem;
  background: var(--cream);
  border-left: 4px solid var(--gold);
  font-size: .88rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.empty { padding: 3rem 0; text-align: center; font: italic 500 1.1rem/1.5 var(--f-head); color: var(--grey); }

/* ---------- Two-column pages ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
.split__main, .piece { min-width: 0; }
@media (min-width: 1000px) {
  .split { grid-template-columns: minmax(0, 1fr) 300px; column-gap: 3rem; }
  .split__aside { align-self: start; position: sticky; top: 4.25rem; padding-left: 2rem; border-left: 1px solid var(--rule); }
}

/* ---------- Article ---------- */
.piece__kicker {
  margin-bottom: .6rem;
  font: 700 .74rem/1 var(--f-text);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
}
.piece__kicker-a { text-decoration: none; }
.piece__kicker-a:hover { text-decoration: underline; }
.piece__title { font: 700 clamp(1.85rem, 6.2vw, 3rem)/1.12 var(--f-head); letter-spacing: -.012em; }
.piece__standfirst { max-width: 42rem; margin-top: .95rem; font: 500 1.18rem/1.5 var(--f-text); color: var(--ink-soft); }

.byline {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "avatar who" "avatar when";
  column-gap: .85rem;
  align-items: center;
  margin-top: 1.4rem;
  padding-block: .9rem;
  border-block: 1px solid var(--ink);
}
.byline__avatar { grid-area: avatar; width: 46px; height: 46px; font-size: 1rem; }
.byline__who { grid-area: who; display: flex; flex-wrap: wrap; gap: .1rem .65rem; font-size: .9rem; }
.byline__name { font-weight: 700; text-decoration: none; }
.byline__name:hover { color: var(--red); text-decoration: underline; }
.byline__role { color: var(--grey); }
.byline__when {
  grid-area: when;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .1rem .5rem;
  font-size: .8rem;
  color: var(--grey);
}

.piece__hero { margin: 1.5rem calc(-1 * var(--pad)) 1.75rem; }
.piece__hero-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--cream); }
.piece__credit { padding: .5rem var(--pad) 0; font-size: .72rem; line-height: 1.4; color: var(--grey); }
@media (min-width: 700px) {
  .piece__hero { margin-inline: 0; }
  .piece__credit { padding-inline: 0; }
}

.prose { max-width: 40rem; font-size: 1.0625rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { margin-top: 2em; font: 700 1.5rem/1.25 var(--f-head); }
.prose h3 { margin-top: 1.7em; font: 600 1.2rem/1.3 var(--f-head); }
.prose a { color: var(--red-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.prose a:hover { color: var(--red); }
.prose strong { font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.45rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose blockquote {
  padding: .25rem 0 .25rem 1.25rem;
  border-left: 4px solid var(--gold);
  font: italic 500 1.2rem/1.5 var(--f-head);
}
.prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { padding: .55rem .85rem; border-bottom: 1px solid var(--rule); text-align: left; }
.prose th { border-bottom: 2px solid var(--ink); font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; }
.prose hr { border: 0; border-top: 1px solid var(--ink); }

.plate { margin-block: 1.9em; }
.plate__img { width: 100%; height: auto; background: var(--cream); }
.plate__caption { margin-top: .55rem; padding-left: .8rem; border-left: 3px solid var(--gold); font-size: .78rem; line-height: 1.45; color: var(--grey); }

.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.tags__item {
  padding: .45rem .7rem;
  border: 1px solid var(--ink);
  font: 600 .7rem/1 var(--f-text);
  letter-spacing: .07em;
  text-transform: uppercase;
}

.refs { max-width: 40rem; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--ink); }
.refs__title { margin-bottom: .75rem; font: 700 .74rem/1 var(--f-text); letter-spacing: .16em; text-transform: uppercase; }
.refs__list { display: grid; gap: .4rem; font-size: .9rem; line-height: 1.45; }
.refs__link { color: var(--red-deep); text-underline-offset: .15em; overflow-wrap: anywhere; }
.refs__link:hover { color: var(--red); }

.bio {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  max-width: 40rem;
  margin-top: 2.25rem;
  padding: 1.25rem;
  background: var(--cream);
  border-top: 3px solid var(--ink);
}
.bio__avatar { width: 56px; height: 56px; font-size: 1.15rem; }
.bio__name { font: 700 1.08rem/1.2 var(--f-head); }
.bio__link { text-decoration: none; }
.bio__link:hover { color: var(--red); text-decoration: underline; }
.bio__role { margin-top: .25rem; font: 700 .68rem/1.3 var(--f-text); letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.bio__about { margin-top: .6rem; font-size: .92rem; line-height: 1.55; color: var(--ink-soft); }

.siblings { display: grid; gap: 1rem; max-width: 40rem; margin-top: 2.25rem; }
@media (min-width: 640px) {
  .siblings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.siblings__link { display: block; padding: 1rem 1.1rem; border: 1px solid var(--ink); text-decoration: none; }
.siblings__link:hover { background: var(--cream); }
.siblings__link--onward { text-align: right; }
.siblings__label {
  display: block;
  margin-bottom: .45rem;
  font: 700 .66rem/1 var(--f-text);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
}
.siblings__title { display: block; font: 600 .98rem/1.32 var(--f-head); }

.related { margin-top: 3rem; padding-top: 1.5rem; border-top: 6px double var(--ink); }

/* ---------- Static pages ---------- */
.doc__head { margin-bottom: 1.75rem; padding-bottom: 1rem; border-bottom: 3px solid var(--ink); }
.doc__title { font: 700 clamp(2rem, 6vw, 2.9rem)/1.1 var(--f-head); letter-spacing: -.01em; }
.prose--doc { max-width: none; }

/* ---------- Not found ---------- */
.lost { padding-block: 2rem 1rem; text-align: center; }
.lost__code { font: 700 clamp(5rem, 22vw, 9rem)/.9 var(--f-mast); color: var(--red); }
.lost__title { margin-top: 1rem; font: 700 clamp(1.6rem, 5vw, 2.4rem)/1.15 var(--f-head); }
.lost__text { max-width: 34rem; margin: .9rem auto 0; color: var(--ink-soft); }
.lost__action { margin-top: 1.6rem; }
.lost__sections { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.4rem; margin-top: 1.8rem; }
.lost__sections-a {
  padding-bottom: .2rem;
  border-bottom: 2px solid var(--gold);
  font: 600 .76rem/1 var(--f-text);
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
}
.lost__sections-a:hover { color: var(--red); }
.lost__feed { max-width: 42rem; margin: 2rem auto 0; }

.button {
  display: inline-block;
  padding: .95rem 1.5rem;
  background: var(--ink);
  border-bottom: 3px solid var(--gold);
  color: #fff;
  font: 700 .76rem/1 var(--f-text);
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
}
.button:hover { background: var(--red); }

/* ---------- Footer ---------- */
.foot { margin-top: 2rem; background: var(--ink); border-top: 5px solid var(--gold); color: #d4d4d4; }
.foot :focus-visible { outline-color: var(--gold); }
.foot__main { display: grid; gap: 2rem; padding-block: 2.5rem 2rem; }
.foot__name { font: 700 1.7rem/1.1 var(--f-mast); color: #fff; }
.foot__blurb { max-width: 26rem; margin-top: .75rem; font-size: .9rem; line-height: 1.6; }
.foot__heading { margin-bottom: .95rem; font: 700 .72rem/1 var(--f-text); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.foot__list { display: grid; gap: .6rem; font-size: .92rem; }
.foot__link { color: #fff; text-decoration: none; }
.foot__link:hover { text-decoration: underline; text-underline-offset: .15em; }
.foot__base {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding-block: 1.25rem 2rem;
  border-top: 1px solid #3b3b3b;
  font-size: .8rem;
  line-height: 1.5;
  color: #bebebe;
}
@media (min-width: 700px) {
  .foot__main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .foot__main { grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 2.5rem; }
  .foot__base { flex-direction: row; justify-content: space-between; gap: 2rem; }
}

/* ---------- Print ---------- */
@media print {
  .ticker, .menu, .split__aside, .foot, .skip-link, .pager, .siblings, .related { display: none !important; }
  .masthead { border-bottom-width: 1px; }
  .masthead::before, .masthead__strip { display: none; }
  body { font-size: 11pt; color: #000; }
  .prose a { color: #000; text-decoration: none; }
  .piece__hero { margin-inline: 0; }
}
