/* The look from the mock-ups (#16): an off-white ground, near-black text and
   one teal accent. Inter and Space Grotesk are used where the reader has
   them; the page loads no font from another host (no-tracking.md). */
:root {
  --ground: #f7f7f4;
  --text: #1b1b1a;
  --muted: #55554f;
  --accent: #0b5c5c;
  --card: #ffffff;
  --rule: #deded8;
  --text-font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --heading-font: "Space Grotesk", var(--text-font);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ground);
  color: var(--text);
  font-family: var(--text-font);
  font-size: 100%;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0 auto;
  max-width: 44rem;
  padding: 1.5rem 1rem 3rem;
}

h1,
h2,
h3,
.name {
  font-family: var(--heading-font);
  line-height: 1.2;
}

.masthead {
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2rem;
}

.name {
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(1.6rem, 5vw, 2.25rem);
  margin: 0 0 1.25rem;
}

h2 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

h3 {
  font-size: 1rem;
  margin: 2rem 0 0.5rem;
}

.lede {
  font-size: 1.125rem;
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 0.5rem;
  margin: 2rem 0;
  padding: 1.25rem;
}

.card p {
  margin: 0;
}

footer {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 3rem;
  padding-top: 1rem;
}

footer p {
  margin: 0 0 0.5rem;
}

/* What it found: the headline numbers in cards, then the lists. A wide
   table scrolls in its own box on a phone, so the page itself never scrolls
   sideways. */
.updated,
.note {
  color: var(--muted);
  font-size: 0.9rem;
}

.cards {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  margin: 1rem 0 0;
}

.cards .card {
  margin: 0;
  padding: 1rem;
}

.stat .value {
  display: block;
  font-family: var(--heading-font);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
}

.table-scroll {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 0.5rem;
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  font-size: 0.9rem;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--rule);
  padding: 0.5rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

tr:last-child td {
  border-bottom: 0;
}

th {
  white-space: nowrap;
}

td.paper {
  min-width: 14rem;
}

td.ref {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

td.count {
  text-align: right;
}

/* Waiting for review: amber, as in the mock-ups. */
td.status {
  background: #fbebd9;
  color: #9a4a06;
  white-space: nowrap;
}

.pending {
  font-size: 0.9rem;
  padding-left: 1.25rem;
}

#found {
  margin-top: 2.5rem;
}
