/* Vulnsift landing page. No framework, no script, nothing loaded from elsewhere. */

:root {
  color-scheme: light dark;

  --bg: #faf9f5;
  --surface: #ffffff;
  --ink: #15181c;
  --soft: #3d444c;
  --muted: #5d656f;
  --rule: #e2dfd6;
  --accent: #0c6a53;
  --critical-bg: #fce9e5;
  --critical-ink: #981b12;
  --critical-rule: #f1c3bb;
  --shadow: 0 1px 2px rgb(21 24 28 / 6%), 0 18px 40px -18px rgb(21 24 28 / 22%);

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1012;
    --surface: #15191c;
    --ink: #ebe9e4;
    --soft: #c9cdd1;
    --muted: #9aa2ab;
    --rule: #262b30;
    --accent: #62d2ab;
    --critical-bg: #3a1613;
    --critical-ink: #ffb4a8;
    --critical-rule: #5d251f;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 22px 48px -20px rgb(0 0 0 / 75%);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ol,
ul,
dl,
dd,
figure {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.2em;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: 70rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.5rem 0.9rem;
  background: var(--ink);
  color: var(--bg);
  border-radius: 6px;
  text-decoration: none;
}

.skip:focus {
  top: 1rem;
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.15rem;
  font-weight: 680;
  letter-spacing: -0.015em;
  text-decoration: none;
}

.brand:hover {
  color: inherit;
}

.mark-noise {
  fill: currentColor;
  opacity: 0.3;
}

.mark-sieve {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.mark-kept {
  fill: var(--accent);
}

.pill {
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Hero */

.hero {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 8vw, 6.5rem) clamp(3.5rem, 9vw, 7.5rem);
}

@media (min-width: 62rem) {
  .hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  }
}

h1 {
  font-size: clamp(2.25rem, 4.6vw, 3.75rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.line {
  display: block;
  text-wrap: balance;
}

.line-accent {
  color: var(--accent);
}

.lede {
  max-width: 36rem;
  margin-top: 1.6rem;
  color: var(--soft);
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  line-height: 1.55;
}

.hero-note {
  margin-top: 1.4rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.85rem;
}

/* The finding */

.finding {
  position: relative;
  min-width: 0;
}

/* What was sifted out: two cards behind the one that is left. */
.finding::before,
.finding::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 9rem;
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--surface);
  opacity: 0.55;
}

.finding::before {
  transform: translateY(-1.5rem) scale(0.9);
}

.finding::after {
  transform: translateY(-0.75rem) scale(0.95);
  opacity: 0.8;
}

.finding-card {
  position: relative;
  z-index: 1;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.finding-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.8rem;
}

.chip {
  padding: 0.15rem 0.6rem;
  border: 1px solid var(--critical-rule);
  border-radius: 999px;
  background: var(--critical-bg);
  color: var(--critical-ink);
  font-weight: 600;
}

.finding-score {
  color: var(--muted);
}

.finding-id {
  margin-left: auto;
  color: var(--muted);
}

.finding-target {
  margin-top: 0.9rem;
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.finding dl {
  margin-top: 1.1rem;
}

.finding dt {
  margin-top: 1rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.finding dd {
  margin-top: 0.3rem;
  color: var(--soft);
  font-size: 0.98rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.finding-checked {
  margin-top: 1.3rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--rule);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.5;
}

figcaption {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* Sections */

.band {
  padding-block: clamp(3rem, 7vw, 5.5rem);
  border-top: 1px solid var(--rule);
}

.eyebrow {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h2 {
  margin-top: 0.6rem;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 680;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.1rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.band p {
  color: var(--soft);
}

.steps,
.grid,
.columns {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}

@media (min-width: 48rem) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

.steps {
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  padding-top: 1.1rem;
  border-top: 2px solid var(--ink);
}

.steps li::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 0.7rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.85rem;
}

.steps p,
.grid p {
  margin-top: 0.5rem;
}

.grid li {
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
}

.list {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
  color: var(--soft);
}

.list li {
  position: relative;
  padding-left: 1.6rem;
}

.list li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.6em;
  width: 0.6rem;
  height: 0.6rem;
  border: 2px solid var(--accent);
  border-radius: 50%;
}

.list-built li::before {
  background: var(--accent);
}

.list-planned li::before {
  border-color: var(--muted);
}

.aside {
  max-width: 42rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
}

/* Footer */

.site-footer {
  padding-block: 2.25rem 3rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer p {
  max-width: 46rem;
}

/* The page for an address that does not exist */

.lost {
  padding-block: clamp(4rem, 14vw, 9rem);
}

.lost p {
  margin-top: 1.25rem;
  color: var(--soft);
}
