:root {
  color-scheme: light;
  --bg: #f7f8f4;
  --ink: #15201d;
  --muted: #596660;
  --line: #d8ded6;
  --panel: #ffffff;
  --panel-alt: #eef3ed;
  --accent: #1f6d5b;
  --accent-strong: #103a32;
  --accent-soft: #dfeee8;
  --code-bg: #16231f;
  --code-ink: #eaf5ef;
  --gold: #8b6d1e;
  --focus: #b68c1e;
  --shadow: 0 24px 60px rgba(21, 32, 29, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(223, 238, 232, 0.58), rgba(247, 248, 244, 0) 360px),
    var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

code {
  border: 1px solid var(--line);
  background: var(--panel-alt);
  padding: 0.1em 0.34em;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  font-weight: 750;
  overflow-wrap: anywhere;
}

pre {
  margin: 0;
  white-space: pre-wrap;
}

.site-header,
.hero,
.section,
.site-footer {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
}

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

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--accent-strong);
  background: var(--accent-strong);
  color: white;
  font-size: 0.9rem;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.top-nav a {
  min-width: 0;
  text-decoration: none;
  overflow-wrap: anywhere;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.78fr);
  gap: 48px;
  align-items: center;
  min-height: 650px;
  padding: 34px 0 58px;
}

.page-hero {
  width: min(920px, calc(100% - 40px));
  margin-inline: auto;
  padding: 96px 0 78px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 860px;
  margin-bottom: 22px;
  font-size: clamp(3.1rem, 7vw, 5.2rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 9px;
  font-size: 1rem;
  letter-spacing: 0;
}

.hero-subhead {
  max-width: 760px;
  color: var(--ink);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.37;
}

.hero-note,
.workflow-grid p,
.tier-grid p,
.command-section p,
.boundary-section li,
.output-list span,
.site-footer p {
  color: var(--muted);
}

.hero-note {
  max-width: 700px;
  margin-bottom: 0;
  font-size: 1.04rem;
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent-strong);
  padding: 0 18px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--accent-strong);
  color: white;
}

.button.secondary {
  background: transparent;
  color: var(--accent-strong);
}

.artifact-preview {
  display: grid;
  gap: 16px;
}

.preview-window {
  overflow: hidden;
  border: 1px solid rgba(16, 58, 50, 0.2);
  background: var(--code-bg);
  box-shadow: var(--shadow);
}

.preview-bar {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid rgba(234, 245, 239, 0.13);
  padding: 15px 16px;
  background: rgba(255, 255, 255, 0.04);
}

.preview-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #5cc6a3;
}

.preview-bar span:nth-child(2) {
  background: #d4b75c;
}

.preview-bar span:nth-child(3) {
  background: #e07b67;
}

.preview-window code {
  display: block;
  border: 0;
  background: transparent;
  padding: 22px;
  color: var(--code-ink);
  font-size: clamp(0.88rem, 1.4vw, 0.98rem);
  font-weight: 650;
  line-height: 1.65;
}

.preview-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.preview-stats div {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 16px;
}

.preview-stats strong,
.preview-stats span {
  display: block;
}

.preview-stats strong {
  font-size: 1.5rem;
}

.preview-stats span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
}

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

.section-header {
  display: grid;
  max-width: 780px;
  gap: 0;
  margin-bottom: 34px;
}

.proof-strip {
  padding-top: 76px;
}

.tier-grid,
.workflow-grid,
.path-grid,
.link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.tier-grid article,
.workflow-grid article,
.audience-grid article {
  min-height: 190px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 22px;
}

.tier-grid span {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--gold);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 850;
}

.tier-grid p,
.workflow-grid p {
  margin-bottom: 0;
}

.split-section,
.command-section,
.boundary-section,
.link-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 1fr);
  gap: 54px;
  align-items: start;
}

.output-list {
  display: grid;
  gap: 10px;
}

.detail-list {
  display: grid;
  gap: 12px;
}

.detail-list div {
  display: grid;
  gap: 4px;
  border-left: 4px solid var(--accent);
  background: rgba(255, 255, 255, 0.64);
  padding: 15px 18px;
}

.detail-list strong {
  color: var(--ink);
}

.detail-list span {
  color: var(--muted);
}

.output-list div {
  display: grid;
  grid-template-columns: minmax(170px, 0.45fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

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

.workflow-grid article {
  min-height: 170px;
}

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

.path-grid a,
.path-grid article {
  display: grid;
  min-height: 230px;
  align-content: start;
  gap: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 24px;
  color: var(--ink);
  text-decoration: none;
}

.path-grid a:hover {
  border-color: var(--accent);
}

.path-grid span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: var(--accent-strong);
  color: white;
  font-weight: 850;
}

.path-grid strong {
  font-size: 1.2rem;
  line-height: 1.25;
}

.path-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.audience-grid {
  display: grid;
  gap: 14px;
}

.audience-grid article {
  min-height: auto;
}

.audience-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.example-grid a {
  display: grid;
  min-height: 220px;
  align-content: start;
  gap: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 24px;
  color: var(--ink);
  text-decoration: none;
}

.example-grid a:hover {
  border-color: var(--accent);
}

.example-grid span {
  color: var(--gold);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.example-grid strong {
  font-size: 1.16rem;
  line-height: 1.24;
}

.example-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr);
  gap: 14px;
}

.article-grid a {
  display: grid;
  min-height: 220px;
  align-content: start;
  gap: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 24px;
  color: var(--ink);
  text-decoration: none;
}

.article-grid a:hover {
  border-color: var(--accent);
}

.article-grid span {
  color: var(--gold);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.article-grid strong {
  font-size: 1.24rem;
  line-height: 1.24;
}

.article-grid p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
}

.article {
  width: min(900px, calc(100% - 40px));
  margin-inline: auto;
}

.article-header {
  padding: 96px 0 46px;
}

.article-meta {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 750;
}

.article-body {
  padding-bottom: 78px;
}

.article-body h2 {
  max-width: 780px;
  margin: 52px 0 18px;
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
}

.article-body p {
  max-width: 760px;
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1.72;
}

.command-block {
  overflow-x: auto;
  border: 1px solid rgba(16, 58, 50, 0.2);
  background: var(--code-bg);
  box-shadow: var(--shadow);
}

.command-block code {
  display: block;
  min-width: 460px;
  border: 0;
  background: transparent;
  padding: 24px;
  color: var(--code-ink);
  font-weight: 650;
  line-height: 1.7;
}

.boundary-section ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.boundary-section li {
  border-left: 4px solid var(--accent);
  background: rgba(255, 255, 255, 0.58);
  padding: 14px 16px;
}

.callout-section {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 42px;
  box-shadow: var(--shadow);
}

.callout-section h2 {
  max-width: 780px;
  margin-bottom: 16px;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
}

.callout-section p {
  max-width: 780px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.not-found {
  min-height: 560px;
  align-content: center;
}

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

.link-grid a {
  display: flex;
  min-height: 72px;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 18px;
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration: none;
}

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

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

.site-footer p {
  max-width: 760px;
  margin-bottom: 0;
}

.site-footer p + p {
  margin-top: 10px;
}

.copyright {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .site-header,
  .hero,
  .page-hero,
  .section,
  .site-footer {
    width: min(100% - 28px, 720px);
  }

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

  .top-nav {
    flex-wrap: wrap;
    gap: 12px 16px;
  }

  .hero,
  .split-section,
  .command-section,
  .boundary-section,
  .link-section {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero {
    min-height: auto;
    padding-top: 26px;
  }

  .page-hero {
    padding: 72px 0 54px;
  }

  .tier-grid,
  .workflow-grid,
  .path-grid,
  .example-grid,
  .article-grid,
  .link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article,
  .article-grid {
    width: min(100% - 28px, 720px);
  }

  .article-header {
    padding: 72px 0 38px;
  }
}

@media (max-width: 620px) {
  h1 {
    font-size: 3rem;
  }

  .section {
    padding: 62px 0;
  }

  .callout-section {
    padding: 28px;
  }

  .tier-grid,
  .workflow-grid,
  .path-grid,
  .example-grid,
  .article-grid,
  .link-grid,
  .preview-stats,
  .output-list div {
    grid-template-columns: 1fr;
  }

  .tier-grid article,
  .workflow-grid article,
  .path-grid a {
    min-height: auto;
  }

  .preview-stats div {
    padding: 14px;
  }
}
