:root {
  color-scheme: light dark;
  --bg: #fffbff;
  --surface: #f6f2f7;
  --text: #1d1b1e;
  --muted: #4a454e;
  --accent: #7b4e7f;
  --line: #e0d8e2;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151316;
    --surface: #201d22;
    --text: #e8e0e8;
    --muted: #cbc2cd;
    --accent: #e5b6ea;
    --line: #353037;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 2.5rem 1.5rem 4rem;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}

main { max-width: 44rem; margin: 0 auto; }

header { margin-bottom: 2.5rem; }

h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 .5rem; letter-spacing: -.02em; }
h2 { font-size: 1.15rem; margin: 2.5rem 0 .75rem; letter-spacing: -.01em; }
h3 { font-size: 1rem; margin: 1.5rem 0 .5rem; }

.lede { color: var(--muted); font-size: 1.05rem; margin: 0; }
.updated { color: var(--muted); font-size: .875rem; margin: .5rem 0 0; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }

ul { padding-left: 1.25rem; }
li { margin: .4rem 0; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: .95rem;
}

th, td {
  text-align: left;
  padding: .6rem .75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th { font-weight: 600; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .875rem;
}

code {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: .1rem .35rem;
  font-size: .9em;
}
