:root {
  color-scheme: dark;
  --bg: #0c1117;
  --bg-2: #101820;
  --card: #151d27;
  --line: #2a3848;
  --text: #e7eef6;
  --muted: #93a3b8;
  --accent: #3ee0b0;
  --accent-dim: #12382f;
  --critical: #ff6b6b;
  --high: #f5a524;
  --medium: #e6c229;
  --low: #5eb8ff;
  --kev: #ff7a90;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  font-family: "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { min-height: 100vh; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.top {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(12, 17, 23, 0.92);
  position: sticky;
  top: 0;
  z-index: 2;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: 0.01em;
}
.mark {
  width: 18px;
  height: 18px;
  border: 1.6px solid var(--accent);
  border-radius: 5px 5px 8px 8px;
  box-shadow: inset 0 -6px 0 var(--accent-dim);
}
.search { display: flex; gap: 8px; width: min(420px, 100%); }
.search input {
  flex: 1;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
}
.search button, .text-button {
  background: var(--accent);
  color: #06241c;
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 650;
  cursor: pointer;
  text-decoration: none;
}
.hero {
  padding: 36px 28px 8px;
  max-width: 1180px;
  margin: 0 auto;
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
}
h1 { margin: 0; font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.03em; line-height: 1.05; }
.lede { max-width: 68ch; color: var(--muted); font-size: 17px; line-height: 1.5; }
.stats { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 0 8px; }
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  min-width: 120px;
  padding: 12px 14px;
}
.stat b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 13px; }
.layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 28px 48px;
}
.layout.single { grid-template-columns: minmax(0, 1fr); }
.nav { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 84px; align-self: start; }
.nav a, .filters a {
  text-decoration: none;
  color: var(--muted);
  border-radius: 10px;
  padding: 8px 10px;
}
.nav a { display: flex; justify-content: space-between; gap: 8px; }
.nav a.active, .filters a.active { background: var(--accent-dim); color: var(--text); }
.nav a:hover, .filters a:hover { color: var(--text); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.filters a { border: 1px solid var(--line); }
.feed { display: flex; flex-direction: column; gap: 12px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 16px 14px;
  box-shadow: var(--shadow);
}
.card-top, .card-links, .meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.card h2 { margin: 10px 0 6px; font-size: 20px; letter-spacing: -0.02em; line-height: 1.25; }
.card h2 a { text-decoration: none; }
.card h2 a:hover { color: var(--accent); }
.summary { margin: 0; color: var(--muted); line-height: 1.45; }
.product { color: var(--text); }
.mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 13px; }
.pill, .cat {
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.01em;
}
.cat { background: #1c2836; color: var(--muted); text-decoration: none; }
.sev-critical { background: rgba(255, 107, 107, 0.16); color: var(--critical); }
.sev-high { background: rgba(245, 165, 36, 0.16); color: var(--high); }
.sev-medium { background: rgba(230, 194, 41, 0.14); color: var(--medium); }
.sev-low { background: rgba(94, 184, 255, 0.14); color: var(--low); }
.kev { background: rgba(255, 122, 144, 0.16); color: var(--kev); }
.card-links { margin-top: 12px; justify-content: space-between; }
.card-links a { color: var(--accent); text-decoration: none; font-size: 14px; }
.pager { display: flex; gap: 16px; justify-content: space-between; margin-top: 8px; }
.pager a { color: var(--accent); }
.empty, .detail {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
}
.detail h1 { font-size: clamp(26px, 3vw, 36px); margin-top: 12px; }
.refs { list-style: none; padding: 0; margin: 18px 0 0; }
.refs li { border-top: 1px solid var(--line); padding: 12px 0; }
.refs a { color: var(--accent); }
.original {
  display: inline-block;
  margin-top: 8px;
  background: var(--accent);
  color: #06241c;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  padding: 10px 14px;
}
.foot {
  border-top: 1px solid var(--line);
  padding: 22px 28px 36px;
  color: var(--muted);
  max-width: 1180px;
  margin: 0 auto;
}
.foot p { margin: 0 0 8px; line-height: 1.45; }
.sources { font-size: 13px; }

@media (max-width: 800px) {
  .top, .hero, .layout, .foot { padding-left: 16px; padding-right: 16px; }
  .top { flex-wrap: wrap; }
  .search { width: 100%; }
  .layout { grid-template-columns: 1fr; }
  .nav {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    gap: 6px;
  }
  .nav a { white-space: nowrap; border: 1px solid var(--line); }
}
