/* ==========================================================================
   MOD — one page. Loaded on a/mod.html.

   Founder, 2026-09-26: the page is Annie's Claude artifact, shell excepted.
   A poster language, not a layout language, so the page is a run of
   posters: flat fields, hard edges, a 10px black rule between each, no
   texture, gradient or shadow anywhere. The target at full bleed in the
   hero, its rings expanding from the centre once (concentric expansion
   only; nothing loops, nothing flashes; still under reduced motion). The
   shell (rail, top bar, community drawer) is never restyled: every rule
   here is scoped to .md-hero or .md-rec.

   Palette (flat primaries, ours): red #D7262B · blue #1D3F9A ·
   yellow #F6C700 · white #FFFFFF · ink #111111.
   Text contrast (WCAG AA): white on red 5.0:1; red on white 5.0:1 (small
   caps labels, bold); white on blue 10.3:1; ink on yellow 12:1. Yellow is
   never text on white.
   ========================================================================== */

@font-face {
  font-family: "ChangoX";
  src: url("fonts/chango.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "RubikX";
  src: url("fonts/rubik.woff2") format("woff2-variations");
  font-weight: 300 900;
  font-display: swap;
}

.md-page {
  --md-red: #D7262B;
  --md-blue: #1D3F9A;
  --md-yel: #F6C700;
  --md-white: #FFFFFF;
  --md-ink: #111111;
  --md-display: "ChangoX", "Arial Black", sans-serif;
  --md-body: "RubikX", "Helvetica Neue", Arial, sans-serif;
}
.md-page main { background: var(--md-white); color: var(--md-ink); overflow-x: clip; }

/* ---- shared register: both roots, nothing outside them ---------------- */
.md-hero, .md-rec {
  font: 500 18px/1.5 var(--md-body);
  color: var(--md-ink);
  /* Rubik ships here upright only; the shell turns synthesis off. */
  font-synthesis: style;
}
.md-rec a { color: inherit; text-decoration-thickness: 3px; text-underline-offset: 4px; }
.md-hero :focus-visible, .md-rec :focus-visible { outline: 4px solid var(--md-ink); outline-offset: 3px; }
.md-p--red :focus-visible, .md-p--blue :focus-visible { outline-color: var(--md-yel); }

/* Flat fills, for the rings (background) and the drawn targets (fill). */
.md-f-red { background: var(--md-red); fill: var(--md-red); color: var(--md-white); }
.md-f-white { background: var(--md-white); fill: var(--md-white); color: var(--md-ink); }
.md-f-blue { background: var(--md-blue); fill: var(--md-blue); color: var(--md-white); }

/* ==== THE HERO: the target at full bleed ============================== */
.md-hero {
  position: relative;
  /* A poster's height on a desk; on a phone, only as tall as the target needs. */
  min-height: min(calc(100vh - 60px), 900px, max(125vw, 460px));
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  padding: clamp(40px, 7vw, 80px) 16px;
  overflow: hidden;
  background: var(--md-white);
}
.md-target {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(110vw, 1000px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}
.md-target i { position: absolute; inset: 0; margin: auto; border-radius: 50%; }
@media (prefers-reduced-motion: no-preference) {
  /* Concentric expansion, once, linear: no easing softness, no loop. */
  .md-target i { animation: md-grow .9s linear both; }
  .md-target i:nth-child(2) { animation-delay: .1s; }
  .md-target i:nth-child(3) { animation-delay: .2s; }
  .md-target i:nth-child(4) { animation-delay: .3s; }
  .md-target i:nth-child(5) { animation-delay: .4s; }
  .md-target i:nth-child(6) { animation-delay: .5s; }
  .md-target i:nth-child(7) { animation-delay: .6s; }
  @keyframes md-grow { from { transform: scale(0); } to { transform: scale(1); } }
}
.md-h1 {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: .04em .22em .1em;
  font: 400 clamp(64px, 17vw, 230px)/.95 var(--md-display);
  text-transform: uppercase;
  color: var(--md-ink);
  background: var(--md-white);
  border: 8px solid var(--md-ink);
}
.md-sub {
  position: relative;
  z-index: 2;
  margin: 8px 0 0;
  max-width: 34ch;
  padding: 8px 16px;
  text-align: center;
  font: 900 clamp(17px, 2.3vw, 26px)/1.25 var(--md-body);
  text-transform: uppercase;
  background: var(--md-white);
  border: 4px solid var(--md-ink);
}
.md-cap {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 7px 14px;
  text-align: center;
  font: 700 13px/1.3 var(--md-body);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--md-white);
  background: var(--md-ink);
}

/* ==== THE RECORD: a run of posters ==================================== */
.md-rec { display: block; }
.md-p {
  padding: clamp(48px, 7vw, 96px) clamp(16px, 5vw, 64px);
  border-top: 10px solid var(--md-ink);
  background: var(--md-white);
}
.md-p--yel { background: var(--md-yel); }
.md-p--red { background: var(--md-red); color: var(--md-white); }
.md-p--blue { background: var(--md-blue); color: var(--md-white); }
.md-p--stripes {
  /* Hard stops only: stripes, not a blend. */
  background: repeating-linear-gradient(90deg, var(--md-red) 0 40px, var(--md-white) 40px 80px, var(--md-blue) 80px 120px, var(--md-white) 120px 160px);
}
.md-p--use { border-bottom: 10px solid var(--md-ink); }

.md-h2 {
  margin: 0 0 24px;
  font: 400 clamp(34px, 6.4vw, 84px)/.95 var(--md-display);
  text-transform: uppercase;
  overflow-wrap: break-word;
}
.md-count { color: var(--md-red); }
.md-kick {
  margin: 0 0 18px;
  font: 900 14px/1.2 var(--md-body);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.md-claim { max-width: 18ch; font-size: clamp(30px, 5.2vw, 70px); }
.md-neg { max-width: 22ch; margin: 0; font-size: clamp(28px, 4.4vw, 58px); line-height: 1.02; }
.md-big { margin: 0 0 16px; max-width: 34ch; font: 700 clamp(20px, 2.4vw, 28px)/1.35 var(--md-body); }
.md-costs { margin: 0; max-width: 60ch; }
.md-nl { margin: 0 0 18px; font-weight: 700; }
.md-fine { margin: 14px 0 0; font: 500 14px/1.45 var(--md-body); }
.md-firm { font-weight: 800; }

/* The record's facts: a hard grid of cells. */
.md-meta { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.md-meta div { padding: 14px 16px; border: 3px solid var(--md-ink); margin: -1.5px; }
.md-meta dt { font: 900 12px/1.3 var(--md-body); letter-spacing: .14em; text-transform: uppercase; }
.md-meta dd { margin: 4px 0 0; font-weight: 600; }

/* Recognition. */
.md-cols { max-width: 68ch; }
.md-cols p { margin: 0 0 16px; }
.md-diag {
  padding: 14px 0 14px 18px;
  border-left: 12px solid var(--md-red);
  font: 800 clamp(20px, 2.2vw, 26px)/1.35 var(--md-body);
}

/* What carries the look: a white card on the stripes. */
.md-card { max-width: 1100px; padding: clamp(18px, 3vw, 40px); background: var(--md-white); border: 8px solid var(--md-ink); }
.md-tw { overflow-x: auto; }
.md-ct, .md-rt { width: 100%; border-collapse: collapse; }
.md-ct th, .md-ct td { padding: 10px 14px; border: 3px solid var(--md-ink); text-align: left; vertical-align: top; }
.md-ct th { width: 30%; font: 900 15px/1.3 var(--md-body); text-transform: uppercase; letter-spacing: .06em; }
.md-ct th a, .md-tags a { display: inline-flex; align-items: center; min-height: 44px; }
.md-ct th small { display: block; width: max-content; margin-top: 4px; padding: 3px 8px; font: 800 11px/1.3 var(--md-body); letter-spacing: .1em; color: var(--md-yel); background: var(--md-ink); }
.md-ct td.md-nl { font-weight: 500; }
.md-tags { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.md-spec { display: block; font: 400 42px/1 var(--md-display); margin-bottom: 6px; }
.md-swatch { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.md-swatch li { display: grid; gap: 4px; font: 700 12px/1.2 var(--md-body); letter-spacing: .06em; }
.md-swatch i { display: block; width: 56px; height: 56px; border: 3px solid var(--md-ink); }
.md-asbuilt { margin: 8px 0 0; font: 800 12px/1.2 var(--md-body); letter-spacing: .14em; text-transform: uppercase; }

/* Rules: hard-edged cards in two columns. */
.md-rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 1200px; }
.md-rules li { padding: 18px 20px; border: 4px solid var(--md-ink); background: var(--md-white); }
.md-rules li.md-wide { grid-column: 1 / -1; }
.md-rules h3 { margin: 0 0 4px; font: 400 22px/1.1 var(--md-display); text-transform: uppercase; }
.md-rules p { margin: 8px 0 0; }
.md-k { display: block; font: 800 12px/1.35 var(--md-body); letter-spacing: .1em; text-transform: uppercase; color: var(--md-red); }

/* What stands behind it: the text, and the ledger as a target. */
.md-behind { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; max-width: 1200px; }
.md-txt p { margin: 0 0 14px; max-width: 60ch; }
.md-ledger { margin: 0; padding: clamp(16px, 2.5vw, 28px); background: var(--md-white); color: var(--md-ink); border: 8px solid var(--md-ink); }
.md-lt { display: block; width: min(100%, 300px); margin: 0 auto 18px; }
/* The rim takes the room's ink edge, so a white outer ring still reads as a ring on a white card. */
.md-lt > circle:first-of-type { stroke: var(--md-ink); stroke-width: 3px; }
.md-lt__n { font: 400 20px var(--md-display); fill: var(--md-white); }
.md-lt__n--k { fill: var(--md-ink); }
.md-lg { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.md-lg li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 16px; }
.md-lg b { display: block; font-weight: 800; }
.md-lg__n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--md-ink); font: 400 17px/1 var(--md-display); }
.md-rt { margin-top: 32px; max-width: 1200px; }
.md-rt th, .md-rt td { padding: 10px 14px; border: 3px solid var(--md-white); text-align: left; }
.md-rt thead th { font: 900 12px/1.3 var(--md-body); letter-spacing: .14em; text-transform: uppercase; }

/* Neighbours: a sketch beside each difference. */
.md-conf { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 1200px; }
.md-conf li { display: flex; border: 6px solid var(--md-ink); background: var(--md-white); }
.md-conf li > div { flex: 1; padding: 16px 20px; min-width: 0; }
.md-sk + div { border-left: 6px solid var(--md-ink); }
.md-sk { flex: 0 0 120px; width: 120px; height: 120px; }
.md-conf h3 { margin: 0 0 4px; font: 400 26px/1.1 var(--md-display); text-transform: uppercase; }
.md-conf h3 a { display: inline-flex; align-items: center; min-height: 44px; }
.md-conf p { margin: 8px 0 0; }

/* Use it: flat pills, primaries. */
.md-use { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.md-pill {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 44px;
  max-width: 420px;
  padding: 16px 30px;
  border-radius: 48px;
  border: 4px solid var(--md-ink);
  text-decoration: none;
  font: 400 20px/1.1 var(--md-display);
  text-transform: uppercase;
}
.md-pill small { margin-top: 6px; font: 500 15px/1.35 var(--md-body); text-transform: none; }
/* Two classes deep, so the record's `a { color: inherit }` never wins. */
.md-use .md-pill--red { background: var(--md-red); color: var(--md-white); }
.md-use .md-pill--blue { background: var(--md-blue); color: var(--md-white); }
.md-use .md-pill--yel { background: var(--md-yel); color: var(--md-ink); }
.md-mach, .md-foot { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; }
.md-mach a, .md-foot a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }


/* Seen in the work (Design Completion, 2026-09-29): the research's findings,
   drawn flat. The titles' staggered zoom as four frames; the set's collage in
   black and white with signal red the one exception; the target printed on
   goods as surface decoration. */
.md-k--in { display: inline; }
.md-seen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 1200px; }
.md-seen__f { container-type: inline-size; margin: 0; display: grid; grid-template-rows: auto 1fr; border: 6px solid var(--md-ink); background: var(--md-white); }
.md-seen__f figcaption { padding: 14px 18px 18px; border-top: 6px solid var(--md-ink); font-size: 16px; }
.md-seen__f figcaption b { display: block; margin: 4px 0 2px; font-weight: 800; }
.md-screen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 8px; background: var(--md-ink); aspect-ratio: 16 / 9; font-size: 3.6cqi; }
.md-z { display: grid; place-items: center; overflow: hidden; background: var(--md-white); }
.md-z i { font-family: var(--md-display); font-weight: 400; line-height: 1; font-style: normal; white-space: nowrap; color: var(--md-ink); }
.md-z--4 { background: var(--md-red); }
.md-z--4 i { color: var(--md-white); }
.md-set { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--md-white); }
.md-set b { position: absolute; font-weight: 400; line-height: .9; padding: .06em .12em; }
.md-set__a { left: 4%; top: 10%; font: 400 12cqi/.9 var(--md-display); background: var(--md-ink); color: var(--md-white); transform: rotate(-4deg); }
.md-set__b { left: 24%; top: 44%; font: 900 10cqi/.9 var(--md-body); background: var(--md-white); color: var(--md-ink); border: 3px solid var(--md-ink); transform: rotate(3deg); }
.md-set__c { right: 4%; top: 34%; font: 400 12cqi/.9 var(--md-display); background: var(--md-red); color: var(--md-white); transform: rotate(5deg); }
.md-set__d { left: 6%; bottom: -6%; font: 900 34cqi/.8 var(--md-body); color: var(--md-ink); }
.md-set__e { right: 7%; bottom: 12%; width: 22%; height: 30%; background: var(--md-ink); border: 4px solid var(--md-white); outline: 3px solid var(--md-ink); transform: rotate(-3deg); }
.md-set__f { right: 5%; top: 5%; font: 400 9cqi/.9 var(--md-display); border: 3px solid var(--md-ink); background: var(--md-white); transform: rotate(-6deg); }
.md-goods { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 16px; padding: 0 16px; aspect-ratio: 16 / 9; background: var(--md-yel); }
.md-goods i { grid-area: 1 / 1; justify-self: center; border-radius: 50%; }
.md-goods i:first-child { outline: 4px solid var(--md-ink); }
.md-goods b { grid-area: 1 / 2; font: 400 clamp(13px, 5.2cqi, 22px)/1.1 var(--md-display); text-transform: uppercase; overflow-wrap: anywhere; }
@media (max-width: 860px) { .md-seen { grid-template-columns: minmax(0, 1fr); } .md-seen__f { max-width: 560px; } }

@media (max-width: 860px) {
  .md-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md-rules, .md-conf, .md-behind { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .md-meta { grid-template-columns: minmax(0, 1fr); }
  .md-h1 { border-width: 6px; }
  .md-sk { flex-basis: 84px; width: 84px; height: 84px; }
  .md-sk + div { border-left-width: 4px; }
  .md-conf li > div { padding: 12px 14px; }
  .md-pill { padding: 14px 22px; border-radius: 36px; }
  .md-ct, .md-ct tbody, .md-ct tr, .md-ct th, .md-ct td { display: block; width: auto; }
  .md-ct tr { border: 3px solid var(--md-ink); margin-bottom: -3px; }
  .md-ct th, .md-ct td { border: 0; }
  .md-ct th { padding-bottom: 0; }
  .md-rt th, .md-rt td { padding: 8px; font-size: 15px; }
}
