/* ===========================================================================
   rep — cantbuyrep.top
   Visual register: archival documentary. Aged paper, carbon typescript,
   ruled record cards, one faded red stamp. No gradients, no glass, no glow.
   =========================================================================== */

:root {
  /* paper */
  --paper:        #e6e0d2;
  --paper-lit:    #ede8dc;
  --paper-card:   #f1ece1;
  --paper-deep:   #d8d0be;

  /* carbon */
  --ink:          #1d1b18;
  --ink-soft:     #3a3630;
  --ink-faint:    #6d665c;
  --ink-ghost:    #9a9285;

  /* rules */
  --rule:         #b6ab95;
  --rule-fine:    #c9c0ac;

  /* the one accent: a rubber stamp that has been through the machine */
  --stamp:        #a33a2b;
  --stamp-wash:   rgba(163, 58, 43, 0.13);

  --mono: "Courier New", "Nimbus Mono PS", "Liberation Mono", "DejaVu Sans Mono", monospace;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
           Georgia, "Liberation Serif", "Times New Roman", serif;

  --gut: clamp(18px, 4.5vw, 56px);
  --measure: 62ch;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--paper);
  /* fibre + flecks, drawn inline — no network request */
  background-image:
    url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'>\
<filter id='f'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/>\
<feColorMatrix type='saturate' values='0'/></filter>\
<rect width='180' height='180' filter='url(%23f)' opacity='0.055'/></svg>"),
    linear-gradient(184deg, rgba(0,0,0,0.045) 0%, rgba(0,0,0,0) 34%),
    radial-gradient(120% 90% at 78% 4%, rgba(255,252,242,0.7) 0%, rgba(255,252,242,0) 58%);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.62;
  overflow-x: hidden;
}

img, svg, canvas { max-width: 100%; }

a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--stamp); }
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--stamp);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------- shell */

.sheet {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--gut) 0;
}

/* typed marginalia label used all over the document */
.stamp-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0;
}

.rule-heavy { border: 0; border-top: 2px solid var(--ink); margin: 0; }
.rule-fine  { border: 0; border-top: 1px solid var(--rule); margin: 0; }
.rule-double {
  border: 0;
  border-top: 3px double var(--ink-soft);
  margin: 0;
}

/* ------------------------------------------------------------------ masthead */

.masthead { padding-top: 22px; }

.masthead-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 24px;
  padding-bottom: 12px;
}

.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.brand svg { display: block; width: 42px; height: 42px; flex: 0 0 auto; }
.brand-word {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: 0.05em;
  line-height: 1;
  color: var(--ink);
}
.brand-sub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: block;
  margin-top: 5px;
}

.filecard {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: right;
  line-height: 1.85;
}
.filecard b { color: var(--ink-soft); font-weight: 700; }
.filecard .neg { color: var(--stamp); }

/* index-card divider tabs — the navigation */
.tabs {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  margin: 0;
  padding: 0 0 0 4px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  display: block;
  padding: 9px 17px 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-faint);
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  border-bottom: 0;
  white-space: nowrap;
}
.tabs a:hover { color: var(--ink); background: var(--paper-lit); }
.tabs a[aria-current="page"] {
  color: var(--ink);
  background: var(--paper-card);
  border-color: var(--ink-soft);
  box-shadow: inset 0 3px 0 var(--stamp);
  font-weight: 700;
}

/* ---------------------------------------------------------------- cover fold */

.cover {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 0 var(--gut);
  padding: clamp(34px, 6vw, 76px) 0 clamp(30px, 5vw, 58px);
}

.cover-margin { position: relative; }

.rubber {
  display: inline-block;
  transform: rotate(-11deg);
  border: 2.5px solid var(--stamp);
  border-radius: 3px;
  padding: 9px 12px 8px;
  color: var(--stamp);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.16em;
  line-height: 1.25;
  text-transform: uppercase;
  opacity: 0.78;
  text-align: center;
  /* worn edges: the ink didn't take everywhere */
  -webkit-mask-image:
    url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='140' height='90'>\
<filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.4' numOctaves='4'/>\
<feColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1.6 1.25'/></filter>\
<rect width='140' height='90' fill='%23fff'/>\
<rect width='140' height='90' filter='url(%23n)'/></svg>");
  mask-image:
    url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='140' height='90'>\
<filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.4' numOctaves='4'/>\
<feColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1.6 1.25'/></filter>\
<rect width='140' height='90' fill='%23fff'/>\
<rect width='140' height='90' filter='url(%23n)'/></svg>");
}

h1.headline {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(38px, 8.4vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.028em;
  margin: 0 0 24px;
  text-transform: lowercase;
}
h1.headline .cross {
  position: relative;
  white-space: nowrap;
}
h1.headline .cross::after {
  content: "";
  position: absolute;
  left: -2%; right: -2%; top: 54%;
  height: 3px;
  background: var(--stamp);
  transform: rotate(-1.4deg);
  opacity: 0.82;
}

.deck {
  font-size: clamp(18px, 2.1vw, 21px);
  line-height: 1.58;
  max-width: var(--measure);
  margin: 0 0 26px;
  color: var(--ink-soft);
}
.deck strong { color: var(--ink); font-weight: 700; }

.typed-line {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 11px 0;
  max-width: 74ch;
}

/* ------------------------------------------------------------------ sections */

section { padding: clamp(38px, 6vw, 74px) 0; }

.sec-head {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 0 var(--gut);
  align-items: baseline;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: clamp(22px, 3.5vw, 38px);
}
.sec-head h2 {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(21px, 3vw, 29px);
  letter-spacing: 0.01em;
  margin: 0;
  text-transform: uppercase;
}
.sec-body {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 0 var(--gut);
}
.sec-note {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-ghost);
  line-height: 1.8;
}
.prose { max-width: var(--measure); }
.prose p { margin: 0 0 17px; }
.prose p:last-child { margin-bottom: 0; }
code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--paper-deep);
  border: 1px solid var(--rule-fine);
  padding: 1px 5px;
  white-space: nowrap;
}
.prose h3 {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 30px 0 11px;
}

/* --------------------------------------------------------------- the exhibit */

.exhibit {
  border: 1px solid var(--ink-soft);
  background: var(--paper-lit);
  box-shadow: 3px 3px 0 rgba(29, 27, 24, 0.09);
}

.exhibit-head {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: baseline;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper-deep);
}

.stage-wrap { position: relative; }
.stage {
  position: relative;
  width: 100%;
  height: clamp(340px, 56vh, 540px);
  /* faint graph paper under the record */
  background-image:
    linear-gradient(to right, rgba(120, 110, 92, 0.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(120, 110, 92, 0.09) 1px, transparent 1px);
  background-size: 34px 34px;
}
.stage canvas { display: block; width: 100%; height: 100%; }

.stage-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.stage-fallback svg { width: 100%; height: 100%; }
.stage.is-fallback .stage-fallback { display: flex; }

/* projected label riding on the tracked node */
.subject-tag {
  position: absolute;
  transform: translate(-50%, -140%);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stamp);
  border: 1px solid var(--stamp);
  background: rgba(241, 236, 225, 0.86);
  padding: 2px 6px;
  pointer-events: none;
  white-space: nowrap;
  opacity: 0;
}

/* the scrubber, built as a ruled timeline strip */
.timeline {
  border-top: 1px solid var(--rule);
  padding: 15px 16px 17px;
  background: var(--paper-card);
}
.timeline-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.timeline input[type="range"] {
  flex: 1 1 240px;
  min-width: 180px;
  -webkit-appearance: none;
  appearance: none;
  height: 26px;
  background: transparent;
  cursor: ew-resize;
  margin: 0;
}
.timeline input[type="range"]::-webkit-slider-runnable-track {
  height: 3px; background: var(--ink-soft); border-radius: 0;
}
.timeline input[type="range"]::-moz-range-track {
  height: 3px; background: var(--ink-soft);
}
.timeline input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 3px; height: 22px;
  background: var(--stamp);
  border: 0; border-radius: 0;
  margin-top: -10px;
  box-shadow: -1px 0 0 rgba(163,58,43,.35), 1px 0 0 rgba(163,58,43,.35);
}
.timeline input[type="range"]::-moz-range-thumb {
  width: 3px; height: 22px; background: var(--stamp);
  border: 0; border-radius: 0;
}

.btn-typed {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--paper-deep);
  border: 1px solid var(--ink-soft);
  padding: 7px 14px;
  cursor: pointer;
}
.btn-typed:hover { background: var(--paper-lit); }
.btn-typed[aria-pressed="true"] { background: var(--ink); color: var(--paper-lit); }

.ticks {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--ink-ghost);
  text-transform: uppercase;
  margin-top: 8px;
  border-top: 1px solid var(--rule-fine);
  padding-top: 6px;
}

/* the subject readout — a small typed docket */
.readout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  border-top: 1px solid var(--rule);
}
.readout > div {
  padding: 12px 16px 13px;
  border-right: 1px solid var(--rule-fine);
}
.readout > div:last-child { border-right: 0; }
.readout dt {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-ghost);
  margin: 0 0 5px;
}
.readout dd {
  margin: 0;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.02em;
  line-height: 1.1;
}
.readout dd.is-decay { color: var(--stamp); }

.caption {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.09em;
  line-height: 1.75;
  color: var(--ink-faint);
  border-top: 1px solid var(--rule);
  padding: 11px 16px 13px;
  background: var(--paper-deep);
  text-transform: uppercase;
}

/* --------------------------------------------------------- ruled ledger rows */

.ledger { border-top: 2px solid var(--ink); }
.ledger-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 0 20px;
  padding: 20px 0 22px;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.ledger-no {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  color: var(--ink-ghost);
}
.ledger-row h3 {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.ledger-row p { margin: 0; max-width: var(--measure); color: var(--ink-soft); }

/* weight bar, drawn from real contract constants */
.weight {
  display: grid;
  grid-template-columns: minmax(0,1fr) 58px;
  align-items: center;
  gap: 12px;
  margin-top: 13px;
  max-width: 460px;
}
.weight-track { height: 9px; border: 1px solid var(--ink-soft); background: var(--paper); }
.weight-fill  { height: 100%; background: var(--ink-soft); }
.weight-fill.is-capped { background: var(--stamp); opacity: 0.72; }
.weight-num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  text-align: right;
}

/* ------------------------------------------------------------ notice / stamp */

.notice {
  border: 2px solid var(--stamp);
  background: var(--stamp-wash);
  padding: clamp(20px, 3.4vw, 30px);
  position: relative;
}
.notice h3 {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(16px, 2.4vw, 21px);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--stamp);
  margin: 0 0 14px;
}
.notice p { margin: 0 0 14px; max-width: var(--measure); }
.notice p:last-child { margin-bottom: 0; }
.notice .kicker {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stamp);
  margin: 0 0 10px;
}

/* --------------------------------------------------- catalog cards (tiers) */

.drawer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(194px, 1fr));
  gap: 16px;
  align-items: start;
}
.card {
  position: relative;
  background: var(--paper-card);
  border: 1px solid var(--ink-soft);
  box-shadow: 3px 3px 0 rgba(29, 27, 24, 0.09);
  padding: 0 0 16px;
}
/* staggered like cards standing in a drawer */
.drawer .card:nth-child(2) { margin-top: 16px; }
.drawer .card:nth-child(3) { margin-top: 32px; }
.drawer .card:nth-child(4) { margin-top: 48px; }

.card-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--ink-soft);
  background: var(--paper-deep);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.card-punch {
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 1px solid var(--ink-ghost);
  background: var(--paper);
  flex: 0 0 auto;
}
.card h3 {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 25px;
  letter-spacing: 0.02em;
  margin: 16px 14px 4px;
  text-transform: uppercase;
}
.card .card-gloss {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0 14px 14px;
  line-height: 1.5;
}
.card dl {
  margin: 0;
  /* ruled record lines */
  border-top: 1px solid var(--rule);
}
.card dl > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 14px;
  border-bottom: 1px solid var(--rule-fine);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.07em;
}
.card dl dt { color: var(--ink-faint); text-transform: uppercase; margin: 0; }
.card dl dd { margin: 0; font-weight: 700; }
.card.is-top { border-color: var(--stamp); }
.card.is-top .card-tab { color: var(--stamp); border-bottom-color: var(--stamp); }

/* --------------------------------------------------------------- data tables */

.rec-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.rec-table caption {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: left;
  padding-bottom: 9px;
}
.rec-table th, .rec-table td {
  text-align: left;
  padding: 10px 14px 10px 0;
  border-bottom: 1px solid var(--rule-fine);
  vertical-align: top;
}
.rec-table thead th {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-bottom: 1.5px solid var(--ink-soft);
  font-weight: 400;
}
.rec-table td.num, .rec-table th.num {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}
.rec-table td.neg { color: var(--stamp); }
.table-scroll { overflow-x: auto; }

/* struck-through disqualification list */
.struck { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.struck li {
  padding: 13px 0 14px 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 6px 18px;
  align-items: baseline;
}
.struck .mark {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stamp);
  border: 1px solid var(--stamp);
  padding: 3px 6px;
  text-align: center;
  opacity: 0.85;
}
.struck b {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: block;
}
.struck span { color: var(--ink-soft); display: block; max-width: var(--measure); }

/* ----------------------------------------------------------- decay diagram */

.diagram {
  border: 1px solid var(--ink-soft);
  background: var(--paper-lit);
  padding: 18px 16px 14px;
}
.diagram svg { width: 100%; height: auto; display: block; }
.diagram figcaption {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 12px;
  border-top: 1px solid var(--rule-fine);
  padding-top: 9px;
}

/* ------------------------------------------------------------ empty field */

.field-empty {
  border: 1px dashed var(--ink-ghost);
  background: repeating-linear-gradient(
    -45deg, transparent, transparent 9px,
    rgba(109, 102, 92, 0.07) 9px, rgba(109, 102, 92, 0.07) 18px);
  padding: 20px 18px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-faint);
  line-height: 1.9;
}
.field-empty b { display: block; color: var(--stamp); font-size: 14px; letter-spacing: 0.2em; }

/* ---------------------------------------------------------- cross-reference */

.xref { border-top: 2px solid var(--ink); margin-top: 8px; }
.xref a {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 22px;
  gap: 4px 18px;
  align-items: baseline;
  padding: 20px 0 21px;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}
.xref a:hover { background: rgba(163, 58, 43, 0.05); }
.xref .xref-no {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-ghost);
}
.xref b {
  font-family: var(--mono);
  font-size: clamp(17px, 2.6vw, 22px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 3px;
}
.xref span { color: var(--ink-soft); font-size: 15.5px; display: block; }
.xref .arrow { font-family: var(--mono); color: var(--ink-ghost); font-size: 17px; }
.xref a:hover .arrow { color: var(--stamp); }

/* ------------------------------------------------------------------- footer */

.colophon {
  border-top: 3px double var(--ink-soft);
  margin-top: 20px;
  padding: 26px 0 46px;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px var(--gut);
  align-items: start;
}
.colophon .seal { width: 62px; height: 62px; opacity: 0.72; }
.colophon p {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.11em;
  line-height: 1.95;
  color: var(--ink-faint);
  text-transform: uppercase;
  margin: 0 0 9px;
  max-width: 72ch;
}
.colophon p:last-child { margin-bottom: 0; }
.colophon a { color: var(--ink-soft); }

/* --------------------------------------------------------- reveal on scroll */

.rise { opacity: 0; transform: translateY(14px); }
.rise.seen {
  opacity: 1;
  transform: none;
  transition: opacity .7s ease, transform .7s cubic-bezier(.16,.8,.3,1);
}

/* ------------------------------------------------------------- narrow width */

@media (max-width: 760px) {
  .cover,
  .sec-head,
  .sec-body,
  .colophon { grid-template-columns: minmax(0, 1fr); }
  .cover-margin { margin-bottom: 22px; }
  .sec-head { gap: 6px; }
  .sec-note { margin-bottom: 16px; }
  .colophon .seal { width: 50px; height: 50px; }
  .drawer .card:nth-child(n) { margin-top: 0; }
  .struck li { grid-template-columns: minmax(0, 1fr); }
  .struck .mark { justify-self: start; padding: 3px 8px; }
  .xref a { grid-template-columns: minmax(0, 1fr) 22px; }
  .xref .xref-no { grid-column: 1 / -1; }
  .masthead-top { align-items: flex-start; }
  .filecard { text-align: left; }
}

@media (max-width: 460px) {
  body { font-size: 16.5px; }
  .brand-word { font-size: 25px; }
  .readout > div { border-right: 0; border-bottom: 1px solid var(--rule-fine); }
}

@media (prefers-reduced-motion: reduce) {
  .rise, .rise.seen { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}

@media print {
  body { background: #fff; }
  .exhibit, .timeline { display: none; }
}
