:root {
  --bg: #0c1020;
  --surface: #121832;
  --ink: #f6f5f2;
  --ink-soft: #c7c9d4;
  --ink-muted: #8c8fa0;
  --accent: #f4b942;
  --accent-ink: #0c1020;
  --hairline: #252a42;
}

* { box-sizing: border-box; }

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

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

a:hover {
  color: #ffd580;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}

header.top {
  padding: 28px 24px;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--hairline);
}

header.top .mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.5px;
}

header.top .brand {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.3px;
}

header.top nav a {
  color: var(--ink-soft);
  margin-left: 18px;
  font-size: 14px;
  text-decoration: none;
}

header.top nav a:hover { color: var(--accent); }

header.top .spacer { flex: 1; }

h1 {
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -1px;
  margin: 0 0 8px;
  font-weight: 600;
}

h2 {
  font-size: 22px;
  line-height: 1.3;
  margin: 44px 0 14px;
  font-weight: 600;
  color: var(--ink);
}

h3 {
  font-size: 17px;
  margin: 24px 0 10px;
  font-weight: 600;
  color: var(--ink);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
}

.updated {
  color: var(--ink-muted);
  font-size: 14px;
  margin-bottom: 32px;
}

p, li {
  color: var(--ink-soft);
}

ul { padding-left: 22px; }

strong { color: var(--ink); font-weight: 600; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 22px;
  font-size: 14px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  overflow: hidden;
}

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

th {
  background: #1a2045;
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
}

tbody tr:last-child td { border-bottom: none; }

.toc {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 24px 0 36px;
}

.toc h3 {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.toc ol {
  margin: 0;
  padding-left: 22px;
  columns: 2;
  column-gap: 24px;
}

.toc li { margin: 4px 0; color: var(--ink-soft); }
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--accent); }

.callout {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  padding: 14px 18px;
  border-radius: 6px;
  margin: 18px 0;
  font-size: 14.5px;
}

footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 24px 56px;
  border-top: 1px solid var(--hairline);
  color: var(--ink-muted);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

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

@media (max-width: 640px) {
  h1 { font-size: 30px; }
  .toc ol { columns: 1; }
}
