:root {
  --bg: #f7f3ea;
  --card: #fffdf8;
  --ink: #1f1f21;
  --muted: #6a6763;
  --line: #ded7ca;
  --accent: #cf5b2f;
  --accent-2: #1c7f7d;
  --denounced: #a11f33;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Mono", monospace;
  color: var(--ink);
  background: radial-gradient(circle at 20% 10%, #fff6e8 0%, var(--bg) 45%);
  min-height: 100vh;
}

.background-glow {
  position: fixed;
  border-radius: 999px;
  filter: blur(56px);
  opacity: 0.25;
  z-index: 0;
  pointer-events: none;
}

.glow-a {
  width: 360px;
  height: 360px;
  background: #ea8f50;
  top: -90px;
  left: -80px;
}

.glow-b {
  width: 300px;
  height: 300px;
  background: #3aa09d;
  right: -50px;
  top: 120px;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.hero h1 {
  margin: 6px 0 8px;
  font-family: "Fraunces", serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.1;
}

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

.subtitle {
  color: var(--muted);
  max-width: 70ch;
  margin: 0;
}

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

.subtitle a:hover {
  text-decoration: underline;
}

.scoring {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 18px;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.6;
}

.scoring summary {
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--ink);
  font-weight: 700;
}

.scoring code {
  background: #f0ebe2;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.76rem;
}

.footer {
  margin-top: 24px;
  padding: 12px 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.footer a {
  color: var(--accent-2);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.metric {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}

.metric-label {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.metric-value {
  font-family: "Fraunces", serif;
  font-size: 1.4rem;
  white-space: nowrap;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.controls label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.84rem;
  color: var(--muted);
  flex: none;
}

.controls input,
.controls select {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 10px;
  padding: 9px 10px;
  font-family: inherit;
  font-size: 0.84rem;
  height: 38px;
}

.layout {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 12px;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  text-align: left;
  padding: 7px 10px;
  border-bottom: 1px solid var(--line);
  background: #fff7eb;
  font-size: 0.75rem;
  color: var(--muted);
}

tbody td {
  padding: 6px 10px;
  border-bottom: 1px solid #ede7dd;
  font-size: 0.82rem;
}

tbody tr {
  cursor: pointer;
  transition: background 150ms ease;
}

tbody tr:hover {
  background: #fff7ee;
}

tbody tr.is-selected {
  background: #ffe6cc;
}

.pill {
  display: inline-block;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.72rem;
  padding: 2px 8px;
}

.score {
  color: var(--accent-2);
  font-weight: 700;
}

.denounced {
  color: var(--denounced);
  font-weight: 700;
}

.detail-panel {
  padding: 14px;
}

.detail-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.detail-name {
  margin: 0;
  font-size: 1.2rem;
  font-family: "Fraunces", serif;
}

.detail-empty {
  color: var(--muted);
  margin: 0;
  font-size: 0.84rem;
  padding: 20px 0;
  text-align: center;
}

.repo-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.repo-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  background: #fff8f0;
}

.repo-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.repo-name {
  font-size: 0.9rem;
  color: var(--ink);
  text-decoration: none;
}

.repo-name:hover {
  text-decoration: underline;
}

.repo-meta {
  margin-top: 3px;
  font-size: 0.72rem;
  color: var(--muted);
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
  }
}
