:root {
  color-scheme: dark;
  --bg: #0a0c0f;
  --surface: #11151a;
  --surface-raised: #171c22;
  --border: #29313a;
  --border-strong: #3b4652;
  --text: #edf1f5;
  --muted: #97a3af;
  --faint: #687582;
  --accent: #7ee787;
  --accent-soft: rgb(126 231 135 / 12%);
  --blue: #79c0ff;
  --purple: #d2a8ff;
  --orange: #ffa657;
  --shadow: 0 18px 50px rgb(0 0 0 / 24%);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f8fa;
  --surface: #ffffff;
  --surface-raised: #f0f3f6;
  --border: #d8dee4;
  --border-strong: #afb8c1;
  --text: #1f2328;
  --muted: #59636e;
  --faint: #77818b;
  --accent: #1a7f37;
  --accent-soft: rgb(26 127 55 / 10%);
  --blue: #0969da;
  --purple: #8250df;
  --orange: #bc4c00;
  --shadow: 0 18px 50px rgb(31 35 40 / 10%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 85% -10%, rgb(126 231 135 / 9%), transparent 32rem), var(--bg);
  font-size: 15px;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  color: inherit;
  font: inherit;
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(20px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.02em;
}

.brand-mark {
  color: var(--accent);
  font-size: 21px;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.topnav a:hover,
.section-heading a:hover,
.breadcrumbs a:hover {
  color: var(--accent);
}

.theme-toggle {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
}

.hero {
  display: grid;
  min-height: 410px;
  align-items: center;
  gap: 60px;
  grid-template-columns: 1fr auto;
  padding-block: 72px;
}

.eyebrow {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.hero h1,
.detail-hero h1,
.repo-hero h1 {
  margin: 12px 0 18px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero h1 em {
  color: var(--muted);
  font-style: normal;
  font-weight: 450;
}

.hero p,
.detail-hero p,
.repo-hero p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.date-chip {
  display: flex;
  min-width: 220px;
  flex-direction: column;
  gap: 8px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: 160ms ease;
}

.date-chip:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.date-chip span {
  color: var(--muted);
  font-size: 12px;
}

.date-chip strong {
  font-size: 20px;
}

.metrics {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  grid-template-columns: repeat(5, 1fr);
}

.metric {
  display: flex;
  min-height: 128px;
  flex-direction: column;
  justify-content: center;
  padding: 22px;
  border-right: 1px solid var(--border);
}

.metric:last-child {
  border-right: 0;
}

.metric > span,
.metric small {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metric strong {
  margin-block: 3px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 28px;
  font-weight: 600;
}

.section {
  padding-block: 76px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 4px 0 0;
  font-size: 28px;
  letter-spacing: -0.035em;
}

.section-heading > span,
.section-heading > a {
  color: var(--muted);
  font-size: 13px;
}

.group-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}

.group-card,
.repository-card {
  display: flex;
  flex-direction: column;
  padding: 23px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  transition: 150ms ease;
}

.group-card:hover,
.repository-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-raised);
  transform: translateY(-1px);
}

.group-title,
.group-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.group-title h3 {
  margin: 0;
  font-size: 16px;
}

.group-title strong {
  color: var(--accent);
  font:
    600 22px ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
}

.activity-bar {
  overflow: hidden;
  height: 3px;
  margin-block: 20px;
  background: var(--border);
}

.activity-bar span {
  display: block;
  height: 100%;
  background: var(--accent);
}

.group-meta {
  color: var(--muted);
  font-size: 12px;
}

.signal-list {
  display: grid;
  gap: 10px;
}

.signal-card {
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
}

.signal-card:target {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.signal-head,
.signal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.signal-head {
  justify-content: space-between;
}

.signal-head time,
.signal-meta {
  color: var(--muted);
  font-size: 11px;
}

.signal-card h3 {
  margin: 11px 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.signal-card h3 a:hover {
  color: var(--accent);
}

.signal-card p {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 13px;
  white-space: pre-line;
}

.kind,
.label {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border: 1px solid currentcolor;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.kind.issue {
  color: var(--accent);
}

.kind.pull_request {
  color: var(--purple);
}

.kind.release {
  color: var(--blue);
}

.label {
  color: var(--faint);
  text-transform: none;
}

.signal-meta .evidence {
  margin-left: auto;
  color: var(--blue);
  font-weight: 650;
}

.compact-list .signal-card p {
  display: none;
}

.archive {
  padding-bottom: 80px;
}

.date-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, 1fr);
}

.date-grid a {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.date-grid a:hover {
  border-color: var(--accent);
}

.date-grid span {
  color: var(--muted);
  font-size: 12px;
}

.detail-page {
  min-height: calc(100vh - 128px);
  padding-block: 30px 90px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
}

.detail-hero,
.repo-hero {
  padding-block: 72px 50px;
}

.project-context {
  margin-bottom: 28px;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
}

.project-context p {
  margin: 0 0 14px;
  color: var(--muted);
}

.timeline {
  margin-block: 30px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
}

.timeline h2 {
  margin-top: 0;
  font-size: 19px;
}

.timeline ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  gap: 10px;
  align-items: baseline;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  grid-template-columns: minmax(150px, auto) 90px 1fr;
  color: var(--muted);
  font-size: 12px;
}

.timeline li strong {
  color: var(--accent);
  text-transform: uppercase;
}

.detail-hero h1,
.repo-hero h1 {
  font-size: clamp(38px, 6vw, 64px);
}

.compact-metrics {
  grid-template-columns: repeat(4, 1fr);
}

.compact-metrics .metric {
  min-height: 110px;
}

.repository-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
}

.repository-card {
  min-height: 230px;
}

.repository-card h2 {
  margin: 5px 0 0;
  font-size: 20px;
}

.repo-slug {
  color: var(--muted);
  font:
    11px ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
}

.repository-card > strong {
  margin-block: auto 12px;
  color: var(--accent);
  font:
    600 34px ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
}

.kind-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.repo-link {
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
}

.repo-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.primary-button {
  flex: 0 0 auto;
  padding: 11px 16px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.primary-button:hover {
  color: var(--bg);
  background: var(--accent);
}

.filter-bar {
  position: sticky;
  z-index: 5;
  top: 64px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-block: 32px 18px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(16px);
}

.filter-bar input {
  min-width: 180px;
  flex: 1;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 3px;
  outline: 0;
  background: var(--surface);
}

.filter-bar input:focus {
  border-color: var(--accent);
}

.filter-buttons {
  display: flex;
  gap: 5px;
}

.filter-buttons button {
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 3px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
}

.filter-buttons button:hover,
.filter-buttons button.active {
  border-color: var(--border);
  color: var(--text);
  background: var(--surface);
}

#filter-count {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.signal-card.hidden {
  display: none;
}

.pagination {
  display: grid;
  align-items: center;
  gap: 16px;
  margin: 32px 0 70px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  grid-template-columns: 1fr auto 1fr;
}

.pagination a {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.pagination a:last-child,
.pagination .disabled:last-child {
  text-align: right;
}

.pagination > span {
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.no-signals,
.empty-state {
  display: grid;
  min-height: 55vh;
  place-content: center;
  text-align: center;
}

.empty-state h1 {
  margin: 10px 0;
  font-size: 42px;
}

.empty-state p,
.no-signals {
  color: var(--muted);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px max(20px, calc((100vw - 1180px) / 2));
  border-top: 1px solid var(--border);
  color: var(--faint);
  font-size: 11px;
}

@media (max-width: 850px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-block: 60px;
  }

  .date-chip {
    min-width: 0;
  }

  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric {
    border-bottom: 1px solid var(--border);
  }

  .group-grid,
  .repository-grid {
    grid-template-columns: 1fr;
  }

  .date-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .filter-bar {
    align-items: stretch;
    flex-direction: column;
  }

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

  .pagination > span:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .filter-buttons {
    overflow-x: auto;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 24px, 1180px);
  }

  .topbar {
    min-height: 56px;
    padding-inline: 12px;
  }

  .topnav {
    gap: 13px;
  }

  .hero h1 {
    font-size: 43px;
  }

  .hero {
    gap: 35px;
  }

  .metrics,
  .compact-metrics,
  .date-grid {
    grid-template-columns: 1fr 1fr;
  }

  .metric {
    min-height: 100px;
    padding: 16px;
  }

  .section-heading,
  .repo-hero,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .group-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .signal-card {
    padding: 18px;
  }

  .signal-meta .evidence {
    width: 100%;
    margin: 4px 0 0;
  }

  .filter-bar {
    top: 56px;
  }

  .timeline li {
    grid-template-columns: 1fr;
  }
}
