:root {
  --bg: #faf8f3;
  --fg: #1a1a1a;
  --muted: #6b6b66;
  --rule: #e2e0d8;
  --accent: #3a5a8c;
  --paper-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 16px 32px -20px rgba(0,0,0,0.12);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-feature-settings: "cv11", "ss01", "ss03";
  line-height: 1.55;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a.muted { color: var(--muted); }

code { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.9em; }

.topbar {
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.brand {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 24px;
  color: var(--fg);
  letter-spacing: 0.01em;
}
.nav-links { display: flex; gap: 20px; font-size: 14px; }

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.hero h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: 48px;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.lede {
  font-size: 17px;
  color: var(--fg);
  max-width: 60ch;
  margin: 0 0 48px;
}

h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: 28px;
  margin: 48px 0 12px;
}

.muted { color: var(--muted); }
.small { font-size: 13px; }

.cat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 24px;
}
@media (min-width: 720px) {
  .cat-grid { grid-template-columns: 1fr; }
}

.cat-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  background: white;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 28px;
  box-shadow: var(--paper-shadow);
}
@media (max-width: 640px) {
  .cat-card { grid-template-columns: 1fr; }
}

.avatar-col { display: flex; align-items: flex-start; justify-content: center; }
.avatar-slot svg { width: 100%; max-width: 280px; height: auto; }

.cat-name {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: 32px;
  margin: 0 0 4px;
}
.caption { color: var(--muted); margin: 0 0 18px; font-size: 14px; }

.state-list { list-style: none; padding: 0; margin: 0 0 16px; font-size: 13px; }
.state-list li {
  padding: 6px 0;
  border-bottom: 1px dashed var(--rule);
  display: flex;
  gap: 8px;
}
.state-list li:last-child { border-bottom: 0; }
.state-list .k { color: var(--muted); min-width: 90px; }

.traits {
  display: block;
  background: var(--bg);
  padding: 10px 12px;
  border-radius: 3px;
  font-size: 11px;
  color: var(--muted);
  white-space: pre-wrap;
  word-break: break-all;
  margin-top: 12px;
}

.status-list {
  list-style: none;
  padding: 0;
  margin-top: 12px;
  font-size: 14px;
}
.status-list li { padding: 4px 0; }

footer {
  border-top: 1px solid var(--rule);
  margin-top: 96px;
  padding: 32px 24px;
  background: var(--bg);
}
.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  color: var(--muted);
}
