/* RCTV — publication stylesheet.
   Typography-first theme derived from knowledge/design-system-brief.md.
   Body serif: Source Serif 4.  Display sans: Inter Tight.  Mono: JetBrains Mono. */

/* ————————————————————————————————————————————
   Tokens
   ———————————————————————————————————————————— */
:root {
  --rctv-green: #4CAF50;
  --rctv-green-dim: #3d8b40;

  --paper:      #f6f3ec;
  --paper-edge: #ece8de;
  --ink:        #15120c;
  --ink-soft:   #3a3328;
  --ink-mute:   #6a614f;
  --rule:       #d9d3c3;
  --rule-soft:  #e6e1d2;

  --night:      #111110;
  --night-ink:  #f2efe6;
  --night-mute: #9a9183;

  --ff-body:    "Source Serif 4", "Source Serif Pro", Georgia, serif;
  --ff-display: "Inter Tight", "Söhne", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --ff-mono:    "JetBrains Mono", ui-monospace, Menlo, monospace;

  --fs-base:    18px;

  --measure:         720px;
  --page-gutter:     40px;
  --page-gutter-sm:  20px;

  --scroll-progress: 0;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scrollbar-gutter: stable; scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  line-height: 1.58;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga", "onum";
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 500; }
p { margin: 0; }

/* Sticky-anchor offset for fragment links under a fixed-height header,
   if we end up adding one. Safe to leave set — it's 0 until a header ops it. */
:target { scroll-margin-top: 80px; }

/* ————————————————————————————————————————————
   Utilities (replicated from the design bundle)
   ———————————————————————————————————————————— */
.eyebrow {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.eyebrow--green { color: var(--rctv-green-dim); }
.eyebrow .dot,
.dot {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--rctv-green);
  vertical-align: middle;
  margin: 0 8px 2px 0;
}
.eyebrow--on-dark { color: var(--rctv-green); }

.meta {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--ink-mute);
  font-feature-settings: "tnum", "lnum";
  font-variant-numeric: tabular-nums lining-nums;
}

.num-table {
  font-feature-settings: "tnum", "lnum";
  font-variant-numeric: tabular-nums lining-nums;
}

.rule {
  height: 1px;
  background: var(--rule);
  display: inline-block;
}
.rule--green { background: var(--rctv-green); height: 2px; }
.rule--hair  { background: var(--rule-soft); }

.link-green {
  color: var(--ink);
  background-image: linear-gradient(var(--rctv-green), var(--rctv-green));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  transition: background-size .2s;
}
.link-green:hover { background-size: 100% 2px; }

/* Small green dingbat (paragraph-end / section marker) */
.dingbat {
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--rctv-green);
  transform: rotate(45deg);
  margin: 0 2px 2px 4px;
  vertical-align: middle;
}

/* Italic pivot used mid-headline; kept out of body utilities because it's
   always semantic per the emphasis rules. Writers use markdown *italic*. */
.italic-pivot {
  font-family: var(--ff-body);
  font-style: italic;
  font-weight: 400;
}

/* Small-caps accent inside headlines ("not clickbait" in the canonical example). */
.accent-green { color: var(--rctv-green-dim); }

/* ————————————————————————————————————————————
   Masthead
   ———————————————————————————————————————————— */
.masthead {
  background: var(--paper);
  color: var(--ink);
}
.masthead__top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 40px;
  padding: 22px var(--page-gutter) 20px;
  border-bottom: 1px solid var(--ink);
}
.masthead__wordmark {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}
.masthead__wordmark .period { color: var(--rctv-green); }
.masthead__nav {
  display: flex;
  gap: 28px;
  font-family: var(--ff-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}
.masthead__nav a { transition: color .2s; }
.masthead__nav a[aria-current="page"],
.masthead__nav a.is-current { color: var(--rctv-green-dim); }
.masthead__nav a:hover { color: var(--ink); }
.masthead__right {
  display: flex;
  gap: 20px;
  align-items: center;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
}
.masthead__subscribe {
  font-family: var(--ff-display);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
}
.masthead__rail {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  column-gap: 40px;
  padding: 12px var(--page-gutter);
  border-bottom: 1px solid var(--rule);
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
}
.masthead__rail em {
  font-style: italic;
  font-family: var(--ff-body);
  font-size: 14px;
  letter-spacing: 0;
  margin-right: 10px;
  color: var(--ink-soft);
}
.masthead__rail .tagline { color: var(--ink-soft); }

.masthead__hamburger {
  display: none;
  border: 1px solid var(--ink);
  background: transparent;
  width: 32px; height: 32px;
  align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
  color: var(--ink);
}
.masthead__hamburger svg { display: block; }

/* Mobile menu panel (opens below the top bar when hamburger is toggled).
   Closed by default. Becomes a vertical stack of nav links when open. */
.masthead__menu[data-open="false"] { display: none; }
.masthead__menu {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  padding: 18px var(--page-gutter-sm) 22px;
}
.masthead__menu a {
  display: block;
  font-family: var(--ff-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  padding: 10px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.masthead__menu a:last-child { border-bottom: none; }
@media (min-width: 700px) {
  .masthead__menu { display: none !important; }
}

/* Mobile masthead */
@media (max-width: 699.98px) {
  .masthead__top {
    grid-template-columns: auto 1fr auto;
    padding: 14px var(--page-gutter-sm) 12px;
    column-gap: 14px;
  }
  .masthead__wordmark { font-size: 22px; }
  .masthead__nav { display: none; }
  .masthead__right { gap: 14px; font-size: 10px; }
  .masthead__right .week-marker { display: none; }
  .masthead__subscribe { font-size: 12px; color: var(--rctv-green-dim); }
  .masthead__hamburger { display: inline-flex; }
  .masthead__rail {
    grid-template-columns: 1fr auto;
    padding: 8px var(--page-gutter-sm);
    column-gap: 14px;
    font-size: 10px;
  }
  .masthead__rail .tagline { display: none; }
}

/* ————————————————————————————————————————————
   Progress rail (top of post pages, mobile + desktop)
   ———————————————————————————————————————————— */
.progress-rail {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: calc(var(--scroll-progress) * 100%);
  background: var(--rctv-green);
  z-index: 50;
  pointer-events: none;
  transform-origin: left;
  transition: width .08s linear;
}

/* ————————————————————————————————————————————
   Homepage
   ———————————————————————————————————————————— */
.home-lead {
  padding: 80px var(--page-gutter) 72px;
  display: grid;
  grid-template-columns: 1fr 520px;
  column-gap: 64px;
  align-items: start;
}
.home-lead__eyebrow { margin-bottom: 24px; }
.home-lead__title {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 88px;
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin-bottom: 28px;
  text-wrap: balance;
  color: var(--ink);
}
.home-lead__dek {
  font-family: var(--ff-body);
  font-size: 22px;
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 620px;
  margin-bottom: 36px;
}
.home-lead__meta {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  flex-wrap: wrap;
}
.home-lead__meta .rule { width: 20px; }
.home-lead__spacer { flex: 1; }
.home-lead__cta {
  padding: 12px 20px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--ff-display);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.home-lead__cta .arrow { color: var(--rctv-green); }

.home-lead__fig { display: flex; flex-direction: column; }
.home-lead__fig-frame { background: var(--night); }
.home-lead__fig-frame img { width: 100%; display: block; }
.home-lead__fig-cap {
  display: flex;
  justify-content: space-between;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  text-transform: uppercase;
  margin-top: 10px;
  gap: 12px;
}

.section-bar {
  padding: 0 var(--page-gutter);
  margin-bottom: 20px;
}
.section-bar__inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ink);
}
.section-bar h4 {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-index {
  padding: 24px var(--page-gutter) 56px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  column-gap: 32px;
  row-gap: 40px;
}
.card {
  display: flex;
  flex-direction: column;
  container-type: inline-size;
}
.card__thumb {
  background: var(--paper-edge);
  margin-bottom: 16px;
  overflow: hidden;
}
.card__thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.card__eyebrow { margin-bottom: 12px; }
.card__title {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 10px;
  text-wrap: pretty;
}
.card__title a { color: inherit; }
.card__title a:hover { color: var(--rctv-green-dim); }
.card__dek {
  font-family: var(--ff-body);
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: 14px;
}
.card__meta { }

/* Card horizontal variant: kicks in when the card's own width ≥ 560px.
   Container queries so it's driven by the slot, not the viewport. */
@container (min-width: 560px) {
  .card--auto {
    flex-direction: row;
    gap: 24px;
    align-items: flex-start;
  }
  .card--auto .card__thumb {
    flex: 0 0 360px;
    margin-bottom: 0;
  }
  .card--auto .card__body { flex: 1; }
}

/* ————————————————————————————————————————————
   Landscape band (dark). Three-column desktop composition
   (title+dek | grid visualization | counter). Mobile reorders to
   counter-leads: header → counter → thin grid band.
   ———————————————————————————————————————————— */
.landscape-band {
  background: var(--night);
  color: var(--night-ink);
  padding: 56px var(--page-gutter);
}
.landscape-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 1fr) minmax(260px, 1fr);
  grid-template-areas: "header viz counter";
  column-gap: 48px;
  align-items: start;
}
/* Grid-area names MUST be defined at every breakpoint whose template
   references them. Base (desktop) declares "header viz counter"; the
   tablet and mobile media queries redefine the template with the same
   three area names in a different arrangement. */
.landscape-band__header   { grid-area: header; }
.landscape-band__viz      { grid-area: viz; }
.landscape-band__counters { grid-area: counter; }
.landscape-band .eyebrow { color: var(--rctv-green); margin-bottom: 20px; }
.landscape-band__title {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 64px;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 24px;
  text-wrap: balance;
  color: var(--night-ink);
}
.landscape-band__dek {
  font-family: var(--ff-body);
  font-size: 19px;
  line-height: 1.5;
  color: var(--night-mute);
}

/* Grid visualization — CSS grid of cells that fills the available column.
   Count is supplied by --cells; cells wrap automatically. Commercial tier
   gets solid green fill; open-source tier gets a paper-weight outline.
   This is intentionally abstract, not a precise map. */
.landscape-band__viz {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.landscape-band__cells {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  align-content: start;
}
.landscape-band__cells .cell {
  display: block;
  aspect-ratio: 1 / 1;
  background: transparent;
  border: 1px solid rgba(255,255,255,.14);
}
.landscape-band__cells .cell--commercial {
  background: var(--rctv-green);
  border-color: var(--rctv-green);
}
.landscape-band__cells .cell--open {
  background: var(--night-mute);
  opacity: 0.28;
  border-color: transparent;
}
.landscape-band__viz-legend {
  display: flex;
  gap: 20px;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--night-mute);
}
.landscape-band__viz-legend .swatch {
  display: inline-block;
  width: 10px; height: 10px;
  margin-right: 6px;
  vertical-align: -1px;
}
.landscape-band__viz-legend .swatch--commercial { background: var(--rctv-green); }
.landscape-band__viz-legend .swatch--open { background: var(--night-mute); opacity: 0.4; }

/* Counter — two tiers, each a full-row link with caption line. */
.landscape-band__counters {
  display: flex;
  flex-direction: column;
  gap: 28px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}
.landscape-band__counter {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 18px;
  row-gap: 4px;
  align-items: center;
  color: var(--night-mute);
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  transition: color .15s;
}
.landscape-band__counter:last-child { border-bottom: none; padding-bottom: 0; }
.landscape-band__counter-num {
  grid-column: 1;
  grid-row: 1 / span 2;
  font-size: 56px;
  font-family: var(--ff-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--night-ink);
}
.landscape-band__counter:first-child .landscape-band__counter-num {
  color: var(--rctv-green);
}
.landscape-band__counter-label {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--ff-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--night-ink);
}
.landscape-band__counter-caption {
  grid-column: 2;
  grid-row: 2;
  font-family: var(--ff-body);
  font-size: 14px;
  letter-spacing: 0;
  line-height: 1.4;
  color: var(--night-mute);
}
.landscape-band__counter .arrow {
  grid-column: 3;
  grid-row: 1 / span 2;
  font-family: var(--ff-display);
  font-size: 18px;
  color: var(--night-ink);
  transition: color .15s, transform .15s;
}
.landscape-band__counter:hover,
.landscape-band__counter:focus-visible {
  color: var(--night-ink);
}
.landscape-band__counter:hover .arrow,
.landscape-band__counter:focus-visible .arrow {
  color: var(--rctv-green);
  transform: translateX(2px);
}

.landscape-band__foot {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--night-mute);
  letter-spacing: 0.04em;
  gap: 16px;
  flex-wrap: wrap;
}
.landscape-band__cta {
  padding: 14px 22px;
  border: 1px solid var(--rctv-green);
  color: var(--rctv-green);
  font-family: var(--ff-display);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  transition: background .2s, color .2s;
}
.landscape-band__cta:hover { background: var(--rctv-green); color: var(--night); }

/* ————————————————————————————————————————————
   Archive list (homepage "Recent, in order")
   ———————————————————————————————————————————— */
.archive {
  padding: 64px var(--page-gutter) 32px;
}
.archive__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ink);
}
.archive__head h4 {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.archive__row {
  display: grid;
  grid-template-columns: 80px 120px 1fr 60px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule-soft);
  column-gap: 24px;
  transition: background .15s;
}
.archive__row:hover { background: var(--paper-edge); }
.archive__row .title {
  font-family: var(--ff-body);
  font-size: 22px;
  letter-spacing: -0.005em;
  line-height: 1.3;
  color: var(--ink);
}
.archive__row .kind { color: var(--ink-mute); }
.archive__row .kind.is-flagship { color: var(--ink); font-weight: 600; }
.archive__row .cta {
  text-align: right;
  color: var(--rctv-green-dim);
}

/* ————————————————————————————————————————————
   Subscribe strip (homepage + end-of-post)
   ———————————————————————————————————————————— */
.subscribe {
  padding: 56px var(--page-gutter);
  border-top: 1px solid var(--ink);
  text-align: center;
  background: var(--paper);
}
.subscribe__eyebrow { margin-bottom: 18px; }
.subscribe__tagline {
  font-family: var(--ff-body);
  font-size: 40px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 720px;
  margin: 0 auto 28px;
  text-wrap: balance;
  color: var(--ink);
}
.subscribe__form {
  display: inline-flex;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 8px;
  min-width: 440px;
  max-width: 100%;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.subscribe__form input[type="email"] {
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--ff-body);
  font-size: 18px;
  letter-spacing: 0;
  flex: 1;
  min-width: 0;
  color: var(--ink);
}
.subscribe__form button {
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: var(--ff-display);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--rctv-green-dim);
}
.subscribe__form button:hover { color: var(--rctv-green); }

/* ————————————————————————————————————————————
   Pagination (archive / category / tag lists)
   ———————————————————————————————————————————— */
.pagination {
  margin: 48px 0 8px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.pagination__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.pagination__edge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color .15s;
}
.pagination__edge .arrow {
  font-family: var(--ff-display);
  font-size: 14px;
  letter-spacing: 0;
  color: var(--rctv-green-dim);
  transition: transform .15s, color .15s;
}
.pagination__edge:hover { color: var(--ink); }
.pagination__edge:hover .arrow { color: var(--rctv-green); }
.pagination__edge--prev:hover .arrow { transform: translateX(-2px); }
.pagination__edge--next:hover .arrow { transform: translateX(2px); }
.pagination__edge.is-disabled {
  color: var(--rule);
  cursor: default;
  pointer-events: none;
}
.pagination__edge.is-disabled .arrow { color: var(--rule); }

.pagination__nums {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-feature-settings: "tnum", "lnum";
}
.pagination__nums li {
  margin: 0;
}
.pagination__nums a,
.pagination__nums span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  padding: 4px 8px;
  font-family: var(--ff-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink-mute);
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
.pagination__nums a:hover {
  color: var(--ink);
  border-bottom-color: var(--rctv-green);
}
.pagination__nums .is-current span {
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid var(--rctv-green);
}

.pagination__context {
  font-size: 10px;
  letter-spacing: 0.08em;
}

@media (max-width: 699.98px) {
  .pagination { margin-top: 32px; }
  .pagination__row { gap: 14px; }
  .pagination__edge { font-size: 10px; letter-spacing: 0.14em; }
  .pagination__nums a,
  .pagination__nums span { min-width: 28px; font-size: 12px; }
}

/* ————————————————————————————————————————————
   Footer
   ———————————————————————————————————————————— */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 28px var(--page-gutter) 48px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
}

/* ————————————————————————————————————————————
   Post page
   ———————————————————————————————————————————— */
.post-header {
  padding: 72px var(--page-gutter) 64px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
}
.post-header__inner {
  max-width: 920px;
  margin: 0 auto;
}
.post-header__eyebrow {
  color: var(--rctv-green-dim);
  margin-bottom: 28px;
}
.post-header__title {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 68px;
  letter-spacing: -0.03em;
  line-height: 1.0;
  margin-bottom: 28px;
  text-wrap: balance;
  color: var(--ink);
}
.post-header__dek {
  font-family: var(--ff-body);
  font-size: 22px;
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 720px;
  margin-bottom: 40px;
}
.post-header__meta {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  flex-wrap: wrap;
}
.post-header__meta .byline { color: var(--ink); }
.post-header__meta .rule { width: 20px; }
.post-header__meta .section-counter { margin-left: auto; }

/* Hero image inside the post header. Sits between dek and meta rail.
   Dark-header variant renders on the existing night surface (no frame);
   light-header variant gets a subtle paper-edge rule to hold the image. */
.post-header__fig {
  margin: 0 0 36px;
}
.post-header__fig img {
  display: block;
  width: 100%;
  height: auto;
}
.post-header__fig--light img {
  border: 1px solid var(--rule-soft);
}

/* Flagship post header = dark */
.post-header--flagship {
  background: var(--night);
  color: var(--night-ink);
  border-bottom: none;
}
.post-header--flagship .post-header__eyebrow { color: var(--rctv-green); }
.post-header--flagship .post-header__title { color: var(--night-ink); }
.post-header--flagship .post-header__dek { color: var(--night-mute); }
.post-header--flagship .post-header__meta {
  color: var(--night-mute);
  border-top: 1px solid rgba(255,255,255,.12);
}
.post-header--flagship .post-header__meta .byline { color: var(--night-ink); }
.post-header--flagship .post-header__meta .rule { background: rgba(255,255,255,.3); }

/* Titles can pivot into italic serif when the semantic turn is marked.
   Writers enable via titleEmphasis front-matter (rendered server-side). */
.post-header__title em,
.home-lead__title em,
.landscape-band__title em {
  font-family: var(--ff-body);
  font-weight: 400;
  font-style: italic;
}

/* ————————————————————————————————————————————
   Post body
   ———————————————————————————————————————————— */
.post-body {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 64px var(--page-gutter) 48px;
  font-family: var(--ff-body);
  font-size: 19px;
  line-height: 1.62;
  color: var(--ink);
}
.post-body > p { margin: 0 0 24px; }
.post-body > p:last-child { margin-bottom: 0; }

/* Drop cap on first paragraph — CSS-applied, not markdown. */
.post-body > p:first-of-type::first-letter {
  float: left;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 92px;
  line-height: 0.82;
  letter-spacing: -0.05em;
  margin: 6px 14px 0 0;
  color: var(--ink);
}
/* Suppress the drop cap when the first paragraph leads with markup or an image —
   `:first-of-type` will still target it, so guard with a body class. */
.post-body--no-dropcap > p:first-of-type::first-letter {
  float: none;
  font-size: inherit;
  margin: 0;
  line-height: inherit;
  font-family: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}

/* Section headings (H2) — green 48x2 rule, balanced */
.post-body h2 {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 34px;
  letter-spacing: -0.022em;
  line-height: 1.15;
  margin: 56px 0 8px;
  text-wrap: balance;
  color: var(--ink);
}
.post-body h2::after {
  content: "";
  display: block;
  height: 2px;
  width: 48px;
  background: var(--rctv-green);
  margin: 12px 0 28px;
}
.post-body h3 {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.02em;
  line-height: 1.22;
  margin: 36px 0 12px;
}

.post-body a {
  color: var(--ink);
  background-image: linear-gradient(var(--rctv-green), var(--rctv-green));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  transition: background-size .2s;
}
.post-body a:hover { background-size: 100% 2px; }

.post-body em { font-style: italic; }
.post-body strong { font-weight: 600; color: var(--ink); }

/* Pull quote (shortcode + raw blockquote fallback) */
.post-body blockquote,
.post-body .pullquote {
  margin: 48px -60px;
  padding: 0 60px;
  border-left: 2px solid var(--rctv-green);
}
.post-body blockquote p,
.post-body .pullquote p {
  font-family: var(--ff-body);
  font-style: italic;
  font-weight: 400;
  font-size: 32px;
  letter-spacing: -0.015em;
  line-height: 1.24;
  color: var(--ink);
  text-wrap: balance;
  margin: 0;
}

.post-body hr {
  border: none;
  height: 1px;
  background: var(--rule);
  margin: 40px 0;
}

/* Inline figures — dark card surround to match infographic treatment. */
.post-body figure,
.post-body .figure {
  margin: 40px -60px 48px;
  background: var(--night);
  padding: 24px;
}
.post-body figure img { width: 100%; display: block; }
.post-body figure figcaption,
.post-body .figure figcaption {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--night-mute);
  text-transform: uppercase;
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

/* Inline images without figure wrapper — treat lightly. */
.post-body p img {
  margin: 24px 0;
  width: 100%;
}

/* Ordered and unordered lists */
.post-body ol,
.post-body ul {
  margin: 24px 0 32px;
  padding-left: 1.4em;
}
.post-body ol li,
.post-body ul li {
  margin-bottom: 10px;
  color: var(--ink);
}
.post-body ul li::marker { color: var(--rctv-green); }

/* Tables — editorial, not spreadsheet-y */
.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 16px;
  font-family: var(--ff-body);
  font-feature-settings: "tnum", "lnum";
}
.post-body table th,
.post-body table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule-soft);
  text-align: left;
  vertical-align: top;
}
.post-body table th {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  border-bottom: 1px solid var(--ink);
}

.post-body code {
  font-family: var(--ff-mono);
  font-size: 0.92em;
  background: var(--paper-edge);
  padding: 2px 6px;
  border-radius: 3px;
}
.post-body pre {
  background: var(--night);
  color: var(--night-ink);
  padding: 20px 24px;
  overflow-x: auto;
  font-family: var(--ff-mono);
  font-size: 14px;
  line-height: 1.5;
  margin: 32px -20px;
}
.post-body pre code {
  background: transparent;
  padding: 0;
  font-size: inherit;
}

/* ————————————————————————————————————————————
   Previously / Up next
   ———————————————————————————————————————————— */
.teasers {
  border-top: 1px solid var(--ink);
  padding: 40px var(--page-gutter) 32px;
  max-width: 1040px;
  margin: 0 auto;
}
.teasers__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 56px;
  row-gap: 32px;
}
.teasers__grid--single { grid-template-columns: 1fr; max-width: 640px; }
.teaser__eyebrow { margin-bottom: 12px; }
.teaser__title {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.015em;
  line-height: 1.22;
  margin-bottom: 8px;
}
.teaser__meta { }
.teasers__archive-link {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 14px;
  color: var(--rctv-green-dim);
}

/* ————————————————————————————————————————————
   List / archive pages
   ———————————————————————————————————————————— */
.list-page {
  padding: 64px var(--page-gutter) 48px;
  max-width: 960px;
  margin: 0 auto;
}
.list-page__title {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 56px;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 16px;
}
.list-page__dek {
  font-family: var(--ff-body);
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-bottom: 48px;
  max-width: 640px;
}

/* ————————————————————————————————————————————
   Responsive: mobile / tablet redraws (breakpoint 700)
   ———————————————————————————————————————————— */
@media (max-width: 999.98px) {
  .home-lead {
    grid-template-columns: 1fr;
    row-gap: 32px;
    padding: 48px var(--page-gutter) 48px;
  }
  .home-lead__title { font-size: 64px; }
  .home-lead__dek { font-size: 20px; }

  .home-index {
    grid-template-columns: 1fr 1fr;
    padding: 20px var(--page-gutter) 40px;
    column-gap: 24px;
    row-gap: 32px;
  }

  .landscape-band { padding: 48px var(--page-gutter); }
  .landscape-band__inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(240px, 1fr);
    grid-template-areas:
      "header  counter"
      "viz     counter";
    column-gap: 36px;
    row-gap: 28px;
    align-items: start;
  }
  .landscape-band__title { font-size: 52px; }
  .landscape-band__counter-num { font-size: 44px; }

  .post-header__title { font-size: 56px; }

  .archive__row {
    grid-template-columns: 70px 100px 1fr;
  }
  .archive__row .cta { display: none; }
}

@media (max-width: 699.98px) {
  :root {
    --page-gutter: var(--page-gutter-sm);
  }
  .home-lead { padding: 32px var(--page-gutter-sm) 28px; }
  .home-lead__title {
    font-size: 36px;
    letter-spacing: -0.040em;
    line-height: 1.00;
  }
  .home-lead__dek {
    font-size: 16.5px;
    line-height: 1.42;
    margin-bottom: 20px;
  }
  .home-lead__meta { gap: 10px; font-size: 10px; }
  .home-lead__meta .rule { width: 14px; }
  .home-lead__cta {
    display: block;
    text-align: center;
    padding: 14px 20px;
    width: 100%;
  }

  .section-bar { padding: 0 var(--page-gutter-sm); }
  .section-bar h4 { font-size: 12px; }

  .home-index {
    grid-template-columns: 1fr;
    padding: 16px var(--page-gutter-sm) 32px;
    gap: 28px;
  }
  .card__title { font-size: 22px; }
  .card__dek { font-size: 15px; }

  .landscape-band { padding: 40px var(--page-gutter-sm); }
  /* Counter-leads pattern: header → counter (hero) → grid band (demoted).
     Grid visual shrinks to a thin 2-row supporting band so the editorial
     claim (7/8) carries primary attention. */
  .landscape-band__inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "header"
      "counter"
      "viz";
    row-gap: 28px;
  }
  .landscape-band__title { font-size: 40px; }
  .landscape-band__dek { font-size: 17px; line-height: 1.5; }
  .landscape-band__counters { gap: 20px; }
  .landscape-band__counter { padding-bottom: 16px; }
  .landscape-band__counter-num { font-size: 48px; }
  .landscape-band__counter-label { font-size: 11px; }
  .landscape-band__counter-caption { font-size: 13px; }

  .landscape-band__cells {
    grid-template-columns: repeat(8, 1fr);
    grid-auto-rows: 12px;
    gap: 4px;
  }
  .landscape-band__cells .cell { aspect-ratio: auto; height: 12px; }
  .landscape-band__viz-legend { font-size: 9px; gap: 14px; }

  .landscape-band__foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-top: 32px;
  }
  .landscape-band__cta { width: 100%; text-align: center; padding: 14px; }

  .archive { padding: 48px var(--page-gutter-sm) 24px; }
  .archive__row {
    grid-template-columns: 60px 1fr;
    grid-template-rows: auto auto;
    row-gap: 4px;
    padding: 14px 0;
    column-gap: 12px;
  }
  .archive__row .kind {
    grid-column: 1 / 3;
    grid-row: 1;
    font-size: 10px;
  }
  .archive__row .date { grid-column: 1; grid-row: 2; }
  .archive__row .title {
    grid-column: 2;
    grid-row: 2;
    font-size: 19px;
  }

  .subscribe { padding: 40px var(--page-gutter-sm); }
  .subscribe__tagline { font-size: 28px; }
  .subscribe__form { min-width: 0; width: 100%; }
  .subscribe__form input[type="email"] { font-size: 16px; }

  .site-footer {
    padding: 24px var(--page-gutter-sm) 32px;
    font-size: 10px;
    gap: 8px;
    justify-content: flex-start;
  }

  .post-header { padding: 28px var(--page-gutter-sm) 26px; }
  .post-header__eyebrow { margin-bottom: 16px; font-size: 10px; letter-spacing: 0.2em; }
  .post-header__title {
    font-size: 40px;
    letter-spacing: -0.03em;
    line-height: 0.99;
    margin-bottom: 16px;
  }
  .post-header__dek {
    font-size: 17px;
    line-height: 1.42;
    margin-bottom: 20px;
  }
  .post-header__meta {
    gap: 10px;
    font-size: 10px;
    padding-top: 14px;
  }
  .post-header__meta .rule { width: 14px; }
  .post-header__meta .section-counter { margin-left: 0; }

  .post-body {
    padding: 28px var(--page-gutter-sm) 32px;
    font-size: 17px;
    line-height: 1.64;
  }
  .post-body > p { margin-bottom: 18px; }
  .post-body > p:first-of-type::first-letter {
    font-size: 60px;
    margin: 4px 10px 0 0;
  }
  .post-body h2 {
    font-size: 24px;
    margin-top: 36px;
  }
  .post-body h2::after { width: 36px; margin-top: 8px; margin-bottom: 20px; }
  .post-body h3 { font-size: 20px; margin-top: 28px; }

  .post-body blockquote,
  .post-body .pullquote {
    margin: 28px 0;
    padding: 0 0 0 16px;
  }
  .post-body blockquote p,
  .post-body .pullquote p {
    font-size: 22px;
    letter-spacing: -0.012em;
    line-height: 1.26;
  }
  .post-body figure,
  .post-body .figure {
    margin: 26px calc(-1 * var(--page-gutter-sm)) 28px;
    padding: 14px;
  }

  .post-body table { font-size: 14px; display: block; overflow-x: auto; }

  .teasers { padding: 24px var(--page-gutter-sm) 20px; }
  .teasers__grid {
    grid-template-columns: 1fr;
    row-gap: 24px;
    column-gap: 0;
  }
  .teaser__title { font-size: 19px; }

  .list-page { padding: 40px var(--page-gutter-sm); }
  .list-page__title { font-size: 40px; }
  .list-page__dek { font-size: 17px; }
}

/* Tablet refinements 700–999 */
@media (min-width: 700px) and (max-width: 999.98px) {
  .home-lead__title { font-size: 56px; }
  .post-header__title { font-size: 56px; }
  .post-body { padding-left: 28px; padding-right: 28px; font-size: 18px; line-height: 1.6; }
  .post-body > p:first-of-type::first-letter { font-size: 72px; }
  .post-body blockquote,
  .post-body .pullquote {
    margin: 36px -28px;
    padding: 0 28px;
  }
  .post-body blockquote p,
  .post-body .pullquote p { font-size: 26px; }
  .post-body figure,
  .post-body .figure {
    margin: 32px -28px 36px;
    padding: 18px;
  }
}

/* ————————————————————————————————————————————
   Print (minimal — we don't push print, but don't break it)
   ———————————————————————————————————————————— */
@media print {
  body { background: white; color: black; }
  .masthead, .site-footer, .subscribe, .teasers, .landscape-band__cta,
  .home-lead__cta, .progress-rail { display: none !important; }
  .post-body { max-width: none; padding: 0; }
}
