:root {
  --paper: #090b10;
  --panel: #121720;
  --ink: #eef2f6;
  --muted: #9aa5b4;
  --quiet: #667085;
  --line: #263142;
  --line-strong: #3a4658;
  --cyan: #4cc9f0;
  --rust: #ff7a4f;
  --olive: #b8d66f;
  --gold: #ffbf5f;
  --font-ui: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: Newsreader, Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 191, 95, 0.045), transparent 320px),
    linear-gradient(90deg, rgba(238, 242, 246, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 96px 96px, auto;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-underline-offset: 4px;
}

button {
  font: inherit;
}

.site-top,
main,
.site-foot {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 18px;
}

.brand,
.top-nav,
.issue-line,
.eyebrow,
.panel-kicker,
.action-link,
.filter-button {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--rust) 0 3px, transparent 4px),
    conic-gradient(from 180deg, var(--cyan), var(--olive), var(--rust), var(--cyan));
}

.top-nav,
.hero-actions,
.filters,
.site-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.top-nav {
  color: var(--muted);
}

.top-nav a[aria-current="page"] {
  color: var(--gold);
}

.top-nav a:hover,
.action-link:hover,
.story-source:hover,
.site-foot a:hover {
  color: var(--gold);
}

.top-nav a:focus-visible,
.action-link:focus-visible,
.story-source:focus-visible,
.filter-button:focus-visible,
.site-foot a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.power-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.74fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: 48px 0 42px;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  align-self: center;
}

.issue-line {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 14px;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 26px;
  padding: 9px 0;
  border-top: 1px solid rgba(238, 242, 246, 0.18);
  border-bottom: 1px solid rgba(238, 242, 246, 0.18);
  color: var(--muted);
}

.eyebrow,
.panel-kicker {
  margin: 0 0 12px;
  color: var(--gold);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-family: var(--font-display);
  font-size: clamp(46px, 7vw, 84px);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.2;
}

.standfirst {
  max-width: 710px;
  margin-bottom: 26px;
  color: #d8e0ea;
  font-family: var(--font-display);
  font-size: clamp(21px, 2.5vw, 30px);
  line-height: 1.12;
}

.action-link,
.filter-button {
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(18, 23, 32, 0.72);
  color: var(--ink);
  padding: 10px 14px;
  text-decoration: none;
  cursor: pointer;
}

.filter-button.is-active {
  background: var(--gold);
  color: #14100a;
  border-color: var(--gold);
}

.hero-photo,
.story,
.thesis-panel,
.source-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 23, 32, 0.72);
}

.hero-photo {
  margin: 0;
  overflow: hidden;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: clamp(420px, 64vh, 680px);
  object-fit: cover;
}

.hero-photo figcaption {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.hero-photo figcaption span:first-child {
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.run-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.run-strip div {
  padding: 20px 18px;
  border-right: 1px solid var(--line);
}

.run-strip div:last-child {
  border-right: 0;
}

.run-strip span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.run-strip strong {
  display: block;
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 600;
  line-height: 1;
}

.power-map,
.signals-section,
.source-section {
  padding: 46px 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(180px, 0.38fr) minmax(0, 1fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 26px;
}

.map-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 24px;
}

.bars {
  display: grid;
  gap: 14px;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.22fr) minmax(0, 1fr) 42px;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.bar-label {
  font-weight: 800;
}

.bar-track {
  height: 18px;
  background: rgba(238, 242, 246, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  display: block;
  height: 100%;
  width: var(--w, 0%);
  background: linear-gradient(90deg, var(--gold), var(--rust));
  border-radius: inherit;
  transition: width 420ms ease;
}

.bar-count {
  color: var(--muted);
  font-weight: 800;
  text-align: right;
}

.thesis-panel {
  padding: 20px;
}

.thesis-panel p:last-child {
  margin-bottom: 0;
  color: #d8e0ea;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.2;
}

.filters {
  margin-bottom: 24px;
}

.story-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.story {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 260px;
  padding: 18px;
}

.story-meta {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story p {
  color: var(--muted);
}

.story-source {
  margin-top: auto;
  font-weight: 800;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 24px;
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.source-card {
  padding: 18px;
}

.source-card a {
  word-break: break-word;
}

.site-foot {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 42px 0;
  color: var(--muted);
}

.site-foot strong {
  color: var(--ink);
}

.site-foot p {
  margin: 8px 0 0;
}

@media (max-width: 900px) {
  .power-hero,
  .map-grid,
  .section-head {
    grid-template-columns: 1fr;
  }

  .hero-photo img {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .run-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .run-strip div:nth-child(2) {
    border-right: 0;
  }

  .bar-row {
    grid-template-columns: 1fr;
  }

  .bar-count {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .site-top,
  .site-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .issue-line {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .run-strip {
    grid-template-columns: 1fr;
  }

  .run-strip div {
    border-right: 0;
  }
}

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