html {
  color-scheme: light;
}

:root {
  --page-bg: #d9d9d9;
  --page-bg-deep: #cccccc;
  --paper: #ebebeb;
  --ink: #101010;
  --muted: #535353;
  --panel: #505050;
  --panel-deep: #262626;
  --white: #f4f4f4;
  --line: rgba(16, 16, 16, 0.14);
  --shadow: 0 22px 60px rgba(16, 16, 16, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.44), transparent 28%),
    linear-gradient(180deg, var(--page-bg) 0%, var(--page-bg-deep) 100%);
  color: var(--ink);
  font-family: "Rajdhani", "Arial Narrow", sans-serif;
}

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

.page-shell {
  width: min(1200px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 28px 0 36px;
}

.site-header {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.eyebrow-row,
.site-footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.eyebrow,
.issue-number,
.section-kicker,
.panel-label,
.detail-kicker,
.section-summary,
.meta-line,
.tool-tag,
.footer-fact-label,
.site-footer p {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.eyebrow,
.site-footer p,
.section-summary,
.meta-line,
.tool-tag {
  color: var(--muted);
}

.eyebrow,
.site-footer p {
  font-size: 0.92rem;
}

.issue-number {
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  color: #262626;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 26px;
  padding-top: 18px;
}

.hero-copy h1,
.section-header h2 {
  margin: 0;
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.hero-copy h1 {
  font-size: clamp(4.4rem, 10vw, 7.25rem);
}

.section-header h2 {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
}

.section-kicker {
  margin-bottom: 10px;
  font-size: 1rem;
  color: var(--muted);
}

.hero-intro,
.story-description,
.tool-description,
.feature-description,
.status-value {
  font-size: 1.18rem;
  line-height: 1.2;
}

.hero-intro {
  max-width: 900px;
  margin: 16px 0 0;
  font-size: clamp(1.2rem, 2.3vw, 1.52rem);
  color: #3d3d3d;
}

.hero-panel,
.story-item,
.tool-card,
.feature-card {
  box-shadow: var(--shadow);
}

.hero-panel {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 18px;
  background: rgba(255, 255, 255, 0.26);
  border: 1px solid rgba(16, 16, 16, 0.08);
}

.hero-stat {
  padding-top: 12px;
  border-top: 1px solid rgba(16, 16, 16, 0.12);
}

.hero-stat span {
  display: block;
  font-size: 2.45rem;
  font-weight: 700;
  line-height: 0.9;
}

.hero-stat p {
  margin: 6px 0 0;
  font-size: 1.04rem;
  color: var(--muted);
}

.panel-link,
.story-link,
.tool-link,
.feature-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 10px 14px;
  border: 1px solid currentColor;
  font-size: 1rem;
  font-weight: 600;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.panel-link:hover,
.story-link:hover,
.tool-link:hover,
.feature-link:hover {
  transform: translateY(-2px);
  background: var(--ink);
  color: var(--white);
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 28px 0 10px;
}

.status-block {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.status-value {
  margin: 10px 0 0;
}

.feed-section {
  padding: 30px 0 12px;
  border-top: 1px solid var(--line);
}

.dark-section {
  padding: 26px;
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-deep) 100%);
  color: var(--white);
  border-top: 0;
}

.dark-section .section-kicker,
.dark-section .section-summary,
.dark-section .tool-tag,
.dark-section .meta-line {
  color: rgba(244, 244, 244, 0.78);
}

.dark-section .tool-link:hover {
  background: var(--white);
  color: var(--ink);
}

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: end;
  margin-bottom: 22px;
}

.section-summary {
  font-size: 0.84rem;
  line-height: 1.5;
}

.story-list {
  display: grid;
  gap: 14px;
}

.story-item {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 130px;
  gap: 18px;
  align-items: start;
  padding: 18px;
  background: var(--paper);
}

.story-number {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 0.9;
}

.story-content h3,
.tool-card h3,
.feature-card h3 {
  margin: 0;
  font-size: 1.95rem;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.story-description,
.tool-description,
.feature-description {
  margin: 10px 0 0;
}

.story-aside {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.meta-line {
  font-size: 0.78rem;
}

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

.tool-card {
  min-height: 100%;
  padding: 18px;
  border: 1px solid rgba(244, 244, 244, 0.14);
  background: rgba(255, 255, 255, 0.05);
}

.tool-tag {
  font-size: 0.78rem;
}

.tool-card h3 {
  margin-top: 10px;
  font-size: 1.6rem;
}

.tool-link,
.feature-link {
  margin-top: 16px;
}

.feature-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  padding: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.16));
  border: 1px solid rgba(16, 16, 16, 0.08);
}

.feature-card h3 {
  font-size: 2rem;
}

.site-footer {
  align-items: end;
  padding-top: 18px;
}

.footer-fact {
  width: min(420px, 100%);
  min-height: 124px;
  margin-top: 18px;
  padding: 16px 18px;
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
}

.footer-fact-label {
  font-size: 0.78rem;
  color: rgba(244, 244, 244, 0.7);
}

.footer-fact-text {
  margin: 10px 0 0;
  font-size: 1.3rem;
  line-height: 1.15;
  color: var(--white);
}

@media (max-width: 1120px) {
  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .hero,
  .status-strip,
  .section-header,
  .feature-rail {
    grid-template-columns: 1fr;
  }

  .story-item {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .story-aside {
    grid-column: 2;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100vw - 28px, 100%);
    padding-top: 18px;
  }

  .site-footer {
    align-items: stretch;
  }

  .tool-grid,
  .feature-rail {
    grid-template-columns: 1fr;
  }

  .story-item {
    grid-template-columns: 1fr;
  }

  .story-aside {
    grid-column: auto;
  }

  .hero-panel,
  .story-item,
  .tool-card,
  .feature-card,
  .dark-section,
  .footer-fact {
    padding: 18px;
  }
}
