:root {
  --paper: #fff;
  --ink: #000;
  --grey: #6f6f6f;
  --rule: #e4e4e4;
  --signal: #ff4d00;
  --measure: 46rem;
  font-family: "Instrument Sans", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-feature-settings: "tnum" 1, "ss01" 1;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 1.0625rem; line-height: 1.45; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.18em; }
a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
main, footer, .masthead { max-width: var(--measure); margin: 0 auto; padding: 0 1rem; }

.masthead { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; padding-top: 1.25rem; padding-bottom: 1.25rem; }
.wordmark { font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.01em; }
.masthead nav { display: flex; gap: 1.25rem; flex-wrap: wrap; font-size: 0.9375rem; }
.masthead nav a[aria-current] { border-bottom: 2px solid var(--ink); padding-bottom: 0.1em; }
.masthead nav a:hover { text-decoration: none; border-bottom: 2px solid var(--rule); padding-bottom: 0.1em; }

h1 { font-size: clamp(2rem, 5vw, 2.75rem); line-height: 1.05; letter-spacing: -0.025em; font-weight: 700; margin: 0 0 0.6rem; }
h2 { font-size: 1.25rem; letter-spacing: -0.01em; margin: 2.25rem 0 0.6rem; }
.lead { margin: 2.5rem 0 1.5rem; }
.lead p { margin: 0 0 0.5rem; max-width: 36rem; color: var(--ink); }
.lead p a { text-decoration: underline; text-underline-offset: 0.18em; text-decoration-color: var(--grey); }
.asof, .muted, .sub, .note, .meta, .crumb { color: var(--grey); }
.asof { font-size: 0.9375rem; }
.sub { display: block; font-size: 0.8125rem; line-height: 1.35; margin-top: 0.1rem; }
.note { font-size: 0.875rem; max-width: 36rem; margin: 1.75rem 0; }
.note a { text-decoration: underline; text-underline-offset: 0.18em; }
.tag { font-size: 0.75rem; color: var(--grey); margin-left: 0.35rem; }

/* tables */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-weight: 500; font-size: 0.8125rem; color: var(--grey); padding: 0 0.75rem 0.5rem 0; border-bottom: 1px solid var(--ink); }
td { padding: 0.6rem 0.75rem 0.6rem 0; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
td:last-child, th:last-child { padding-right: 0; }
.num, .pts { text-align: right; white-space: nowrap; }
td.num .sub { text-align: right; }
.hide-s { display: none; }
@media (min-width: 40rem) { .hide-s { display: table-cell; } }

/* the ladder */
.ladder .rk { width: 3.5rem; font-weight: 700; font-size: 1.5rem; line-height: 1; letter-spacing: -0.03em; color: var(--ink); }
.ladder th.rk { font-weight: 500; font-size: 0.8125rem; color: var(--grey); }
.ladder .rk.top { color: var(--signal); }
.ladder td { padding-top: 0.7rem; padding-bottom: 0.7rem; vertical-align: top; }
.ladder td.rk { padding-top: 0.92rem; }
.ladder .pts { font-weight: 600; }

/* profile heads */
.profile { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem 1.5rem; margin: 2.25rem 0 1.5rem; }
.profile > div:first-child { min-width: 0; flex: 1 1 auto; }
.standing { flex: 0 0 auto; }
.crumb { font-size: 0.875rem; margin: 0 0 0.75rem; }
.crumb a:before { content: "← "; }
.meta { margin: 0; font-size: 0.9375rem; }
.meta a { text-decoration: underline; text-underline-offset: 0.18em; }
.standing { text-align: right; }
.standing .rank { display: block; font-size: clamp(3rem, 9vw, 4.5rem); font-weight: 700; line-height: 0.9; letter-spacing: -0.04em; color: var(--signal); }
.standing .label { display: block; font-size: 0.875rem; color: var(--grey); margin-top: 0.4rem; max-width: 14rem; }
.results .placing { width: 11rem; }
@media (max-width: 40rem) { .results .placing { width: auto; } .masthead nav { gap: 0.9rem; } }
.results .placing .round { color: var(--grey); font-size: 0.8125rem; margin-right: 0.3rem; }
.results .placing .sub { white-space: normal; }
.results tfoot td { border-bottom: 0; border-top: 1px solid var(--ink); font-weight: 600; padding-top: 0.75rem; }
.results tfoot td:first-child { text-align: right; white-space: nowrap; font-weight: 500; color: var(--grey); font-size: 0.875rem; }
h2.round { font-size: 0.9375rem; font-weight: 600; margin: 2rem 0 0.25rem; }
h2.round .count { color: var(--grey); font-weight: 400; margin-left: 0.5rem; }

/* search */
.search { position: relative; margin: 0 0 1.5rem; max-width: 24rem; }
.search input { width: 100%; font: inherit; font-size: 1rem; padding: 0.55rem 0; border: 0; border-bottom: 1px solid var(--ink); background: transparent; color: var(--ink); border-radius: 0; -webkit-appearance: none; }
.search input::placeholder { color: var(--grey); }
.search ul { position: absolute; z-index: 2; left: 0; right: 0; margin: 0; padding: 0.25rem 0; list-style: none; background: var(--paper); border: 1px solid var(--ink); }
.search li a { display: block; padding: 0.45rem 0.75rem; }
.search li a:hover { background: #f3f3f3; text-decoration: none; }
.search li a span { display: block; font-size: 0.8125rem; color: var(--grey); }
.search li.none { padding: 0.45rem 0.75rem; color: var(--grey); }

/* filters */
.filters { display: flex; gap: 1.5rem; align-items: baseline; flex-wrap: wrap; margin: 0 0 1.25rem; font-size: 0.9375rem; }
.filters select { font: inherit; font-size: 0.9375rem; border: 0; border-bottom: 1px solid var(--ink); background: transparent; padding: 0.35rem 0; border-radius: 0; color: var(--ink); max-width: 100%; }

/* prose */
.prose { max-width: 38rem; margin: 2.5rem 0; }
.prose p { margin: 0 0 1rem; }
.prose h2 { margin-top: 2.5rem; }
.prose hr { border: 0; border-top: 1px solid var(--ink); margin: 2.5rem 0 1rem; }
.prose table { margin: 1rem 0 1.25rem; font-size: 0.9375rem; }
.prose table.nums td, .prose table.nums th { text-align: left; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.5rem; }
.formula { padding: 0.75rem 1rem; border: 1px solid var(--ink); display: inline-block; }

footer { margin-top: 4rem; padding-top: 1.25rem; padding-bottom: 3rem; border-top: 1px solid var(--ink); font-size: 0.875rem; color: var(--grey); }
footer a { text-decoration: underline; text-underline-offset: 0.18em; }
@media (prefers-reduced-motion: no-preference) { a { transition: text-decoration-color 120ms; } }
