:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --panel: #ffffff;
  --text: #192130;
  --muted: #667085;
  --line: #d9deea;
  --accent: #0f766e;
  --accent-soft: #e7f5f2;
  --code: #111827;
  --code-line: #1f2937;
  --code-text: #e5e7eb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
}

main {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 72px 24px 56px;
}

.intro {
  max-width: 800px;
  margin-bottom: 52px;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 6px 10px;
  border: 1px solid #a8d9d1;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 24px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

h1 span {
  color: var(--accent);
  font-size: 0.42em;
  font-weight: 650;
  letter-spacing: -0.03em;
  vertical-align: 0.38em;
}

.intro p {
  max-width: 750px;
  margin: 0 0 15px;
  color: #4b5565;
  font-size: 16px;
  line-height: 1.72;
}

.intro .lede {
  color: var(--text);
  font-size: 21px;
  line-height: 1.58;
}

.intro code {
  padding: 2px 5px;
  border-radius: 5px;
  background: #e9edf3;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.intro-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--accent);
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

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

.secondary-action {
  background: var(--panel);
  color: var(--accent);
}

.source {
  overflow: hidden;
  border: 1px solid #293548;
  border-radius: 12px;
  background: var(--code);
  box-shadow: 0 24px 60px rgb(15 23 42 / 18%);
}

.source-header {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  min-height: 62px;
  padding: 0 18px;
  border-bottom: 1px solid #344054;
  background: #172033;
  color: #f8fafc;
}

.source-header strong,
.source-header span {
  display: block;
}

.source-header strong {
  font-size: 13px;
}

.source-header span {
  margin-top: 2px;
  color: #98a2b3;
  font-size: 11px;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #64748b;
}

.window-dots i:first-child {
  background: #fb7185;
}

.window-dots i:nth-child(2) {
  background: #fbbf24;
}

.window-dots i:last-child {
  background: #34d399;
}

.source-header .language {
  margin: 0;
  color: #5eead4;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}

.code-lines {
  max-height: 760px;
  margin: 0;
  padding: 18px 0 24px 64px;
  overflow: auto;
  background: var(--code);
  color: #718096;
  font: 12.5px/1.68 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  tab-size: 4;
}

.code-lines li {
  min-height: 21px;
  padding: 0 24px 0 14px;
  border-left: 1px solid #2d3748;
}

.code-lines li::marker {
  color: #526075;
}

.code-lines code {
  color: var(--code-text);
  white-space: pre;
}

.comment {
  color: #8291a7;
}

.keyword {
  color: #c4b5fd;
}

.type {
  color: #67e8f9;
}

.string {
  color: #fcd34d;
}

.source-error {
  padding: 24px;
  color: #fecaca;
}

.footnote {
  max-width: 800px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.footnote a {
  color: var(--accent);
}

@media (max-width: 640px) {
  main {
    padding: 44px 16px 40px;
  }

  .intro {
    margin-bottom: 36px;
  }

  .intro .lede {
    font-size: 18px;
  }

  .source-header {
    grid-template-columns: 58px 1fr;
  }

  .source-header .language {
    display: none;
  }

  .code-lines {
    padding-left: 52px;
    font-size: 11.5px;
  }
}
