:root {
  --bg: #0e0f11;
  --surface: #181a1e;
  --outline: #2a2d34;
  --text: #eceae4;
  --muted: #9a9ca3;
  --accent: #e6b450;
  --danger: #ff9a8f;
  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.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

.wrap { max-width: 44rem; margin: 0 auto; padding: 2rem 1.25rem 4rem; }

header.site {
  display: flex; align-items: center; gap: .75rem;
  padding-bottom: 1.25rem; margin-bottom: 2rem;
  border-bottom: 1px solid var(--outline);
}
header.site img { width: 40px; height: 40px; border-radius: 10px; }
header.site a { color: var(--text); text-decoration: none; font-weight: 650; font-size: 1.15rem; }

h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 .25rem; letter-spacing: -.01em; }
h2 { font-size: 1.25rem; margin: 2.5rem 0 .5rem; }
h3 { font-size: 1.05rem; margin: 1.5rem 0 .25rem; }
p, ul, ol { margin: 0 0 1rem; }
li { margin-bottom: .35rem; }
.meta { color: var(--muted); margin-bottom: 2rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin: 0 0 1.5rem;
}
.card > :last-child { margin-bottom: 0; }

.table-scroll { overflow-x: auto; margin: 0 0 1rem; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: .55rem .6rem; border-bottom: 1px solid var(--outline); }
th { color: var(--muted); font-weight: 600; }

nav.toc ol { columns: 2; column-gap: 2rem; padding-left: 1.25rem; }
@media (max-width: 34rem) { nav.toc ol { columns: 1; } }

.warn { color: var(--danger); }

footer.site {
  margin-top: 3rem; padding-top: 1.25rem;
  border-top: 1px solid var(--outline);
  color: var(--muted); font-size: .9rem;
}
footer.site a { color: var(--muted); }
