:root {
  --bg-page: #ffffff;
  --bg-elev: #fafafa;
  --text-hi: #222222;
  --text-default: #5c5c5c;
  --accent: #6b21a8;
  --accent-soft: #f4ecfb;
  --line: #e5e5e5;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-page: #111118;
    --bg-elev: #1a1a24;
    --text-hi: #fafafa;
    --text-default: #c0bfcf;
    --accent: #a78bfa;
    --accent-soft: #1e1830;
    --line: #2e2e3e;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-default);
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

a {
  color: var(--accent);
}

.header {
  position: sticky;
  top: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-page);
}

.brand {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--text-hi);
  font-size: 1.125rem;
  font-weight: 500;
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.nav a {
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--text-default);
  font-size: 0.875rem;
  text-decoration: none;
}

.nav a:hover {
  background: var(--bg-elev);
}

.nav a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 500;
}

.content {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 96px;
  overflow-wrap: break-word;
}

h1,
h2 {
  color: var(--text-hi);
  font-weight: 500;
}

h1 {
  margin: 0 0 32px;
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2 {
  margin: 48px 0 12px;
  font-size: 1.375rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

ul {
  padding-left: 24px;
}

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

.table {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  line-height: 1.4;
}

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

th {
  background: var(--bg-elev);
  color: var(--text-hi);
  font-weight: 500;
}

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

@media (max-width: 600px) {
  .content {
    padding: 32px 16px 64px;
  }

  h1 {
    font-size: 1.5rem;
  }
}
