:root {
  --primary: #5b4cf0;
  --text: #16142b;
  --muted: #6b6882;
  --surface: #f4f3fb;
  --border: #dddbea;
  --background: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #9d93ff;
    --text: #eceaf7;
    --muted: #a7a4bd;
    --surface: #1e1c33;
    --border: #34314f;
    --background: #13122a;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

header {
  border-bottom: 1px solid var(--border);
}

header .inner, main, footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}

header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-weight: 800;
  font-size: 20px;
  text-decoration: none;
}

nav { display: flex; gap: 16px; flex-wrap: wrap; font-size: 15px; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover, nav a[aria-current='page'] { color: var(--primary); }

main { padding-top: 32px; padding-bottom: 48px; }

h1 { font-size: 32px; line-height: 1.2; margin: 0 0 8px; }
h2 { font-size: 21px; margin: 36px 0 8px; }
h3 { font-size: 17px; margin: 20px 0 4px; }
p, li { color: var(--text); }
.updated { color: var(--muted); margin-top: 0; }
a { color: var(--primary); }

.card {
  background: var(--surface);
  border-radius: 16px;
  padding: 16px 20px;
  margin: 20px 0;
}

table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; }

/* Tables scroll inside themselves on phones instead of widening the page. */
.table-wrap { overflow-x: auto; }

footer {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  padding-bottom: 32px;
  color: var(--muted);
  font-size: 14px;
}
