:root {
  --bg: #f4f7fa;
  --surface: #ffffff;
  --surface-2: #e9f0f6;
  --text: #0e1a26;
  --muted: #4c5e70;
  --line: #d4dfe9;
  --accent: #0a7fb3;
  --accent-soft: #ddf2fb;
  --ok: #2f6b3a;
  --ok-soft: #dcefdc;
  --wip: #8a6a00;
  --wip-soft: #f6ecc8;
  --plan: #3d4f7a;
  --plan-soft: #e1e6f3;
  --code: #2b2a26;
  --radius: 10px;
  --max: 1080px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1018;
    --surface: #111a25;
    --surface-2: #172331;
    --text: #e6eef5;
    --muted: #9db0c2;
    --line: #223246;
    --accent: #3cc6f3;
    --accent-soft: #0f2b3c;
    --ok: #8fd19b;
    --ok-soft: #1f3324;
    --wip: #e6c766;
    --wip-soft: #3a3218;
    --plan: #a9b8e6;
    --plan-soft: #232a3d;
    --code: #e6e1d4;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    17px/1.6 system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
}

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

code,
pre {
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono",
    monospace;
  font-size: 0.9em;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
}

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

.brand img {
  width: 30px;
  height: 30px;
}

nav.site {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: 0.92rem;
}

nav.site a {
  color: var(--muted);
  text-decoration: none;
}

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

.hero {
  padding-top: 72px;
  padding-bottom: 48px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 1.02;
  margin: 12px 0 8px;
  letter-spacing: 0.04em;
}

.acronym {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--muted);
  margin: 0 0 24px;
}

.acronym b {
  color: var(--text);
}

.lead {
  font-size: 1.2rem;
  max-width: 62ch;
}

.status {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge.ok {
  background: var(--ok-soft);
  color: var(--ok);
}

.badge.wip {
  background: var(--wip-soft);
  color: var(--wip);
}

.badge.plan {
  background: var(--plan-soft);
  color: var(--plan);
}

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

h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  margin: 0 0 8px;
}

h3 {
  font-size: 1.15rem;
  margin: 28px 0 8px;
}

.section-lead {
  color: var(--muted);
  max-width: 70ch;
  margin: 0 0 28px;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid.three {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.card h3 {
  margin-top: 0;
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.card .meta {
  font-size: 0.85rem;
  color: var(--muted);
}

ul.changes {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.changes li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

ul.changes li:last-child {
  border-bottom: 0;
}

ul.changes strong {
  display: block;
}

ul.changes span {
  color: var(--muted);
  font-size: 0.95rem;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  background: var(--surface-2);
  font-weight: 600;
}

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

td.num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.arch {
  display: grid;
  gap: 10px;
  max-width: 760px;
}

.layer {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  background: var(--surface);
}

.layer.engine {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.layer small {
  display: block;
  color: var(--muted);
}

.arrow {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.timeline {
  display: grid;
  gap: 14px;
}

.phase {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.phase .when {
  font-weight: 700;
}

.phase .when small {
  display: block;
  font-weight: 400;
  color: var(--muted);
}

.phase ul {
  margin: 6px 0 0;
  padding-left: 20px;
}

.phase .gate {
  margin-top: 10px;
  font-size: 0.92rem;
  color: var(--muted);
}

@media (max-width: 640px) {
  .phase {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  nav.site {
    display: none;
  }
}

.note {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 16px;
  color: var(--muted);
  max-width: 75ch;
}

footer.site {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  color: var(--muted);
  font-size: 0.9rem;
}

footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

details.pkg {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 20px;
  margin: 0 0 10px;
}

details.pkg[open] {
  padding-bottom: 16px;
}

details.pkg summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  font-weight: 600;
}

details.pkg summary::-webkit-details-marker {
  display: none;
}

details.pkg summary::before {
  content: "▸";
  color: var(--accent);
  transition: transform 0.15s ease;
}

details.pkg[open] summary::before {
  transform: rotate(90deg);
}

details.pkg summary .id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--accent);
}

details.pkg summary .prio {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
}

details.pkg dl {
  margin: 0;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 6px 16px;
}

details.pkg dt {
  color: var(--muted);
  font-size: 0.9rem;
}

details.pkg dd {
  margin: 0;
}

@media (max-width: 640px) {
  details.pkg dl {
    grid-template-columns: 1fr;
  }

  details.pkg dt {
    margin-top: 6px;
  }
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  margin-bottom: 8px;
}

.step h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

figure.shot {
  margin: 28px 0 0;
}

figure.shot img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  display: block;
}

figure.shot figcaption {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 8px;
}

.compare td:nth-child(2) {
  color: var(--muted);
}

.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}

.subnav a {
  font-size: 0.88rem;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
}

h1.logo-title {
  margin: 12px 0 8px;
  line-height: 0;
}

h1.logo-title img {
  width: min(520px, 100%);
  height: auto;
}

.brand img {
  object-fit: contain;
}

section,
h3[id] {
  scroll-margin-top: 72px;
}
