:root {
  --bg: #f6f6f4;
  --surface: #ffffff;
  --border: #e2e1dd;
  --text: #1b1c1a;
  --muted: #6b6f6a;
  --accent: #2f6f4e;
  --accent-soft: #e7f0ea;
  --code-bg: #f0efec;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16181a;
    --surface: #1e2124;
    --border: #2e3237;
    --text: #e8e9e7;
    --muted: #9aa09b;
    --accent: #6fc79a;
    --accent-soft: #1d2b25;
    --code-bg: #262a2e;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 64px 24px 48px;
}

/* Header */

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1 {
  margin: 16px 0 0;
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.lede {
  margin: 12px 0 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: 17px;
}

.head { margin-bottom: 48px; }

/* Sections */

.section {
  margin-bottom: 32px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

h2 {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.section p { margin: 0 0 12px; }
.section p:last-child { margin-bottom: 0; }

/* Pipeline steps */

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.steps li:last-child { border-bottom: 0; padding-bottom: 0; }
.steps li:first-child { padding-top: 0; }

.step-n {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  line-height: 22px;
}

.steps div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: baseline;
}

.steps span:not(.step-n) { color: var(--muted); font-size: 15px; }

/* Environment facts */

.facts { margin: 0; }

.facts > div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}

.facts > div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts > div:first-child { padding-top: 0; }

dt { color: var(--muted); font-size: 15px; }
dd { margin: 0; text-align: right; }

code {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--code-bg);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
}

/* Footer */

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

.foot a { color: var(--accent); text-decoration: none; }
.foot a:hover { text-decoration: underline; }

@media (max-width: 480px) {
  .wrap { padding: 40px 18px 32px; }
  h1 { font-size: 32px; }
  dd { text-align: left; }
}
