/* Editorial, high-trust, no framework. A ratings agency should look like it
   files documents, not like it runs growth experiments. */
:root {
  --ink: #14171c;
  --body: #333a45;
  --muted: #6d7684;
  --rule: #e2e6ec;
  --paper: #fdfdfc;
  --green: #127a4b;
  --amber: #8a6100;
  --red: #a3242b;
  --accent: #1a3ba8;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--paper); color: var(--body);
  font-family: var(--sans); font-size: 16.5px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
main { max-width: 62rem; margin: 0 auto; padding: 3rem 1.5rem 5rem; }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); line-height: 1.2;
  font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: 2.4rem; margin: 0 0 .6rem; }
h2 { font-size: 1.5rem; margin: 2.6rem 0 .6rem; }
h3 { font-size: 1.15rem; margin: 2rem 0 .4rem; }
a { color: var(--accent); text-decoration-thickness: 1px;
  text-underline-offset: 2px; }
p { margin: 0 0 1rem; }
.muted { color: var(--muted); font-size: .92em; }
.lede { font-size: 1.15rem; color: var(--body); max-width: 46rem; }
.eyebrow { font-size: .78rem; letter-spacing: .11em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .5rem; }

header.site, footer.site {
  max-width: 62rem; margin: 0 auto; padding: 1.25rem 1.5rem;
  display: flex; gap: 1.25rem; align-items: baseline; flex-wrap: wrap;
}
header.site { border-bottom: 1px solid var(--rule); }
.wordmark { font-family: var(--serif); font-size: 1.2rem; font-weight: 600;
  color: var(--ink); text-decoration: none; margin-right: auto; }
header.site nav { display: flex; gap: 1.1rem; flex-wrap: wrap; font-size: .93rem; }
header.site nav a { color: var(--body); text-decoration: none; }
header.site nav a:hover { color: var(--accent); }
header.site nav a.cta { color: var(--green); font-weight: 600; }
footer.site { display: block; border-top: 1px solid var(--rule);
  margin-top: 4rem; padding-top: 2rem; font-size: .9rem; }

.hero { padding: 2rem 0 1rem; border-bottom: 1px solid var(--rule);
  margin-bottom: 2.5rem; }
.hero h1 { font-size: 3rem; max-width: 24ch; }
.actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.btn { display: inline-block; background: var(--ink); color: #fff;
  padding: .7rem 1.25rem; border-radius: 5px; text-decoration: none;
  font-weight: 500; font-size: .95rem; }
.btn.ghost { background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--rule); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
@media (max-width: 44rem) { .split { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.1rem; } }

/* attestation */
.headline { display: flex; align-items: center; gap: 1.5rem;
  border: 1px solid var(--rule); border-left: 4px solid var(--green);
  border-radius: 6px; padding: 1.5rem 1.75rem; margin: 1.75rem 0; background: #fff; }
.figure { font-family: var(--serif); font-size: 3.4rem; color: var(--ink);
  line-height: 1; font-variant-numeric: tabular-nums; }
.figure-sm { font-family: var(--serif); font-size: 1.8rem; color: var(--muted);
  margin: 0 0 .4rem; }
.headline .label { font-size: 1rem; color: var(--ink); }

.subordinate { border-top: 1px solid var(--rule); margin-top: 2.5rem;
  padding-top: 1rem; max-width: 46rem; }
.freshness { border-top: 1px solid var(--rule); padding-top: .9rem;
  margin-top: 2rem; }

table.metrics { width: 100%; border-collapse: collapse; margin: 1.25rem 0;
  font-size: .95rem; }
table.metrics th, table.metrics td { text-align: left; padding: .6rem .5rem;
  border-bottom: 1px solid var(--rule); vertical-align: top; }
table.metrics thead th { font-family: var(--sans); font-size: .75rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  font-weight: 600; }
table.metrics tbody th { font-weight: 500; color: var(--ink); }
table.metrics td { font-variant-numeric: tabular-nums; }

.tier { display: inline-block; font-size: .7rem; letter-spacing: .09em;
  text-transform: uppercase; font-weight: 700; padding: .16rem .45rem;
  border-radius: 3px; vertical-align: middle; }
.tier.full { background: #e7f3ec; color: var(--green); }
.tier.partial { background: #fdf3e0; color: var(--amber); }
.tier.count_only { background: #eef1f5; color: var(--muted); }
.tier.unverified, .tier.stale { background: #eef1f5; color: var(--muted); }
.tier.revoked { background: #fbeaea; color: var(--red); }

.prov { display: inline-block; font-family: var(--mono); font-size: .72rem;
  padding: .1rem .35rem; border-radius: 3px; margin-right: .4rem; }
.prov.attested { background: #e7f3ec; color: var(--green); }
.prov.derived { background: #eaeffb; color: var(--accent); }
.prov.proxy { background: #fdf3e0; color: var(--amber); }
.prov.unavailable { background: #eef1f5; color: var(--muted); }
.prov.self_reported { background: #fbeaea; color: var(--red); }

.notice { border: 1px solid var(--rule); border-left: 4px solid var(--muted);
  padding: 1rem 1.25rem; border-radius: 5px; margin: 1.5rem 0; background: #fff; }
.notice.warn { border-left-color: var(--amber); }
.notice.bad { border-left-color: var(--red); }

pre { background: #f4f6f8; border: 1px solid var(--rule); border-radius: 5px;
  padding: .9rem 1rem; overflow-x: auto; }
code { font-family: var(--mono); font-size: .85rem; }

ul.cards { list-style: none; padding: 0; display: grid; gap: .5rem; }
ul.cards li { border-bottom: 1px solid var(--rule); padding: .6rem 0;
  display: flex; gap: .75rem; align-items: baseline; flex-wrap: wrap; }

form.stack { display: grid; gap: .9rem; max-width: 32rem; margin: 1.5rem 0; }
form.stack label, form.inline label { display: grid; gap: .25rem;
  font-size: .9rem; color: var(--ink); }
form.inline { display: grid; gap: .6rem; max-width: 26rem; margin-top: 1rem; }
input, select, button { font: inherit; font-size: .95rem; }
input, select { padding: .55rem .7rem; border: 1px solid var(--rule);
  border-radius: 4px; background: #fff; color: var(--ink); }
button { background: var(--ink); color: #fff; border: 0; border-radius: 4px;
  padding: .6rem 1.1rem; cursor: pointer; justify-self: start; }
label.check { display: flex; gap: .5rem; align-items: center;
  color: var(--muted); font-size: .88rem; }

.filters { display: flex; gap: .6rem; flex-wrap: wrap; font-size: .9rem;
  margin: 1.25rem 0; }
.filters a { text-decoration: none; padding: .2rem .6rem; border-radius: 3px;
  border: 1px solid var(--rule); color: var(--body); }
.filters a.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* spec page */
.spec { max-width: 46rem; }
.spec h1 { font-size: 2.2rem; }
.spec table { width: 100%; border-collapse: collapse; margin: 1.25rem 0;
  font-size: .92rem; }
.spec th, .spec td { text-align: left; padding: .5rem .5rem;
  border-bottom: 1px solid var(--rule); vertical-align: top; }
.spec hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }
.spec code { background: #f4f6f8; padding: .1rem .3rem; border-radius: 3px; }
.spec blockquote { border-left: 3px solid var(--rule); margin: 0;
  padding-left: 1rem; color: var(--muted); }

/* One page, so sections need to read as separate documents rather than as a
   scroll of undifferentiated text. */
main > section { padding-top: 2.5rem; margin-top: 2.5rem;
  border-top: 1px solid var(--rule); }
main > section.hero { padding-top: 0; margin-top: 0; border-top: 0; }
main > section > h2 { font-size: 1.6rem; margin-bottom: .3rem; }
main > section > h3 { margin-top: 2rem; }

.spec-cta { margin-top: 3rem; padding-top: 2rem;
  border-top: 2px solid var(--ink); }

.sponsor-ask { margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid var(--rule); }
.sponsor-ask h3 { margin-bottom: .2rem; }

details.history { margin: 2rem 0 0; border-top: 1px solid var(--rule);
  padding-top: 1rem; }
details.history > summary { cursor: pointer; font-family: var(--sans);
  font-size: .9rem; color: var(--accent); list-style-position: outside; }
details.history[open] > summary { margin-bottom: 1rem; }

/* Attestation history. Held and failed rows are deliberately legible rather
   than tucked away — they are the evidence that the append-only store is real. */
table.timeline td.when { white-space: nowrap; font-family: var(--mono);
  font-size: .8rem; color: var(--muted); }
table.timeline tr.ev.held td, table.timeline tr.ev.failed td { opacity: .72; }
table.timeline tr.ev-note td { border-bottom: 1px solid var(--rule);
  padding-top: 0; font-size: .85rem; }
table.timeline tr.ev td { border-bottom: 0; }
table.timeline tr.ev:not(:has(+ tr.ev-note)) td {
  border-bottom: 1px solid var(--rule); }
