:root {
  color-scheme: light;
  --bg: #f7f8f5;
  --paper: #ffffff;
  --ink: #151712;
  --muted: #596156;
  --line: #d9ded2;
  --line-strong: #bbc5b5;
  --accent: #0f766e;
  --accent-strong: #0b5f59;
  --accent-soft: #d9f3ee;
  --gold: #aa6b12;
  --gold-soft: #f7e8c9;
  --code-bg: #101410;
  --code-ink: #e8f0e5;
  --max: 1120px;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.55;
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

a {
  color: var(--accent-strong);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

.site-header {
  background: rgba(247, 248, 245, 0.92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}

.nav {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max);
  padding: 14px 22px;
  width: 100%;
}

.brand {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  font-weight: 760;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--ink);
  border-radius: 6px;
  color: #ffffff;
  display: inline-flex;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.nav-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
  min-width: 0;
}

.nav-links a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--ink);
}

.button,
.button-secondary {
  align-items: center;
  border-radius: 7px;
  display: inline-flex;
  font-weight: 680;
  min-height: 42px;
  padding: 10px 14px;
  text-decoration: none;
}

.button {
  background: var(--accent);
  color: #ffffff;
}

.button:hover {
  background: var(--accent-strong);
  color: #ffffff;
}

.button-secondary {
  background: #ffffff;
  border: 1px solid var(--line-strong);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: var(--ink);
  color: var(--ink);
}

main {
  margin: 0 auto;
}

.hero,
.section,
.article,
.footer-inner {
  margin: 0 auto;
  max-width: var(--max);
  padding-left: 22px;
  padding-right: 22px;
  width: 100%;
}

.hero {
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  min-height: 72vh;
  padding-bottom: 48px;
  padding-top: 70px;
}

.hero-copy {
  align-self: center;
  min-width: 0;
}

.eyebrow {
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 780;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  letter-spacing: 0;
  line-height: 1.08;
}

h1 {
  font-size: clamp(42px, 7vw, 78px);
  margin: 0 0 18px;
}

h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin: 0 0 16px;
}

h3 {
  font-size: 19px;
  margin: 0 0 10px;
}

p {
  margin: 0 0 16px;
}

.lede {
  color: #354034;
  font-size: clamp(18px, 2vw, 22px);
  max-width: 650px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-visual {
  align-self: center;
  background: var(--code-bg);
  border: 1px solid #2b3329;
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(21, 23, 18, 0.18);
  color: var(--code-ink);
  min-height: 460px;
  min-width: 0;
  overflow: hidden;
  width: 100%;
}

.terminal-bar {
  align-items: center;
  background: #1d241d;
  border-bottom: 1px solid #2e392d;
  display: flex;
  gap: 8px;
  height: 42px;
  padding: 0 14px;
}

.dot {
  border-radius: 999px;
  height: 10px;
  width: 10px;
}

.dot-red {
  background: #de6b5e;
}

.dot-gold {
  background: #d79a24;
}

.dot-green {
  background: #2faa71;
}

.terminal-title {
  color: #b6c3b1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  margin-left: 8px;
}

.terminal-body {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  overflow-x: auto;
  padding: 22px;
}

.prompt {
  color: #8bdccf;
}

.terminal-table {
  border: 1px solid #53614f;
  border-collapse: collapse;
  table-layout: fixed;
  margin: 18px 0;
  width: 100%;
}

.terminal-table th,
.terminal-table td {
  border: 1px solid #53614f;
  overflow-wrap: anywhere;
  padding: 9px;
  text-align: left;
  vertical-align: top;
}

.terminal-table th {
  color: #c8d6c5;
  font-weight: 700;
}

.terminal-note {
  color: #adbaaa;
}

.ok {
  color: #58d28f;
}

.warn {
  color: #f2c15f;
}

.stats {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 auto;
  max-width: var(--max);
  padding: 0 22px;
}

.stat {
  padding: 24px 0;
}

.stat strong {
  display: block;
  font-size: 22px;
}

.stat span {
  color: var(--muted);
  display: block;
  font-size: 14px;
  margin-top: 4px;
}

.band {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.section {
  padding-bottom: 76px;
  padding-top: 76px;
}

.section-intro {
  color: var(--muted);
  font-size: 18px;
  max-width: 760px;
}

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

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.band .card {
  background: #fbfcf9;
}

.card p,
.compact p {
  color: var(--muted);
}

.split {
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.callout {
  background: var(--gold-soft);
  border: 1px solid #e2bd78;
  border-radius: var(--radius);
  color: #4d3410;
  padding: 22px;
}

.comparison-table {
  border-collapse: collapse;
  margin: 28px 0;
  width: 100%;
}

.comparison-table th,
.comparison-table td {
  border: 1px solid var(--line-strong);
  padding: 14px;
  text-align: left;
  vertical-align: top;
}

.comparison-table th {
  background: #eef2ea;
}

.article {
  display: grid;
  gap: 38px;
  grid-template-columns: minmax(0, 740px) 260px;
  padding-bottom: 82px;
  padding-top: 58px;
}

.article-body {
  min-width: 0;
}

.article-body h1 {
  font-size: clamp(38px, 6vw, 64px);
}

.article-body h2 {
  font-size: clamp(25px, 3vw, 34px);
  margin-top: 46px;
}

.article-body p,
.article-body li {
  color: #3d453b;
  font-size: 18px;
}

.article-body ul,
.article-body ol {
  padding-left: 22px;
}

.article-body li {
  margin-bottom: 8px;
}

.article-meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.toc {
  align-self: start;
  border-left: 3px solid var(--accent);
  color: var(--muted);
  padding-left: 18px;
  position: sticky;
  top: 86px;
}

.toc a {
  color: var(--muted);
  display: block;
  font-size: 14px;
  margin: 8px 0;
  text-decoration: none;
}

.toc a:hover {
  color: var(--ink);
}

.code-block {
  background: var(--code-bg);
  border-radius: var(--radius);
  color: var(--code-ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  overflow-x: auto;
  padding: 18px;
}

.link-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.link-list a {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  display: block;
  padding: 16px;
  text-decoration: none;
}

.link-list a:hover {
  border-color: var(--accent);
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  padding-bottom: 28px;
  padding-top: 28px;
}

.footer-inner a {
  color: var(--muted);
}

@media (max-width: 880px) {
  .hero,
  .split,
  .article {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 46px;
  }

  .hero-visual {
    min-height: 0;
  }

  .stats,
  .grid {
    grid-template-columns: 1fr;
  }

  .toc {
    border-left: 0;
    border-top: 3px solid var(--accent);
    padding-left: 0;
    padding-top: 12px;
    position: static;
  }
}

@media (max-width: 620px) {
  body {
    overflow-x: hidden;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .terminal-body {
    font-size: 12px;
    padding: 16px;
  }

  .hero-copy,
  .hero-actions,
  .hero-visual,
  .lede {
    max-width: calc(100vw - 44px);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button,
  .hero-actions .button-secondary {
    justify-content: center;
    width: 100%;
  }

  .comparison-table {
    display: block;
    overflow-x: auto;
  }
}
