:root {
  color-scheme: dark;
  --bg: #000;
  --surface: #0b0d14;
  --surface-soft: #111426;
  --text: #fafafa;
  --muted: #a7b0bf;
  --faint: #798498;
  --line: rgba(255, 255, 255, 0.1);
  --violet: #8f7ef8;
  --teal: #2fd4bd;
  --amber: #ffb45c;
}

* { box-sizing: border-box; }

html { background: var(--bg); scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(70% 46rem at 50% -16rem, rgba(77, 91, 170, 0.38), transparent 66%),
    var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
  border-radius: 4px;
}

h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }

.site-header,
.site-footer,
.article,
.page-shell {
  width: min(100% - 40px, 74rem);
  margin-inline: auto;
}

.site-header {
  min-height: 5.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 650;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img { width: 1.25rem; height: 1.25rem; }

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  padding-inline: 0.85rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.925rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--text); }

.site-nav a.download {
  margin-left: 0.3rem;
  padding-inline: 1.15rem;
  background: #fff;
  color: #08090c;
  font-weight: 650;
}

.article,
.page-shell { padding-block: 5rem 8rem; }

.article { max-width: 48rem; }

.page-shell { max-width: 62rem; }

.kicker {
  margin: 0 0 0.75rem;
  color: var(--teal);
  font-size: 0.875rem;
  font-weight: 650;
}

h1 {
  margin: 0;
  max-width: 15ch;
  font-size: clamp(2.55rem, 7vw, 4.9rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.lede {
  max-width: 62ch;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.status {
  margin-top: 2rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.9rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  min-height: 2.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
}

.button.primary { background: #fff; color: #08090c; }

.article-body { margin-top: 4rem; }

.article-body h2 {
  margin: 3.5rem 0 0.75rem;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.article-body h3 {
  margin: 2.3rem 0 0.6rem;
  font-size: 1.18rem;
  letter-spacing: -0.012em;
}

.article-body p,
.article-body li { color: #c8ced8; }

.article-body strong { color: var(--text); }

.article-body code {
  color: #d4caff;
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 0.88em;
}

.table-wrap {
  margin: 2rem 0;
  overflow-x: auto;
  border-block: 1px solid var(--line);
}

table {
  width: 100%;
  min-width: 46rem;
  border-collapse: collapse;
}

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

th { color: var(--text); font-size: 0.875rem; }
td { color: #c8ced8; font-size: 0.925rem; }
tr:last-child td { border-bottom: 0; }

.notice {
  margin-top: 2.25rem;
  padding: 1.2rem 1.25rem;
  border: 1px solid rgba(255, 180, 92, 0.32);
  border-radius: 14px;
  background: rgba(255, 180, 92, 0.08);
  color: #f4d3aa;
}

.contact {
  margin-top: 3rem;
  padding: clamp(1.4rem, 4vw, 2.25rem);
  border-radius: 16px;
  background: linear-gradient(145deg, var(--surface-soft), var(--surface));
}

.contact h2 { margin-top: 0; }

.site-footer {
  padding-block: 2rem 2.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.5rem;
  color: var(--faint);
  font-size: 0.875rem;
}

.site-footer nav {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.3rem;
}

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

@media (max-width: 42rem) {
  .site-header { align-items: flex-start; padding-block: 1rem; }
  .site-nav { flex-wrap: wrap; justify-content: flex-end; }
  .site-nav a:not(.download) { display: none; }
  .article, .page-shell { padding-block: 3.5rem 5.5rem; }
  .site-footer nav { width: 100%; margin-left: 0; }
}

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