/* Virgula de sub Ș — a proof sheet. The page borrows the vernacular of a type
   specimen: a cool light-table ground, hairline guides, ink for the letter and
   the corrector's red reserved for one thing only, the wrong character. */

:root {
  --paper: #e6e9ea;
  --card: #f4f5f6;
  --ink: #14181c;
  --ink-2: #5b656d;
  --rule: #c2c8cc;
  --red: #c2172b;

  --shell: 1120px;
  --display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --data: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}

* { box-sizing: border-box; }

/* Any word that carries a cedilla is evidence, so the font must not be allowed
   to redraw it. Both switches are needed: the feature is turned off, and the
   language is set to one whose localisation leaves these letters alone. */
.raw, .row .ev, .spec2 .wrong .glyph {
  font-feature-settings: 'locl' 0;
  font-variant-alternates: normal;
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.62;
  font-feature-settings: 'kern' 1;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--ink); color: var(--paper); }

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding-inline: 24px; }
@media (max-width: 560px) { .shell { padding-inline: 16px; } }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 40;
  background: var(--ink); color: var(--paper); padding: 10px 16px;
  font: 500 14px/1 var(--body);
}
.skip:focus { left: 8px; top: 8px; }

a { color: inherit; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--red); outline-offset: 3px;
}

/* ------------------------------------------------------------------ topbar */
.top {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.top .shell {
  display: flex; align-items: center; gap: 20px;
  min-height: 54px;
}
.mark {
  font-family: var(--display);
  font-size: 22px; font-weight: 600; letter-spacing: -0.01em;
  text-decoration: none; margin-right: auto;
}
.mark span { color: var(--red); }
.top nav { display: flex; align-items: center; gap: 18px; }
.top nav a {
  font: 500 13px/1 var(--body); letter-spacing: 0.02em;
  text-decoration: none; color: var(--ink-2);
  padding: 6px 0; border-bottom: 1px solid transparent;
}
.top nav a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.top nav a[aria-current='page'] { color: var(--ink); border-bottom-color: var(--red); }
.top nav a.lang {
  border: 1px solid var(--rule); border-radius: 2px; padding: 5px 10px;
}
.top nav a.lang:hover { border-color: var(--ink); background: var(--ink); color: var(--card); }
@media (max-width: 600px) {
  .mark { font-size: 18px; }
  .top nav { gap: 12px; }
  .top nav a:not(.lang) { display: none; }
}

/* -------------------------------------------------------------------- hero */
.hero { padding-block: 76px 8px; }
.label {
  font: 500 11.5px/1 var(--data); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-2); margin: 0 0 26px;
}
h1 {
  font-family: var(--display);
  font-weight: 500; font-size: clamp(46px, 9vw, 104px);
  line-height: 0.98; letter-spacing: -0.025em;
  margin: 0 0 34px; max-width: 15ch;
  font-variation-settings: 'opsz' 60;
}
.lede { max-width: 66ch; }
.lede p { margin: 0 0 20px; font-size: clamp(17px, 1.5vw, 19.5px); }
.lede p:first-child { font-size: clamp(19px, 2vw, 23px); line-height: 1.5; }
.lede p:last-child { margin-bottom: 0; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--rule);
  border: 1px solid var(--rule); margin: 54px 0 0;
}
.stats div { background: var(--paper); padding: 20px 18px 22px; }
.stats b {
  display: block; font-family: var(--display); font-weight: 500;
  font-size: clamp(28px, 3.4vw, 40px); line-height: 1; letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.stats i { font-style: normal; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); display: block; }
@media (max-width: 820px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .stats { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------------- section */
section { padding: 84px 0; border-top: 1px solid var(--rule); margin-top: 84px; }
section:first-of-type { border-top: 0; margin-top: 0; }
h2 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(30px, 4.6vw, 52px); line-height: 1.04; letter-spacing: -0.02em;
  margin: 0 0 28px; max-width: 24ch;
}
h3 {
  font-family: var(--display); font-weight: 600;
  font-size: 21px; line-height: 1.2; margin: 0 0 10px;
}
.prose { max-width: 66ch; }
.prose p { margin: 0 0 20px; }
.prose p:last-child { margin-bottom: 0; }
.num { font-family: var(--data); font-variant-numeric: tabular-nums; font-size: 0.94em; }

/* -------------------------------------------------------- letter specimens */
.spec2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--rule); border: 1px solid var(--rule);
  margin: 46px 0 0;
}
.spec2 figure { margin: 0; background: var(--card); padding: 0; position: relative; overflow: hidden; }
.spec2 .glyph {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(112px, 19vw, 232px); line-height: 1;
  text-align: center; padding: 20px 0 46px;
  font-variation-settings: 'opsz' 144;
  position: relative;
}
/* A zero-height inline block sits its bottom edge exactly on the text baseline,
   which is the line the comma hangs below and the cedilla grows out of. */
.spec2 .glyph::after {
  content: ''; display: inline-block; width: 300%; height: 0;
  margin-left: -150%; border-top: 1px dashed var(--rule);
}
.spec2 figcaption {
  border-top: 1px solid var(--rule); padding: 20px 22px 22px;
  font-family: var(--data); font-size: 12.5px; line-height: 1.7;
}
.spec2 figcaption b { display: block; font-family: var(--body); font-size: 15px; margin-bottom: 8px; }
.spec2 figcaption dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; }
.spec2 figcaption dt { color: var(--ink-2); }
.spec2 figcaption dd { margin: 0; }
.spec2 .wrong { color: var(--red); }
.spec2 .wrong figcaption b, .spec2 .wrong .glyph { color: var(--red); }
.spec-note {
  font-family: var(--data); font-size: 11.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-2); margin: 14px 0 0; text-align: center;
}
@media (max-width: 620px) { .spec2 { grid-template-columns: 1fr; } }

blockquote {
  margin: 54px 0 0; padding: 0 0 0 26px; border-left: 3px solid var(--red);
  max-width: 46ch;
}
blockquote p {
  font-family: var(--display); font-weight: 400; font-style: italic;
  font-size: clamp(22px, 2.6vw, 31px); line-height: 1.3; margin: 0 0 14px;
  letter-spacing: -0.01em;
}
blockquote cite {
  font-style: normal; font-family: var(--data); font-size: 12px;
  letter-spacing: 0.04em; color: var(--ink-2);
}
.q-after { max-width: 60ch; margin: 24px 0 0; color: var(--ink-2); }

/* ---------------------------------------------------------------- timeline */
.tl { margin: 50px 0 0; border-top: 1px solid var(--rule); }
.tl li { list-style: none; }
.tl ol { margin: 0; padding: 0; }
.tl article {
  display: grid; grid-template-columns: 132px 1fr;
  gap: 0 32px; padding: 30px 0; border-bottom: 1px solid var(--rule);
}
.tl .when { position: relative; }
.tl .year {
  font-family: var(--display); font-weight: 500; font-size: 30px; line-height: 1;
  letter-spacing: -0.01em; display: block;
}
.tl .tag {
  font-family: var(--data); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-2); margin-top: 7px; display: block;
}
.tl h3 { max-width: 34ch; }
.tl p { margin: 0; max-width: 68ch; color: var(--ink-2); }
.tl article.now { background: var(--card); margin: 0 -22px; padding: 30px 22px; }
.tl article.now .year, .tl article.now h3 { color: var(--red); }
@media (max-width: 700px) {
  .tl article { grid-template-columns: 1fr; gap: 12px; }
  .tl .when { display: flex; align-items: baseline; gap: 14px; }
  .tl .tag { margin-top: 0; }
  .tl article.now { margin: 0; }
}

/* ------------------------------------------------------------------- bench */
.bench { background: var(--ink); color: var(--card); border-top: 0; }
.bench h2, .bench h3 { color: var(--card); }
.bench .prose p { color: #c8ced3; }
.bench .rig {
  margin: 46px 0 0; border: 1px solid #2f363d; position: relative;
  background: #101418;
}
.cover {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  gap: 16px; padding: clamp(34px, 6vw, 72px) clamp(28px, 5vw, 64px); background: #101418;
}
.cover h3 { font-size: clamp(22px, 3.2vw, 34px); margin: 0; max-width: 24ch; }
.cover p { margin: 0; max-width: 54ch; color: #c8ced3; }
.cover button {
  margin-top: 10px; font: 500 14px/1 var(--body); letter-spacing: 0.02em;
  background: var(--card); color: var(--ink); border: 0; border-radius: 2px;
  padding: 13px 22px; cursor: pointer;
}
.cover button:hover { background: var(--red); color: #fff; }
.rig[data-on='1'] .cover { display: none; }
.rig:not([data-on='1']) .stage,
.rig:not([data-on='1']) .panel,
.rig:not([data-on='1']) .verdict { display: none; }

.stage {
  padding: clamp(30px, 5vw, 64px) clamp(20px, 4vw, 48px);
  min-height: 290px; display: flex; flex-direction: column; justify-content: center;
  border-bottom: 1px solid #2f363d;
}
#spec {
  font-size: clamp(48px, 11vw, 128px); line-height: 1.16;
  letter-spacing: -0.02em; margin: 0; text-align: center;
  word-break: keep-all;
}
.codes {
  margin: 30px 0 0; font-family: var(--data); font-size: 11.5px;
  letter-spacing: 0.06em; color: #8b959d; text-align: center;
  display: flex; flex-wrap: wrap; gap: 8px 10px; justify-content: center;
}
.codes b { font-weight: 400; color: #8b959d; }
.codes .hit { color: #fff; border-bottom: 2px solid var(--red); }
.codes .lbl { text-transform: uppercase; letter-spacing: 0.12em; color: #6c767e; width: 100%; }

.panel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #2f363d; }
.panel fieldset { margin: 0; border: 0; padding: 22px; background: #101418; }
.panel legend {
  float: left; width: 100%; padding: 0; font-family: var(--data); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: #8b959d; margin-bottom: 14px;
}
.panel legend + * { clear: both; }
.opt { display: flex; gap: 8px; flex-wrap: wrap; }
.opt label {
  font: 400 13.5px/1 var(--data); cursor: pointer;
  border: 1px solid #39424a; border-radius: 2px; padding: 9px 12px; color: #c8ced3;
}
.opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.opt label:has(input:checked) { background: var(--card); color: var(--ink); border-color: var(--card); }
.opt label:has(input:focus-visible) { outline: 2px solid var(--red); outline-offset: 2px; }
.panel select {
  display: block; width: 100%; font: 400 13.5px/1.2 var(--data); color: var(--card);
  background: #171c21; border: 1px solid #39424a; border-radius: 2px; padding: 10px 11px;
}
.fmeta {
  margin: 12px 0 0; font-family: var(--data); font-size: 11.5px; line-height: 1.6;
  color: #8b959d;
}
.fmeta .no { color: #ef7a86; }
.verdict {
  background: #171c21; padding: 22px clamp(20px, 4vw, 48px); border-top: 1px solid #2f363d;
  display: flex; gap: 18px; align-items: flex-start;
}
.verdict .vl {
  font-family: var(--data); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: #6c767e; flex: 0 0 84px; padding-top: 4px;
}
.verdict p { margin: 0; max-width: 62ch; color: #dde2e6; }
.verdict[data-state='hidden'] { border-left: 3px solid var(--red); }
.verdict[data-state='visible'] { border-left: 3px solid #e8a33d; }
.verdict[data-state='correct'] { border-left: 3px solid #6fbf8b; }
.verdict[data-state='fallback'] { border-left: 3px solid #8b959d; }
.bench .after { margin: 26px 0 0; max-width: 66ch; color: #c8ced3; }
.bench .reset {
  margin: 22px 0 0; font: 500 13px/1 var(--body); background: transparent;
  color: #8b959d; border: 1px solid #39424a; border-radius: 2px;
  padding: 10px 16px; cursor: pointer;
}
.bench .reset:hover { color: var(--card); border-color: var(--card); }
@media (max-width: 760px) { .panel { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------- audit */
.legend {
  display: flex; gap: 20px; align-items: center; margin: 40px 0 26px;
  font-family: var(--data); font-size: 11.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-2);
}
.legend i { display: inline-block; width: 22px; height: 9px; margin-right: 7px; vertical-align: -1px; }
.legend .a { background: var(--ink); }
.legend .b { background: var(--red); }

.cat { margin: 44px 0 0; }
.cat > header {
  display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap;
  border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 4px;
}
.cat > header h3 { margin: 0; }
.cat > header .note { font-size: 13px; color: var(--ink-2); margin-right: auto; }
.cat > header .sum { font-family: var(--data); font-size: 13px; white-space: nowrap; }
.cat > header .sum b { color: var(--red); font-weight: 500; }

.row {
  display: grid; grid-template-columns: 208px 1fr 62px 210px;
  gap: 0 18px; align-items: center;
  padding: 9px 0; border-bottom: 1px solid var(--rule);
}
.row .who { font-size: 14.5px; line-height: 1.3; }
.row .who a { text-decoration: none; border-bottom: 1px solid var(--rule); }
.row .who a:hover { border-bottom-color: var(--ink); }
.row .bar { height: 12px; background: var(--rule); display: flex; overflow: hidden; }
.row .bar i { display: block; height: 100%; }
.row .bar .a { background: var(--ink); }
.row .bar .b { background: var(--red); }
.row .pct {
  font-family: var(--data); font-size: 12.5px; text-align: right;
  font-variant-numeric: tabular-nums;
}
.row .ev { font-family: var(--data); font-size: 12px; color: var(--ink-2); }
.row .ev em { font-style: normal; color: var(--red); }
.row .ev .n { color: var(--ink-2); opacity: 0.7; }
.row.clean .pct { color: var(--ink-2); }
.row.worst .who { font-weight: 600; }
@media (max-width: 900px) {
  .row { grid-template-columns: 1fr 54px; gap: 4px 12px; padding: 12px 0; }
  .row .who { grid-column: 1; }
  .row .pct { grid-column: 2; grid-row: 1; }
  .row .bar { grid-column: 1 / -1; }
  .row .ev { grid-column: 1 / -1; }
}

.aside {
  margin: 40px 0 0; background: var(--card); border-left: 3px solid var(--rule);
  padding: 22px 24px;
}
.aside p { margin: 0; max-width: 70ch; font-size: 15.5px; }
.aside h3 { font-size: 17px; }
.aside + .aside { margin-top: 16px; }

/* ------------------------------------------------------------------- fonts */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule);
  border: 1px solid var(--rule); margin: 46px 0 0; }
.cards article { background: var(--card); padding: 26px 24px 28px; }
.cards .k {
  font-family: var(--display); font-weight: 500; font-size: 34px; line-height: 1;
  letter-spacing: -0.02em; display: block; margin-bottom: 8px;
}
.cards h3 { font-family: var(--body); font-weight: 600; font-size: 15px; margin-bottom: 12px; }
.cards p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

.gap { margin: 60px 0 0; }
.gap h3 { margin-bottom: 12px; }
.gap p { max-width: 66ch; margin: 0 0 30px; }
.strip { width: 100%; height: auto; display: block; }
.strip .ax { stroke: var(--rule); stroke-width: 1; }
.strip .dot { fill: var(--ink); fill-opacity: 0.4; }
.strip .dot.hi { fill: var(--red); fill-opacity: 1; }
.strip text { font-family: var(--data); font-size: 10px; fill: var(--ink-2); }
.strip text.nm { fill: var(--ink); font-size: 11px; }
.strip text.rd { fill: var(--red); }

/* -------------------------------------------------------------------- cost */
.layers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--rule); border: 1px solid var(--rule); margin: 46px 0 0; }
.layers article { background: var(--paper); padding: 26px 24px 28px; }
.layers .k {
  font-family: var(--data); font-size: 11.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-2); display: block; margin-bottom: 12px;
}
.layers .v {
  font-family: var(--display); font-weight: 500; font-size: clamp(24px, 2.6vw, 31px);
  line-height: 1.06; letter-spacing: -0.015em; display: block; margin-bottom: 14px;
}
.layers article:last-child { background: var(--card); }
.layers article:last-child .v { color: var(--red); }
.layers p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
@media (max-width: 860px) { .layers { grid-template-columns: 1fr; } }

.checks {
  margin: 34px 0 0; border: 1px solid var(--rule); background: var(--card);
  font-family: var(--data); font-size: 12.5px; overflow-x: auto;
}
.checks table { border-collapse: collapse; width: 100%; min-width: 520px; }
.checks th, .checks td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--rule); }
.checks th { font-weight: 500; color: var(--ink-2); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.checks tr:last-child td { border-bottom: 0; }
.checks .t { color: #2f7a4d; }
.checks .f { color: var(--red); }
.close { margin: 46px 0 0; max-width: 66ch; }
.close p { margin: 0 0 20px; font-size: clamp(17px, 1.6vw, 19.5px); }
.close p:last-child { margin: 0; }

/* -------------------------------------------------------------- inner page */
.inner { padding: 76px 0 0; }
.inner h1 {
  font-size: clamp(38px, 6vw, 68px); max-width: 20ch; margin-bottom: 24px;
}
.inner .lede p { font-size: clamp(18px, 1.7vw, 21px); }
.inner section { padding: 54px 0; margin-top: 0; }
.inner section:first-of-type { border-top: 1px solid var(--rule); margin-top: 54px; }
.inner h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 18px; }

.src { margin: 0; padding: 0; }
.src li { list-style: none; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.src .hd { font-size: 16px; margin: 0 0 6px; }
.src .hd b { font-weight: 600; }
.src .hd i { font-style: italic; }
.src p { margin: 0; max-width: 74ch; font-size: 14.5px; color: var(--ink-2); }
.src a.go {
  display: inline-block; margin-top: 8px; font-family: var(--data); font-size: 12px;
  color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--rule);
  word-break: break-all;
}
.src a.go:hover { color: var(--ink); border-bottom-color: var(--ink); }

.files { margin: 24px 0 0; padding: 0; }
.files li { list-style: none; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 14.5px; }
.files a { font-family: var(--data); font-size: 13px; }

/* ------------------------------------------------------------------ footer */
footer {
  border-top: 1px solid var(--rule); margin-top: 84px;
  padding-block: 34px 54px;
}
footer .shell { display: flex; gap: 18px 28px; align-items: baseline; flex-wrap: wrap; }
footer .u { font-family: var(--data); font-size: 12px; color: var(--ink-2); margin: 0; }
footer .by { color: var(--ink-2); font-size: 13.5px; margin: 0 auto 0 0; }
footer a { font-size: 13.5px; color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--rule); }
footer a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.back-top { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center;
  justify-content: center; gap: 7px; padding: 0 12px; }
.back-top span { color: var(--red); font-family: var(--data); }
.js .back-top {
  position: fixed; right: max(16px, env(safe-area-inset-right));
  bottom: var(--back-top-bottom, max(16px, env(safe-area-inset-bottom)));
  z-index: 20; background: var(--card); border: 1px solid var(--rule);
  box-shadow: 0 5px 18px rgba(20, 24, 28, 0.12);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 160ms ease;
}
.js .back-top.is-visible { opacity: 1; visibility: visible; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .js .back-top { transition-duration: 0s; } }
@media print { .back-top { display: none !important; } }

/* term buttons */
.gt {
  font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: help;
  border-bottom: 1px dotted var(--ink-2); text-align: left;
}
.gt:hover { border-bottom-color: var(--red); color: var(--red); }
.bench .gt { border-bottom-color: #6c767e; }
.bench .gt:hover { color: #ef7a86; border-bottom-color: #ef7a86; }
.tip {
  position: absolute; z-index: 50; max-width: 330px;
  background: var(--ink); color: var(--card); padding: 13px 15px;
  font: 400 13.5px/1.5 var(--body); box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}
.tip b { display: block; font-family: var(--data); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: #9aa3aa; margin-bottom: 6px; }

/* The reset control only exists once the bench has been started. */
#reset { display: none; }
.rig[data-on='1'] ~ #reset { display: inline-block; }
