:root {
  --bg: #f6f1e7;
  --bg-strong: #efe4d4;
  --surface: rgba(255, 252, 247, 0.82);
  --surface-strong: rgba(255, 249, 239, 0.96);
  --ink: #1f2933;
  --muted: #5b6470;
  --accent: #7a3f1d;
  --accent-soft: #d97d38;
  --line: rgba(31, 41, 51, 0.12);
  --shadow: 0 24px 60px rgba(77, 48, 23, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(217, 125, 56, 0.14), transparent 28%),
    linear-gradient(180deg, #fbf7f0 0%, var(--bg) 52%, #efe6d9 100%);
}

a {
  color: inherit;
}

.background-orbit {
  position: fixed;
  inset: auto;
  width: 32rem;
  height: 32rem;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(22px);
  opacity: 0.32;
  z-index: 0;
}

.orbit-a {
  top: -8rem;
  right: -10rem;
  background: rgba(217, 125, 56, 0.24);
}

.orbit-b {
  bottom: -12rem;
  left: -10rem;
  background: rgba(56, 101, 150, 0.16);
}

.site-header,
.site-main,
.site-footer {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  padding: 1.5rem 0 1rem;
}

.site-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.site-brand,
.site-nav a,
.button,
.text-link {
  text-decoration: none;
}

.site-brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  gap: 1rem;
}

.site-nav a {
  color: var(--muted);
}

.site-header__intro {
  margin-top: 2.5rem;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  background: linear-gradient(135deg, rgba(255, 250, 243, 0.92), rgba(249, 239, 225, 0.72));
  box-shadow: var(--shadow);
}

.site-header__intro h1,
.hero-card h2,
.section-header h2,
.profile-hero h2 {
  margin: 0.25rem 0 0.75rem;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.1;
}

.lede,
.section-copy,
.notice,
.card-note,
.panel-note,
.muted {
  color: var(--muted);
}

.notice,
.hero-card,
.panel,
.profile-card,
.search-result-card,
.search-app,
.profile-hero {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.notice {
  padding: 0.85rem 1rem;
  background: rgba(255, 246, 230, 0.92);
}

.site-main {
  padding: 1rem 0 4rem;
}

.hero-card,
.search-app,
.profile-hero {
  padding: 1.5rem;
}

.hero-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 12rem;
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #fff8f0;
  font-weight: 700;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin: 2rem 0 1rem;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card-grid,
.profile-layout {
  display: grid;
  gap: 1rem;
}

.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.profile-layout {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 1.5rem;
}

.profile-card,
.search-result-card,
.panel {
  padding: 1.25rem;
}

.profile-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.badge,
.score-pill {
  display: inline-flex;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.badge {
  background: rgba(122, 63, 29, 0.14);
  color: var(--accent);
}

.score-pill {
  background: rgba(56, 101, 150, 0.12);
  color: #2c4d70;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.metric-grid dt {
  color: var(--muted);
  font-size: 0.82rem;
}

.metric-grid dd {
  margin: 0.25rem 0 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.text-link {
  color: var(--accent);
  font-weight: 700;
}

.search-label {
  display: block;
  margin-bottom: 0.65rem;
  font-weight: 700;
}

.search-input {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-strong);
  font: inherit;
}

.search-results,
.stacked-panels {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.banner {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 248, 236, 0.94);
}

.banner-under_review {
  background: rgba(255, 240, 224, 0.94);
}

.banner-insufficient_evidence {
  background: rgba(248, 243, 229, 0.94);
}

.banner-maintenance {
  background: rgba(242, 234, 225, 0.94);
}

.fact-list {
  margin: 0;
  padding-left: 1.2rem;
}

.fact-list li + li {
  margin-top: 0.45rem;
}

.json-preview {
  overflow-x: auto;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(31, 41, 51, 0.04);
}

.site-footer {
  padding: 0 0 3rem;
  color: var(--muted);
}

@media (max-width: 768px) {
  .site-header__inner,
  .hero-card,
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }
}
