:root {
  color-scheme: dark;
  --bg: #0b0b09;
  --panel: #171713;
  --line: #35342e;
  --text: #f3f0e7;
  --muted: #bbb8af;
  --amber: #f6b81a;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

.wrap {
  width: min(100% - 40px, 820px);
  margin: 0 auto;
  padding: 64px 0 88px;
}

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

a:hover { text-decoration-thickness: 2px; }

h1 {
  margin: 22px 0 24px;
  font-size: clamp(2.5rem, 8vw, 4rem);
  line-height: .98;
  letter-spacing: -.055em;
}

h2 {
  margin: 46px 0 12px;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.2;
}

p, li { max-width: 76ch; }

ul {
  padding-left: 1.35rem;
}

li + li { margin-top: 7px; }

code {
  padding: .08em .35em;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #11110e;
  color: #ffd875;
}

.note {
  padding: 18px 20px;
  border-left: 4px solid var(--amber);
  background: var(--panel);
  color: var(--muted);
}

.table-wrap {
  margin: 22px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #11110e;
}

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

th {
  background: var(--panel);
  color: #ffd875;
  font-size: .78rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}

tr:last-child td { border-bottom: 0; }

@media (max-width: 560px) {
  .wrap {
    width: min(100% - 28px, 820px);
    padding-top: 40px;
  }

  th, td { padding: 12px; }
}

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