:root {
  color-scheme: dark;
  --bg: #0c0f14;
  --panel: #141923;
  --panel-soft: #10151e;
  --text: #eef2f8;
  --muted: #a5adbb;
  --faint: #6f7888;
  --line: #242b38;
  --accent: #7dd3fc;
  --accent-strong: #f4c95d;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(125, 211, 252, 0.12), transparent 34rem),
    linear-gradient(180deg, #10141d 0%, var(--bg) 32rem);
  line-height: 1.6;
}

body,
button,
input,
textarea {
  font: 16px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

a:hover {
  color: var(--accent);
}

main,
.nav-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 15, 20, 0.82);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand,
.nav-links,
.byline,
.stats {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 0 28px rgba(125, 211, 252, 0.5);
}

.nav-links {
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero {
  max-width: 780px;
  padding: 92px 0 56px;
}

.eyebrow,
.meta {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 850px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 7vw, 6.4rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.1;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
  line-height: 1.25;
}

.hero-copy,
.dek {
  max-width: 690px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
}

.layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
  gap: 20px;
  margin-bottom: 76px;
}

.feature-card,
.side-panel,
.post-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
  box-shadow: var(--shadow);
}

.feature-card,
.side-panel {
  padding: clamp(24px, 4vw, 40px);
}

.feature-card h2 {
  font-size: clamp(2rem, 5vw, 4.25rem);
  line-height: 0.98;
}

.feature-card p,
.side-panel p,
.post-row p {
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--accent-strong);
  font-weight: 800;
}

.text-link:hover {
  color: var(--accent);
}

.stats {
  gap: 14px;
  margin: 28px 0 0;
}

.stats div {
  flex: 1;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.stats dt {
  color: var(--faint);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.stats dd {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 850;
}

.post-list {
  padding-bottom: 96px;
}

.section-heading {
  margin-bottom: 22px;
}

.post-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-bottom: 14px;
  padding: 24px;
}

.post-row p:last-child {
  margin-bottom: 0;
}

.post-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  font-weight: 900;
}

.article-shell {
  max-width: 860px;
  margin: 0 auto;
  padding: 72px 0 24px;
}

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

.article-header h1 {
  margin-top: 18px;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
}

.byline {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  color: var(--muted);
}

.byline span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.035);
}

.article-body {
  padding: 42px 0 24px;
  color: #d7dde8;
  font-size: 1.08rem;
}

.article-body p,
.article-body ul,
.article-body ol,
.article-body pre,
.article-body blockquote {
  margin: 0 0 1.35rem;
}

.article-body h2,
.article-body h3 {
  margin-top: 2.2rem;
}

.article-body code,
.article-body pre {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.article-body code {
  padding: 0.1rem 0.32rem;
}

.article-body pre {
  overflow-x: auto;
  padding: 18px;
}

.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 18px;
  color: var(--muted);
}

.article-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 28px 0 88px;
}

@media (max-width: 760px) {
  main,
  .nav-shell {
    width: min(100% - 24px, 1120px);
  }

  .nav-shell,
  .layout-grid,
  .post-row,
  .article-footer {
    display: block;
  }

  .nav-shell {
    padding: 14px 0;
  }

  .nav-links {
    margin-top: 10px;
  }

  .hero {
    padding: 56px 0 36px;
  }

  .layout-grid {
    margin-bottom: 52px;
  }

  .feature-card,
  .side-panel {
    margin-bottom: 14px;
  }

  .post-arrow {
    margin-top: 18px;
  }

  .article-footer .text-link {
    margin-bottom: 14px;
  }
}
