:root {
  --bg: #ffffff;
  --surface: #f0f0f3;
  --text: #111317;
  --muted: #5b6069;
  --tint: #0969c9;
  --tint-soft: #e3f1ff;
  --border: #e0e1e6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0c0e;
    --surface: #1b1c1f;
    --text: #f2f3f5;
    --muted: #b0b4ba;
    --tint: #4da8ff;
    --tint-soft: #0f2a44;
    --border: #2e3135;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

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

::selection {
  background: var(--tint-soft);
  color: var(--text);
}

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

a:focus-visible {
  outline: 2px solid var(--tint);
  outline-offset: 3px;
  border-radius: 4px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 44rem;
  margin: 0 auto;
  padding: 24px 16px 0;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

main {
  max-width: 44rem;
  margin: 0 auto;
  padding: 16px 16px 64px;
}

h1 {
  font-size: clamp(1.9rem, 5vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 24px 0 8px;
  text-wrap: balance;
}

h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 40px 0 8px;
  text-wrap: balance;
}

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

ul {
  padding-left: 1.2rem;
}

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

.updated {
  color: var(--muted);
  margin-top: 0;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
}

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

.box p:first-child {
  margin-top: 0;
}

.box p:last-child {
  margin-bottom: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 0.95rem;
}

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

th {
  color: var(--muted);
  font-weight: 600;
}

.table-wrap {
  overflow-x: auto;
}

footer {
  max-width: 44rem;
  margin: 0 auto;
  padding: 24px 16px 48px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
}

footer a + a {
  margin-left: 16px;
}
