:root {
  color-scheme: light;
  --canvas: #ffffff;
  --canvas-subtle: #f6f8fa;
  --canvas-inset: #eef1f4;
  --border: #d0d7de;
  --border-strong: #afb8c1;
  --text: #1f2328;
  --text-muted: #59636e;
  --accent: #a94727;
  --accent-dark: #7f321b;
  --accent-soft: #f8e9e2;
  --success: #1a7f37;
  --warning: #9a6700;
  --danger: #cf222e;
  --code: #24292f;
  --shadow: 0 8px 24px rgb(140 149 159 / 16%);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
}

a {
  color: var(--accent-dark);
  text-underline-offset: 3px;
}

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

a:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgb(169 71 39 / 32%);
  outline-offset: 3px;
}

code {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

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

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 8px 12px;
  transform: translateY(-160%);
  border: 1px solid var(--accent-dark);
  border-radius: 4px;
  background: var(--canvas);
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  border-bottom: 1px solid var(--border);
  background: rgb(255 255 255 / 96%);
}

.topbar__inner {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand:hover {
  color: var(--text);
}

.brand__mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 5px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.08em;
}

nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.hero {
  padding: 86px 0 72px;
  border-bottom: 1px solid var(--border);
  background-color: var(--canvas-subtle);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: clamp(48px, 8vw, 96px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.hero__lead {
  max-width: 690px;
  margin-bottom: 30px;
  color: var(--text-muted);
  font-size: clamp(18px, 2vw, 21px);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border: 1px solid var(--accent-dark);
  border-radius: 5px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.primary-link {
  background: var(--accent);
  color: #fff;
}

.primary-link:hover {
  background: var(--accent-dark);
  color: #fff;
}

.secondary-link {
  background: var(--canvas);
  color: var(--accent-dark);
}

.provenance {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 13px;
}

.evidence {
  border: 1px solid var(--border-strong);
  border-top: 4px solid var(--accent);
  border-radius: 6px;
  background: var(--canvas);
  box-shadow: var(--shadow);
}

.evidence__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px 8px;
}

.evidence__heading .eyebrow {
  margin-bottom: 0;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgb(26 127 55 / 12%);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 0;
}

.metrics div {
  padding: 18px 22px;
  border-top: 1px solid var(--border);
}

.metrics div:nth-child(odd) {
  border-right: 1px solid var(--border);
}

.metrics dt {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.metrics dd {
  margin: 2px 0 0;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 27px;
  font-weight: 700;
}

.load-state {
  margin: 0;
  padding: 12px 22px;
  border-top: 1px solid var(--border);
  background: var(--canvas-subtle);
  color: var(--text-muted);
  font-size: 12px;
}

.status-strip {
  border-bottom: 1px solid var(--border);
}

.status-strip__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.status-strip span {
  padding: 17px 20px;
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
}

.status-strip span + span {
  border-left: 1px solid var(--border);
}

.status-strip strong {
  margin-right: 5px;
  color: var(--success);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.section {
  padding-block: 80px;
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(280px, 0.55fr);
  justify-content: space-between;
  gap: 48px;
  align-items: end;
  margin-bottom: 32px;
}

.section-heading > p {
  max-width: 500px;
  margin-bottom: 2px;
  color: var(--text-muted);
}

.table-frame {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 6px;
}

table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  background: var(--canvas);
  font-size: 14px;
}

th,
td {
  padding: 17px 18px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

th {
  background: var(--canvas-subtle);
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: #fffaf7;
}

td:first-child strong,
td:first-child code {
  display: block;
}

td:first-child code {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 12px;
}

.state {
  display: inline-block;
  padding: 3px 8px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--canvas-subtle);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.state--high {
  border-color: #ffb3b8;
  background: #ffebe9;
  color: var(--danger);
}

.state--medium {
  border-color: #d4a72c;
  background: #fff8c5;
  color: var(--warning);
}

.state--scheduled {
  border-color: #b6e3ff;
  background: #ddf4ff;
  color: #0969da;
}

.score {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 18px;
}

.score--high {
  color: var(--danger);
}

.demo-figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--code);
  box-shadow: var(--shadow);
}

.demo-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.demo-figure figcaption {
  padding: 13px 16px;
  border-top: 1px solid #424a53;
  color: #c9d1d9;
  font-size: 12px;
}

.artifact-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  list-style: none;
}

.artifact-list li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  padding: 22px;
  border-bottom: 1px solid var(--border);
}

.artifact-list li:nth-child(odd) {
  border-right: 1px solid var(--border);
}

.artifact-list li:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.file-kind {
  display: inline-grid;
  width: 46px;
  height: 30px;
  place-items: center;
  border: 1px solid #e4b7a5;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
}

.artifact-list a {
  font-weight: 700;
}

.artifact-list p {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.method {
  padding-block: 72px;
  border-top: 1px solid var(--border);
  background: var(--code);
  color: #f0f3f6;
}

.method .eyebrow {
  color: #f0a98d;
}

.method__grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(340px, 1fr);
  gap: 34px 64px;
  align-items: center;
}

.command-block {
  display: flex;
  gap: 12px;
  padding: 17px 20px;
  border: 1px solid #57606a;
  border-radius: 5px;
  background: #161b22;
  color: #f0f3f6;
  overflow-x: auto;
  white-space: nowrap;
}

.command-block span {
  color: #f0a98d;
}

.method__steps {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 8px 0 0;
  padding: 1px;
  background: #57606a;
  list-style: none;
}

.method__steps li {
  display: flex;
  min-height: 96px;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  background: var(--code);
}

.method__steps strong {
  color: #f0a98d;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.method__steps span {
  color: #b1bac4;
  font-size: 13px;
}

footer {
  border-top: 1px solid var(--border);
  background: var(--canvas-subtle);
}

.footer__inner {
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--text-muted);
  font-size: 13px;
}

.footer__inner p {
  margin-bottom: 0;
}

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

@media (max-width: 820px) {
  .hero {
    padding-block: 62px;
  }

  .hero__grid,
  .section-heading,
  .method__grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 18px;
    align-items: start;
  }

  .status-strip__inner {
    grid-template-columns: 1fr;
  }

  .status-strip span + span {
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .artifact-list {
    grid-template-columns: 1fr;
  }

  .artifact-list li,
  .artifact-list li:nth-child(odd),
  .artifact-list li:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .artifact-list li:last-child {
    border-bottom: 0;
  }

  .method__steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 24px, 1180px);
  }

  .topbar__inner {
    min-height: 58px;
  }

  nav {
    gap: 14px;
  }

  nav a:first-child {
    display: none;
  }

  h1 {
    font-size: 39px;
  }

  .section {
    padding-block: 58px;
  }

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

  .metrics div {
    padding-inline: 16px;
  }

  .artifact-list li {
    grid-template-columns: 46px 1fr;
    padding: 18px 15px;
  }

  .footer__inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
