/*
 * SPDX-FileCopyrightText: LDSC contributors
 *
 * SPDX-License-Identifier: Apache-2.0
 */
:root {
  --bg: #fbfcfd;
  --surface: #ffffff;
  --text: #17212b;
  --muted: #4a5a69;
  --line: #d9e1e8;
  --accent: #0f5c8c;
  --accent-text: #ffffff;
  --done: #1d7a46;
  --now: #b25e00;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e141a;
    --surface: #151d25;
    --text: #e6edf3;
    --muted: #9fb0bf;
    --line: #2a3742;
    --accent: #5fb0e6;
    --accent-text: #0e141a;
    --done: #5cc98a;
    --now: #f0a24a;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
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 { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }
.wrap { max-width: 64rem; margin: 0 auto; padding: 0 1rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--surface); padding: .5rem; z-index: 2; }

.top { border-bottom: 1px solid var(--line); background: var(--surface); }
.top-row { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; justify-content: space-between; padding-top: .75rem; padding-bottom: .75rem; }
.brand { display: flex; gap: .5rem; align-items: center; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.15rem; }
nav ul { display: flex; flex-wrap: wrap; gap: .25rem 1rem; list-style: none; margin: 0; padding: 0; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover, nav a:focus { color: var(--accent); text-decoration: underline; }

section { padding: 2.5rem 0; border-bottom: 1px solid var(--line); }
.hero { padding: 3.5rem 0 3rem; }
.eyebrow { color: var(--muted); font-size: .9rem; letter-spacing: .02em; margin: 0 0 .5rem; }
h1 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); line-height: 1.15; margin: 0 0 1rem; max-width: 22ch; }
h2 { font-size: 1.6rem; margin: 0 0 1rem; }
h3 { font-size: 1.1rem; margin: 1.5rem 0 .5rem; }
.lede { font-size: 1.15rem; max-width: 46rem; }
.note { max-width: 46rem; padding: .75rem 1rem; border-left: 4px solid var(--now); background: var(--surface); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.button { display: inline-block; padding: .6rem 1.1rem; border-radius: 6px; background: var(--accent); color: var(--accent-text); text-decoration: none; font-weight: 600; border: 2px solid var(--accent); }
.button.ghost { background: transparent; color: var(--accent); }

.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.cards li { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 1rem 1.25rem; }
.cards h3 { margin-top: 0; }
.cards p { margin: 0; color: var(--muted); }

.steps { padding-left: 1.4rem; max-width: 48rem; }
.steps li { margin: .35rem 0; }

.table { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 36rem; background: var(--surface); }
th, td { text-align: left; vertical-align: top; padding: .6rem .75rem; border: 1px solid var(--line); }
th { font-size: .9rem; color: var(--muted); }
td code { white-space: nowrap; }

.roadmap { list-style: none; padding: 0; margin: 0; max-width: 48rem; }
.roadmap li { display: flex; gap: .75rem; padding: .4rem 0; border-bottom: 1px dashed var(--line); }
.roadmap span { font-variant-numeric: tabular-nums; font-weight: 700; min-width: 2.5rem; color: var(--muted); }
.roadmap .done span { color: var(--done); }
.roadmap .done::after { content: "done"; margin-left: auto; color: var(--done); font-size: .85rem; }
.roadmap .now span { color: var(--now); }
.roadmap .now::after { content: "in progress"; margin-left: auto; color: var(--now); font-size: .85rem; white-space: nowrap; }

.checks { list-style: none; padding: 0; margin: 0 0 1rem; max-width: 40rem; }
.checks li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.checks b { font-weight: 600; }

footer { padding: 2rem 0 3rem; color: var(--muted); font-size: .95rem; }
