:root {
  --bg: #fbfaf7;
  --text: #1c1b19;
  --muted: #6b6860;
  --line: #e4e1d9;
  --accent: #6a4ee0;
  --code-bg: #f0eee8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101013;
    --text: #f0eff4;
    --muted: #9a99a5;
    --line: #2e2e36;
    --accent: #a68bff;
    --code-bg: #1d1d23;
  }
}

* { box-sizing: border-box; }

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

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}

.brand {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand a { color: inherit; }

h1 { margin: 0.2rem 0 0.6rem; font-size: 2.4rem; line-height: 1.1; }
h2 { margin: 2.2rem 0 0.6rem; font-size: 1.2rem; }
.lead { font-size: 1.12rem; }
.muted { color: var(--muted); font-size: 0.9rem; }
a { color: var(--accent); }
ul { padding-left: 1.2rem; }
li { margin: 0.35rem 0; }

code {
  padding: 0.1rem 0.35rem;
  border-radius: 5px;
  background: var(--code-bg);
  font-size: 0.85em;
  overflow-wrap: anywhere;
}

table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { padding: 0.7rem 0.6rem 0.7rem 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
td:first-child { width: 38%; }

footer { margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
footer p { margin: 0.3rem 0; }

@media (max-width: 560px) {
  h1 { font-size: 2rem; }
  table, thead, tbody, tr, th, td { display: block; }
  thead { display: none; }
  td:first-child { width: auto; padding-bottom: 0.2rem; border-bottom: none; }
  tr { border-bottom: 1px solid var(--line); padding: 0.4rem 0; }
  td { border-bottom: none; }
}
