/* Contrast on --paper (WCAG): ink 17.0, muted 6.1, accent 7.5, warn 7.0, bar 3.5 (non-text). */
:root {
  color-scheme: light;
  --paper: #fbfaf7;
  --ink: #16181d;
  --muted: #5b6068;
  --accent: #1d5c48;
  --warn: #9b3412;
  --bar: #5f8f7e;
  --rule: #dcd8cf;
  --tint: #f1efe9;
  --measure: 44rem;
  --wide: 68rem;
  font-family: ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
main { max-width: var(--wide); margin: 0 auto; padding: 0 1rem 4rem; }
a { color: var(--accent); text-underline-offset: 0.15em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.5rem; }
h2 { font-size: 1.25rem; margin: 3rem 0 0.5rem; }
.muted { color: var(--muted); font-weight: normal; }
.lede { color: var(--muted); max-width: var(--measure); margin-top: 0; }
.narrow { max-width: var(--measure); }
section { margin-top: 2.5rem; }

.site-head { max-width: var(--wide); margin: 0 auto; padding: 1.25rem 1rem; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--rule); }
.wordmark { color: var(--ink); font-weight: 650; text-decoration: none; }
.wordmark span { color: var(--muted); font-weight: 400; margin-left: 0.35rem; }
.site-foot { max-width: var(--wide); margin: 0 auto; padding: 2rem 1rem; color: var(--muted); font-size: 0.85rem; border-top: 1px solid var(--rule); }

.stack { display: grid; gap: 0.6rem; margin-top: 1.5rem; max-width: 26rem; }
label { font-weight: 600; font-size: 0.95rem; }
input[type="password"], input[type="file"] { font: inherit; padding: 0.6rem 0.7rem; border: 1px solid var(--muted); border-radius: 4px; background: #fff; width: 100%; }
button { font: inherit; font-weight: 600; padding: 0.65rem 1.1rem; border: 0; border-radius: 4px; background: var(--accent); color: #fff; cursor: pointer; justify-self: start; }
button.link { background: none; color: var(--accent); padding: 0; font-weight: 400; text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.error { color: var(--warn); margin: 0; }
.note { color: var(--muted); font-size: 0.9rem; margin: 0; }
.steps { padding-left: 1.2rem; }
.audit-list { list-style: none; padding: 0; }
.audit-list li { padding: 0.5rem 0; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 1rem; }

.kicker { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; color: var(--muted); margin: 0 0 0.3rem; }
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.5rem; border-top: 2px solid var(--ink); padding-top: 1.25rem; }
.figures strong { display: block; font-size: 2.2rem; font-variant-numeric: tabular-nums; line-height: 1.1; }
.figures span { color: var(--muted); font-size: 0.95rem; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th { text-align: left; font-weight: 600; font-size: 0.85rem; padding: 0.5rem 0.75rem 0.5rem 0; border-bottom: 2px solid var(--ink); white-space: nowrap; }
td { padding: 0.7rem 0.75rem 0.7rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.strong { font-weight: 650; }
td.page { min-width: 16rem; max-width: 30rem; overflow-wrap: anywhere; }
details { margin-top: 0.35rem; font-size: 0.9rem; }
summary { cursor: pointer; color: var(--muted); }
.issue { color: var(--warn); }
details dl { margin: 0.5rem 0; display: grid; grid-template-columns: max-content 1fr; gap: 0.25rem 0.75rem; }
details dt { color: var(--muted); }
details dd { margin: 0; }
.hint { background: var(--tint); padding: 0.6rem 0.75rem; border-radius: 4px; margin: 0.25rem 0 0; }

.chart { margin: 1rem 0 0; max-width: 40rem; }
.chart svg { width: 100%; height: 12rem; display: block; border-bottom: 1px solid var(--ink); }
.chart .bar { fill: var(--bar); }
.chart .base { stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; }
.axis { display: grid; grid-template-columns: repeat(var(--cols), 1fr); text-align: center; font-size: 0.8rem; color: var(--muted); padding-top: 0.3rem; }

.share { font-size: 0.9rem; color: var(--muted); border-left: 2px solid var(--rule); padding-left: 0.75rem; max-width: var(--measure); }
button.link.danger { color: var(--warn); }

details.more { margin-top: 1rem; font-size: 1rem; }
details.more > summary { color: var(--accent); }

.method ul { padding-left: 1.2rem; max-width: var(--measure); color: var(--muted); }

@media (max-width: 40rem) {
  .figures strong { font-size: 1.8rem; }
  td.page { min-width: 12rem; }
}
