/* ============================================================================
   ROLLCALL front page: the roll book.

   The world: a school register. The whole page is one sheet of warm ruled
   paper, blue lines and a red double margin rule down the left like every
   attendance book. Names are typewritten (Courier Prime), headings are set
   like a ledger's engraved title page (Libre Caslon Display), marks are
   rubber stamps in three inks, and the gold is a highlighter pen. WSU green
   is the cloth binding: the back cover, the PRESENT stamp and the ink of the
   ticks.

   WayneUI 2.0.8 is the base, not the look: its tokens, Lato body text, skip
   link, sr-only and focus floor come from wayne-ui.css (all inside @layer,
   so these unlayered rules win without !important). Everything visual is
   overridden here.

   Fonts (self-hosted, SIL OFL, licences in assets/fonts/):
     Libre Caslon Display 400 (display), Courier Prime 400/700/italic (type).

   File map:
     1. fonts, tokens, paper    6. § 2 columns, key     11. back cover, toast
     2. shared pieces           7. § 3 chart, drift     12. responsive
     3. masthead                8. § 4 quick start      13. motion (only .motion)
     4. title page and sheet    9. § 5 rules, § 6 flow
     5. § 1 the register       10. § 7 class list
   ========================================================================== */

/* ----------------------------------------------- 1. fonts, tokens, paper */

@font-face {
  font-family: "Libre Caslon Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/libre-caslon-display-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Courier Prime";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/courier-prime-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Courier Prime";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/courier-prime-latin-700-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Courier Prime";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/courier-prime-latin-400-italic.woff2") format("woff2");
}

:root {
  --paper: #f6f0e1;
  --paper-2: #efe6d0;          /* a second sheet laid on the first */
  --paper-3: #fffcf3;          /* fresh printout */
  --ink: #1c2541;              /* 12.9:1 on paper */
  --ink-blue: #24427e;         /* 8.1:1 */
  --red: #8b2145;              /* the board's accent: red ink, 7.6:1 */
  --red-rule: rgba(178, 52, 72, 0.6);
  --green: #0c5449;            /* the binding; 8.2:1 on paper */
  --gold: #ffcc33;
  --hl: rgba(255, 204, 51, 0.62);
  --muted: #4f5566;            /* 6.6:1 */
  --rule: rgba(36, 66, 126, 0.13);
  --rule-strong: rgba(28, 37, 65, 0.28);
  --f-display: "Libre Caslon Display", "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --f-type: "Courier Prime", "Courier New", ui-monospace, monospace;
  --margin-x: clamp(0.6rem, 3vw, 3rem);   /* where the red rule sits */
  --line: 2rem;                           /* the paper's ruling */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-thump: cubic-bezier(0.3, 1.6, 0.5, 1);
}

html {
  overflow-x: clip;
}

body {
  position: relative;
  color: var(--ink);
  background-color: var(--paper);
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--line) - 1px), var(--rule) calc(var(--line) - 1px), var(--rule) var(--line));
  overflow-x: clip;
}

/* The red double margin rule, all the way down the book. */
body::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--margin-x);
  width: 5px;
  border-left: 1.5px solid var(--red-rule);
  border-right: 1.5px solid var(--red-rule);
  pointer-events: none;
  z-index: 0;
}

main,
.masthead {
  position: relative;
  z-index: 1;
}

.wrap {
  max-width: 78rem;
  margin-inline: auto;
  padding-left: calc(var(--margin-x) + clamp(1.1rem, 3vw, 2.5rem));
  padding-right: clamp(1rem, 3vw, 2.5rem);
}

:where(a, button, [tabindex]):focus-visible {
  outline: 3px solid var(--ink-blue);
  outline-offset: 3px;
}

code {
  font-family: var(--f-type);
  font-size: 0.92em;
  overflow-wrap: anywhere;
}

h1, h2, h3 {
  font-synthesis: none;
}

/* --------------------------------------------------------- 2. shared bits */

/* The highlighter pen: gold, a little uneven, behind the words. */
.hl {
  padding: 0 0.12em;
  margin: 0 -0.05em;
  color: inherit;
  background: linear-gradient(100deg, transparent 0.2em, var(--hl) 0.25em, var(--hl) calc(100% - 0.2em), transparent calc(100% - 0.12em)) no-repeat 0 62% / 100% 70%;
  border-radius: 0.2em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Rubber stamps, in three inks and one pencil. */
.stamp {
  display: inline-block;
  padding: 0.12rem 0.5rem 0.08rem;
  border: 2px solid currentColor;
  border-radius: 3px;
  font-family: var(--f-type);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1.5px var(--paper-3), inset 0 0 0 2.5px currentColor;
  transform: rotate(-4deg);
  opacity: 0.94;
}

.stamp--sm {
  font-size: 0.6875rem;
  padding: 0.05rem 0.35rem 0.02rem;
  border-width: 1.5px;
  box-shadow: none;
}

.stamp--present { color: var(--green); }
.stamp--late { color: var(--ink-blue); transform: rotate(3deg); }
.stamp--back { color: var(--red); transform: rotate(-6deg); }
.stamp--mumble { color: var(--muted); border-style: dashed; box-shadow: none; transform: rotate(2deg); }

.tick {
  width: 1.6rem;
  height: 1.6rem;
  fill: none;
  stroke: var(--green);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tick path {
  stroke-dasharray: 26;
  stroke-dashoffset: 0;
}

.hand {
  display: inline-block;
  width: 1.3rem;
  height: 1.65rem;
  fill: var(--red);
  vertical-align: middle;
  transform-origin: 50% 100%;
}

.hand svg {
  display: block;
  width: 100%;
  height: 100%;
}

.sample {
  margin: 0;
  font-family: var(--f-type);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--red);
}

/* Buttons are stamped, not glowing. */
.stamp-btn {
  display: inline-block;
  padding: 0.7rem 1.4rem 0.6rem;
  border: 2px solid var(--green);
  border-radius: 4px;
  font-family: var(--f-type);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
  background: var(--green);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.15s, box-shadow 0.15s;
}

.stamp-btn:hover {
  color: var(--paper);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.stamp-btn:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--ink);
}

.ink-link {
  font-family: var(--f-type);
  font-weight: 700;
  color: var(--ink-blue);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.ink-link:hover {
  color: var(--red);
  text-decoration-style: wavy;
}

.copy {
  flex: none;
  padding: 0.35rem 0.85rem 0.3rem;
  border: 2px solid var(--ink);
  border-radius: 3px;
  font-family: var(--f-type);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--paper-3);
  box-shadow: 2px 2px 0 var(--ink);
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s, background-color 0.2s;
}

.copy:hover {
  background: var(--hl);
}

.copy:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--ink);
}

.copy.is-copied {
  color: var(--paper);
  background: var(--green);
  border-color: var(--green);
}

/* -------------------------------------------------------------- 3. masthead */

.masthead {
  border-bottom: 3px double var(--rule-strong);
  background: var(--paper);
}

.masthead__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1rem;
}

.masthead__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--f-display);
  font-size: 1.25rem;
  letter-spacing: 0.14em;
  color: var(--ink);
  text-decoration: none;
}

.masthead__brand img {
  border-radius: 6px;
}

.masthead__meta {
  margin: 0;
  font-family: var(--f-type);
  font-size: 0.875rem;
  color: var(--muted);
}

/* ---------------------------------------------- 4. title page and sheet */

.titlepage {
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem);
}

.titlepage__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.titlepage__copy {
  min-width: 0;
}

.typed {
  margin: 0;
  font-family: var(--f-type);
  font-size: 0.9375rem;
  color: var(--ink-blue);
}

.titlepage__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem clamp(0.9rem, 2vw, 1.5rem);
  margin-top: 0.75rem;
}

.bookplate {
  flex: none;
  width: clamp(64px, 8.5vw, 116px);
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 22%;
  background: transparent;
  box-shadow: 0 1px 1px rgba(28, 37, 65, 0.2), 0 10px 22px -12px rgba(28, 37, 65, 0.6);
  cursor: pointer;
  transition: transform 0.35s var(--ease-thump), box-shadow 0.35s;
}

.bookplate:hover {
  transform: translateY(-4px);
  box-shadow: 0 1px 1px rgba(28, 37, 65, 0.2), 0 16px 26px -12px rgba(28, 37, 65, 0.6);
}

.bookplate img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22%;
}

.titlepage__title {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(2.7rem, 8.6vw, 7.75rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.titlepage__tagline {
  margin: clamp(1rem, 2vw, 1.5rem) 0 0;
  padding-top: clamp(0.9rem, 2vw, 1.25rem);
  border-top: 3px double var(--rule-strong);
  font-family: var(--f-display);
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  line-height: 1.15;
  color: var(--ink);
}

.titlepage__joke {
  margin: 0.4rem 0 0;
  font-family: var(--f-type);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-style: italic;
  color: var(--red);
}

.titlepage__blurb {
  max-width: 38rem;
  margin: 1.25rem 0 0;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--muted);
}

.slip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  max-width: 34rem;
  margin-top: 1.5rem;
  padding: 0.7rem 0.75rem 0.7rem 1rem;
  border: 1.5px dashed var(--rule-strong);
  border-radius: 4px;
  background: var(--paper-3);
}

.slip__code {
  flex: 1 1 15rem;
  min-width: 0;
  font-size: 0.95rem;
  color: var(--ink-blue);
}

.slip__dim {
  color: var(--muted);
}

.titlepage__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin: 1.75rem 0 0;
}

/* Today's sheet: a second page, lying a little crooked on the first. */
.sheet {
  --sheet-margin: clamp(1.75rem, 2.8vw, 2.35rem);
  position: relative;
  margin: 0;
  padding: 1.1rem clamp(0.9rem, 2vw, 1.4rem) 1rem calc(var(--sheet-margin) + 0.75rem);
  min-width: 0;
  border-radius: 3px;
  background-color: var(--paper-3);
  background-image: linear-gradient(to right, transparent var(--sheet-margin), var(--red-rule) var(--sheet-margin), var(--red-rule) calc(var(--sheet-margin) + 1.5px), transparent calc(var(--sheet-margin) + 1.5px));
  box-shadow: 0 1px 2px rgba(28, 37, 65, 0.18), 0 22px 40px -26px rgba(28, 37, 65, 0.55);
  transform: rotate(1.2deg);
}

/* Binder holes down the left edge. */
.sheet::before {
  content: "";
  position: absolute;
  top: 1.4rem;
  bottom: 1.4rem;
  left: clamp(0.45rem, 0.9vw, 0.75rem);
  width: 0.8rem;
  background: radial-gradient(circle at 50% 50%, var(--paper-2) 0 0.3rem, rgba(28, 37, 65, 0.25) 0.31rem 0.37rem, transparent 0.38rem) center top / 0.8rem 33.3% repeat-y;
}

.sheet__cap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 2px solid var(--ink);
  font-family: var(--f-display);
  font-size: 1.3rem;
  color: var(--ink);
}

.sheet__sample {
  font-family: var(--f-type);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--red);
}

.sheet__rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sheet__rows li {
  display: grid;
  grid-template-columns: 1.7rem minmax(0, 1fr) auto 5.8rem;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--f-type);
  font-size: clamp(0.85rem, 1.25vw, 1rem);
}

.sheet__no {
  font-size: 0.75rem;
  color: var(--muted);
}

.sheet__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sheet__php {
  font-size: 0.8em;
  color: var(--muted);
}

.sheet__mark {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
}

.sheet__back .sheet__name,
.sheet__back .sheet__php {
  color: var(--red);
}

.sheet__total {
  display: flex;
  justify-content: space-between;
  margin: 0.5rem 0 0;
  padding-top: 0.45rem;
  border-top: 3px double var(--ink);
  font-family: var(--f-type);
  font-size: 0.875rem;
  font-weight: 700;
}

/* --------------------------------------------------- 5. § 1 the register */

.chapter {
  padding-block: clamp(3rem, 7vw, 6rem);
  border-top: 3px double var(--rule-strong);
}

.chapter__grid {
  display: grid;
  grid-template-columns: 10.5rem minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

.chapter__margin {
  min-width: 0;
}

.folio {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1;
  color: var(--red);
}

.kicker {
  margin: 0.5rem 0 0;
  font-family: var(--f-type);
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ink-blue);
}

.chapter__body {
  min-width: 0;
}

.chapter__body h2 {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(2.1rem, 4.8vw, 3.6rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--ink);
}

.lede {
  max-width: 44rem;
  margin: 0.9rem 0 0;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--muted);
}

.register {
  margin-top: 2rem;
}

.register__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.redo {
  padding: 0.4rem 0.9rem 0.35rem;
  border: 2px solid var(--ink-blue);
  border-radius: 3px;
  font-family: var(--f-type);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink-blue);
  background: transparent;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.redo:hover {
  color: var(--paper);
  background: var(--ink-blue);
}

html:not(.motion) .redo,
html:not(.motion) .caller {
  display: none;
}

.caller {
  margin: 0.9rem 0 0;
  font-family: var(--f-type);
  font-size: 1.0625rem;
  color: var(--muted);
}

.caller__name {
  font-weight: 700;
  color: var(--ink-blue);
}

.roll {
  width: 100%;
  margin-top: 1rem;
  border-collapse: collapse;
  font-family: var(--f-type);
  font-size: 0.9375rem;
  background: var(--paper-3);
  box-shadow: 0 1px 2px rgba(28, 37, 65, 0.15), 0 18px 36px -28px rgba(28, 37, 65, 0.5);
}

.roll thead th {
  padding: 0.75rem 0.75rem 0.55rem;
  border-bottom: 3px double var(--red);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: left;
  text-transform: uppercase;
  color: var(--red);
}

.roll td,
.roll tbody th {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
  text-align: left;
  vertical-align: middle;
  transition: background-color 0.35s;
}

.roll tbody th[scope="row"] {
  font-weight: 700;
  color: var(--ink);
}

.roll small {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
}

.roll .roll__no {
  width: 3rem;
  border-left: 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.roll .roll__mark {
  width: 9rem;
  text-align: right;
  white-space: nowrap;
}

.roll thead .roll__mark {
  text-align: right;
}

.roll .is-off {
  color: var(--red);
}

.roll .seat__label th {
  padding: 1.1rem 0.75rem 0.35rem;
  border-left: 0;
  border-bottom: 1.5px solid var(--ink);
  font-family: var(--f-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--ink-blue);
}

.roll .seat__label span {
  margin-left: 0.6rem;
  font-family: var(--f-type);
  font-size: 0.8125rem;
  color: var(--muted);
}

.seat--back .seat__label th {
  color: var(--red);
}

.roll .is-back td,
.roll .is-back th {
  background-color: rgba(139, 33, 69, 0.045);
}

.roll .hand {
  margin-right: 0.35rem;
}

.totals {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem clamp(1.25rem, 3vw, 2.5rem);
  margin: 1.75rem 0 0;
}

.totals > div {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
}

.totals dd {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.totals__sum {
  margin-left: auto;
  padding-bottom: 0.2rem;
  border-bottom: 4px double var(--ink);
}

.totals__sum dt {
  font-family: var(--f-type);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.875rem;
}

.register__note {
  max-width: 48rem;
  margin: 1.25rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted);
}

/* ------------------------------------------------- 6. § 2 columns, key */

.columns {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule-strong);
}

.columns li {
  padding: 1rem 1.1rem 1.25rem;
  border-left: 1px solid var(--rule-strong);
}

.columns li:first-child {
  border-left: 0;
  padding-left: 0;
}

.columns h3 {
  margin: 0 0 0.5rem;
  font-family: var(--f-display);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--ink-blue);
}

.columns p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted);
}

.key {
  margin-top: 2rem;
}

.key__title {
  margin: 0 0 0.75rem;
  font-family: var(--f-type);
  font-weight: 700;
  color: var(--ink);
}

.key__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.key__list li {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.key__list .stamp {
  justify-self: start;
}

.key__list code {
  color: var(--ink);
}

/* --------------------------------------------------- 7. § 3 chart, drift */

.chart {
  margin: 2rem 0 0;
  padding: clamp(1rem, 2.5vw, 1.75rem);
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  background: var(--paper-3);
}

.chart__cap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  margin-bottom: 0.75rem;
  font-family: var(--f-display);
  font-size: 1.3rem;
}

.chart__svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.chart__grid path {
  fill: none;
  stroke: var(--rule-strong);
  stroke-width: 1;
  stroke-dasharray: 3 5;
}

.chart__hatch {
  stroke: var(--ink-blue);
  stroke-width: 1.7;
}

.chart__bars rect {
  fill: url(#hatch);
  stroke: var(--ink-blue);
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: 50% 100%;
}

.chart__bars rect.is-now {
  fill: var(--green);
  stroke: var(--green);
}

.chart__axis {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.chart__trend {
  fill: none;
  stroke: var(--red);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.chart__ylabels text,
.chart__xlabels text {
  font-family: var(--f-type);
  font-size: 13px;
  fill: var(--muted);
}

.chart__ylabels text {
  text-anchor: end;
}

.chart__xlabels text {
  text-anchor: middle;
}

.chart__note {
  font-family: var(--f-type);
  font-size: 15px;
  font-weight: 700;
  fill: var(--red);
}

.chart__note--now {
  fill: var(--green);
  text-anchor: middle;
}

.chart__foot {
  margin: 0.75rem 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

.drift {
  margin-top: 2.25rem;
}

.drift h3 {
  margin: 0 0 0.6rem;
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 400;
}

.drift__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.drift__list li {
  display: grid;
  grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--rule-strong);
  font-size: 0.9375rem;
  color: var(--muted);
}

.drift__list code {
  font-weight: 700;
  color: var(--ink);
}

.drift__foot {
  max-width: 48rem;
  margin: 1rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted);
}

/* ------------------------------------------------- 8. § 4 quick start */

.tabbed {
  margin-top: 2rem;
}

/* Index tabs, like the dividers in a ledger. */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding-left: 1rem;
}

.tab {
  position: relative;
  top: 1px;
  padding: 0.55rem 1.1rem 0.45rem;
  border: 1px solid var(--rule-strong);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  font-family: var(--f-type);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--paper-2);
  cursor: pointer;
}

.tab:hover {
  color: var(--ink-blue);
}

.tab[aria-selected="true"] {
  color: var(--ink);
  background: var(--paper-3);
  box-shadow: inset 0 3px 0 var(--red);
  z-index: 1;
}

.panel {
  position: relative;
  padding: 1rem 1.25rem 1.25rem;
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  background: var(--paper-3);
}

.panel__shell {
  margin: 0 0 0.5rem;
  padding-right: 6rem;
  font-family: var(--f-type);
  font-size: 0.8125rem;
  line-height: 2rem;
  color: var(--muted);
}

.copy--panel {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
}

/* A carbon copy: blue type on ruled lines. */
.carbon {
  margin: 0;
  padding: 0.25rem 0 0.25rem 1rem;
  border-left: 2px solid var(--red-rule);
  font-family: var(--f-type);
  font-size: 0.9375rem;
  line-height: 1.75rem;
  color: var(--ink-blue);
  background: repeating-linear-gradient(to bottom, transparent 0, transparent calc(1.75rem - 1px), var(--rule) calc(1.75rem - 1px), var(--rule) 1.75rem) 0 0.25rem;
  white-space: pre;
  overflow-x: auto;
}

/* The printout: a slip off the printer, torn along the perforations. */
.printout {
  position: relative;
  margin-top: 2rem;
  padding: 1.25rem clamp(1rem, 3vw, 1.75rem);
  background: var(--paper-3);
  box-shadow: 0 1px 2px rgba(28, 37, 65, 0.16), 0 16px 30px -24px rgba(28, 37, 65, 0.55);
  transform: rotate(-0.4deg);
}

.printout::before,
.printout::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 8px;
  background: radial-gradient(circle at 6px 4px, var(--paper) 2.5px, transparent 3px) 0 0 / 12px 8px repeat-x;
}

.printout::before { top: -4px; }
.printout::after { bottom: -4px; }

.printout__head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  align-items: baseline;
  margin: 0 0 0.75rem;
  font-family: var(--f-display);
  font-size: 1.3rem;
}

.printout__head span {
  font-family: var(--f-type);
  font-size: 0.8125rem;
  color: var(--muted);
}

.printout__body {
  margin: 0;
  font-family: var(--f-type);
  font-size: clamp(0.72rem, 1.15vw, 0.875rem);
  line-height: 1.55;
  color: var(--ink);
  white-space: pre;
  overflow-x: auto;
}

.printout__foot {
  margin: 1rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--rule-strong);
  font-size: 0.9375rem;
  color: var(--muted);
}

.printout__foot strong {
  font-family: var(--f-type);
  color: var(--green);
}

.commands {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2.5rem;
  margin: 2rem 0 0;
}

.commands > div {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule-strong);
}

.commands dt {
  font-family: var(--f-type);
  font-weight: 700;
  color: var(--ink);
}

.commands dd {
  margin: 0.25rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted);
}

/* ----------------------------------------------- 9. § 5 rules, § 6 flow */

.rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2.5rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: rule;
}

.rules li {
  position: relative;
  padding: 1rem 0 1.1rem 3.4rem;
  border-bottom: 1px solid var(--rule-strong);
  counter-increment: rule;
}

.rules li::before {
  content: counter(rule, upper-roman) ".";
  position: absolute;
  left: 0;
  top: 0.85rem;
  font-family: var(--f-display);
  font-size: 1.6rem;
  color: var(--red);
}

.rules h3 {
  margin: 0 0 0.3rem;
  font-family: var(--f-display);
  font-size: 1.35rem;
  font-weight: 400;
}

.rules p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted);
}

.flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 3.5rem minmax(0, 0.75fr) 3.5rem minmax(0, 1fr);
  align-items: center;
  margin-top: 2rem;
}

.flow__col {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
}

/* Index cards: a red top line on fresh stock. */
.card {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  padding: 0.6rem 0.9rem 0.7rem;
  border-top: 2px solid var(--red-rule);
  border-radius: 2px;
  background: var(--paper-3);
  box-shadow: 0 1px 2px rgba(28, 37, 65, 0.16);
}

.card--part {
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
}

.card--part > span {
  display: flex;
  flex-direction: column;
}

.card img {
  flex: none;
  border-radius: 8px;
}

.card__k {
  font-family: var(--f-type);
  font-weight: 700;
  color: var(--ink);
}

.card__v {
  font-size: 0.875rem;
  color: var(--muted);
}

.flow__hub {
  align-items: center;
  padding: 1.25rem 1rem;
  text-align: center;
  border-top: 0;
  box-shadow: 0 0 0 2px var(--green), 4px 4px 0 2px var(--ink);
}

.flow__hub img {
  margin-bottom: 0.35rem;
  border-radius: 14px;
}

.flow__hub .card__k {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
}

/* The connector lives in its own grid gap, so it never runs over a card. */
.flow__wire {
  height: 0;
  margin-inline: 0.5rem;
  border-top: 2px dashed var(--ink-blue);
  transform-origin: 0 50%;
}

/* ------------------------------------------------------- 10. class list */

.classlist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2.5rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: pupil;
}

.classlist li {
  display: grid;
  grid-template-columns: 2rem 2.25rem minmax(0, 1fr) 1.5rem;
  grid-template-rows: auto auto;
  column-gap: 0.75rem;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--rule-strong);
  counter-increment: pupil;
}

.classlist li::before {
  content: counter(pupil, decimal-leading-zero);
  grid-row: 1 / 3;
  font-family: var(--f-type);
  font-size: 0.8125rem;
  color: var(--muted);
}

/* A green ink tick at the end of every name. Drawn with CSS so screen
   readers are not read a symbol. */
.classlist li::after {
  content: "";
  grid-column: 4;
  grid-row: 1 / 3;
  width: 1.4rem;
  height: 1.4rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.8l5 5L20 6.2' fill='none' stroke='%230c5449' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.classlist__mark {
  grid-row: 1 / 3;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  overflow: hidden;
}

.classlist__mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.classlist__mark--tile {
  display: grid;
  place-items: center;
  background: #065a4e;
}

.classlist__mark--tile img {
  width: 64%;
  height: 64%;
}

.classlist__name {
  font-family: var(--f-type);
  font-weight: 700;
  color: var(--ink);
}

.classlist__line {
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--muted);
}

/* ------------------------------------------------- 11. back cover, toast */

.cover {
  position: relative;
  z-index: 2;
  margin-top: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(2.5rem, 6vw, 4rem);
  color: var(--paper);
  background-color: var(--green);
  background-image:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 5px),
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.05) 0 2px, transparent 2px 5px);
}

.cover__inner {
  text-align: center;
}

.cover__title {
  display: inline-block;
  margin: 0;
  padding: 0.5rem 1.4rem 0.35rem;
  border: 1px solid var(--gold);
  box-shadow: inset 0 0 0 3px var(--green), inset 0 0 0 4px var(--gold);
  font-family: var(--f-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: 0.22em;
  color: var(--gold);
}

.cover__joke {
  margin: 1.1rem 0 0;
  font-family: var(--f-type);
  font-size: 0.9375rem;
}

.cover__org {
  margin: 0.4rem 0 0;
  font-size: 0.875rem;
  color: rgba(246, 240, 225, 0.85);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  max-width: calc(100vw - 2rem);
  padding: 0.75rem 1.1rem;
  border: 2px solid var(--ink);
  border-radius: 3px;
  font-family: var(--f-type);
  font-weight: 700;
  color: var(--ink);
  background: var(--paper-3);
  box-shadow: 4px 4px 0 var(--ink);
  transform: translate(-50%, 0) rotate(-1deg);
  z-index: 50;
}

.toast:empty {
  display: none;
}

/* ---------------------------------------------------------- 12. responsive */

@media (max-width: 1100px) {
  .columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .columns li:nth-child(4) {
    border-left: 0;
    padding-left: 0;
  }

  .columns li {
    border-bottom: 1px solid var(--rule);
  }
}

@media (max-width: 960px) {
  .titlepage__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .sheet {
    max-width: 32rem;
    width: 100%;
  }

  .chapter__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
  }

  .chapter__margin {
    display: flex;
    align-items: baseline;
    gap: 1rem;
  }

  .kicker {
    margin: 0;
  }

  .flow {
    grid-template-columns: minmax(0, 1fr);
  }

  .flow__wire {
    width: 0;
    height: 2.25rem;
    margin: 0.5rem auto;
    border-top: 0;
    border-left: 2px dashed var(--ink-blue);
    transform-origin: 50% 0;
  }

  .flow__hub {
    justify-self: center;
    min-width: 14rem;
  }
}

/* The register folds into one entry per app: number, name and mark on the
   first line, the four answers on the second. */
@media (max-width: 760px) {
  .roll,
  .roll tbody,
  .roll tr,
  .roll td,
  .roll th {
    display: block;
  }

  .roll thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .roll tbody tr:not(.seat__label) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.75rem;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--rule);
  }

  .roll tbody tr:not(.seat__label)::after {
    content: "";
    order: 3;
    flex-basis: 100%;
  }

  .roll td,
  .roll tbody th {
    padding: 0;
    border: 0;
    background: transparent;
  }

  .roll .is-back {
    background-color: rgba(139, 33, 69, 0.045);
  }

  .roll .is-back td,
  .roll .is-back th {
    background-color: transparent;
  }

  .roll .roll__no {
    order: 0;
    width: 1.8rem;
  }

  .roll tbody th[scope="row"] {
    order: 1;
    flex: 1 1 8rem;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .roll .roll__mark {
    order: 2;
    width: auto;
  }

  .roll td[data-label] {
    order: 4;
    font-size: 0.8125rem;
  }

  .roll td[data-label]::before {
    content: attr(data-label) " ";
    color: var(--muted);
  }

  .roll small {
    display: inline;
  }

  .roll .seat__label th {
    padding-top: 1rem;
  }

  .key__list,
  .drift__list,
  .commands,
  .rules,
  .classlist {
    grid-template-columns: minmax(0, 1fr);
  }

  .columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .columns li,
  .columns li:nth-child(4) {
    border-left: 0;
    padding-left: 0;
  }

  .totals__sum {
    margin-left: 0;
  }

  .copy--panel {
    position: static;
    margin-top: 0.75rem;
  }

  .panel__shell {
    padding-right: 0;
  }
}

@media (max-width: 440px) {
  .sheet__rows li {
    grid-template-columns: 1.3rem minmax(0, 1fr) 5.4rem;
  }

  .sheet__php {
    display: none;
  }

  .drift__list li {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.1rem;
  }

  .key__list li {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.35rem;
  }
}

/* ------------------------------------------------- 13. motion (gated twice)

   Everything below needs html.motion, which the <head> script only sets when
   the system has no reduced-motion request. Without it, the page above is the
   finished register: ink dry, stamps down, every hand already up.        */

@media (prefers-reduced-motion: no-preference) {

  /* The bookplate is stamped onto the title page. */
  .motion .bookplate {
    animation: stamp-down 0.55s var(--ease-thump) 0.1s both;
  }

  /* The title soaks into the paper like fresh ink. */
  .motion .titlepage__title {
    animation: ink-in 1.1s var(--ease-out) 0.35s both;
  }

  .motion .typed,
  .motion .titlepage__tagline,
  .motion .titlepage__joke,
  .motion .titlepage__blurb,
  .motion .slip,
  .motion .titlepage__cta {
    animation: rise 0.6s var(--ease-out) both;
  }

  .motion .typed { animation-delay: 0.05s; }
  .motion .titlepage__tagline { animation-delay: 0.7s; }
  .motion .titlepage__joke { animation-delay: 0.85s; }
  .motion .titlepage__blurb { animation-delay: 0.95s; }
  .motion .slip { animation-delay: 1.05s; }
  .motion .titlepage__cta { animation-delay: 1.15s; }

  /* The highlighter swipes across "present". */
  .motion .titlepage__tagline .hl {
    animation: highlight 0.7s var(--ease-out) 1.25s both;
  }

  .motion .sheet {
    animation: sheet-in 0.8s var(--ease-out) 0.3s both;
  }

  /* Today's sheet: each name is written in, then marked. */
  .motion .sheet__rows .sheet__name {
    animation: write 0.5s steps(14, end) both;
    animation-delay: calc(1.1s + var(--i) * 0.5s);
  }

  .motion .sheet__rows .tick path {
    animation: draw 0.35s var(--ease-out) both, dry 1.6s ease-out both;
    animation-delay: calc(1.55s + var(--i) * 0.5s);
  }

  .motion .sheet__rows .stamp {
    animation: thump 0.4s var(--ease-thump) both, dry 1.6s ease-out both;
    animation-delay: calc(1.55s + var(--i) * 0.5s);
  }

  .motion .sheet__back .hand {
    animation: hand-up 0.45s var(--ease-thump) 3.75s both, wave 1.4s ease-in-out 4.2s 2;
  }

  .motion .sheet.is-replay .sheet__name,
  .motion .sheet.is-replay .tick path,
  .motion .sheet.is-replay .stamp,
  .motion .sheet.is-replay .hand {
    animation-name: none;
  }

  /* The roll. JS adds .roll-waiting while it calls names, so with no JS the
     register is simply complete. */
  .motion .roll-waiting tbody tr:not(.seat__label):not(.is-done) .stamp,
  .motion .roll-waiting tbody tr:not(.seat__label):not(.is-done) .hand {
    opacity: 0;
  }

  .motion .roll tr.is-called > td,
  .motion .roll tr.is-called > th {
    background-color: var(--hl);
  }

  .motion .roll tr.is-done .stamp {
    animation: thump 0.42s var(--ease-thump) both, dry 1.8s ease-out both;
  }

  .motion .roll tr.is-done .hand {
    animation: hand-up 0.45s var(--ease-thump) 0.2s both, wave 1.4s ease-in-out 0.65s 2;
  }

  .motion .caller__name.is-new {
    display: inline-block;
    animation: rise 0.3s var(--ease-out);
  }

  /* Scroll reveals. */
  .motion .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  }

  .motion .reveal.is-in {
    opacity: 1;
    transform: none;
  }

  .motion .rules li:nth-child(2) { transition-delay: 0.08s; }
  .motion .rules li:nth-child(3) { transition-delay: 0.16s; }
  .motion .rules li:nth-child(4) { transition-delay: 0.24s; }

  /* The printout feeds out of the printer, top first. The observer watches
     the .feed wrapper: a fully clipped element has no area to intersect. */
  .motion .feed .printout {
    clip-path: inset(0 0 100% 0);
    transition: clip-path 1.4s steps(18, end);
  }

  .motion .feed.is-in .printout {
    clip-path: inset(-10px -10px -10px -10px);
  }

  /* The burn-down, ruled by hand: axes first, then the pencil bars, then the
     red-ink line on top. */
  .motion .chart .chart__axis {
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 1s var(--ease-out) 0.1s;
  }

  .motion .chart .chart__bars rect {
    transform: scaleY(0);
    transition: transform 0.55s var(--ease-out);
    transition-delay: calc(0.8s + var(--i) * 0.09s);
  }

  .motion .chart .chart__trend {
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 1.6s ease-in-out 2s;
  }

  .motion .chart .chart__notes,
  .motion .chart .chart__ylabels,
  .motion .chart .chart__xlabels {
    opacity: 0;
    transition: opacity 0.6s;
  }

  .motion .chart .chart__ylabels,
  .motion .chart .chart__xlabels { transition-delay: 0.6s; }
  .motion .chart .chart__notes { transition-delay: 3.4s; }

  .motion .chart.is-in .chart__axis,
  .motion .chart.is-in .chart__trend {
    stroke-dashoffset: 0;
  }

  .motion .chart.is-in .chart__bars rect {
    transform: none;
  }

  .motion .chart.is-in .chart__notes,
  .motion .chart.is-in .chart__ylabels,
  .motion .chart.is-in .chart__xlabels {
    opacity: 1;
  }

  /* The flow's dashed connectors are pencilled in. */
  .motion .flow .flow__wire {
    transform: scaleX(0);
    transition: transform 0.6s var(--ease-out) 0.35s;
  }

  .motion .flow .flow__wire:last-of-type {
    transition-delay: 0.85s;
  }

  .motion .flow.is-in .flow__wire {
    transform: none;
  }

  /* The class list is ticked as it scrolls in. */
  .motion .classlist li::after {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.4s var(--ease-out);
  }

  .motion .classlist li.is-in::after {
    clip-path: inset(0 0 0 0);
  }

  .motion .toast:not(:empty) {
    animation: thump 0.4s var(--ease-thump);
  }
}

@media (prefers-reduced-motion: no-preference) and (max-width: 960px) {
  .motion .flow .flow__wire {
    transform: scaleY(0);
  }

  .motion .flow.is-in .flow__wire {
    transform: none;
  }
}

@keyframes stamp-down {
  0% { opacity: 0; transform: scale(1.5) rotate(-8deg); }
  60% { opacity: 1; transform: scale(0.96) rotate(1deg); }
  100% { opacity: 1; transform: none; }
}

@keyframes ink-in {
  from { opacity: 0; filter: blur(6px); letter-spacing: 0.08em; }
  to { opacity: 1; filter: blur(0); letter-spacing: 0.02em; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@keyframes highlight {
  from { background-size: 0% 70%; }
  to { background-size: 100% 70%; }
}

@keyframes sheet-in {
  from { opacity: 0; transform: translateY(24px) rotate(5deg); }
  to { opacity: 1; transform: rotate(1.2deg); }
}

@keyframes write {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

@keyframes draw {
  from { stroke-dashoffset: 26; }
  to { stroke-dashoffset: 0; }
}

/* Fresh ink is dark and soft; it dries to its own colour. */
@keyframes dry {
  0% { filter: brightness(0.35) blur(0.6px); }
  100% { filter: none; }
}

@keyframes thump {
  0% { opacity: 0; scale: 1.7; }
  70% { opacity: 1; scale: 0.94; }
  100% { opacity: 0.94; scale: 1; }
}

@keyframes hand-up {
  from { opacity: 0; transform: translateY(0.7rem) scale(0.5); }
  to { opacity: 1; transform: none; }
}

/* A slow wave: one side to side every 0.7 s, well under 3 per second. */
@keyframes wave {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-14deg); }
  75% { transform: rotate(14deg); }
}

/* A belt to go with the braces. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* A part's mark and name are one link: the name's link stretches over its
   whole entry, so the mark is clickable too and the entry takes the focus
   ring. No underline on these; the mark brightens (and, with motion allowed,
   lifts) on hover instead. Prose links elsewhere keep their underline. */
ol.classlist > li,
li.card--part { position: relative; }
ol.classlist > li .part-link,
li.card--part .part-link { color: inherit; text-decoration: none; }
ol.classlist > li .part-link::after,
li.card--part .part-link::after { content: ""; position: absolute; inset: 0; }
ol.classlist > li .part-link:focus-visible,
li.card--part .part-link:focus-visible { outline: none; box-shadow: none; }
ol.classlist > li:has(.part-link:focus-visible),
li.card--part:has(.part-link:focus-visible) { outline: 3px solid currentColor; outline-offset: -3px; }
ol.classlist > li:has(.part-link:hover) img,
li.card--part:has(.part-link:hover) img { filter: brightness(1.12) saturate(1.1); }
@media (prefers-reduced-motion: no-preference) {
ol.classlist > li img,
li.card--part img { transition: transform 160ms ease, filter 160ms ease; }
ol.classlist > li:has(.part-link:hover) img,
li.card--part:has(.part-link:hover) img { transform: translateY(-2px); }
}
