/* ==========================================================================
   The South African Enquirer — design system
   --------------------------------------------------------------------------
   A newspaper, not a template. Three rules govern everything below:

   1. RULES AND WHITESPACE CARRY THE STRUCTURE, NOT BOXES. Hairlines between
      columns and above section heads are how a broadsheet signals hierarchy;
      drop-shadowed cards on a grey field are how a web template signals it.
      There is not one shadow, not one rounded corner and not one filled card
      in this stylesheet.
   2. RED IS A SIGNAL, NOT A SURFACE. The masthead red appears on the logo,
      the section kickers, the section-head tick, the Latest flag and link
      hovers. It is never a navigation slab or a picture placeholder.
   3. TWO TYPEFACES, USED FOR DIFFERENT JOBS. Newsreader (a news serif, with a
      real optical-size axis) sets everything a reader reads: headlines, deks,
      body. Archivo (a grotesque with a width axis, the same family the logo
      is drawn from) sets everything the reader navigates by: kickers, nav,
      bylines, labels. Both are self-hosted — see the @font-face block.

   Every colour resolves from the publication theme tokens in publications.py,
   so no brand colour is hard-coded here.
   ========================================================================== */

/* --- typefaces (self-hosted: no third-party font CDN on a news site) ------ */
@font-face {
  font-family: 'Newsreader';
  src: url('/static/fonts/newsreader-var.woff2') format('woff2-variations');
  font-weight: 200 800; font-stretch: 100%; font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('/static/fonts/newsreader-var-italic.woff2') format('woff2-variations');
  font-weight: 200 800; font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('/static/fonts/archivo-var.woff2') format('woff2-variations');
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo Black';
  src: url('/static/fonts/archivo-black.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}

/* --- tokens --------------------------------------------------------------- */
:root {
  --maxw: 1280px;
  --gutter: 26px;
  --measure: 43rem;              /* article column: ~68 characters */

  --paper: #FFFFFF;
  --paper-2: #F7F5F2;            /* warm tint for quiet bands */
  --ground: #14120F;             /* the dark ground: footer, opinion lane */
  --hair: #E3DFD9;               /* warm hairline — never pure grey */
  --hair-strong: #C9C3BA;
  --ink-2: #3A352F;              /* secondary text on paper */

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Archivo', -apple-system, 'Segoe UI', system-ui, sans-serif;

  --red: var(--brand, #D51014);
  /* the logo red is a display colour; small text needs a darker cut of it */
  --red-ink: #A80B10;

  --rule: 1px solid var(--hair);
  --rule-strong: 1px solid var(--ink);
}

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

html { -webkit-text-size-adjust: 100%; }
html.is-ident-locked { overflow: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 980px; }

/* every editorial photograph sits in the same 16:9 frame */
.frame { position: relative; overflow: hidden; background: var(--paper-2); }
.frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.frame--tall img { aspect-ratio: 4 / 5; }
.frame--wide img { aspect-ratio: 21 / 9; }

/* --- furniture: kickers, meta, labels ------------------------------------- */
.kicker, .meta, .flag, .nav a, .section-head h2, .byline, .crumbs,
.footer h5, .page-head .eyebrow, .brief h4, .num {
  font-family: var(--sans);
  font-variation-settings: 'wdth' 92;
}

.kicker {
  display: inline-block;
  font-size: 11.5px; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--red-ink);
  margin-bottom: 7px;
}
.kicker--ink { color: var(--muted); }

.meta {
  font-size: 12px; font-weight: 500;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted);
}
.meta time { white-space: nowrap; }

/* headline links: the underline appears on hover, from the left */
.hl { display: inline; }
a.stretch { display: block; }
a.stretch:hover h1, a.stretch:hover h2, a.stretch:hover h3,
h1 a:hover, h2 a:hover, h3 a:hover { color: var(--red-ink); }

/* --- headline scale (one scale, used everywhere) -------------------------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -.012em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}
.h-xl { font-size: clamp(34px, 4.6vw, 58px); font-variation-settings: 'opsz' 60; line-height: 1.02; }
.h-lg { font-size: clamp(26px, 2.6vw, 34px); font-variation-settings: 'opsz' 34; }
.h-md { font-size: 22px; font-variation-settings: 'opsz' 24; line-height: 1.14; }
.h-sm { font-size: 18.5px; font-variation-settings: 'opsz' 20; line-height: 1.2; }
.h-xs { font-size: 16.5px; font-variation-settings: 'opsz' 18; line-height: 1.24; }

.dek {
  font-size: 19px; line-height: 1.45; color: var(--ink-2);
  margin: 10px 0 0; font-variation-settings: 'opsz' 20;
  text-wrap: pretty;
}
.dek--sm { font-size: 16.5px; }

/* --- the ribbon (date strip) --------------------------------------------- */
.ribbon {
  border-bottom: var(--rule);
  font-family: var(--sans); font-variation-settings: 'wdth' 90;
  font-size: 11.5px; letter-spacing: .11em; text-transform: uppercase;
  color: var(--muted);
}
.ribbon .wrap { display: flex; justify-content: space-between; gap: 18px; padding-block: 9px; }
.ribbon .rb-right { display: flex; gap: 20px; }
.ribbon a:hover { color: var(--red-ink); }

/* --- masthead ------------------------------------------------------------ */
.masthead { background: var(--paper); }
.masthead .wrap {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 20px;
  padding-block: 26px 22px;
}
.masthead .mh-left, .masthead .mh-right {
  font-family: var(--sans); font-variation-settings: 'wdth' 90;
  font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  line-height: 1.7;
}
.masthead .mh-right { text-align: right; }
.masthead .mh-right a { display: block; }
.masthead .mh-right a:hover { color: var(--red-ink); }
.masthead .nameplate { display: block; }
.masthead .nameplate img { height: clamp(38px, 5.2vw, 64px); width: auto; }
.masthead .mh-strap {
  display: block; text-align: center; margin-top: 9px;
  font-family: var(--sans); font-variation-settings: 'wdth' 90;
  font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
}

/* --- section navigation (hairlines, not a red slab) ---------------------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: var(--paper);
  border-top: 2px solid var(--ink);
  border-bottom: var(--rule);
}
.nav .wrap { display: flex; align-items: stretch; gap: 0; overflow-x: auto; scrollbar-width: none; }
.nav .wrap::-webkit-scrollbar { display: none; }
.nav a {
  position: relative;
  padding: 13px 15px 12px;
  font-size: 12.5px; font-weight: 600;
  letter-spacing: .11em; text-transform: uppercase;
  color: var(--ink); white-space: nowrap;
}
.nav a + a { box-shadow: -1px 0 0 var(--hair); }
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 3px; background: var(--red); transform: scaleX(0);
  transition: transform .18s ease;
}
.nav a:hover::after { transform: scaleX(1); }
.nav a.active { color: var(--red-ink); }
.nav a.active::after { transform: scaleX(1); }
.nav .nav-mark { display: none; align-items: center; padding-right: 14px; }
.nav .nav-mark img { height: 17px; width: auto; }
.nav .nav-mark::after { display: none; }
/* The monogram belongs in the sticky bar only once the nameplate has scrolled
   away — otherwise the brand is stated twice, 40px apart. Scroll-driven
   animation does this without a scroll listener; browsers without it simply
   never show the mark, which is the correct fallback. */
@supports (animation-timeline: scroll()) {
  .nav .nav-mark {
    display: flex; width: 0; opacity: 0; overflow: hidden;
    animation: nav-mark-in linear both;
    animation-timeline: scroll(root block);
    animation-range: 90px 190px;
  }
  @keyframes nav-mark-in { to { width: 44px; opacity: 1; } }
}

/* --- latest strip -------------------------------------------------------- */
.latest { border-bottom: var(--rule); background: var(--paper); }
.latest .wrap { display: flex; align-items: center; gap: 14px; padding-block: 10px; }
.latest .flag {
  flex: none;
  background: var(--red); color: #fff;
  font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  padding: 4px 9px 3px;
}
.latest .lt-body { min-width: 0; }
.latest a { font-size: 16.5px; font-weight: 600; }
.latest a:hover { color: var(--red-ink); }
.latest .meta { margin-left: auto; flex: none; }

/* --- the front page ------------------------------------------------------ */
.slab { padding-block: 28px 30px; }
.slab-grid {
  display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr);
  gap: 0 calc(var(--gutter) + 8px);
}
.slab-grid > .rail { position: relative; min-width: 0; }
.slab-grid > .rail::before {
  content: ''; position: absolute; top: 0; bottom: 0;
  left: calc((var(--gutter) + 8px) / -2); width: 1px; background: var(--hair);
}

.lead .kicker { margin-top: 18px; }
.lead .byline { margin-top: 14px; }
.lead .frame { margin-bottom: 2px; }

/* the two filings that sit under the lead, holding the left column's depth */
.under-lead { margin-top: 26px; padding-top: 20px; border-top: var(--rule-strong); }
.under-lead .kicker { margin-bottom: 5px; }

/* the rail: two picture items, then a numbered list of the latest */
.rail-item { padding-bottom: 18px; margin-bottom: 18px; border-bottom: var(--rule); }
.rail-item:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.rail-item .frame { margin-bottom: 11px; }
.rail-item .dek { margin-top: 7px; }

.rail-head {
  font-family: var(--sans); font-variation-settings: 'wdth' 90;
  font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  padding-bottom: 9px; margin-bottom: 4px; border-bottom: 2px solid var(--ink);
}
.tick-list { list-style: none; margin: 0; padding: 0; }
.tick-list li { border-bottom: var(--rule); }
.tick-list li:last-child { border-bottom: 0; }
.tick-list a { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 11px 0; }
.tick-list .num {
  font-size: 12px; font-weight: 700; color: var(--red-ink); letter-spacing: .04em;
  padding-top: 3px;
}
.tick-list a:hover .h-xs { color: var(--red-ink); }

/* --- section bands ------------------------------------------------------- */
.section-head {
  display: flex; align-items: center; gap: 16px;
  border-top: 2px solid var(--ink);
  margin: 0 0 20px; padding-top: 11px;
}
.section-head h2 {
  font-family: var(--sans); font-variation-settings: 'wdth' 88;
  font-size: 15px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
}
.section-head h2::before {
  content: ''; width: 9px; height: 9px; background: var(--red); flex: none;
}
.section-head .more {
  margin-left: auto;
  font-family: var(--sans); font-variation-settings: 'wdth' 90;
  font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}
.section-head .more:hover { color: var(--red-ink); }
.band { padding-block: 6px 30px; }
.band + .band { padding-top: 0; }

/* The column grid. The hairline is drawn INSIDE the gutter by a pseudo-element
   rather than as a border-plus-padding on the column, because border-left +
   padding-left makes the first column wider than the rest — which in turn makes
   its 16:9 picture taller than its neighbours', and a row of pictures at three
   different heights is the tell of a grid nobody looked at. */
.cols { display: grid; gap: 26px var(--gutter); }
.cols > * { position: relative; min-width: 0; }
.cols > * + *::before {
  content: ''; position: absolute; top: 0; bottom: 0;
  left: calc(var(--gutter) / -2); width: 1px; background: var(--hair);
}
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* on a wrapped row the rule belongs above the column, not beside it */
.cols-4 > *:nth-child(4n+1)::before, .cols-3 > *:nth-child(3n+1)::before,
.cols-2 > *:nth-child(2n+1)::before { display: none; }
/* a band holding a single story stretches into a wide two-up instead of
   leaving two thirds of the row empty — sparse days must still look composed */
.cols-wide { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; }

.story .frame { margin-bottom: 12px; }
.story .dek { margin-top: 8px; }
.story .meta { display: block; margin-top: 10px; }

/* one story, run wide: picture and text side by side */
.wide-story {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: var(--gutter); align-items: start;
}
.wide-story > div:last-child { position: relative; }
.wide-story > div:last-child::before {
  content: ''; position: absolute; top: 0; bottom: 0;
  left: calc(var(--gutter) / -2); width: 1px; background: var(--hair);
}
.wide-story .dek { margin-top: 10px; }
.wide-story .meta { display: block; margin-top: 12px; }

/* --- the digest: several desks across one row --------------------------- */
.desk-head {
  border-top: var(--rule-strong); padding-top: 9px; margin-bottom: 14px;
  font-family: var(--sans); font-variation-settings: 'wdth' 88;
  font-size: 12.5px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
}
.desk-head a:hover { color: var(--red-ink); }
.desk .frame { margin-bottom: 11px; }
.desk-more { list-style: none; margin: 16px 0 0; padding: 0; border-top: var(--rule); }
.desk-more li { border-bottom: var(--rule); }
.desk-more li:last-child { border-bottom: 0; }
.desk-more a { display: block; padding: 10px 0; }
.desk-more a:hover .h-xs { color: var(--red-ink); }
.desk-more .meta { display: block; margin-top: 5px; }
.desk-empty { color: var(--muted); font-size: 16px; margin: 0; }

/* --- the brief (no pictures, tight rhythm) ------------------------------- */
.brief { background: var(--paper-2); padding-block: 26px 28px; margin-block: 6px 34px; }
.brief .brief-head {
  font-family: var(--sans); font-variation-settings: 'wdth' 88;
  font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 18px;
}
.brief .item + .item { margin-top: 16px; padding-top: 16px; border-top: var(--rule); }
.brief .meta { display: block; margin-top: 6px; }

/* --- the opinion lane (dark ground: opinion is visibly not news) --------- */
.lane {
  background: var(--ground); color: #EDE9E3;
  padding-block: 34px 36px; margin-block: 10px 36px;
}
.lane .section-head { border-color: #E8E4DE; }
.lane .section-head h2, .lane .section-head .more { color: #fff; }
.lane .cols > * { border-color: rgba(255,255,255,.16); }
.lane .kicker { color: #F2B9BB; }
.lane .dek, .lane .meta { color: #B9B2A9; }
.lane a:hover h3, .lane a.stretch:hover h3 { color: #fff; }
.lane .lane-rule {
  font-family: var(--sans); font-variation-settings: 'wdth' 90;
  font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  color: #8E877E; margin-top: 22px; padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.16);
}

/* --- the promise plate (brand + ident video) ---------------------------- */
.promise {
  border-top: 2px solid var(--ink); border-bottom: var(--rule);
  padding-block: 34px 36px; margin-top: 8px;
}
.promise .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: 40px; align-items: center; }
.promise h2 { font-size: clamp(24px, 2.4vw, 32px); font-variation-settings: 'opsz' 32; }
.promise p { color: var(--ink-2); margin: 12px 0 0; font-size: 17.5px; }
.promise .promise-meta { margin-top: 20px; display: block; }
.promise .promise-link { display: inline-block; margin-top: 8px; color: var(--red-ink); }
.promise .promise-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.promise .ident-plate { background: var(--ground); }
.promise .ident-plate video, .promise .ident-plate img { width: 100%; display: block; }

/* --- page heads (section pages) ----------------------------------------- */
.page-head { padding-block: 30px 18px; border-bottom: 2px solid var(--ink); margin-bottom: 26px; }
.page-head .eyebrow {
  font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--red-ink);
}
.page-head h1 { font-size: clamp(32px, 4.4vw, 52px); font-variation-settings: 'opsz' 48; margin-top: 8px; }
.page-head .blurb {
  font-style: italic; color: var(--ink-2); font-size: 19px; margin: 10px 0 0; max-width: 54ch;
}

/* --- article ------------------------------------------------------------ */
.crumbs {
  font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); padding-block: 16px 0;
}
.crumbs a:hover { color: var(--red-ink); }
.crumbs .sep { margin-inline: 9px; color: var(--hair-strong); }

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, var(--measure)) minmax(0, 1fr);
  gap: var(--gutter);
  align-items: start;
}
.article-grid > .aside-left { grid-column: 1; }
.article-grid > article.post { grid-column: 2; }
.article-grid > .aside-right { grid-column: 3; }

article.post { padding-block: 22px 44px; min-width: 0; }
article.post header .kicker { font-size: 12px; }
article.post h1 {
  font-size: clamp(32px, 3.9vw, 50px); font-variation-settings: 'opsz' 48;
  line-height: 1.04; margin-block: 6px 0;
}
article.post .standfirst {
  font-size: 21px; line-height: 1.42; color: var(--ink-2);
  margin: 14px 0 0; font-variation-settings: 'opsz' 22; text-wrap: pretty;
}
article.post .byline {
  display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline;
  border-top: var(--rule); border-bottom: var(--rule);
  margin-top: 20px; padding-block: 10px;
  font-size: 12px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted);
}
article.post .byline .who { color: var(--ink); font-weight: 600; }

article.post .hero { margin: 22px 0 0; }
article.post .hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
article.post .hero-credit {
  font-family: var(--sans); font-variation-settings: 'wdth' 92;
  font-size: 11.5px; letter-spacing: .05em; color: var(--muted);
  margin-top: 8px; padding-bottom: 4px; border-bottom: var(--rule);
}

article.post .body { margin-top: 26px; font-size: 19px; line-height: 1.68; }
article.post .body > p:first-of-type { font-size: 20.5px; line-height: 1.6; }
article.post .body p { margin: 0 0 22px; }
article.post .body h2 {
  font-size: 24px; font-variation-settings: 'opsz' 26; font-weight: 700;
  margin: 34px 0 12px;
}
article.post .body h3 { font-size: 20px; font-weight: 700; margin: 28px 0 10px; }
article.post .body ul, article.post .body ol { margin: 0 0 22px; padding-left: 22px; }
article.post .body li { margin-bottom: 10px; }
article.post .body li::marker { color: var(--red-ink); }
/* links in copy: ink text on a red rule — readable, not a field of red */
article.post .body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
article.post .body a:hover { color: var(--red-ink); text-decoration-thickness: 2px; }
article.post .body blockquote {
  margin: 30px 0; padding: 2px 0 2px 22px; border-left: 3px solid var(--red);
  font-size: 25px; line-height: 1.32; font-style: italic; color: var(--ink);
  font-variation-settings: 'opsz' 30;
}
article.post .body blockquote p:last-child { margin-bottom: 0; }
article.post .body figure { margin: 26px 0; }
article.post .body figcaption {
  font-family: var(--sans); font-size: 12px; color: var(--muted); margin-top: 8px;
}
article.post .body strong { font-weight: 700; }

article.post .tags { margin-top: 34px; border-top: var(--rule); padding-top: 14px; }
article.post .tags span, article.post .tags a {
  font-family: var(--sans); font-variation-settings: 'wdth' 92;
  font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-right: 14px;
}
article.post .tags .tags-label { color: var(--red-ink); font-weight: 700; }

.art-note {
  margin-top: 30px; padding: 16px 18px;
  background: var(--paper-2); border-left: 3px solid var(--ink);
  font-size: 15.5px; color: var(--ink-2);
}
.art-note strong { font-weight: 700; }
.art-note a { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }

/* the standing note that marks opinion as opinion */
.lane-chip {
  display: inline-block; vertical-align: 3px; margin-left: 10px;
  background: var(--ink); color: #fff;
  font-family: var(--sans); font-variation-settings: 'wdth' 90;
  font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  padding: 4px 9px 3px;
}
.lane-note {
  border-left: 3px solid var(--red); background: var(--paper-2);
  padding: 14px 18px; margin-bottom: 26px; font-size: 16px; color: var(--ink-2);
}

/* the article side rails */
.aside-left, .aside-right { padding-top: 30px; }
.aside-sticky { position: sticky; top: 74px; }
.aside-left .stamp {
  font-family: var(--sans); font-variation-settings: 'wdth' 90;
  font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  border-top: 2px solid var(--ink); padding-top: 10px;
}
.aside-left .stamp strong { display: block; color: var(--ink); font-size: 12.5px; margin-bottom: 4px; }
.aside-left .share { margin-top: 22px; display: grid; gap: 8px; }
.aside-left .share-label {
  font-family: var(--sans); font-variation-settings: 'wdth' 90;
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink);
}
.aside-left .share a {
  font-family: var(--sans); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); border-top: var(--rule); padding-top: 8px;
}
.aside-left .share a:hover { color: var(--red-ink); }

/* --- read next ---------------------------------------------------------- */
.readnext { border-top: 2px solid var(--ink); padding-block: 20px 46px; margin-top: 10px; }

/* --- empty / launch state ----------------------------------------------- */
.launch { padding-block: 46px 20px; }
.launch-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 46px; align-items: center; }
.launch h1 { font-size: clamp(32px, 4.2vw, 50px); font-variation-settings: 'opsz' 46; }
.launch .dek { font-size: 20px; margin-top: 16px; }
.launch .ident-plate { background: var(--ground); }
/* an unconstrained <video> reports its intrinsic 1280px and drags the whole
   grid wider than the viewport - it must be told to fit its column */
.launch .ident-plate video, .launch .ident-plate img { width: 100%; display: block; }
.launch .desk-list { list-style: none; margin: 26px 0 0; padding: 0; border-top: 2px solid var(--ink); }
.launch .desk-list li { border-bottom: var(--rule); }
.launch .desk-list a { display: flex; gap: 14px; align-items: baseline; padding: 11px 0; }
.launch .desk-list .d-name {
  font-family: var(--sans); font-variation-settings: 'wdth' 90;
  font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  min-width: 11.5rem;
}
.launch .desk-list .d-blurb { color: var(--muted); font-size: 16px; }
.launch .desk-list a:hover .d-name { color: var(--red-ink); }
.empty-note {
  border-top: 2px solid var(--ink); border-bottom: var(--rule);
  padding: 22px 0; color: var(--muted); font-size: 16.5px;
}

/* --- footer ------------------------------------------------------------- */
.footer { background: var(--ground); color: #C9C2B9; margin-top: 46px; }
.footer .wrap { padding-block: 40px 28px; }
.footer .foot-grid {
  display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr));
  gap: 30px var(--gutter);
}
.footer .foot-logo { height: 38px; width: auto; margin-bottom: 18px; }
.footer h5 {
  font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: #fff; margin: 0 0 12px;
}
.footer a { display: block; padding: 4px 0; font-size: 15.5px; color: #C9C2B9; }
.footer a:hover { color: #fff; }
.footer .foot-about { font-size: 16px; color: #A79F95; max-width: 42ch; margin: 0; }
.footer .foot-bottom {
  border-top: 1px solid rgba(255,255,255,.14); margin-top: 30px; padding-top: 16px;
  display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between;
  font-family: var(--sans); font-variation-settings: 'wdth' 92;
  font-size: 12px; color: #8E877E;
}
.footer .foot-bottom a { display: inline; padding: 0; font-size: 12px; }

/* Publisher identification: a legal footnote, deliberately the quietest line on the
   page. The owner does not want the publishing company carried prominently. */
.footer .foot-legal {
  margin-top: 12px;
  font-family: var(--sans); font-variation-settings: 'wdth' 92;
  font-size: 11px; line-height: 1.5; color: #7A736B;
  max-width: 78ch;
}

/* --- the ident (the logo animation, once a session) --------------------- */
.ident {
  position: fixed; inset: 0; z-index: 200;
  background: var(--ground);
  display: grid; place-items: center;
  transition: opacity .5s ease;
}
.ident[hidden] { display: none !important; }
.ident.is-out { opacity: 0; pointer-events: none; }
.ident video, .ident img { width: min(100%, 1100px); height: auto; }
.ident .skip {
  position: absolute; right: 22px; bottom: 20px;
  font-family: var(--sans); font-variation-settings: 'wdth' 92;
  font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  color: #9A938A; background: none; border: 0; cursor: pointer; padding: 8px 10px;
}
.ident .skip:hover { color: #fff; }

/* --- accessibility ------------------------------------------------------ */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:where(a, button):focus-visible {
  outline: 2px solid var(--red); outline-offset: 3px;
}
.skip-link {
  position: absolute; left: -9999px;
  background: var(--ink); color: #fff; padding: 10px 14px; z-index: 300;
  font-family: var(--sans); font-size: 13px;
}
.skip-link:focus { left: 12px; top: 12px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* --- responsive --------------------------------------------------------- */
@media (max-width: 1180px) {
  .article-grid { grid-template-columns: minmax(0, 1fr) minmax(0, var(--measure)) minmax(0, 1fr); }
  .aside-right { display: none; }
  .article-grid > article.post { grid-column: 2 / 4; }
}
@media (max-width: 980px) {
  .slab-grid { grid-template-columns: 1fr; }
  .slab-grid > .rail {
    border-top: 2px solid var(--ink); margin-top: 30px; padding-top: 20px;
  }
  .slab-grid > .rail::before { display: none; }
  .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-4 > *:nth-child(2n+1)::before { display: none; }
  .promise .wrap, .launch-grid { grid-template-columns: 1fr; gap: 28px; }
  .wide-story { grid-template-columns: 1fr; }
  .wide-story > div:last-child::before { display: none; }
  .footer .foot-grid { grid-template-columns: 1fr 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .article-grid > article.post { grid-column: 1; }
  .aside-left { display: none; }
}
@media (max-width: 720px) {
  :root { --gutter: 18px; }
  body { font-size: 17px; }
  .ribbon .rb-right span, .masthead .mh-left, .masthead .mh-right { display: none; }
  .masthead .wrap { grid-template-columns: 1fr; justify-items: center; padding-block: 18px 14px; }
  .masthead .nameplate { text-align: center; }
  .cols-2, .cols-3, .cols-4, .cols-wide { grid-template-columns: 1fr; }
  .cols > * + *::before {
    left: 0; right: 0; top: calc(var(--gutter) / -2 - 8px);
    bottom: auto; width: auto; height: 1px;
  }
  .cols-4 > *:nth-child(2n+1)::before, .cols-3 > *:nth-child(3n+1)::before,
  .cols-2 > *:nth-child(2n+1)::before { display: block; }
  .latest .meta { display: none; }
  .footer .foot-grid { grid-template-columns: 1fr; gap: 22px; }
  article.post .body { font-size: 18px; }
  .aside-left, .aside-right { display: none; }
}
@media print {
  .nav, .ribbon, .latest, .footer, .ident, .aside-left, .aside-right, .readnext { display: none !important; }
  article.post { max-width: none; }
}
