/* ============================================================
   MTF Newsroom — editorial / wire-service aesthetic
   ============================================================ */

:root {
  --red: #c8102e;
  --red-deep: #9a0a23;
  --red-tint: #fdecef;
  --ink: #0a0a0a;
  --ink-soft: #1d1d1d;
  --ash: #5a5a5a;
  --ash-light: #8a8a8a;
  --rule: #d9d9d9;
  --rule-soft: #ececec;
  --paper: #ffffff;
  --paper-warm: #fafaf7;
  --bg-soft: #f3f3f1;
  --bg-deep: #111;
  --shadow-flat: 0 1px 0 var(--rule);

  --display: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --condensed: "Oswald", "Arial Narrow", sans-serif;
  --serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;

  --content: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--serif);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1;
}

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

::selection { background: var(--red); color: #fff; }

.shell {
  width: min(calc(100% - 2rem), var(--content));
  margin: 0 auto;
}

/* ============================================================
   TOP UTILITY STRIP — black ribbon, ticker, timestamp
   ============================================================ */

.utility-bar {
  background: var(--bg-deep);
  color: #c9c9c9;
  font-family: var(--condensed);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-bottom: 3px solid var(--red);
}

.utility-bar .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
}

.utility-bar .ticker {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--red);
  color: #fff;
  padding: 0.2rem 0.55rem;
  font-weight: 600;
  letter-spacing: 0.22em;
}

.live-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.ticker-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #d8d8d8;
}

.utility-meta {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  flex-shrink: 0;
}

.utility-meta a:hover { color: #fff; }

/* ============================================================
   MASTHEAD — wordmark + section nav
   ============================================================ */

.masthead {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 30;
}

.masthead .shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 0.75rem 0;
}

.brand {
  display: inline-flex;
  align-items: stretch;
  font-family: var(--condensed);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-mark {
  background: var(--red);
  color: #fff;
  padding: 0.55rem 0.7rem 0.45rem;
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: 0.06em;
}

.brand-tail {
  background: var(--ink);
  color: #fff;
  padding: 0.55rem 0.75rem 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
}

.masthead-tagline {
  font-family: var(--condensed);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.72rem;
  color: var(--ash);
  border-left: 1px solid var(--rule);
  padding-left: 1rem;
  justify-self: start;
}

.masthead-actions {
  display: flex;
  gap: 0.65rem;
  font-family: var(--condensed);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
}

.masthead-actions .pill {
  border: 1px solid var(--ink);
  padding: 0.45rem 0.8rem;
  background: var(--paper);
  transition: background 120ms ease, color 120ms ease;
}

.masthead-actions .pill:hover { background: var(--ink); color: #fff; }

.masthead-actions .pill.red {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.masthead-actions .pill.red:hover { background: var(--red-deep); border-color: var(--red-deep); }

/* Section nav row */

.section-nav {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  font-family: var(--condensed);
  text-transform: uppercase;
}

.section-nav .shell {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.section-nav .shell::-webkit-scrollbar { display: none; }

.section-nav a {
  position: relative;
  padding: 0.85rem 1.1rem;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  white-space: nowrap;
  border-right: 1px solid var(--rule-soft);
  transition: color 120ms ease;
}

.section-nav a:first-child { padding-left: 0; }

.section-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 160ms ease;
}

.section-nav a:hover::after,
.section-nav a.active::after { transform: scaleX(1); }
.section-nav a:hover { color: var(--red); }
.section-nav a.active { color: var(--ink); font-weight: 600; }

/* ============================================================
   MAIN LAYOUT
   ============================================================ */

main {
  padding: 1.75rem 0 4rem;
}

.section {
  padding: 1.5rem 0;
}

.section + .section {
  border-top: 1px solid var(--rule-soft);
  margin-top: 0.75rem;
}

.rail-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1.1rem;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid var(--ink);
}

.rail-head h2 {
  font-family: var(--condensed);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  position: relative;
  padding-left: 0.9rem;
}

.rail-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background: var(--red);
}

.rail-head .more {
  font-family: var(--condensed);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--red);
}

.rail-head .more:hover { color: var(--red-deep); }

/* ============================================================
   HERO — featured lead story + side rail
   ============================================================ */

.lead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 2.25rem;
  align-items: start;
}

.lead-story {
  display: grid;
  gap: 0.9rem;
}

.lead-art {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.55) 100%),
    url("/static/images/placeholder-portrait.svg") center 18%/cover no-repeat,
    #1d0509;
  box-shadow: inset 0 -120px 120px rgba(10,5,8,0.55);
}

.lead-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 6px);
  pointer-events: none;
}

.lead-art::after {
  content: "MTF · DISPATCH";
  position: absolute;
  left: 1rem;
  bottom: 0.75rem;
  font-family: var(--condensed);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
}

.lead-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--red);
  color: #fff;
  font-family: var(--condensed);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  padding: 0.4rem 0.7rem;
  z-index: 2;
}

.eyebrow {
  font-family: var(--condensed);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  color: var(--red);
  font-weight: 600;
}

.lead-story h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.2rem, 4.6vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 0;
}

.lead-story h1 a:hover { color: var(--red); }

.lead-dek {
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--ash);
  margin: 0;
  max-width: 60ch;
}

.lead-byline {
  font-family: var(--condensed);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  color: var(--ash);
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.lead-byline .sep { color: var(--rule); }
.lead-byline strong { color: var(--ink); font-weight: 600; }

.lead-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.4rem;
  font-family: var(--condensed);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--ink);
  border-bottom: 2px solid var(--red);
  padding-bottom: 0.15rem;
  width: fit-content;
  transition: color 120ms ease, gap 160ms ease;
}

.lead-cta::after { content: "→"; font-size: 0.95rem; }
.lead-cta:hover { color: var(--red); gap: 0.85rem; }

/* Side rail — top stories */

.rail {
  border-left: 1px solid var(--rule);
  padding-left: 1.5rem;
  display: grid;
  gap: 0;
}

.rail-item {
  display: grid;
  grid-template-columns: 1fr 80px;
  gap: 0.9rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--rule-soft);
  align-items: start;
}

.rail-item:first-of-type { padding-top: 0; }
.rail-item:last-of-type { border-bottom: 0; }

.rail-item h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.005em;
}

.rail-item h3 a:hover { color: var(--red); }

.rail-item .meta {
  font-family: var(--condensed);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.66rem;
  color: var(--ash);
  margin-top: 0.4rem;
}

.rail-item .meta .cat { color: var(--red); font-weight: 600; }

.rail-thumb {
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(10,5,8,0.15), rgba(10,5,8,0.6)),
    url("/static/images/placeholder-portrait.svg") center 15%/cover no-repeat,
    #1d0509;
}

.rail-thumb.v1::before { background: rgba(200,16,46,0.35); }
.rail-thumb.v2::before { background: rgba(10,10,10,0.5); }
.rail-thumb.v3::before { background: rgba(216,180,117,0.25); }
.rail-thumb.v4::before { background: rgba(0,0,0,0.55); }

.rail-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  mix-blend-mode: multiply;
}

.rail-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 2px, transparent 2px 6px);
}

/* ============================================================
   STORY RIVER — 3-up grid
   ============================================================ */

.river-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 2rem;
}

.river-card {
  display: grid;
  gap: 0.65rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule-soft);
}

.river-art {
  aspect-ratio: 16 / 11;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.1), rgba(0,0,0,0.55)),
    url("/static/images/placeholder-portrait.svg") center 18%/cover no-repeat,
    #1d0509;
}

.river-art.a::before { background: rgba(200,16,46,0.4); }
.river-art.b::before { background: rgba(10,10,10,0.55); }
.river-art.c::before { background: rgba(216,180,117,0.2); }
.river-art.d::before { background: rgba(44,74,58,0.4); }

.river-art::before {
  content: "";
  position: absolute;
  inset: 0;
  mix-blend-mode: multiply;
}

.river-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 2px, transparent 2px 7px);
}

.river-tag {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  background: rgba(0,0,0,0.85);
  color: #fff;
  font-family: var(--condensed);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.66rem;
  padding: 0.3rem 0.55rem;
  z-index: 1;
}

.river-card h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.32rem;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0;
}

.river-card h3 a:hover { color: var(--red); }

.river-card p {
  font-family: var(--serif);
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--ash);
  margin: 0;
}

.river-meta {
  font-family: var(--condensed);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: var(--ash);
}

.river-meta .cat {
  color: var(--red);
  font-weight: 600;
  margin-right: 0.5rem;
  border-right: 1px solid var(--rule);
  padding-right: 0.55rem;
}

/* ============================================================
   SECTION CARDS — supporting pages (architecture row)
   ============================================================ */

.dossier-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 2.5rem;
  align-items: start;
}

.dossier-intro h2 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.04;
  letter-spacing: -0.012em;
  margin: 0.4rem 0 0.8rem;
}

.dossier-intro p {
  font-family: var(--serif);
  font-size: 1.04rem;
  line-height: 1.65;
  color: var(--ash);
}

.dossier-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--ink);
}

.dossier-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 1.1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--rule-soft);
  align-items: baseline;
  transition: background 120ms ease, padding 160ms ease;
}

.dossier-row:hover {
  background: var(--bg-soft);
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.dossier-row:hover .dossier-arrow { transform: translateX(4px); color: var(--red); }

.dossier-num {
  font-family: var(--condensed);
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  color: var(--red);
  font-weight: 600;
}

.dossier-row h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.18rem;
  margin: 0 0 0.25rem;
  letter-spacing: -0.005em;
}

.dossier-row p {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--ash);
  margin: 0;
}

.dossier-arrow {
  font-family: var(--condensed);
  font-size: 1.2rem;
  color: var(--ink);
  transition: transform 180ms ease, color 180ms ease;
}

/* ============================================================
   BLOG INDEX — news list
   ============================================================ */

.page-banner {
  background: var(--ink);
  color: #fff;
  padding: 2.5rem 0;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.page-banner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--red);
}

.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 8px);
  pointer-events: none;
}

.page-banner .eyebrow {
  color: #ffb0bb;
  margin-bottom: 0.5rem;
}

.page-banner h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.015em;
  margin: 0;
  max-width: 18ch;
}

.page-banner p {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.55;
  color: #c9c9c9;
  margin-top: 0.9rem;
  max-width: 60ch;
}

.news-list {
  display: grid;
  gap: 0;
  margin-top: 1rem;
}

.news-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.8rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule-soft);
  align-items: start;
}

.news-row:first-child { border-top: 2px solid var(--ink); padding-top: 1.5rem; }

.news-art {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.55)),
    url("/static/images/placeholder-portrait.svg") center 18%/cover no-repeat,
    #1d0509;
}

.news-art.v1::before { background: rgba(200,16,46,0.35); }
.news-art.v2::before { background: rgba(10,10,10,0.55); }
.news-art.v3::before { background: rgba(216,180,117,0.2); }
.news-art.v4::before { background: rgba(26,58,58,0.35); }
.news-art.v5::before { background: rgba(74,9,21,0.4); }

.news-art::before {
  content: "";
  position: absolute;
  inset: 0;
  mix-blend-mode: multiply;
}

.news-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 2px, transparent 2px 7px);
}

.news-art .cat-stamp {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  background: var(--red);
  color: #fff;
  font-family: var(--condensed);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.66rem;
  padding: 0.3rem 0.55rem;
  z-index: 1;
}

.news-row h2 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  line-height: 1.12;
  letter-spacing: -0.012em;
  margin: 0.1rem 0 0.55rem;
}

.news-row h2 a:hover { color: var(--red); }

.news-row p {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ash);
  margin: 0 0 0.7rem;
}

.news-meta {
  font-family: var(--condensed);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--ash);
  display: flex;
  gap: 0.7rem;
  align-items: center;
}

.news-meta .cat { color: var(--red); font-weight: 600; }
.news-meta .sep { color: var(--rule); }

/* ============================================================
   BLOG POST — article body
   ============================================================ */

.article-shell {
  width: min(calc(100% - 2rem), 780px);
  margin: 0 auto;
}

.article-head {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1.4rem;
  margin-bottom: 2rem;
}

.article-head .eyebrow { margin-bottom: 0.6rem; }

.article-head h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.018em;
  margin: 0 0 0.9rem;
}

.article-dek {
  font-family: var(--serif);
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--ash);
  margin: 0 0 1.2rem;
  font-style: italic;
}

.article-byline {
  font-family: var(--condensed);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  color: var(--ash);
  display: flex;
  gap: 0.8rem;
  align-items: center;
  flex-wrap: wrap;
}

.article-byline .by { color: var(--red); font-weight: 600; }
.article-byline strong { color: var(--ink); font-weight: 600; }
.article-byline .sep { color: var(--rule); }

.article-hero {
  aspect-ratio: 16 / 9;
  margin: 0 0 2rem;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.65)),
    url("/static/images/placeholder-portrait.svg") center 18%/cover no-repeat,
    #1d0509;
}

.article-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 2px, transparent 2px 7px);
}

.article-hero figcaption {
  position: absolute;
  bottom: 0.8rem;
  left: 1rem;
  right: 1rem;
  color: rgba(255,255,255,0.85);
  font-family: var(--condensed);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.68rem;
  z-index: 2;
}

.prose {
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

.prose p { margin: 0 0 1.3rem; }

.prose p:first-of-type::first-letter {
  font-family: var(--display);
  font-weight: 900;
  font-size: 4.2rem;
  line-height: 0.85;
  float: left;
  padding: 0.35rem 0.7rem 0 0;
  color: var(--red);
}

.article-foot {
  margin-top: 2.5rem;
  padding-top: 1.4rem;
  border-top: 2px solid var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--condensed);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  color: var(--ash);
}

.article-foot a { color: var(--red); }
.article-foot a:hover { color: var(--red-deep); }

/* ============================================================
   STANDARD PAGE (about/bio/etc)
   ============================================================ */

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
  margin-top: 0.5rem;
}

.page-sections {
  display: grid;
  gap: 0;
  border-top: 2px solid var(--ink);
}

.page-section {
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--rule-soft);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.page-section .num {
  font-family: var(--condensed);
  font-size: 1.6rem;
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0.02em;
  border-top: 3px solid var(--red);
  padding-top: 0.45rem;
}

.page-section h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  line-height: 1.15;
  margin: 0 0 0.65rem;
  letter-spacing: -0.008em;
}

.page-section p {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ash);
  margin: 0;
}

.fact-box {
  border: 1px solid var(--rule);
  background: var(--paper-warm);
  padding: 1.3rem;
  position: relative;
}

.fact-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--red);
}

.fact-box h3 {
  font-family: var(--condensed);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.82rem;
  margin: 0 0 0.8rem;
  color: var(--ink);
}

.fact-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

.fact-box li {
  font-family: var(--serif);
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ash);
  padding-left: 0.85rem;
  border-left: 1px solid var(--rule);
}

.fact-box li strong {
  display: block;
  font-family: var(--condensed);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.68rem;
  color: var(--red);
  margin-bottom: 0.2rem;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--ink);
  color: #b8b8b8;
  margin-top: 4rem;
  padding: 3rem 0 1.5rem;
  border-top: 4px solid var(--red);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-grid h4 {
  font-family: var(--condensed);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  color: #fff;
  margin: 0 0 0.85rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid #2a2a2a;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
  font-family: var(--condensed);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
}

.footer-grid li a:hover { color: #fff; }

.footer-grid .footer-brand .brand {
  margin-bottom: 0.9rem;
}

.footer-grid .footer-brand p {
  font-family: var(--serif);
  font-size: 0.92rem;
  line-height: 1.55;
  color: #9a9a9a;
}

.colophon {
  border-top: 1px solid #2a2a2a;
  padding-top: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-family: var(--condensed);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: #6a6a6a;
}

/* ============================================================
   FORMS — admin login + post create
   ============================================================ */

.login-wrap {
  max-width: 440px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.login-wrap .brand-mark { margin-bottom: 1.5rem; }

.admin-card,
.login-card {
  border: 1px solid var(--rule);
  background: var(--paper);
  padding: 1.6rem;
}

.admin-card h2,
.login-card h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.45rem;
  margin: 0 0 0.4rem;
}

form { display: grid; gap: 0.9rem; margin-top: 0.6rem; }

label {
  font-family: var(--condensed);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--ink);
  display: grid;
  gap: 0.35rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--rule);
  background: var(--paper);
  padding: 0.75rem 0.85rem;
  font: inherit;
  font-family: var(--serif);
  font-size: 1rem;
  border-radius: 0;
  transition: border-color 120ms ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--red);
}

textarea { min-height: 160px; resize: vertical; }

button,
.button {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: var(--condensed);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.82rem;
  padding: 0.85rem 1.4rem;
  background: var(--red);
  color: #fff;
  border-radius: 0;
  transition: background 120ms ease;
}

button:hover,
.button:hover { background: var(--red-deep); }

.button-ghost {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink);
}

.button-ghost:hover { background: var(--ink); color: #fff; }

.warning,
.error {
  font-family: var(--condensed);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  padding: 0.7rem 0.9rem;
  border-left: 4px solid var(--red);
  background: var(--red-tint);
  color: var(--red-deep);
}

.error { background: #fee; }

.empty-state {
  font-family: var(--serif);
  padding: 1.2rem;
  border: 1px dashed var(--rule);
  color: var(--ash);
}

/* admin-specific */

.admin-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin: 0.6rem 0 1.2rem;
}

.stats-grid .stat {
  border-top: 3px solid var(--red);
  padding: 0.8rem 0;
}

.stats-grid .stat strong {
  display: block;
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.8rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.stats-grid .stat span {
  font-family: var(--condensed);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  color: var(--ash);
}

.meta-list,
.plain-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
  font-family: var(--serif);
}

.visit-item,
.post-card {
  padding: 0.7rem 0;
  border-top: 1px solid var(--rule-soft);
  font-family: var(--serif);
  font-size: 0.95rem;
}

.visit-item:first-child,
.post-card:first-child { border-top: 0; }

/* ============================================================
   ENTRANCE ANIMATIONS — restrained, one-time on load
   ============================================================ */

@media (prefers-reduced-motion: no-preference) {
  .lead-story > *,
  .rail-item,
  .river-card,
  .dossier-row,
  .news-row {
    animation: rise 600ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .lead-story > *:nth-child(1) { animation-delay: 0ms; }
  .lead-story > *:nth-child(2) { animation-delay: 60ms; }
  .lead-story > *:nth-child(3) { animation-delay: 120ms; }
  .lead-story > *:nth-child(4) { animation-delay: 180ms; }
  .lead-story > *:nth-child(5) { animation-delay: 240ms; }

  .rail-item:nth-child(1) { animation-delay: 100ms; }
  .rail-item:nth-child(2) { animation-delay: 180ms; }
  .rail-item:nth-child(3) { animation-delay: 260ms; }
  .rail-item:nth-child(4) { animation-delay: 340ms; }

  .river-card:nth-child(1) { animation-delay: 0ms; }
  .river-card:nth-child(2) { animation-delay: 90ms; }
  .river-card:nth-child(3) { animation-delay: 180ms; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 880px) {
  .lead-grid,
  .dossier-grid,
  .page-grid,
  .admin-grid { grid-template-columns: 1fr; }
  .rail { border-left: 0; padding-left: 0; border-top: 2px solid var(--ink); padding-top: 1rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .masthead .shell {
    grid-template-columns: auto auto;
    row-gap: 0.5rem;
  }
  .masthead-tagline { display: none; }
  .river-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .news-row { grid-template-columns: 110px 1fr; gap: 1rem; }
  .news-row h2 { font-size: 1.15rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .page-section { grid-template-columns: 50px 1fr; gap: 0.9rem; }
  .utility-meta a:not(.live-dot) { display: none; }
  .utility-bar .shell { gap: 0.5rem; }
}

.prose .post-image { margin: 1.5rem 0; }
.prose .post-image img { display: block; width: 100%; height: auto; border-radius: 4px; }
.prose h2 { font-family: var(--display, serif); margin: 2rem 0 0.6rem; font-size: 1.4rem; }

.article-hero-image { margin: 0 0 2rem; padding: 0; background: none; border: 0; aspect-ratio: auto; overflow: visible; }
.article-hero-image::after { content: none; }
.article-hero-image img { display: block; width: 100%; height: auto; border-radius: 4px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.8rem;
}
.news-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--rule-soft, #e5e5e5);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.news-card-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f3f0eb;
  position: relative;
}
.news-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.news-card-thumb-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display, "Oswald", sans-serif);
  font-weight: 800;
  font-size: 2.4rem;
  letter-spacing: 0.08em;
  color: #c8102e;
  background: linear-gradient(135deg, #f3f0eb 0%, #e7e2d8 100%);
}
.news-card-body {
  padding: 1.1rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.news-card-date {
  font-family: var(--condensed, "Oswald", sans-serif);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--ash, #707070);
}
.news-card-title {
  font-family: var(--display, "Libre Franklin", sans-serif);
  font-size: 1.25rem;
  line-height: 1.25;
  margin: 0;
}
.news-card-title a {
  color: var(--ink, #111);
  text-decoration: none;
}
.news-card-title a:hover {
  color: #c8102e;
}
.news-card-excerpt {
  font-family: var(--serif, "Source Serif 4", serif);
  color: #444;
  font-size: 0.95rem;
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-more {
  margin-top: auto;
  font-family: var(--condensed, "Oswald", sans-serif);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: #c8102e;
  text-decoration: none;
  padding-top: 0.4rem;
}
.news-card-more:hover { text-decoration: underline; }
