:root {
  --ground: #0d0f0c;
  --panel: #11140f;
  --panel-raised: #161a13;
  --border: #2b3125;
  --border-soft: #1f241b;
  --border-strong: #4a5340;
  --text: #d7dbd0;
  --text-bright: #f2f5ea;
  --text-soft: #b9bfb0;
  --text-muted: #9aa390;
  --text-faint: #7d8574;
  --dot: #3a4133;
  --accent: #c8f169;
  --accent-hover: #e2ff9c;
  --on-accent: #10140a;
  --warn: #f0b55a;

  --mono:
    "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas,
    "Liberation Mono", monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: 32px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

h1,
h2,
h3,
p,
ul,
pre {
  margin: 0;
}

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

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 1;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
  color: var(--on-accent);
}

.prompt {
  color: var(--text-faint);
}

.good {
  color: var(--accent);
}

.warn {
  color: var(--warn);
}

.flat {
  color: var(--text-muted);
}

/* Header */

.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 24px;
}

.brand {
  padding: 6px 0;
  font-family: var(--mono);
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 28px;
  font-family: var(--mono);
  font-size: 0.875rem;
}

.site-nav a {
  padding: 8px 0;
  color: var(--text);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--text-bright);
  text-decoration: underline;
  text-underline-offset: 6px;
}

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

/* Hero */

.hero {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 72px 0 56px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--text-muted);
}

h1 {
  max-width: 900px;
  font-family: var(--mono);
  font-size: clamp(2rem, 5.4vw, 4.25rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text-bright);
}

.lede {
  max-width: 720px;
  font-size: 1.25rem;
  color: var(--text-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: stretch;
}

.command {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 8px 8px 8px 18px;
  background: var(--panel-raised);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 1rem;
}

.command code {
  min-width: 0;
  padding: 6px 0;
  font-family: inherit;
  color: var(--text-bright);
}

/* A flag and its value stay on one line when the command wraps. */
.command .flag {
  white-space: nowrap;
}

.copy-button {
  flex: none;
  min-width: 76px;
  min-height: 36px;
  padding: 0 12px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: 0.8125rem;
  cursor: pointer;
}

.copy-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-note {
  max-width: 720px;
  margin-top: -8px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.9375rem;
  text-decoration: none;
}

.button-primary {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
}

.button-primary:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
}

.button-secondary {
  border: 1px solid var(--border-strong);
  color: var(--text-bright);
}

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

/* Sample report */

.report {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  font-family: var(--mono);
}

.report-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dot);
}

.report-title {
  margin-left: 8px;
}

.table-scroll {
  overflow-x: auto;
}

.table-scroll:focus-visible {
  outline-offset: -2px;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.875rem;
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  white-space: nowrap;
}

thead th {
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 500;
}

tbody th {
  color: var(--text-bright);
  font-weight: 400;
}

tbody tr:not(:last-child) > * {
  border-bottom: 1px solid var(--border-soft);
}

td.detail {
  color: var(--text-soft);
}

.report-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  padding: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.9375rem;
}

.report-summary .label {
  color: var(--text-muted);
}

.report-summary .value {
  color: var(--text-bright);
}

.report-caption {
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Sections */

.section {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 88px;
  scroll-margin-top: -40px;
}

.section-tight {
  gap: 24px;
}

h2 {
  font-family: var(--mono);
  font-size: 1.75rem;
  line-height: 1.25;
  color: var(--text-bright);
}

h3 {
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-bright);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.card p,
.check p,
.section-note,
.cta p {
  color: var(--text-soft);
}

.card .step {
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--accent);
}

.checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 20px;
}

.check {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.check pre {
  margin-top: auto;
  padding: 14px;
  background: var(--panel-raised);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow-x: auto;
}

.check code {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--text);
}

.harnesses {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 0.9375rem;
}

.harnesses li {
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-bright);
}

.section-note {
  max-width: 720px;
}

/* Closing panel */

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  margin-top: 88px;
  padding: 40px;
  background: var(--panel-raised);
  border: 1px solid var(--border);
  border-radius: 8px;
  scroll-margin-top: 32px;
}

.cta-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 620px;
}

.cta h2 {
  font-size: 1.625rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Footer */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding-top: 40px;
  padding-bottom: 56px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.site-footer a {
  color: var(--text-muted);
  overflow-wrap: anywhere;
}

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

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }

  .site-header {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .site-nav {
    width: 100%;
    gap: 0 12px;
    justify-content: space-between;
    font-size: 0.78125rem;
  }

  .hero {
    gap: 24px;
    padding: 40px 0 40px;
  }

  .lede {
    font-size: 1.125rem;
  }

  .command {
    width: 100%;
    font-size: 0.875rem;
  }

  .command code {
    flex: 1;
  }

  .section {
    padding-top: 64px;
  }

  h2 {
    font-size: 1.5rem;
  }

  .cta {
    margin-top: 64px;
    padding: 24px;
  }

  .cta h2 {
    font-size: 1.375rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  a,
  .button,
  .copy-button {
    transition:
      color 120ms ease,
      background-color 120ms ease,
      border-color 120ms ease;
  }
}
