@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #edf0f3;
  --surface: #ffffff;
  --ink: #0f1b2d;
  --muted: #556274;
  --line: #cbd3dc;
  --accent: #0a6e6a;
  --raw: #a8401a;
  --bar: #0f1b2d;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1520;
    --surface: #142030;
    --ink: #e6ebf1;
    --muted: #97a5b6;
    --line: #283850;
    --accent: #52c3b9;
    --raw: #f0915f;
    --bar: #dfe6ee;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 "Archivo", system-ui, sans-serif;
}
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
code, pre { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.88em; }

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 48rem) { .wrap { padding: 0 2rem; } }
.prose { max-width: 42rem; }

/* Header */
.site-header { padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 2rem; }
.logo { display: flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; font-weight: 750; font-stretch: 115%; font-size: 1.15rem; letter-spacing: -0.01em; }
.logo svg { width: 1.6rem; height: 1.6rem; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; font-size: 0.95rem; }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover { color: var(--ink); }

/* Hero */
.hero { padding-block: 4rem 3rem; }
.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.4rem, 7vw, 4.75rem);
  line-height: 1;
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.03em;
  max-width: 14ch;
}
.lede { font-size: 1.2rem; color: var(--muted); max-width: 38rem; margin: 0 0 2rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-block; padding: 0.8rem 1.3rem; border-radius: 6px;
  font-weight: 600; text-decoration: none; border: 2px solid var(--ink);
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-secondary { color: var(--ink); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* The specimen: one record before and after */
.specimen { margin: 3.5rem 0 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; }
.specimen figcaption { padding: 0.9rem 1.25rem; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; }
.rec { margin: 0; padding: 1.1rem 1.25rem 1.3rem; }
.rec + .rec { border-top: 1px dashed var(--line); }
.rec-label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 0.4rem; }
.rec pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: clamp(0.8rem, 1.6vw, 0.95rem); line-height: 1.7; }
.raw { color: var(--raw); }
.bar { display: inline-block; background: var(--bar); color: transparent; border-radius: 2px; line-height: 1.15; user-select: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Sections */
section { padding: 4rem 0; border-top: 1px solid var(--line); }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.1; font-weight: 750; font-stretch: 112%; letter-spacing: -0.02em; margin: 0 0 1.25rem; max-width: 24ch; }
h3 { font-size: 1.1rem; font-weight: 700; margin: 0 0 0.4rem; }
p { margin: 0 0 1rem; }
.note { color: var(--muted); font-size: 0.95rem; }

.features { display: grid; gap: 2rem 3rem; margin: 2.5rem 0 0; }
@media (min-width: 48rem) { .features { grid-template-columns: 1fr 1fr; } }
.features div { margin: 0; }
.features dt { font-weight: 700; margin-bottom: 0.3rem; }
.features dd { margin: 0; color: var(--muted); }

/* Pipeline */
.pipeline { list-style: none; padding: 0; margin: 2.5rem 0; display: flex; flex-direction: column; gap: 0.5rem; }
.pipeline li { padding: 0.9rem 1.1rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.pipeline li span { display: block; font-size: 0.85rem; color: var(--muted); }
.pipeline .core { border: 2px solid var(--accent); }
.pipeline .core strong { color: var(--accent); }
.pipeline li:not(:last-child)::after { content: "↓"; display: block; text-align: center; color: var(--muted); margin: 0.6rem 0 -0.6rem; }
@media (min-width: 60rem) {
  .pipeline { flex-direction: row; align-items: stretch; gap: 1.75rem; }
  .pipeline li { flex: 1; position: relative; }
  .pipeline li:not(:last-child)::after { content: "→"; position: absolute; right: -1.4rem; top: 50%; transform: translateY(-50%); margin: 0; }
}
.two-col { display: grid; gap: 2rem 3rem; margin-top: 1rem; }
@media (min-width: 48rem) { .two-col { grid-template-columns: 1fr 1fr; } }
.two-col p { color: var(--muted); }

/* Tables */
.table-scroll { overflow-x: auto; margin: 2rem 0 1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 40rem; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); }
tr:last-child td, tr:last-child th { border-bottom: 0; }
thead th { font-weight: 700; background: var(--bg); }
tbody th { font-weight: 600; }
.ours { color: var(--accent); font-weight: 600; }
td.yes { color: var(--accent); font-weight: 700; }

pre.block { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1.1rem 1.25rem; overflow-x: auto; line-height: 1.6; margin: 1.5rem 0; }

/* Contact */
.contact h2 { max-width: none; }
.big-mail { font-size: clamp(1.3rem, 4.5vw, 2.2rem); font-weight: 700; font-stretch: 110%; overflow-wrap: anywhere; }

/* Plain pages */
.page { padding-block: 3.5rem 4rem; }
.page h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.05; font-weight: 800; font-stretch: 118%; letter-spacing: -0.025em; margin: 0 0 1rem; }
.page h2 { font-size: 1.5rem; margin-top: 2.75rem; }
.page ul { padding-left: 1.2rem; }
.page li { margin-bottom: 0.6rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0 3rem; color: var(--muted); font-size: 0.92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.site-footer a { color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  .bar { animation: redact 0.5s ease-out 0.6s both; transform-origin: left; }
  @keyframes redact { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}
