/* Open Weights Tracker. A weights-and-measures assay office: engraved certificates, brass
   weights on green baize, hallmarks for licences. Bodoni Moda for the engraved display lines,
   Archivo for text and figures (its width axis gives the wide engraved capitals). */

@font-face {
  font-family: 'Bodoni Moda';
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url(fonts/bodoni-moda-latin-standard-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Bodoni Moda';
  font-style: italic;
  font-display: swap;
  font-weight: 400 900;
  src: url(fonts/bodoni-moda-latin-standard-italic.woff2) format('woff2');
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(fonts/archivo-latin-standard-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(fonts/archivo-latin-ext-standard-normal.woff2) format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --f-display: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
  --f-text: 'Archivo', 'Helvetica Neue', Arial, sans-serif;

  --ground: oklch(94.2% 0.009 205);
  --stock: oklch(98.4% 0.006 95);
  --stock-2: oklch(96.2% 0.01 95);
  --ink: oklch(22% 0.03 255);
  --ink-2: oklch(38% 0.025 255);
  --rule: oklch(76% 0.02 240);
  --rule-strong: oklch(30% 0.03 255);
  --brass: oklch(70% 0.12 82);
  --brass-shade: oklch(55% 0.1 72);
  --brass-glint: oklch(88% 0.08 92);
  --brass-ink: oklch(46% 0.09 72);
  --baize: oklch(34% 0.055 168);
  --baize-2: oklch(29% 0.05 168);
  --baize-ink: oklch(94% 0.02 120);
  --baize-muted: oklch(82% 0.03 140);
  --open: oklch(46% 0.09 172);
  --conditional: oklch(47% 0.1 70);
  --restricted: oklch(49% 0.17 28);
  --unknown: oklch(46% 0.015 255);
  --focus: oklch(55% 0.19 28);

  --t-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --t-small: 0.9375rem;
  --t-h2: clamp(1.9rem, 1.2rem + 2.6vw, 3.4rem);
  --t-h1: clamp(2.6rem, 1.1rem + 5.4vw, 6.2rem);
  --t-name: clamp(2.6rem, 0.6rem + 7.4vw, 7.6rem);

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1380px;
  --section: clamp(5rem, 3rem + 7vw, 10rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --ground: oklch(17% 0.018 235);
    --stock: oklch(21.5% 0.02 235);
    --stock-2: oklch(25% 0.022 235);
    --ink: oklch(93% 0.014 90);
    --ink-2: oklch(79% 0.018 90);
    --rule: oklch(38% 0.025 235);
    --rule-strong: oklch(80% 0.04 85);
    --brass: oklch(74% 0.12 82);
    --brass-shade: oklch(58% 0.1 72);
    --brass-glint: oklch(90% 0.08 92);
    --brass-ink: oklch(80% 0.11 82);
    --baize: oklch(27% 0.045 168);
    --baize-2: oklch(23% 0.04 168);
    --open: oklch(78% 0.11 172);
    --conditional: oklch(81% 0.12 82);
    --restricted: oklch(74% 0.14 30);
    --unknown: oklch(74% 0.02 255);
    --focus: oklch(78% 0.15 60);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --ground: oklch(17% 0.018 235);
  --stock: oklch(21.5% 0.02 235);
  --stock-2: oklch(25% 0.022 235);
  --ink: oklch(93% 0.014 90);
  --ink-2: oklch(79% 0.018 90);
  --rule: oklch(38% 0.025 235);
  --rule-strong: oklch(80% 0.04 85);
  --brass: oklch(74% 0.12 82);
  --brass-shade: oklch(58% 0.1 72);
  --brass-glint: oklch(90% 0.08 92);
  --brass-ink: oklch(80% 0.11 82);
  --baize: oklch(27% 0.045 168);
  --baize-2: oklch(23% 0.04 168);
  --open: oklch(78% 0.11 172);
  --conditional: oklch(81% 0.12 82);
  --restricted: oklch(74% 0.14 30);
  --unknown: oklch(74% 0.02 255);
  --focus: oklch(78% 0.15 60);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 var(--t-base) / 1.55 var(--f-text);
  font-variant-numeric: lining-nums tabular-nums;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; text-decoration-color: color-mix(in oklch, currentColor 45%, transparent); transition: text-decoration-color 160ms, color 160ms; }
a:hover { text-decoration-color: currentColor; text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
small { font-size: 0.82em; color: var(--ink-2); }
code { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 0.9em; }
::selection { background: var(--brass); color: oklch(18% 0.02 255); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--gutter); top: -100px; background: var(--ink); color: var(--ground); padding: 0.6rem 1rem; z-index: 10; }
.skip:focus { top: 0.6rem; }
main { display: block; outline: none; }
main > *, .masthead, .colophon { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* Masthead: wordmark, three links, the theme switch. */
.masthead { display: flex; align-items: center; gap: 1.5rem; padding: 1.1rem 0; border-bottom: 1px solid var(--rule-strong); }
.wordmark { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; margin-right: auto; }
.wordmark-mark { width: 34px; height: 38px; flex: none; transition: transform 400ms var(--ease); }
.wordmark:hover .wordmark-mark { transform: rotate(-6deg); }
.mk-shield { fill: var(--brass); stroke: var(--ink); stroke-width: 2.4; }
.mk-ink { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.mk-dot { fill: var(--ink); }
.wordmark-text { font-family: var(--f-display); font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1; }
.wordmark-text span { font-style: italic; font-weight: 400; }
.masthead nav ul { display: flex; flex-wrap: wrap; gap: 0.2rem 1.4rem; margin: 0; padding: 0; list-style: none; }
.masthead nav a { text-decoration: none; font-weight: 500; padding: 0.3rem 0; border-bottom: 2px solid transparent; transition: border-color 160ms; }
.masthead nav a:hover { border-bottom-color: var(--rule); }
.masthead nav a[aria-current='page'] { border-bottom-color: var(--brass); }
.theme-toggle { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--rule); background: transparent; color: var(--ink); border-radius: 50%; cursor: pointer; transition: transform 300ms var(--ease), border-color 160ms; }
.theme-toggle:hover { border-color: var(--ink); transform: rotate(30deg); }
.theme-toggle svg { width: 22px; height: 22px; }
.theme-toggle circle { fill: none; stroke: currentColor; stroke-width: 1.6; }
.theme-toggle path { fill: currentColor; }

/* Issue head. */
.issue-head, .page-head { padding: clamp(2.5rem, 1rem + 5vw, 5.5rem) 0 clamp(2rem, 1rem + 3vw, 3.5rem); display: grid; gap: 1.25rem; }
.issue-head h1, .page-head h1 { font-family: var(--f-display); font-size: var(--t-h1); line-height: 0.95; letter-spacing: -0.025em; font-weight: 500; max-width: 13ch; text-wrap: balance; }
.issue-dek { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem); line-height: 1.45; max-width: 46ch; }
.issue-meta { color: var(--ink-2); font-size: var(--t-small); }
.notice { max-width: 64ch; padding: 0.9rem 1.1rem; background: var(--stock-2); border-left: 4px solid var(--brass); font-size: var(--t-small); }
@media (min-width: 960px) {
  .issue-head, .page-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 3rem; align-items: end; }
  .issue-head h1, .page-head h1 { grid-row: span 3; }
}

/* The certificate and the balance. */
.cert-grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
@media (max-width: 1079px) { .cert-rosette { display: none; } }
@media (min-width: 1080px) { .cert-grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); } .weigher { position: sticky; top: 1.5rem; } }

.certificate {
  position: relative;
  overflow: hidden;
  background: var(--stock);
  border: 1px solid var(--rule-strong);
  outline: 1px solid var(--rule-strong);
  outline-offset: -8px;
  padding: clamp(1.4rem, 1rem + 2.4vw, 3.2rem);
  display: grid;
  gap: 1.4rem;
}
.cert-rosette { position: absolute; z-index: 0; width: 300px; right: -96px; top: -120px; fill: none; stroke: var(--brass); stroke-width: 0.35; opacity: 0.5; pointer-events: none; }
.cert-band { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-bottom: 0.9rem; border-bottom: 3px double var(--rule-strong); font-stretch: 125%; font-size: 1rem; font-weight: 600; }
.cert-band span { white-space: nowrap; font-stretch: 100%; letter-spacing: 0.02em; color: var(--ink-2); font-weight: 500; margin-left: 0.5rem; }
.cert-fineness { background: var(--stock); display: inline-flex; align-items: baseline; gap: 0.5rem; padding: 0.35rem 0.8rem; border: 1.5px solid var(--brass-ink); color: var(--brass-ink); border-radius: 999px; }
.cert-fineness span { margin: 0; color: inherit; }
.cert-fineness b { font-family: var(--f-display); font-size: 1.35rem; letter-spacing: 0; line-height: 1; }
.cert-kicker { position: relative; line-height: 1.1; margin-bottom: -0.4rem; font-family: var(--f-display); font-style: italic; font-size: clamp(1.2rem, 1rem + 0.8vw, 1.6rem); color: var(--brass-ink); }
.cert-name { position: relative; font-family: var(--f-display); font-size: var(--t-name); line-height: 0.92; letter-spacing: -0.035em; font-weight: 600; overflow-wrap: anywhere; }
.cert-name.is-mid { font-size: clamp(2.3rem, 0.6rem + 5.6vw, 6rem); }
.cert-name.is-long { font-size: clamp(2rem, 0.6rem + 4.2vw, 4.6rem); }
.cert-name a { text-decoration: none; }
.cert-name a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--brass); }
.cert-by { position: relative; font-size: 1.15rem; color: var(--ink-2); }
.cert-body { position: relative; display: grid; gap: 1.5rem; padding-top: 1.4rem; border-top: 1px solid var(--rule); }
@media (min-width: 640px) { .cert-body { grid-template-columns: 150px minmax(0, 1fr); align-items: start; } }
.cert-weight { margin: 0; display: grid; justify-items: center; gap: 0.4rem; padding: 1rem 0.5rem 0.75rem; background: var(--baize); color: var(--baize-ink); }
.cert-weight svg { width: 120px; height: auto; }
.cert-weight figcaption { font-size: var(--t-small); font-weight: 600; }
.facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(140px, 45%), 1fr)); column-gap: 0.9rem; }
.facts div { padding: 0.6rem 0.9rem 0.7rem 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-size: var(--t-small); font-stretch: 112%; color: var(--ink-2); font-weight: 600; }
.facts dd { margin: 0.2rem 0 0; font-weight: 500; overflow-wrap: anywhere; }
.facts dd small { display: block; }
.cert-summary { position: relative; font-size: clamp(1.1rem, 1rem + 0.45vw, 1.35rem); line-height: 1.5; max-width: 56ch; }
.cert-sub { font-family: var(--f-display); font-size: 1.5rem; font-style: italic; font-weight: 400; padding-top: 1rem; border-top: 3px double var(--rule-strong); }
.cert-links { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 1.4rem; background: var(--ink); color: var(--stock); text-decoration: none; font-weight: 600; border-radius: 0; transition: transform 180ms var(--ease), background-color 180ms; }
.btn:hover { background: var(--brass-ink); color: var(--stock); text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }

/* The assay: six graduated rules. */
.assay { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.2rem; }
.assay-row { display: grid; grid-template-columns: 8.5rem 5.5rem minmax(0, 1fr); grid-template-areas: 'label value rule' 'note note note'; column-gap: 1rem; align-items: center; padding: 0.55rem 0; border-bottom: 1px solid var(--rule); }
.assay-label { grid-area: label; font-weight: 600; }
.assay-value { grid-area: value; color: var(--ink-2); font-size: var(--t-small); }
.assay-value b { color: var(--ink); font-size: 1.05rem; }
.assay .rule { grid-area: rule; width: 100%; height: 22px; }
.assay-note { grid-area: note; font-size: var(--t-small); color: var(--ink-2); }
@media (min-width: 760px) { .assay-row { grid-template-columns: 8.5rem 5.5rem minmax(0, 1fr) minmax(0, 1.25fr); grid-template-areas: 'label value rule note'; } .assay-note { padding-left: 0.5rem; } }
.r-track { fill: var(--stock-2); stroke: var(--rule); stroke-width: 0.6; }
.r-fill { fill: var(--brass); transform-box: fill-box; transform-origin: left center; transition: transform 900ms var(--ease); }
.r-ticks, .r-base { stroke: var(--ink-2); stroke-width: 1; fill: none; }
html.js .is-pending .r-fill { transform: scaleX(0); }

/* The balance. */
.weigher { background: var(--stock); border: 1px solid var(--rule-strong); padding: clamp(1.2rem, 1rem + 1vw, 1.8rem); display: grid; gap: 1rem; }
.weigher h2 { font-family: var(--f-display); font-size: clamp(1.7rem, 1.2rem + 1.2vw, 2.3rem); line-height: 1; letter-spacing: -0.02em; }
.weigher-lede { font-size: var(--t-small); color: var(--ink-2); }
.balance { width: 100%; height: auto; overflow: visible; }
.b-base, .b-column, .b-arm, .b-pan, .b-needle { fill: var(--brass); stroke: var(--brass-shade); stroke-width: 1; }
.b-shade { fill: var(--brass-shade); }
.b-pivot { fill: var(--ink); }
.b-pivot-in { fill: var(--brass-glint); }
.b-chain { fill: none; stroke: var(--ink-2); stroke-width: 1.2; }
.b-scale, .b-scale-ticks { fill: none; stroke: var(--ink-2); stroke-width: 1.2; }
.b-tag-card { fill: var(--stock-2); stroke: var(--ink); stroke-width: 1.2; }
.b-tag-hole { fill: var(--ground); stroke: var(--ink); stroke-width: 1; }
.b-tag-text { font: 700 15px var(--f-display); fill: var(--ink); }
.weigher-pick { display: grid; gap: 0.7rem; }
.weigher-pick label { display: grid; gap: 0.25rem; font-size: var(--t-small); font-weight: 600; }
.weigher-pick select { width: 100%; min-height: 44px; font: inherit; font-weight: 500; color: var(--ink); background: var(--ground); border: 1px solid var(--rule-strong); border-radius: 0; padding: 0 0.6rem; cursor: pointer; }
.weigher-pick select:hover { border-color: var(--brass-ink); }
.weigher-read { font-size: 1.1rem; font-weight: 600; line-height: 1.4; min-height: 3em; }
.weigher-table { width: 100%; border-collapse: collapse; font-size: var(--t-small); }
.weigher-table th, .weigher-table td { padding: 0.35rem 0; border-bottom: 1px solid var(--rule); text-align: right; }
.weigher-table th[scope='row'], .weigher-table thead th:first-child { text-align: left; font-weight: 500; }
.weigher-table thead th { font-weight: 700; border-bottom: 1.5px solid var(--rule-strong); }
.weigher-table td.is-more { font-weight: 800; color: var(--brass-ink); }

/* The set of weights on green baize: also the size filter. */
.weights { margin-top: var(--section); background: var(--baize); color: var(--baize-ink); padding: clamp(2rem, 1rem + 4vw, 4.5rem) clamp(1.2rem, 1rem + 3vw, 4rem); display: grid; gap: 2.2rem; }
.weights-head { display: grid; gap: 0.8rem; }
@media (min-width: 900px) { .weights-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; column-gap: 3rem; } }
.weights h2, .register-head h2, .makers-head h2, .rejects-head h2, .ledger h2, .months h2, .winners h2, .month-top h2, .month-mix h2, .month-labs h2, .method h2 { font-family: var(--f-display); font-size: var(--t-h2); line-height: 0.98; letter-spacing: -0.025em; }
.weights-head p { color: var(--baize-muted); max-width: 44ch; }
.weights-set { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; border-top: 1px solid color-mix(in oklch, var(--baize-ink) 35%, transparent); }
.weight-btn { width: 100%; height: 100%; display: grid; justify-items: start; gap: 0.15rem; padding: 1.2rem 1rem 1.3rem; background: transparent; color: inherit; font: inherit; text-align: left; border: 0; border-bottom: 1px solid color-mix(in oklch, var(--baize-ink) 35%, transparent); cursor: pointer; transition: background-color 200ms; }
.weight-btn svg { width: 92px; height: auto; margin-bottom: 0.6rem; transition: transform 420ms var(--ease); transform-origin: bottom center; }
.weight-btn:hover:not(:disabled) { background: var(--baize-2); }
.weight-btn:hover:not(:disabled) svg { transform: translateY(-6px); }
.weight-btn:active:not(:disabled) svg { transform: translateY(2px) scaleY(0.97); }
.weight-btn[aria-pressed='true'] { background: var(--baize-2); box-shadow: inset 0 -4px 0 var(--brass); }
.weight-btn:disabled { cursor: default; opacity: 0.55; }
.weight-name { font-family: var(--f-display); font-size: 1.6rem; font-weight: 600; line-height: 1.1; }
.weight-range, .weight-count { font-size: var(--t-small); color: var(--baize-muted); }
.weight-count b { color: var(--baize-ink); font-size: 1.05rem; }
.w-body { fill: var(--brass); }
.w-shade { fill: var(--brass-shade); }
.w-glint { fill: var(--brass-glint); }
.w-shadow { fill: oklch(10% 0.02 168 / 0.35); }
.w-label { font: 700 10px var(--f-text); fill: oklch(28% 0.05 70); letter-spacing: 0.02em; }
.w-empty { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-dasharray: 3 3; }
.w-label-none { fill: currentColor; font-size: 14px; }

/* The register: specimen tags. */
.register { margin-top: var(--section); display: grid; gap: 2rem; }
.register-head, .makers-head, .rejects-head { display: grid; gap: 0.8rem; }
@media (min-width: 900px) { .register-head, .makers-head, .rejects-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 3rem; align-items: end; } }
.register-head p, .makers-head p, .rejects-head p { max-width: 50ch; }
.filters { display: grid; gap: 0.8rem; padding: 1rem 0; border-top: 3px double var(--rule-strong); border-bottom: 1px solid var(--rule); }
.filters[hidden] { display: none; }
.filter-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.filter-label { width: 6.5rem; font-weight: 700; font-size: var(--t-small); }
.chip { min-height: 40px; display: inline-flex; align-items: center; gap: 0.45rem; padding: 0 0.95rem; font: inherit; font-size: var(--t-small); font-weight: 600; color: var(--ink); background: var(--stock); border: 1px solid var(--rule); border-radius: 999px; cursor: pointer; transition: border-color 160ms, background-color 160ms, transform 160ms var(--ease); }
.chip span { color: var(--ink-2); font-weight: 500; }
.chip:hover { border-color: var(--ink); }
.chip:active { transform: scale(0.97); }
.chip[aria-pressed='true'] { background: var(--ink); color: var(--stock); border-color: var(--ink); }
.chip[aria-pressed='true'] span { color: inherit; }
.filter-status { font-size: var(--t-small); color: var(--ink-2); }
.filter-reset { justify-self: start; min-height: 40px; font: inherit; font-size: var(--t-small); font-weight: 700; background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.group { display: grid; gap: 0.6rem; }
.group[hidden] { display: none; }
.group h3 { font-family: var(--f-display); font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.2rem); font-style: italic; font-weight: 400; padding-top: 1.4rem; }
.group h3 span { font-style: normal; font-family: var(--f-text); font-size: 1rem; color: var(--ink-2); font-weight: 500; margin-left: 0.4rem; }
.specimens { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--rule-strong); }
.specimen { display: grid; grid-template-columns: 54px minmax(0, 1fr); column-gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
.specimen[hidden] { display: none; }
@media (min-width: 720px) { .specimen { grid-template-columns: 64px minmax(0, 1fr) 8.5rem; column-gap: 1.5rem; } }

.tag { position: relative; align-self: start; height: 76px; display: grid; place-items: end center; padding-bottom: 0.55rem; transition: transform 300ms var(--ease); transform-origin: 50% 16px; }
.tag svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tag-card { fill: var(--stock); stroke: var(--rule-strong); stroke-width: 1.2; }
.tag-hole { fill: var(--ground); stroke: var(--rule-strong); stroke-width: 1.2; }
.tag-rank { position: relative; font-family: var(--f-display); font-weight: 700; font-size: 1.6rem; line-height: 1; }
.hy { font-family: var(--f-text); font-weight: 500; font-style: normal; letter-spacing: 0; }
.specimen:hover .tag { transform: rotate(-4deg); }
.spec-main { display: grid; gap: 0.45rem; min-width: 0; }
.spec-name { font-family: var(--f-display); font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.8rem); line-height: 1.08; font-weight: 600; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.spec-name a { text-decoration: none; }
.spec-name a:hover { text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 2px; }
.spec-by { color: var(--ink-2); font-size: var(--t-small); }
.spec-late { margin-left: 0.4rem; padding-left: 0.6rem; border-left: 1px solid var(--rule); }
.spec-facts, .spec-traction { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 1.1rem; font-size: var(--t-small); }
.spec-size { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; }
.spec-size svg { width: 30px; height: auto; }
.spec-arch { color: var(--ink-2); overflow-wrap: anywhere; }
.spec-traction b { font-size: 1rem; }
.spec-sibs { color: var(--ink-2); }
.spec-notes summary { cursor: pointer; font-size: var(--t-small); font-weight: 700; width: max-content; padding: 0.3rem 0; list-style: none; }
.spec-notes summary::-webkit-details-marker { display: none; }
.spec-notes summary::before { content: '+'; display: inline-block; width: 1.1em; font-weight: 400; transition: transform 200ms var(--ease); }
.spec-notes[open] summary::before { transform: rotate(45deg); }
.spec-notes summary:hover { color: var(--brass-ink); }
.spec-notes .assay { margin-top: 0.4rem; }
.spec-score { grid-column: 3; grid-row: 1; display: grid; justify-items: end; align-content: start; gap: 0.1rem; }
.specimen { grid-template-columns: 54px minmax(0, 1fr) auto; }
@media (min-width: 720px) { .spec-score { grid-column: 3; grid-row: 1; display: grid; justify-items: end; align-content: start; gap: 0.1rem; } }
.spec-score b { font-family: var(--f-display); font-size: clamp(1.8rem, 1.4rem + 1vw, 2.6rem); line-height: 1; font-weight: 600; }
.spec-score span { font-size: 0.8125rem; color: var(--ink-2); }

/* Hallmarks. */
.hallmark { position: relative; display: inline-grid; place-items: center; min-height: 30px; padding: 0 0.85rem; font-size: 0.8125rem; font-weight: 700; font-stretch: 112%; letter-spacing: 0.03em; color: var(--hm); white-space: nowrap; }
.hallmark svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hallmark path { fill: color-mix(in oklch, var(--hm) 9%, transparent); stroke: var(--hm); stroke-width: 1.5; }
.hallmark span { position: relative; }
.hm-open { --hm: var(--open); }
.hm-conditional { --hm: var(--conditional); }
.hm-restricted { --hm: var(--restricted); }
.hm-unknown { --hm: var(--unknown); }
.hm-unknown path { stroke-dasharray: 4 3; }
.facts .hallmark { white-space: normal; text-align: center; padding: 0.2rem 1rem; }

/* Makers. */
.makers { margin-top: var(--section); display: grid; gap: 2rem; }
.makers-table { width: 100%; border-collapse: collapse; }
.makers-table th, .makers-table td { padding: 0.7rem 0.75rem 0.7rem 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: middle; }
.makers-table thead th { font-size: var(--t-small); font-weight: 700; border-bottom: 1.5px solid var(--rule-strong); }
.makers-table tbody th { font-family: var(--f-display); font-size: 1.2rem; font-weight: 600; overflow-wrap: anywhere; }
.makers-table tbody tr { transition: background-color 160ms; }
.makers-table tbody tr:hover { background: var(--stock); }
.makers-table .num { text-align: right; font-weight: 700; }
.bar-col { width: 28%; }
.bar { width: 100%; height: 12px; }
.bar-track { fill: var(--rule); }
.bar-fill { fill: var(--brass); }
@media (max-width: 719px) { .makers-table .bar-col { display: none; } .makers-table td:last-child { font-size: var(--t-small); } }

/* Left out. */
.rejects { margin-top: var(--section); display: grid; gap: 2rem; }
.rejects-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1.5px solid var(--rule-strong); }
@media (min-width: 900px) { .rejects-list { grid-template-columns: 1fr 1fr; column-gap: 3rem; } }
.rejects-list li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
.reject-count b { font-family: var(--f-display); font-size: 2.6rem; line-height: 1; font-weight: 500; color: var(--restricted); }
.reject-rule { font-weight: 600; }
.reject-eg { font-size: var(--t-small); color: var(--ink-2); overflow-wrap: anywhere; margin-top: 0.3rem; }

.issue-nav { margin-top: var(--section); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.2rem 0; border-top: 3px double var(--rule-strong); font-weight: 600; }

/* Archive. */
.ledger-list { list-style: none; margin: 0; padding: 0; border-top: 3px double var(--rule-strong); }
.ledger-list li { display: grid; grid-template-columns: minmax(0, 1fr) 56px; grid-template-areas: 'week weight' 'model weight' 'count count'; gap: 0.3rem 1rem; padding: 1.2rem 0; border-bottom: 1px solid var(--rule); align-items: center; }
@media (min-width: 860px) { .ledger-list li { grid-template-columns: 15rem 70px minmax(0, 1fr) 9rem; grid-template-areas: 'week weight model count'; column-gap: 2rem; } }
.ledger-week { grid-area: week; display: grid; }
.ledger-week a { font-family: var(--f-display); font-size: 1.6rem; font-weight: 600; text-decoration: none; }
.ledger-week a:hover { text-decoration: underline; }
.ledger-week span, .ledger-model span, .ledger-count span { font-size: var(--t-small); color: var(--ink-2); }
.ledger-weight { grid-area: weight; color: var(--ink-2); }
.ledger-weight svg { width: 64px; }
.ledger-model { grid-area: model; display: grid; }
.ledger-model a { font-family: var(--f-display); font-size: clamp(1.3rem, 1rem + 1vw, 2rem); font-weight: 500; line-height: 1.1; overflow-wrap: anywhere; }
.ledger-count { grid-area: count; display: grid; }
@media (min-width: 860px) { .ledger-count { justify-items: end; } }
.months { margin-top: var(--section); display: grid; gap: 1.5rem; }
.months-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1.5px solid var(--rule-strong); }
.months-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.months-list a { font-family: var(--f-display); font-size: 1.6rem; font-weight: 600; }
.months-list span { color: var(--ink-2); }

/* Month. */
.winners, .month-top { margin-top: clamp(2rem, 4vw, 4rem); display: grid; gap: 1.5rem; }
.month-top { margin-top: var(--section); }
.winners-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); background: var(--baize); color: var(--baize-ink); }
.winners-list li { padding: 1.5rem 1.4rem 1.7rem; display: grid; gap: 0.35rem; align-content: start; border-right: 1px solid color-mix(in oklch, var(--baize-ink) 25%, transparent); }
.winner-week { font-size: var(--t-small); font-weight: 700; }
.winner-name { font-family: var(--f-display); font-size: clamp(1.5rem, 1.1rem + 1vw, 2.1rem); line-height: 1.05; font-weight: 600; overflow-wrap: anywhere; }
.winner-name a { text-decoration-color: var(--brass); }
.winner-by { font-size: var(--t-small); color: var(--baize-muted); }
.month-top-list { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--rule-strong); }
.month-top-list li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) auto; grid-template-areas: 'rank name score' 'rank mark score'; gap: 0.3rem 1rem; align-items: center; padding: 0.9rem 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 760px) { .month-top-list li { grid-template-columns: 3rem minmax(0, 1fr) 9rem 6rem; grid-template-areas: 'rank name mark score'; } }
.mt-rank { grid-area: rank; font-family: var(--f-display); font-size: 1.6rem; font-weight: 700; }
.mt-name { grid-area: name; display: grid; }
.mt-name > a { font-family: var(--f-display); font-size: 1.35rem; font-weight: 600; overflow-wrap: anywhere; }
.mt-name span { font-size: var(--t-small); color: var(--ink-2); }
.month-top-list .hallmark { grid-area: mark; justify-self: start; }
.mt-score { grid-area: score; text-align: right; font-family: var(--f-display); font-size: 1.8rem; font-weight: 600; }
.month-split { margin-top: var(--section); display: grid; gap: var(--section) 4rem; }
@media (min-width: 980px) { .month-split { grid-template-columns: 1fr 1fr; } }
.month-mix, .month-labs { display: grid; gap: 1.4rem; align-content: start; }
.mix-lic, .mix-size { list-style: none; margin: 0; padding: 0; display: grid; }
.mix-lic li { display: grid; grid-template-columns: 8rem 6.5rem minmax(0, 1fr); gap: 1rem; align-items: center; padding: 0.6rem 0; border-bottom: 1px solid var(--rule); }
.mix-lic .hallmark { justify-self: start; }
.mix-size { grid-template-columns: repeat(3, 1fr); background: var(--baize); color: var(--baize-ink); padding: 1rem; gap: 1rem 0.5rem; }
.mix-size li { display: grid; justify-items: center; text-align: center; gap: 0.1rem; font-size: var(--t-small); }
.mix-size svg { width: 56px; }
.mix-size b { font-family: var(--f-display); font-size: 1.6rem; }

/* Method. */
.method { display: grid; gap: var(--section); }
.method section { max-width: 1000px; }
.method section { display: grid; gap: 1.1rem; }
.method p, .method li, .method dd { max-width: 68ch; }
.method-rules { margin: 0; padding-left: 1.3rem; display: grid; gap: 0.7rem; }
.method-parts { margin: 0; display: grid; border-top: 1.5px solid var(--rule-strong); }
.method-parts div { display: grid; gap: 0.4rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 800px) { .method-parts div { grid-template-columns: 15rem minmax(0, 1fr); column-gap: 2rem; } }
.method-parts dt { font-family: var(--f-display); font-size: 1.3rem; font-weight: 600; }
.method-parts dd { margin: 0; }
.method-parts .rule { width: min(100%, 360px); height: 22px; margin-top: 0.6rem; }
.method-sizes { list-style: none; margin: 0; padding: 1.2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1rem; background: var(--baize); color: var(--baize-ink); }
.method-sizes li { display: grid; justify-items: center; gap: 0.1rem; text-align: center; }
.method-sizes svg { width: 80px; }
.method-sizes span { font-size: var(--t-small); color: var(--baize-muted); }
.method-lic { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; }
.method-lic li { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1rem; align-items: center; }
.method-lic .hallmark { justify-self: start; }

/* Footer: the name returns at full width. */
.colophon { margin-top: var(--section); padding: 0 0 3rem; border-top: 3px double var(--rule-strong); display: grid; gap: 2rem; }
.colophon-name { font-family: var(--f-display); font-size: clamp(3rem, 1rem + 10vw, 11rem); line-height: 0.9; letter-spacing: -0.04em; font-weight: 600; padding-top: 1.5rem; overflow-wrap: anywhere; }
.colophon-cols { display: grid; gap: 1.5rem; font-size: var(--t-small); }
.colophon-cols > div { display: grid; gap: 0.7rem; align-content: start; }
.colophon-lead { font-size: 1.05rem; font-weight: 600; }
@media (min-width: 900px) { .colophon-cols { grid-template-columns: 1fr 1.4fr; column-gap: 4rem; } }

.empty { padding: 3rem 0; font-size: 1.3rem; }

/* Entrances: only with the script, so nothing stays hidden without it. */
html.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 500ms var(--ease), transform 600ms var(--ease); transition-delay: calc(min(var(--i, 0), 5) * 60ms); }
html.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; transition-delay: 0ms !important; }
  html.js [data-reveal] { opacity: 1; transform: none; }
  html.js .is-pending .r-fill { transform: none; }
}

@media (max-width: 639px) {
  .cert-weight { grid-template-columns: 72px 1fr; justify-items: start; align-items: center; padding: 0.6rem 1rem; }
  .cert-weight svg { width: 72px; }
}
@media (max-width: 560px) {
  .masthead { flex-wrap: wrap; gap: 0.8rem 1rem; }
  .masthead nav { order: 3; width: 100%; }
  .assay-row { grid-template-columns: 7rem minmax(0, 1fr); grid-template-areas: 'label value' 'rule rule' 'note note'; }
  .rejects-list li { grid-template-columns: 4rem minmax(0, 1fr); }
  .reject-count b { font-size: 2rem; }
  .mix-lic li { grid-template-columns: 7rem minmax(0, 1fr); }
  .mix-lic .bar { grid-column: 1 / -1; }
  .filter-label { width: 100%; }
}
@media (min-width: 1100px) {
  .specimen { grid-template-columns: 64px minmax(0, 1.1fr) minmax(0, 1.25fr) 7.5rem; grid-template-areas: 'tag name facts score' 'tag by traction score' 'tag notes notes score'; row-gap: 0.35rem; align-items: start; }
  .spec-main { display: contents; }
  .tag { grid-area: tag; }
  .spec-name { grid-area: name; }
  .spec-by { grid-area: by; }
  .spec-facts { grid-area: facts; padding-top: 0.35rem; }
  .spec-traction { grid-area: traction; }
  .spec-notes { grid-area: notes; }
  .spec-score { grid-area: score; }
}
/* Found pictures: plates with captions. */
.plate { margin: 0; display: grid; gap: 0.55rem; align-content: start; }
.plate img { width: 100%; height: auto; display: block; background: var(--stock-2); }
.plate figcaption { font-size: var(--t-small); color: var(--ink-2); }
.plate-band img { aspect-ratio: 1600 / 460; object-fit: cover; object-position: center 70%; }
.weights .plate figcaption { color: var(--baize-muted); }
.plate-side { grid-column: 1 / -1; }
.plate-side img, .plate-head img { aspect-ratio: 4 / 3; object-fit: cover; object-position: center 35%; }
@media (min-width: 900px) { .plate-side { grid-column: 2; max-width: 520px; } }
.plate-head { max-width: 520px; }
.plate-hall { margin-top: 2.5rem; }
.plate-hall img { aspect-ratio: 1227 / 420; object-fit: cover; object-position: center 55%; }
.plate img { transition: transform 1200ms var(--ease); }
.plate:hover img { transform: scale(1.015); }
.plate { overflow: hidden; }

/* Bodoni's hairlines thin out as its optical size grows, until letters break apart on screen.
   The optical size is pinned instead: display headings at a sturdy text cut, and model names,
   version numbers and every figure at the smallest cut and a heavy weight, where 1, l and I and
   0 and O stay distinct. */
body { font-optical-sizing: none; font-variation-settings: 'opsz' 18; }
.cert-name, .spec-name, .ledger-model a, .winner-name, .mt-name > a, .tag-rank, .spec-score b, .mt-score, .mt-rank, .reject-count b, .cert-fineness b, .ledger-week a, .mix-size b, .b-tag-text, .weight-name, .months-list a, .makers-table tbody th {
  font-variation-settings: 'opsz' 7;
  font-weight: 700;
  letter-spacing: 0;
}
.cert-name { letter-spacing: -0.01em; }
.issue-head h1, .page-head h1, .colophon-name { letter-spacing: -0.012em; font-weight: 500; }

@media print { .masthead nav, .theme-toggle, .weigher, .filters { display: none; } }
