:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #1a1d21;
  --muted: #5c6570;
  --accent: #0d4f3c;
  --accent-hover: #0a3d2f;
  --border: #e2e6ea;
  --radius: 10px;
  --max: 640px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

.wrap {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0 1.75rem;
}

.site-header h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 4vw, 1.65rem);
  font-weight: 650;
  letter-spacing: -0.02em;
}

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

main {
  padding: 1.75rem 0 3rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.card h2 {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--text);
}

.card p {
  margin: 0 0 0.85rem;
}

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

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

.muted-block {
  background: #fafbfc;
}

.entity-list {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.entity-list li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--border);
}

.entity-list li:first-of-type {
  border-top: none;
  padding-top: 0.25rem;
}

.entity-name {
  font-weight: 600;
}

.entity-list a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-all;
}

.entity-list a:hover {
  color: var(--accent-hover);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 1.25rem 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

@media print {
  body {
    background: #fff;
  }
  .card {
    box-shadow: none;
    break-inside: avoid;
  }
}
