:root {
  --bg: #071019;
  --bg-soft: #0d1722;
  --panel: rgba(11, 18, 28, 0.88);
  --panel-strong: rgba(15, 26, 39, 0.96);
  --border: rgba(126, 242, 195, 0.18);
  --border-strong: rgba(126, 242, 195, 0.38);
  --text: #eef5f0;
  --muted: #a0b3ab;
  --accent: #7ef2c3;
  --accent-2: #f2c879;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.32);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(126, 242, 195, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(242, 200, 121, 0.08), transparent 18%),
    linear-gradient(180deg, #071019 0%, #09131d 38%, #05090e 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
}

button,
input,
textarea,
select {
  font: inherit;
}

.page-orb {
  position: fixed;
  z-index: -1;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(24px);
  opacity: 0.55;
  pointer-events: none;
}

.orb-left {
  top: 8rem;
  left: -10rem;
  background: rgba(126, 242, 195, 0.15);
}

.orb-right {
  top: 18rem;
  right: -10rem;
  background: rgba(242, 200, 121, 0.12);
}

.container {
  width: min(1220px, calc(100vw - 2rem));
  margin: 0 auto;
}

.site-chrome {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(7, 16, 25, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.utility-bar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(4, 10, 16, 0.88);
}

.utility-wrap,
.masthead-wrap,
.ticker-wrap,
.footer-wrap,
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.utility-wrap {
  padding: 0.85rem 0;
}

.utility-pill,
.utility-link,
.filter-pill,
.source-chip {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.04);
}

.utility-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
}

.utility-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.utility-link,
.filter-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 0.95rem;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.utility-link:hover,
.filter-pill:hover,
.story-card:hover,
.story-compact:hover,
.section-card:hover,
.directory-card:hover,
.social-panel-link:hover,
.featured-main:hover,
.featured-side:hover {
  transform: translateY(-2px);
}

.utility-label,
.eyebrow,
.panel-label,
.ticker-label,
.source-label,
.value-number,
.stat-label,
.footer-title,
.story-kicker {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.utility-label,
.utility-link,
.panel-label,
.section-copy,
.footer-copy,
.toolbar-summary,
.ticker-placeholder,
.section-card p,
.directory-card p,
.about-card p,
.hero-note p,
.hero-text,
.story-card p,
.story-compact p {
  color: var(--muted);
}

.masthead-wrap {
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
}

.brand span {
  display: grid;
  gap: 0.15rem;
}

.brand strong {
  font-size: 1.05rem;
  letter-spacing: 0.03em;
}

.site-nav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 1.15rem;
}

.site-nav a {
  position: relative;
  color: var(--muted);
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.ticker-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.ticker-wrap {
  padding: 0.8rem 0;
}

.ticker-label {
  flex: 0 0 auto;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  color: #061910;
  background: linear-gradient(135deg, var(--accent), #bff7de);
}

.ticker-window {
  position: relative;
  overflow: hidden;
  flex: 1;
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  min-width: max-content;
  animation: ticker-scroll 45s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
}

.ticker-divider {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  opacity: 0.85;
}

.hero,
.page-section {
  padding: 2rem 0;
}

.hero-home {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.9fr);
  gap: 1.25rem;
  padding-top: 3.4rem;
}

.hero-compact {
  padding-top: 2.4rem;
}

.hero h1,
.section-heading h2,
.panel h2,
.value-card h3,
.section-card h3,
.directory-card h3,
.featured-main h2,
.featured-side h3,
.about-card h2,
.story-card h3,
.story-compact h3 {
  margin: 0;
  font-family: "Fraunces", serif;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.hero h1 {
  max-width: 11.5ch;
  font-size: clamp(3.3rem, 7vw, 6rem);
}

.hero-text {
  max-width: 60ch;
  margin: 1.2rem 0 0;
  line-height: 1.68;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.9rem 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.95rem 1.25rem;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #05150d;
  background: linear-gradient(135deg, var(--accent), #bdfad7);
  box-shadow: 0 18px 34px rgba(126, 242, 195, 0.2);
}

.button-secondary {
  border: 1px solid var(--border-strong);
  background: rgba(126, 242, 195, 0.06);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem;
}

.hero-stats article,
.panel,
.story-card,
.story-compact,
.section-card,
.directory-card,
.about-card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--panel) 0%, rgba(8, 12, 19, 0.94) 100%);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-stats article {
  padding: 1rem 1.1rem;
}

.hero-stats strong {
  display: block;
  margin-top: 0.4rem;
  color: var(--accent);
  font-size: 1.05rem;
}

.panel {
  padding: 1.4rem;
}

.hero-note h2 {
  margin-top: 0.35rem;
  font-size: 2.1rem;
}

.section-heading {
  align-items: end;
  margin-bottom: 1.2rem;
}

.section-heading h2 {
  font-size: clamp(2.2rem, 4vw, 3.25rem);
}

.section-copy {
  max-width: 42ch;
  line-height: 1.65;
}

.featured-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
  gap: 1rem;
}

.featured-main,
.featured-side {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(12, 21, 33, 0.96), rgba(7, 13, 20, 0.94));
  box-shadow: var(--shadow);
}

.featured-main {
  min-height: 27rem;
  padding: 1.6rem;
  border-radius: var(--radius-xl);
}

.featured-side-grid {
  display: grid;
  gap: 1rem;
}

.featured-side {
  min-height: 13rem;
  padding: 1.3rem;
  border-radius: var(--radius-lg);
}

.featured-main h2 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  margin: 0.55rem 0 0.8rem;
}

.featured-side h3 {
  font-size: 1.7rem;
  margin: 0.45rem 0 0.5rem;
}

.story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 0.8rem;
}

.story-tag,
.story-source,
.story-time {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.4rem 0.6rem;
  color: #061a10;
  background: linear-gradient(135deg, var(--accent), #b9f8d4);
}

.story-source,
.story-time {
  color: var(--muted);
}

.story-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1rem;
  color: var(--accent);
}

.coverage-grid,
.story-grid,
.value-grid,
.about-grid,
.section-directory,
.source-wall,
.section-detail-grid,
.section-kpi-grid {
  display: grid;
  gap: 1rem;
}

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

.section-card,
.directory-card,
.about-card {
  padding: 1.3rem;
}

.section-card h3,
.directory-card h3,
.about-card h2 {
  font-size: 1.7rem;
}

.section-card .story-list,
.directory-card .story-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.story-compact {
  display: block;
  padding: 1rem 1.05rem;
  border-radius: var(--radius-md);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.story-compact h3 {
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
  line-height: 1.38;
}

.story-grid-latest,
.story-grid-archive {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.section-kpi-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
}

.section-kpi {
  padding: 1rem 1.05rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.section-kpi strong {
  display: block;
  margin-top: 0.35rem;
  color: var(--accent);
  font-size: 1.1rem;
}

.section-detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 1rem;
}

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

.section-sidebar {
  height: fit-content;
}

.section-lead-card {
  display: block;
}

.story-card {
  display: block;
  padding: 1.2rem;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.story-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
  line-height: 1.35;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
}

.filter-pill {
  cursor: pointer;
  color: var(--muted);
}

.filter-pill[aria-pressed="true"] {
  color: #061a10;
  border-color: rgba(126, 242, 195, 0.5);
  background: linear-gradient(135deg, var(--accent), #c1f5de);
}

.value-grid,
.about-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.value-card {
  padding: 1.25rem;
}

.value-card h3 {
  margin-top: 0.5rem;
  font-size: 1.7rem;
}

.value-number {
  color: var(--accent);
}

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

.source-row,
.source-wall {
  margin-top: 1rem;
}

.source-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.source-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.8rem;
  color: var(--muted);
}

.source-wall {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.source-card {
  padding: 1rem 1.05rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.source-card strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.02rem;
}

.stack-links {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.social-panel-link {
  display: grid;
  gap: 0.2rem;
  padding: 1rem 1.05rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.social-panel-link strong {
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  word-break: break-word;
}

.site-footer {
  padding: 1rem 0 2rem;
}

.footer-wrap {
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-title {
  color: var(--accent);
}

.footer-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.loading-card,
.empty-card {
  margin: 0;
  padding: 1rem 1.05rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 1100px) {
  .hero-home,
  .featured-grid,
  .coverage-grid,
  .value-grid,
  .about-grid,
  .section-directory,
  .source-wall,
  .story-grid-latest,
  .story-grid-archive,
  .section-detail-shell,
  .section-detail-grid,
  .section-kpi-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: 12.5ch;
  }

  .section-heading,
  .footer-wrap {
    align-items: start;
  }
}

@media (max-width: 820px) {
  .container {
    width: min(100vw - 1.1rem, 100%);
  }

  .utility-wrap,
  .masthead-wrap,
  .ticker-wrap {
    flex-direction: column;
    align-items: start;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .hero-home {
    padding-top: 2.4rem;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2.8rem, 13vw, 4.1rem);
  }

  .hero-actions,
  .hero-stats {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .utility-pill,
  .utility-links,
  .toolbar {
    width: 100%;
  }

  .utility-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .utility-link,
  .filter-pill {
    width: 100%;
  }
}
