/* Open ATS Index — "blueprint census".
   A register of who is hiring, read from public endpoints on a dated day.
   Cool drafting-paper ground, signage display over document serif, and the
   dot-leader row of a printed index — because this is literally an index. */

:root {
  --field: #e4ebee;
  --card: #f5f8f9;
  --ink: #10222c;
  --muted: #5c737c;
  --rule: #c6d4da;
  --mark: #b4482e;
  --greenhouse: #2f6f52;
  --ashby: #5b4b9e;
  --lever: #1e6e8c;
  /* Fourth vendor. The three above walk green -> teal -> violet at one lightness;
     this closes the circuit at wine without borrowing --mark, which stays reserved
     for things you can act on. Deliberately pink-leaning so a 0.7rem tick never
     reads as the brick-orange of an action. */
  --breezy: #8d3c63;
  /* Fifth and sixth. With --mark holding the brick-orange wedge, six accents no
     longer fit the wheel by walking it in order, so these two fill the widest gaps
     instead: purple between ashby's violet and breezy's wine, khaki in the yellow-
     green arc that nothing else occupies. Both were checked, not chosen by eye —
     scripts/check-accent.mjs holds them to AA as text on both grounds and to 30°
     of hue from every other accent, which is where two 0.7rem ticks stop being
     tellable apart. Recruitee is the tightest at 37° from ashby; a seventh vendor
     will not fit this way and should change the encoding rather than squeeze in. */
  --recruitee: #7d3c8c;
  --teamtailor: #5a6216;

  --display: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --prose: "Source Serif 4", Georgia, serif;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --pad: clamp(1.25rem, 5vw, 4.5rem);
  --measure: 68rem;
}

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

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

body {
  margin: 0;
  background: var(--field);
  color: var(--ink);
  font-family: var(--display);
  font-variation-settings: "wdth" 100;
  font-size: 16px;
  line-height: 1.5;
  /* faint drafting grid, kept almost subliminal */
  background-image:
    linear-gradient(to right, rgba(16, 34, 44, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16, 34, 44, 0.035) 1px, transparent 1px);
  background-size: 2.5rem 2.5rem;
}

a { color: inherit; }

.serif { font-family: var(--prose); }
.sep { color: var(--rule); padding: 0 0.15em; }

/* ── top bar ─────────────────────────────────────────────────────────────── */

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1.5rem;
  padding: 1.1rem var(--pad);
  border-bottom: 1px solid var(--rule);
  background: rgba(228, 235, 238, 0.92);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.wordmark {
  font-variation-settings: "wdth" 118;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  margin-right: auto;
}

.topbar nav { display: flex; gap: 1.25rem; font-size: 0.82rem; }

.topbar nav a {
  font-family: var(--mono);
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.topbar nav a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.topbar nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--mark); }

main { padding: 0 var(--pad) 5rem; max-width: var(--measure); margin: 0 auto; }

/* ── hero ────────────────────────────────────────────────────────────────── */

.hero { padding: clamp(3rem, 9vw, 6.5rem) 0 clamp(2rem, 5vw, 3.5rem); }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero h1 {
  font-variation-settings: "wdth" 112;
  font-weight: 800;
  font-size: clamp(2.35rem, 6.6vw, 4.75rem);
  line-height: 0.98;
  letter-spacing: -0.022em;
  margin: 0 0 1.5rem;
  max-width: 26ch;
}

/* Each vendor keeps its own colour everywhere it appears — headline, composition
   band, section tick, row hover. Rust stays reserved for things you can act on. */
.hero h1 em { font-style: normal; }
.v-greenhouse { color: var(--greenhouse); }
.v-ashby { color: var(--ashby); }
.v-lever { color: var(--lever); }
.v-breezy { color: var(--breezy); }
.v-recruitee { color: var(--recruitee); }
.v-teamtailor { color: var(--teamtailor); }

.lede {
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.55;
  max-width: 46ch;
  margin: 0 0 2.25rem;
  color: #23414d;
}

.hero-narrow { padding-bottom: 1.5rem; }
.hero-narrow h1 { font-size: clamp(2rem, 5vw, 3.4rem); }

/* ── composition band ────────────────────────────────────────────────────── */

.bars {
  display: flex;
  height: 4.25rem;
  border: 1px solid var(--ink);
  overflow: hidden;
}

.bar {
  width: var(--w);
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.1rem;
  padding: 0 0.85rem;
  overflow: hidden;
  color: var(--card);
  border-right: 1px solid var(--ink);
  animation: grow 1s cubic-bezier(0.16, 0.84, 0.28, 1) both;
}

.bar:last-child { border-right: 0; }
.bar-greenhouse { background: var(--greenhouse); }
.bar-ashby { background: var(--ashby); animation-delay: 0.09s; }
.bar-lever { background: var(--lever); animation-delay: 0.18s; }
.bar-breezy { background: var(--breezy); animation-delay: 0.27s; }
.bar-recruitee { background: var(--recruitee); animation-delay: 0.36s; }
.bar-teamtailor { background: var(--teamtailor); animation-delay: 0.45s; }

.bar-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.82;
  white-space: nowrap;
}

.bar-num {
  font-variation-settings: "wdth" 108;
  font-weight: 700;
  font-size: 1.15rem;
  white-space: nowrap;
}

@keyframes grow { from { width: 0; } to { width: var(--w); } }

/* Narrow screens cannot fit "1,538" inside a 15%-wide segment, and a clipped
   number is worse than none. The band becomes pure composition; the counts are
   already stated in the section headers a scroll below. */
@media (max-width: 34rem) {
  .bars { height: 1.5rem; }
  .bar-label, .bar-num { display: none; }
}

/* ── provider sections ───────────────────────────────────────────────────── */

.prov { padding-top: clamp(3rem, 7vw, 4.75rem); }

.prov-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.7rem;
}

.prov-head h2 {
  font-variation-settings: "wdth" 115;
  font-weight: 800;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  letter-spacing: -0.01em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.tick {
  width: 0.7rem;
  height: 0.7rem;
  flex: none;
  display: inline-block;
  border-radius: 50%;
}

.tick-greenhouse { background: var(--greenhouse); }
.tick-ashby { background: var(--ashby); }
.tick-lever { background: var(--lever); }
.tick-breezy { background: var(--breezy); }
.tick-recruitee { background: var(--recruitee); }
.tick-teamtailor { background: var(--teamtailor); }

.prov-stat { font-family: var(--mono); font-size: 0.85rem; color: var(--muted); margin: 0; }
.prov-stat b { color: var(--ink); font-weight: 500; }

.endpoint { margin: 0.9rem 0 1.4rem; }

.endpoint code {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--rule);
  padding: 0.35rem 0.6rem;
  display: inline-block;
  overflow-wrap: anywhere;
}

/* ── the index rows: the signature ───────────────────────────────────────── */

.rows { list-style: none; margin: 0; padding: 0; }

.row {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid transparent;
}

.row[hidden] { display: none; }
.row:hover { border-bottom-color: var(--rule); }

.slug {
  font-family: var(--mono);
  font-size: 0.93rem;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.row:hover .slug { color: var(--mark); }

/* The dot leader of a printed index. Drawn as a repeating gradient rather than a
   dotted border so the dots stay crisp and evenly spaced at any width. */
.leader {
  flex: 1 1 auto;
  min-width: 1.5rem;
  align-self: center;
  height: 2px;
  background-image: radial-gradient(circle, var(--muted) 1px, transparent 1.3px);
  background-size: 7px 2px;
  background-repeat: repeat-x;
  opacity: 0.5;
  transform: translateY(0.12em);
}

.row:hover .leader { opacity: 0.9; }

.count {
  font-family: var(--mono);
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  flex: none;
}

.rows-greenhouse .row:hover .count { color: var(--greenhouse); }
.rows-ashby .row:hover .count { color: var(--ashby); }
.rows-lever .row:hover .count { color: var(--lever); }
.rows-breezy .row:hover .count { color: var(--breezy); }
.rows-recruitee .row:hover .count { color: var(--recruitee); }
.rows-teamtailor .row:hover .count { color: var(--teamtailor); }

.rows-full { margin-top: 1.5rem; column-gap: 3.5rem; }

@media (min-width: 46rem) { .rows-full { columns: 2; } }
@media (min-width: 72rem) { .rows-full { columns: 3; } }

.rows-full .row { break-inside: avoid; }
.rows-full.empty::after {
  content: "No board matches that.";
  font-family: var(--prose);
  color: var(--muted);
  display: block;
  padding: 2rem 0;
}

.more { font-family: var(--mono); font-size: 0.82rem; margin: 1.4rem 0 0; }
.more a { color: var(--mark); text-underline-offset: 3px; }

/* ── search ──────────────────────────────────────────────────────────────── */

.finder {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ink);
}

.search { display: block; flex: 1 1 22rem; }

.search-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.search input {
  width: 100%;
  font-family: var(--mono);
  font-size: 1.05rem;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--rule);
  padding: 0.7rem 0.85rem;
  border-radius: 0;
}

.search input:focus-visible { outline: 2px solid var(--mark); outline-offset: 1px; }

.readout { font-family: var(--mono); font-size: 0.85rem; color: var(--muted); margin: 0 0 0.2rem; }

/* ── method + downloads ──────────────────────────────────────────────────── */

.method { padding-top: clamp(3.5rem, 8vw, 5.5rem); }

.method h2, .downloads h2 {
  font-variation-settings: "wdth" 115;
  font-weight: 800;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  margin: 0 0 1.5rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--ink);
}

.cols { font-size: 1.02rem; line-height: 1.62; color: #23414d; }
.cols p { margin: 0 0 1.1rem; max-width: 62ch; }

@media (min-width: 58rem) {
  .cols { columns: 2; column-gap: 3.5rem; }
  .cols p { break-inside: avoid; }
}

.caveat {
  font-family: var(--prose);
  font-size: 0.98rem;
  color: var(--muted);
  border-left: 2px solid var(--mark);
  padding-left: 1rem;
  margin: 1.5rem 0 0;
  max-width: 62ch;
}

.downloads { padding-top: clamp(3.5rem, 8vw, 5.5rem); }
.dl { list-style: none; margin: 0 0 1.75rem; padding: 0; }

.dl a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1rem;
  padding: 0.85rem 0.9rem;
  background: var(--card);
  border: 1px solid var(--rule);
  margin-bottom: -1px;
  text-decoration: none;
}

.dl a:hover { border-color: var(--ink); position: relative; }
.dl-name { font-family: var(--mono); font-size: 0.95rem; color: var(--mark); }
.dl-meta { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }

.downloads .serif { font-size: 1.02rem; line-height: 1.6; max-width: 62ch; color: #23414d; }

/* ── footer ──────────────────────────────────────────────────────────────── */

/* Rule sits on the content edge, so it lines up with the section rules in main
   rather than with main's outer padding box. */
footer {
  padding: 0 var(--pad) 4rem;
  max-width: var(--measure);
  margin: 0 auto;
}

footer::before {
  content: "";
  display: block;
  border-top: 1px solid var(--ink);
  margin-bottom: 2.5rem;
}

footer .serif {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 62ch;
  margin: 0 0 1.25rem;
}
footer .meta { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); margin: 0; }
footer .meta a { color: var(--ink); text-underline-offset: 3px; }

/* ── coverage: the attrition band ────────────────────────────────────────── */

/* The index page's .bars shows composition — how the live roster splits by
   vendor. This shows survival, which is a different fact and needs a different
   shape: one full-width track per vendor, solid for what answered, hatched for
   what did not. The hatch is drawn rather than tinted so that "dead" reads as
   absence of material, not as a second category of company. */

.attrition { margin: 0; padding: 0; list-style: none; }

.att { padding-top: 1.75rem; }

.att-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.3rem 1.5rem;
  margin-bottom: 0.5rem;
}

.att-name {
  font-variation-settings: "wdth" 115;
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.att-rate {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.att-rate b { color: var(--ink); font-weight: 500; }

.att-track {
  height: 2.4rem;
  border: 1px solid var(--ink);
  background-color: var(--card);
  background-image: repeating-linear-gradient(
    -45deg,
    var(--rule) 0 1px,
    transparent 1px 7px
  );
}

.att-live {
  height: 100%;
  width: var(--w);
  border-right: 1px solid var(--ink);
  animation: grow 1.05s cubic-bezier(0.16, 0.84, 0.28, 1) both;
}

.att-greenhouse .att-live { background: var(--greenhouse); }
.att-ashby .att-live { background: var(--ashby); animation-delay: 0.09s; }
.att-lever .att-live { background: var(--lever); animation-delay: 0.18s; }
.att-breezy .att-live { background: var(--breezy); animation-delay: 0.27s; }
.att-recruitee .att-live { background: var(--recruitee); animation-delay: 0.36s; }
.att-teamtailor .att-live { background: var(--teamtailor); animation-delay: 0.45s; }

.att-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0.45rem 0 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ── coverage: the ledger ────────────────────────────────────────────────── */

.ledger-wrap { overflow-x: auto; margin-top: 1.5rem; }

.ledger {
  border-collapse: collapse;
  width: 100%;
  min-width: 34rem;
  font-family: var(--mono);
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
}

.ledger th, .ledger td { padding: 0.55rem 0.7rem; text-align: right; white-space: nowrap; }
.ledger th:first-child, .ledger td:first-child { text-align: left; }

.ledger thead th {
  border-bottom: 1px solid var(--ink);
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.ledger tbody tr { border-bottom: 1px solid var(--rule); }
.ledger tbody tr:hover { background: var(--card); }
.ledger tfoot td { border-top: 1px solid var(--ink); font-weight: 500; }
.ledger .name { display: flex; align-items: center; gap: 0.5rem; }
.ledger .dim { color: var(--muted); }

/* ── coverage: the erratum slip ──────────────────────────────────────────── */

/* A printed register carries its corrections on the page, not in a reissue.
   Rust is the site's reserved colour for things the reader should act on, and
   a number we got wrong is the most actionable thing here. */

.erratum {
  margin-top: 1.6rem;
  border: 1px solid var(--mark);
  background: var(--card);
  padding: clamp(1.1rem, 3vw, 1.6rem);
}

.erratum-tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--mark);
  margin: 0 0 0.75rem;
}

.erratum p {
  font-family: var(--prose);
  font-size: 1.02rem;
  line-height: 1.6;
  color: #23414d;
  margin: 0 0 1rem;
  max-width: 62ch;
}

.erratum p:last-child { margin-bottom: 0; }

.erratum-figs {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  margin: 0 0 1.1rem;
  padding: 0;
  list-style: none;
}

.erratum-figs div { font-family: var(--mono); }

.erratum-figs dt {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.erratum-figs dd {
  margin: 0;
  font-variation-settings: "wdth" 108;
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
}

.struck { text-decoration: line-through; color: var(--muted); }
.stands { color: var(--mark); }

/* ── coverage: findings ──────────────────────────────────────────────────── */

.finding { padding-top: clamp(3rem, 7vw, 4.25rem); }

.finding h2 {
  font-variation-settings: "wdth" 115;
  font-weight: 800;
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  letter-spacing: -0.01em;
  margin: 0 0 1.25rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--ink);
  max-width: 30ch;
}

.finding .serif {
  font-size: 1.02rem;
  line-height: 1.62;
  color: #23414d;
  max-width: 62ch;
  margin: 0 0 1.1rem;
}

.finding code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--card);
  border: 1px solid var(--rule);
  padding: 0.1rem 0.3rem;
  overflow-wrap: anywhere;
}

/* ── ramp: the pace bar ──────────────────────────────────────────────────── */

/* The index page counts what is open. This page has to show a change of *rate*,
   and a bar whose length is the current count cannot do that: forty open roles is
   not a ramp at a company that always has forty.

   The first draft put every company on one shared scale, and reading it back
   killed it — one mass recruiter opened 2,334 roles in a month, so every other
   row rendered as a four-pixel stub and the device measured company size rather
   than acceleration. So the track is now per-company: full width is that
   company's last 30 days, the tick stands where its prior 30-day rate reached,
   and the ink runs from the tick to the right edge. The ink is the hiring above
   the old pace — the thing the page is actually about — and it is comparable
   across companies of wildly different sizes because every track is that
   company's own month.

   A brand-new board has no prior rate for the tick to stand at. Its track is
   inked end to end, which is correct: all of it is new. */

.registers { margin: 0; padding: 0; list-style: none; }

.reg { padding-top: clamp(2.5rem, 6vw, 4rem); }

.reg h2 {
  font-variation-settings: "wdth" 115;
  font-weight: 800;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  letter-spacing: -0.015em;
  margin: 0 0 0.4rem;
}

.reg-note {
  font-family: var(--prose);
  color: var(--muted);
  margin: 0 0 1.6rem;
  max-width: 58ch;
}

.ramp-rows { list-style: none; margin: 0; padding: 0; }

.ramp-row {
  display: grid;
  grid-template-columns: minmax(7rem, 12rem) minmax(0, 1fr) minmax(7.5rem, auto);
  align-items: center;
  column-gap: clamp(0.75rem, 2vw, 1.5rem);
  row-gap: 0.35rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule);
}

.ramp-row:first-child { border-top: 1px solid var(--ink); }

.ramp-name {
  font-family: var(--mono);
  font-size: 0.92rem;
  text-decoration: none;
  overflow-wrap: anywhere;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* The row is tinted its vendor's colour so the pace bar carries provenance, but
   the company name stays ink — three colours of link text in one list is noise. */
.ramp-name { color: var(--ink); }
.ramp-name:hover { color: var(--mark); }

.pace {
  position: relative;
  height: 0.6rem;
  background: var(--card);
  border: 1px solid var(--rule);
}

.pace-bar {
  position: absolute;
  top: -1px;
  bottom: -1px;
  left: var(--was);
  right: -1px;
  background: currentColor;
}

.pace-tick {
  position: absolute;
  left: var(--was);
  top: -0.32rem;
  bottom: -0.32rem;
  width: 1px;
  background: var(--ink);
}

/* The bar has always passed the tick on this page — that is what makes it a ramp —
   so the tick would be invisible if it sat only inside the track. It overhangs
   top and bottom instead, and those overhangs read against the page. */

.ramp-num {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  margin: 0;
  text-align: right;
}

.ramp-num b { color: var(--ink); font-weight: 500; font-size: 0.95rem; }

.ramp-detail {
  grid-column: 1 / -1;
  font-family: var(--prose);
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

.ramp-detail b { color: var(--ink); font-weight: 600; }

@media (max-width: 40rem) {
  .ramp-row { grid-template-columns: 1fr auto; }
  .pace { grid-column: 1 / -1; order: 3; }
  .ramp-detail { order: 4; }
}

/* The legend is the one place the device explains itself; it uses the same
   markup as a real row so there is nothing to keep in sync. */
.pace-key {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.6rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.pace-key .pace { width: 7rem; flex: none; color: var(--ink); }

.edges {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
  border-left: 2px solid var(--mark);
  padding: 0.15rem 0 0.15rem 1rem;
  margin: 2.5rem 0 0;
  line-height: 1.7;
}

.edges b { color: var(--ink); font-weight: 500; }

/* ── floor ───────────────────────────────────────────────────────────────── */

:focus-visible { outline: 2px solid var(--mark); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .bar, .att-live { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
