:root {
  --bg: #0d1321;
  --surface: #151f36;
  --surface-deep: #111a2d;
  --surface-2: #edf2f7;
  --text: #f7f9fc;
  --text-dark: #0d1321;
  --muted: #99a7c2;
  --primary: #ff6b35;
  --secondary: #16c1d8;
  --accent: #f9c80e;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 18px 40px rgba(1, 8, 20, 0.35);
  --radius: 22px;
  --radius-sm: 14px;
  --space-1: 10px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 36px;
  --space-5: 52px;
  --space-6: 72px;
  --max-width: 1200px;
  --font-display: "Archivo Condensed", "Arial Narrow", sans-serif;
  --font-body: "Manrope", Arial, sans-serif;
  --font-meta: "IBM Plex Mono", monospace;
}

* { box-sizing: border-box; }
html { background: radial-gradient(circle at top, #1b2a4d 0%, var(--bg) 45%); }
body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  background:
    linear-gradient(145deg, rgba(255, 107, 53, 0.08), transparent 40%),
    linear-gradient(320deg, rgba(22, 193, 216, 0.08), transparent 40%),
    var(--bg);
}
a { color: inherit; text-decoration: none; }
p { line-height: 1.6; }

.site-shell { width: min(var(--max-width), calc(100% - 32px)); margin: 0 auto; padding: var(--space-3) 0 var(--space-6); }
.site-header, .site-footer, .hero-grid, .content-grid, .article-grid { display: grid; gap: 24px; }
.site-header {
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(15, 22, 40, 0.82);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 16px;
  z-index: 5;
}
.brand {
  font-family: var(--font-display);
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.site-nav { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.site-nav a, .chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 12px;
  font-family: var(--font-meta);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.site-nav a:hover, .chip:hover { background: rgba(255, 107, 53, 0.18); }

.hero-grid, .content-grid, .article-grid { grid-template-columns: minmax(0, 2.15fr) minmax(300px, 0.95fr); margin-top: var(--space-5); align-items: start; }
.hero-card, .summary-panel, .story-card, .spotlight-card, .mini-card, .page-header, .byline-card, .poll-card, .rail-section, .message, .site-footer {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  box-shadow: var(--shadow);
}
.hero-card {
  padding: var(--space-5);
  min-height: 420px;
  background:
    linear-gradient(160deg, rgba(255, 107, 53, 0.28), transparent 45%),
    linear-gradient(220deg, rgba(22, 193, 216, 0.2), transparent 40%),
    rgba(18, 26, 46, 0.94);
}
.hero-card h1, .page-header h1, .article-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  line-height: 0.95;
  margin: 0 0 16px;
  text-transform: uppercase;
}
.hero-summary { font-size: 1.1rem; max-width: 48ch; }
.summary-panel, .page-header, .story-card, .spotlight-card, .mini-card, .byline-card, .poll-card, .rail-section {
  padding: 24px;
}
.summary-panel { padding: 30px; min-height: 100%; }
.summary-panel ul { margin: var(--space-2) 0 0; padding-left: 18px; }
.summary-panel li + li { margin-top: var(--space-1); }
.story-card h2, .story-card h3, .spotlight-card h3, .mini-card h4, .poll-card h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 1;
  margin: 0 0 12px;
}
.section-band { margin-top: var(--space-6); padding: 8px 0 0; }
.section-heading h2 { margin: 0; font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.8rem, 4vw, 3rem); }
.eyebrow, .meta-row {
  font-family: var(--font-meta);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}
.meta-row { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); }
.meta-label {
  font-family: var(--font-meta);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}
.chip-row, .card-stack, .stacked-mini-cards, .message-stack { display: grid; gap: var(--space-2); }
.chip-row { grid-template-columns: repeat(auto-fit, minmax(140px, max-content)); }
.content-grid .card-stack { gap: 24px; }
.sidebar-rail { display: grid; gap: 18px; align-content: start; }
.spotlight-card, .stacked-mini-cards, .rail-section { background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)), rgba(14, 21, 37, 0.9); }
.rail-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}
.rail-link:first-of-type { border-top: 0; padding-top: 0; }
.rail-link span:first-child {
  font-weight: 700;
  line-height: 1.4;
}
.rail-link-arrow {
  flex: 0 0 auto;
  font-family: var(--font-meta);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.article-layout { margin-top: var(--space-5); }
.article-header { max-width: 900px; display: grid; gap: var(--space-2); margin-bottom: var(--space-4); }
.subtitle { font-size: 1.15rem; color: var(--muted); }
.article-body {
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(14, 22, 38, 0.9);
}
.prose h2, .prose h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  margin-top: var(--space-4);
  margin-bottom: 12px;
}
.prose p { margin: 0 0 18px; line-height: 1.75; max-width: 66ch; }
.prose ul { padding-left: 18px; margin: 0 0 18px; }
.prose li + li { margin-top: 8px; }
.prose { font-size: 1rem; }
.poll-option {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 10px;
}
button {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), #ff945e);
  color: white;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
}
.site-footer {
  grid-template-columns: 1.2fr 1fr;
  margin-top: var(--space-6);
  padding: 30px;
  background:
    linear-gradient(160deg, rgba(255, 107, 53, 0.1), transparent 45%),
    linear-gradient(210deg, rgba(22, 193, 216, 0.08), transparent 35%),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015)),
    rgba(17, 26, 45, 0.94);
}
.footer-intro strong {
  display: block;
  margin: 8px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-transform: uppercase;
  line-height: 0.95;
}
.footer-intro p:last-child {
  max-width: 36ch;
  margin-bottom: 0;
  color: #c0cadb;
}
.footer-links { display: grid; gap: 12px; align-content: start; }
.footer-link-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(10, 17, 31, 0.42);
}
.footer-link-card span:first-child {
  font-weight: 700;
  line-height: 1.35;
}
.footer-link-arrow {
  flex: 0 0 auto;
  font-family: var(--font-meta);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.message-stack { margin-top: 16px; }
.message { padding: 14px 18px; }

.story-card {
  padding: 28px 26px 30px;
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018)), rgba(15, 23, 39, 0.95);
}

.story-card h2,
.story-card h3 {
  margin-bottom: 14px;
}

.story-card p:last-child {
  color: #b7c2d8;
  line-height: 1.65;
}

.story-card p:last-child,
.spotlight-card p:last-child,
.mini-card p:last-child,
.byline-card p:last-child,
.rail-section p:last-child {
  margin-bottom: 0;
}

.spotlight-card {
  padding: 26px;
  min-height: 190px;
}

.mini-card {
  padding: 20px;
}

.page-header {
  margin-top: var(--space-5);
  padding: 32px;
  max-width: 980px;
}

.hub-header {
  max-width: none;
}

.page-header p:last-child {
  max-width: 60ch;
}

.hub-list {
  margin-top: var(--space-3);
}

.error-page {
  display: grid;
  gap: 18px;
  min-height: 340px;
  align-content: center;
}

.error-page p {
  max-width: 44ch;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.article-grid {
  gap: 34px;
}

.byline-card,
.poll-card,
.rail-section {
  padding: 24px;
}

.byline-card {
  background:
    linear-gradient(160deg, rgba(22, 193, 216, 0.1), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)),
    rgba(16, 25, 42, 0.92);
}

.article-header .summary-panel {
  max-width: 760px;
  padding: 22px 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018)), rgba(18, 27, 46, 0.84);
}

.article-header .meta-row {
  gap: 10px 14px;
  color: #c2cedf;
}

.article-header .meta-row span:first-child {
  color: var(--text);
  font-weight: 700;
}

.article-dek p {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.7;
  color: #d5deec;
}

.article-taxonomy {
  display: grid;
  gap: 10px;
}

.topic-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.topic-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: #d8e2f0;
  font-family: var(--font-meta);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.topic-link:hover,
.footer-link-card:hover {
  border-color: rgba(255, 107, 53, 0.45);
  background: rgba(255, 107, 53, 0.08);
}

.content-grid {
  margin-top: calc(var(--space-6) - 8px);
}

.content-grid > div > .section-heading {
  margin-bottom: 18px;
}

.homepage-lead .meta-row span:first-child {
  color: #cfd8e8;
}

.pulse-panel {
  background:
    linear-gradient(150deg, rgba(22, 193, 216, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02)),
    rgba(17, 26, 44, 0.92);
}

.pulse-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.pulse-list li + li {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pulse-list a {
  display: block;
  font-weight: 700;
  line-height: 1.45;
}

.homepage-topics .section-heading {
  margin-bottom: 18px;
}

.topic-lane-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.topic-lane-card {
  display: grid;
  gap: 8px;
  min-height: 116px;
  padding: 18px 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    linear-gradient(165deg, rgba(255, 107, 53, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015)),
    rgba(15, 23, 39, 0.93);
}

.topic-lane-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 0.98;
  text-transform: uppercase;
}

.topic-lane-count {
  align-self: end;
  font-family: var(--font-meta);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cad5e7;
}

.topic-lane-card:hover {
  border-color: rgba(255, 107, 53, 0.4);
  background:
    linear-gradient(165deg, rgba(255, 107, 53, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)),
    rgba(15, 23, 39, 0.96);
}

.homepage-coverage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.feature-story {
  grid-column: 1 / -1;
  padding: 30px 28px 32px;
  background:
    linear-gradient(165deg, rgba(255, 107, 53, 0.1), transparent 40%),
    linear-gradient(200deg, rgba(22, 193, 216, 0.08), transparent 35%),
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018)),
    rgba(15, 23, 39, 0.96);
}

.feature-story h3 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.compact-story {
  min-height: 168px;
}

.sidebar-rail .stacked-mini-cards {
  gap: 18px;
}

.sidebar-rail .rail-section,
.sidebar-rail .spotlight-card {
  border-color: rgba(255, 255, 255, 0.1);
}

.brand,
.site-nav a,
.chip,
button,
.story-card,
.spotlight-card,
.mini-card,
.summary-panel,
.site-footer,
.page-header,
.article-body,
.byline-card,
.poll-card,
.rail-section {
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

@media (max-width: 960px) {
  .site-header, .hero-grid, .content-grid, .article-grid, .site-footer {
    grid-template-columns: 1fr;
  }
  .site-header { position: static; gap: 14px; padding: 14px; }
  .site-nav {
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    margin: 0 -2px;
    scrollbar-width: none;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { font-size: 0.7rem; padding: 7px 10px; flex: 0 0 auto; }
  .hero-card h1 { font-size: clamp(2.1rem, 11vw, 3.5rem); }
  .page-header h1, .article-header h1 { font-size: clamp(1.9rem, 9.4vw, 3.2rem); }
  .hero-grid, .content-grid, .article-grid, .page-header, .article-layout, .section-band { margin-top: var(--space-4); }
  .hero-card { min-height: 0; padding: 28px 22px; }
  .summary-panel, .story-card, .spotlight-card, .mini-card, .page-header, .byline-card, .poll-card, .rail-section { padding: 18px; }
  .section-heading h2 { font-size: clamp(1.4rem, 8vw, 2rem); }
  .article-header { margin-bottom: var(--space-3); }
  .article-body { padding: 28px 22px; }
  .prose { font-size: 1.03rem; }
  .prose p { max-width: none; margin-bottom: 20px; line-height: 1.8; font-size: 1.03rem; }
  .prose ul { margin-bottom: 20px; }
  .prose h2, .prose h3 { margin-top: 28px; margin-bottom: 12px; }
  .site-footer { padding: 22px 18px; gap: 16px; }
  .footer-links { gap: 8px; }
  .chip-row { gap: 10px; grid-template-columns: repeat(auto-fit, minmax(110px, max-content)); }
  .content-grid { margin-top: var(--space-5); }
  .homepage-coverage { grid-template-columns: 1fr; gap: 18px; }
  .story-card { padding: 20px 18px 22px; }
  .story-card h2, .story-card h3 { margin-bottom: 12px; line-height: 1.02; }
  .spotlight-card { min-height: 0; }
  .byline-card, .poll-card, .rail-section { padding: 20px 18px; }
  .meta-row { gap: 8px 12px; }
  .footer-link-card { padding: 14px 15px; }
  .topic-lane-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .site-shell { width: calc(100% - 22px); padding-top: 14px; padding-bottom: 44px; }
  .brand { font-size: 1.15rem; letter-spacing: 0.04em; }
  .hero-summary { font-size: 0.98rem; }
  .article-header .summary-panel { padding: 14px 16px; }
  .article-body { border-radius: 18px; }
  .sidebar-rail { gap: 16px; }
  .hero-card { padding: 24px 18px; }
  .summary-panel { padding: 18px; }
  .section-band { margin-top: 34px; }
  .section-heading { margin-bottom: 12px; }
  .site-footer { margin-top: 38px; }
  .page-header { padding: 22px 18px; }
  .page-header h1 { font-size: clamp(1.8rem, 9vw, 2.6rem); line-height: 0.98; }
  .article-header h1 { font-size: clamp(1.85rem, 9.2vw, 2.7rem); line-height: 0.98; }
  .article-header { gap: 12px; }
  .article-header .meta-row { gap: 7px 12px; font-size: 0.68rem; }
  .article-dek p { font-size: 0.98rem; line-height: 1.62; }
  .topic-link-row { gap: 8px 12px; }
  .topic-link { min-height: 30px; font-size: 0.71rem; }
  .footer-intro strong { font-size: 1.5rem; margin: 6px 0 8px; }
  .footer-intro p:last-child { font-size: 0.95rem; line-height: 1.55; }
  .footer-link-card { align-items: flex-start; }
  .footer-link-card span:first-child { font-size: 0.95rem; }
  .prose { font-size: 1.02rem; }
  .prose p { font-size: 1.02rem; line-height: 1.82; }
  .eyebrow, .meta-row { font-size: 0.72rem; }
  .site-header {
    gap: 10px;
    padding: 12px;
    border-radius: 20px;
  }
  .site-nav {
    gap: 6px;
    margin: 0 -1px;
    padding-bottom: 2px;
  }
  .site-nav a {
    font-size: 0.64rem;
    padding: 6px 8px;
    border-radius: 999px;
  }
  .hero-grid {
    gap: 16px;
  }
  .homepage-lead {
    padding: 18px 16px 20px;
    min-height: 0;
  }
  .homepage-lead h1 {
    font-size: clamp(2rem, 11vw, 2.9rem);
    margin-bottom: 12px;
  }
  .homepage-lead .hero-summary {
    font-size: 0.93rem;
    line-height: 1.58;
    margin-bottom: 14px;
  }
  .homepage-lead .meta-row {
    gap: 6px 10px;
    font-size: 0.66rem;
  }
  .pulse-panel {
    padding: 16px;
  }
  .pulse-list {
    margin-top: 14px;
  }
  .pulse-list li + li {
    margin-top: 12px;
    padding-top: 12px;
  }
  .pulse-list a {
    font-size: 0.92rem;
    line-height: 1.4;
  }
  .homepage-topics .section-heading h2 {
    max-width: 9ch;
    line-height: 0.96;
  }
  .topic-lane-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .topic-lane-card {
    min-height: 92px;
    padding: 14px 12px;
    gap: 6px;
    border-radius: 16px;
  }
  .topic-lane-name {
    font-size: 0.92rem;
  }
  .topic-lane-count {
    font-size: 0.62rem;
  }
  .content-grid {
    margin-top: 30px;
  }
  .content-grid > div > .section-heading {
    margin-bottom: 14px;
  }
  .feature-story {
    padding: 22px 18px 24px;
  }
  .feature-story h3 {
    font-size: 1.55rem;
  }
  .compact-story {
    min-height: 0;
  }
}
