:root {
  --bg: #0b0c10;
  --surface: #14171e;
  --surface-2: #1b1f28;
  --border: #2a2f3a;
  --text: #e8e6e3;
  --text-muted: #9aa0a6;
  --accent: #d4af37;
  --accent-dim: #9a7f28;
  --link: #d4af37;
  --max: 720px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 120ms ease;
}

a:hover {
  border-bottom-color: var(--link);
}

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

header.site .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

header.site .brand {
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  border-bottom: none;
  font-size: 17px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

header.site .brand .brand-mark {
  width: 28px;
  height: 28px;
  display: block;
  flex: 0 0 auto;
}

header.site nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
}

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

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

main {
  flex: 1;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

main h1 {
  font-size: 30px;
  line-height: 1.25;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

main h2 {
  font-size: 20px;
  line-height: 1.3;
  margin: 40px 0 12px;
  letter-spacing: -0.005em;
}

main h3 {
  font-size: 16px;
  line-height: 1.4;
  margin: 28px 0 8px;
  color: var(--text);
}

main p {
  margin: 0 0 14px;
  color: var(--text);
}

main ul, main ol {
  margin: 0 0 14px;
  padding-left: 22px;
}

main li {
  margin: 4px 0;
}

main strong {
  color: #fff;
  font-weight: 600;
}

main em {
  font-style: italic;
  color: var(--text);
}

main hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 36px 0;
}

main code {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
}

main table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 18px;
  font-size: 14px;
}

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

main th {
  background: var(--surface);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

main td a { word-break: break-all; }

.doc-meta {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 32px;
}

.doc-meta p {
  margin: 4px 0;
  color: var(--text-muted);
}

footer.site {
  border-top: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  font-size: 13px;
}

footer.site .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
}

footer.site nav {
  display: flex;
  gap: 18px;
}

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

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

/* Landing page */
.hero {
  padding: 80px 24px;
  text-align: center;
}

.hero .mark {
  display: inline-block;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.hero h1 {
  font-size: 42px;
  line-height: 1.15;
  margin: 0 0 18px;
  letter-spacing: -0.015em;
}

.hero p.tagline {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 32px;
  line-height: 1.55;
}

.hero .status {
  display: inline-block;
  border: 1px solid var(--accent-dim);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.04em;
}

@media (max-width: 520px) {
  main { padding: 32px 20px 48px; }
  main h1 { font-size: 26px; }
  .hero { padding: 56px 20px; }
  .hero h1 { font-size: 32px; }
  header.site .inner { padding: 14px 20px; }
  header.site .brand { font-size: 16px; }
  header.site nav { gap: 12px; font-size: 13px; }
}
