:root {
  --bg: #0f0f12;
  --text: #e8e8ec;
  --muted: #9898a6;
  --accent: #c4a574;
  --rule: #2a2a32;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 2rem 1.25rem 3rem;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}

h1 {
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

nav a {
  color: var(--accent);
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
}

h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: var(--text);
}

h2:first-of-type {
  margin-top: 0;
}

p,
ul {
  margin: 0 0 1rem;
  color: var(--muted);
}

strong {
  color: var(--text);
}

ul {
  padding-left: 1.25rem;
}

hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 1.75rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1rem 0;
}

th,
td {
  border: 1px solid var(--rule);
  padding: 0.5rem 0.65rem;
  text-align: left;
  vertical-align: top;
}

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

td {
  color: var(--muted);
}

footer {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-size: 0.85rem;
  color: var(--muted);
}

footer em {
  font-style: italic;
}

.index-links {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.index-links li {
  margin-bottom: 0.75rem;
}

.index-links a {
  color: var(--accent);
  font-size: 1.05rem;
  text-decoration: none;
}

.index-links a:hover {
  text-decoration: underline;
}

.index-links span {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.15rem;
}
