:root {
  --bg: #fbfbfa;
  --surface: #ffffff;
  --text: #1c1d1f;
  --muted: #5d6168;
  --line: #e3e4e6;
  --accent: #1f5fbf;
  --ok: #1d7a46;
  --ok-bg: #e6f4ec;
  --warn-bg: #fff4dc;
  --warn: #7a5300;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121315;
    --surface: #1a1c1f;
    --text: #e8e9eb;
    --muted: #a0a4ab;
    --line: #2b2e33;
    --accent: #79a8f0;
    --ok: #6fd39c;
    --ok-bg: #16291f;
    --warn-bg: #2b2412;
    --warn: #e9c46a;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

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

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

.wrap { max-width: 46rem; margin: 0 auto; padding: 0 16px; }

header.site {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

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

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

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

nav.site { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; }
nav.site a { color: var(--muted); text-decoration: none; }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--text); }

main { padding: 48px 0 64px; }

h1 { font-size: 2rem; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 16px; }
h2 { font-size: 1.25rem; margin: 48px 0 12px; letter-spacing: -0.01em; }
h3 { font-size: 1rem; margin: 0 0 6px; }
p { margin: 0 0 14px; }

.lead { font-size: 1.125rem; color: var(--muted); max-width: 38rem; }

.pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 550;
  background: var(--warn-bg);
  color: var(--warn);
  margin-bottom: 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 14px;
}

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

.card p { margin: 0; color: var(--muted); font-size: 15px; }

ol.steps { padding-left: 1.25rem; }
ol.steps li { margin-bottom: 6px; }

table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 550; }
td code { white-space: nowrap; }

code {
  font: 0.92em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 10px;
  background: var(--ok-bg);
  color: var(--ok);
  font-weight: 600;
  margin: 24px 0 8px;
}

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

.status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
}

.status-row .state { color: var(--ok); font-size: 15px; display: flex; align-items: center; gap: 8px; }
.status-row small { display: block; color: var(--muted); font-size: 14px; }

.note { color: var(--muted); font-size: 15px; }

footer.site {
  border-top: 1px solid var(--line);
  padding: 24px 0 40px;
  font-size: 14px;
  color: var(--muted);
}

footer.site .wrap { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }
footer.site nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer.site a { color: var(--muted); }

@media (max-width: 520px) {
  h1 { font-size: 1.6rem; }
  main { padding-top: 32px; }
  th:nth-child(2), td:nth-child(2) { display: none; }
}
