:root {
  --ink: #0b0f14;
  --panel: #12171f;
  --line: #262f3a;
  --line-strong: #37414d;
  --text: #dde3ea;
  --text-muted: #8b93a1;
  --brass: #c9a24a;
  --brass-dim: #8a7239;
  --emerald: #3f8f6e;
  --brick: #a24b4b;
  --serif: "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --maxw: 760px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--ink);
  background-image: radial-gradient(ellipse at top left, rgba(201,162,74,0.05), transparent 55%);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
}

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.site-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--brass-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brass);
  flex-shrink: 0;
}

.site-header h1 {
  font-family: var(--serif);
  font-size: 22px;
  margin: 0;
}

.site-header .tag {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 3px;
}

.back-link {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line-strong);
}
.back-link:hover { color: var(--brass); }

/* Index page */
.category-group { margin-bottom: 36px; }

.category-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  margin-bottom: 10px;
}

.category-num {
  font-family: var(--mono);
  color: var(--brass);
  font-size: 13px;
}

.category-heading h2 {
  font-family: var(--serif);
  font-size: 17px;
  margin: 0;
  font-weight: 600;
}

.check-list { list-style: none; margin: 0; padding: 0; }

.check-list li {
  border-bottom: 1px solid var(--line);
}

.check-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 2px;
  text-decoration: none;
  color: var(--text);
  font-size: 13.5px;
}

.check-list a:hover { color: var(--brass); }

.check-list .weight {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Check detail page */
.detail-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass-dim);
  margin-bottom: 6px;
}

.detail-title {
  font-family: var(--serif);
  font-size: 26px;
  margin: 0 0 24px;
  line-height: 1.3;
}

.detail-section { margin-bottom: 26px; }

.detail-section h3 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 8px;
}

.detail-section p {
  margin: 0;
  color: var(--text);
  font-size: 14.5px;
}

pre {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 14px 16px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text);
}

.site-footer {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
}
