/* Hallmark · shape: Workbench · genre: editorial · theme: Grid (deal 2/3, seed cash-counter-indian-notes-91f9·1fa71f02·2026-12-05·r0) · job: try · draw: manual
 * hero: the head over the counter, the total on an ultramarine field beside the rows · nav: edge-aligned, the two-line wordmark and three links · footer: a note over the credit lines on paper-2 · imagery: none, the total set at poster scale · signature: the total in figures at poster scale in field-ink on the ultramarine, the amount in words under it · grid: poster
 * axes: light/grotesk-sans/cool · posture: full-palette · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R3 V4 · weakest: R, one counter page; the ultramarine field and the poster figure carry the look */
/* Hallmark · waive 77 · every page · a cash counter with one short section under it, and one page on how the Indian system names numbers: tools, not a landing strip */
/* Hallmark · answered F1 · the sources page · the straight quotation marks sit inside sentences quoted word for word from Wikipedia, printed exactly as the article sets them */
/* Hallmark · waive 44c · every page · the counter is the first screen's visual: sixteen rows of notes and coins under the head, the total on the field beside them and held in view as they scroll; on the in-words page the live box stands under its head, the table follows */
:root {
  color-scheme: light;
  --space-3xs: 2px; --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px; --space-4xl: 144px;
  --text-xs: 0.8125rem; --text-sm: 0.875rem; --text-md: 1rem; --text-lg: 1.25rem; --text-xl: 1.5625rem; --text-2xl: 1.953rem; --text-3xl: 2.441rem;
  --text-display-s: clamp(2.25rem, 4vw + 0.5rem, 3.75rem); --text-display: clamp(2.75rem, 5vw + 1rem, 5.25rem);
  --text-section: clamp(2rem, 2.5vw + 1rem, 3.5rem); --text-title: clamp(1.25rem, 0.75vw + 0.875rem, 1.625rem); --text-lead: clamp(1.125rem, 0.35vw + 1rem, 1.375rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --ease-in: cubic-bezier(0.7, 0, 0.84, 0); --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms; --dur-short: 220ms; --dur-long: 420ms;
  --color-error: oklch(52% 0.19 27); --color-success: oklch(50% 0.12 150);
  --container: 1440px; --gutter: 64px; --gap-columns: 32px; --section-gap-s: 120px; --section-gap: 144px; --section-gap-l: 176px;
  --z-base: 1; --z-raised: 10; --z-dropdown: 100; --z-sticky: 200; --z-sticky-nav: 300; --z-modal: 400; --z-toast: 500; --z-tooltip: 600;
  --color-paper: oklch(97.5% 0.005 90); --color-paper-2: oklch(94.2% 0.006 90); --color-paper-3: oklch(90.5% 0.008 90);
  --color-ink: oklch(19% 0.022 266); --color-ink-2: oklch(31% 0.02 266); --color-muted: oklch(47% 0.016 266);
  --color-rule: oklch(87.5% 0.008 90);
  --color-accent: oklch(44% 0.2 266); --color-accent-ink: oklch(97.5% 0.005 90); --color-focus: oklch(46% 0.2 266);
  --color-field: oklch(44% 0.2 266); --color-field-ink: oklch(97.5% 0.005 90);
  --color-mark: oklch(57% 0.215 29); --color-mark-ink: oklch(97.5% 0.005 90);
  --font-display: "Radio Canada Big", ui-sans-serif, system-ui, sans-serif; --font-body: "Radio Canada", ui-sans-serif, system-ui, sans-serif;
  --font-outlier: var(--font-display);
  --radius-card: 0; --radius-pill: 0; --rule-hair: 1px; --shadow-card: none;
  --tracking-display: -0.035em; --display-weight: 700;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scrollbar-color: var(--color-muted) var(--color-paper); scroll-padding-top: var(--space-3xl); }
body { margin: 0; background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-md); line-height: 1.55; -webkit-font-smoothing: antialiased; caret-color: var(--color-accent); }
::selection { background: var(--color-mark); color: var(--color-mark-ink); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight, 700); font-synthesis: none; letter-spacing: var(--tracking-display); line-height: 1.05; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
h1 { max-width: 20ch; font-size: var(--text-display); } h2 { max-width: 30ch; font-size: var(--text-section); } h3 { max-width: 40ch; font-size: var(--text-title); line-height: 1.2; }
.lead { font-size: var(--text-lead); line-height: 1.45; max-width: 52ch; }
p { margin: 0; text-wrap: pretty; }
p:not([class]) { max-width: 65ch; }
img, video { max-width: 100%; height: auto; display: block; }
svg { display: block; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); box-sizing: border-box; }
.num, .figure, td.num { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[data-slot] { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--color-paper-2, var(--color-paper)), var(--color-paper-3, var(--color-paper))); }
[data-slot] > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
[data-slot]:has(> img) > :not(img):not([data-keep]) { display: none !important; }
@media (max-width: 60rem) { :root { --gutter: 24px; --section-gap-s: 80px; --section-gap: 96px; --section-gap-l: 120px; } }
@media (max-width: 40rem) { :root { --gutter: 16px; --section-gap-s: 56px; --section-gap: 72px; --section-gap-l: 96px; --gap-columns: 16px; } }
@media (prefers-reduced-motion: reduce) { *:not(.keep-motion), *:not(.keep-motion)::before, *:not(.keep-motion)::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }
/* photographs: duotone ink paper-2 con=12 */
[data-slot]:has(> img) { isolation: isolate; background: var(--color-paper-2); outline: 1px solid color-mix(in oklab, var(--color-ink) 8%, transparent); outline-offset: -1px; }
[data-slot] > img { z-index: 0; filter: grayscale(1) contrast(1.12); mix-blend-mode: multiply; }
[data-slot]:has(> img)::before { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--color-ink); mix-blend-mode: lighten; pointer-events: none; }

@font-face { font-family: "Radio Canada Big"; src: url("/fonts/radio-canada-big-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Radio Canada Big"; src: url("/fonts/radio-canada-big-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Radio Canada"; src: url("/fonts/radio-canada-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Radio Canada"; src: url("/fonts/radio-canada-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root { --edge: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); }
body { color: var(--color-ink-2); font-size: 1.0625rem; line-height: 1.5; }
h1, h2, h3 { color: var(--color-ink); }
.skip { position: absolute; left: var(--space-md); top: -100px; background: var(--color-ink); color: var(--color-paper); padding: var(--space-xs) var(--space-md); z-index: var(--z-modal); }
.skip:focus-visible { top: var(--space-md); }
a { color: var(--color-ink); text-decoration-color: var(--color-muted); transition: color var(--dur-short) var(--ease-out); }
a:hover { color: var(--color-mark); text-decoration-color: var(--color-mark); }

/* the bar */
.bar__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2xs) var(--space-xl); padding-block: var(--space-md); }
.wordmark { display: inline-flex; align-items: stretch; gap: var(--space-xs); font-family: var(--font-display); font-size: var(--text-lg); line-height: 0.92; letter-spacing: -0.02em; color: var(--color-ink); text-decoration: none; }
.wordmark::before { content: ""; width: 1.84em; background: var(--color-mark); }
.wordmark span { display: grid; }
.wordmark b { font-weight: 700; }
.wordmark i { font-style: normal; font-weight: 400; }
.bar__nav { display: flex; flex-wrap: wrap; gap: 0 var(--space-lg); }
.bar__nav a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; font-weight: 500; font-size: var(--text-sm); color: var(--color-ink-2); }
.bar__nav a[aria-current="page"] { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-mark); text-decoration-thickness: 2px; text-underline-offset: 0.4em; }

/* the head of a page */
.hero, .head { padding-block: var(--space-2xl) var(--space-xl); }
.hero h1, .head h1 { max-width: 15ch; line-height: 0.95; }
.hero .lead, .head .lead { margin-top: var(--space-md); color: var(--color-ink-2); }
.hero--tool { padding-bottom: 0; }
.hero--tool .hero__head { padding-bottom: var(--space-lg); }
.sec--after { padding-top: var(--space-4xl); }

/* the counter: the rows on paper, the total on the field, running to the edge */
.count { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
.count__rows { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-xl) var(--gap-columns); padding: 0 var(--space-xl) var(--space-2xl) var(--edge); }
.kind { border: 0; margin: 0; padding: 0; min-width: 0; }
.kind legend { padding: 0; font-family: var(--font-display); font-weight: 700; font-size: var(--text-2xl); letter-spacing: var(--tracking-display); color: var(--color-ink); margin-bottom: var(--space-xs); }
.kind__sub { font-weight: 500; font-size: var(--text-sm); color: var(--color-muted); margin-top: var(--space-sm); }
.row { display: grid; grid-template-columns: 5.75rem 0.75rem minmax(3.5rem, 5.5rem) 0.75rem minmax(0, 1fr); align-items: center; gap: var(--space-2xs); padding-block: 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
.row__k { white-space: nowrap; font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); color: var(--color-ink); font-variant-numeric: tabular-nums; }
.row__x { color: var(--color-muted); text-align: center; }
.row__n { width: 100%; min-height: 44px; border: 0; border-bottom: var(--rule-hair) solid var(--color-muted); border-radius: 0; background: transparent; color: var(--color-ink); font-size: var(--text-lg); text-align: right; padding: 0 var(--space-2xs); font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.row__n::-webkit-outer-spin-button, .row__n::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.row__n::placeholder { color: var(--color-muted); }
.row__n:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 1px; }
.row__v { text-align: right; font-variant-numeric: tabular-nums; color: var(--color-ink-2); }
.row__note { font-size: var(--text-sm); color: var(--color-muted); padding-block: var(--space-2xs) var(--space-xs); max-width: 36ch; }

.sum { position: sticky; top: 0; background: var(--color-field); color: var(--color-field-ink); padding: var(--space-xl) var(--edge) var(--space-xl) var(--space-xl); }
.sum a { color: var(--color-field-ink); }
.sum :focus-visible { outline-color: var(--color-field-ink); }
.sum__k { font-weight: 500; font-size: var(--text-sm); }
.sum__v { font-family: var(--font-display); font-weight: 700; font-size: clamp(3rem, 6.4vw, 7rem); line-height: 0.9; letter-spacing: -0.04em; margin-block: var(--space-xs) var(--space-lg); overflow-wrap: anywhere; }
.sum__v[data-long] { font-size: clamp(2.25rem, 3.9vw, 4.25rem); }
.sum__w { font-size: var(--text-xl); line-height: 1.25; margin-top: var(--space-2xs); max-width: 26ch; }
.sum__n { display: flex; flex-wrap: wrap; gap: var(--space-md) var(--space-xl); margin: var(--space-xl) 0 0; }
.sum__n dt { font-weight: 500; font-size: var(--text-sm); }
.sum__n dd { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: var(--text-2xl); font-variant-numeric: tabular-nums; }
.sum__do { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-lg); margin-top: var(--space-xl); }
.btn { min-height: 52px; padding: 0 var(--space-lg); border: 0; border-radius: 0; background: var(--color-ink); color: var(--color-paper); font-weight: 500; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
.btn:hover { background: var(--color-ink-2); }
.btn:active, .linkbtn:active, .bar__nav a:active { transform: translateY(1px); }
.btn:disabled, .linkbtn:disabled, .row__n:disabled { cursor: not-allowed; color: var(--color-muted); }
.btn:focus-visible { outline: 2px solid var(--color-field-ink); outline-offset: 2px; }
.linkbtn { min-height: 44px; padding: 0; border: 0; background: none; color: var(--color-field-ink); font-weight: 500; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.linkbtn:focus-visible { outline: 2px solid var(--color-field-ink); outline-offset: 2px; }
.peek { display: none; }

/* a section under the head */
.sec { padding-block: var(--section-gap-s); }
.sec--well { background: var(--color-paper-2); }
.sec__in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-lg) var(--gap-columns); align-items: start; }
.sec h2 { font-size: var(--text-section); max-width: 12ch; line-height: 1; }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-lg); max-width: 60ch; }
.list b { color: var(--color-ink); font-weight: 500; }
.ref { color: var(--color-muted); font-size: var(--text-sm); }

/* the worked examples */
.worked { width: 100%; max-width: 52rem; border-collapse: collapse; margin-block: var(--space-lg) var(--space-sm); }
.worked th { text-align: left; font-weight: 500; font-size: var(--text-sm); color: var(--color-muted); padding: 0 var(--space-md) var(--space-xs) 0; }
.worked td { padding: var(--space-sm) var(--space-md) var(--space-sm) 0; border-top: var(--rule-hair) solid var(--color-rule); vertical-align: baseline; }
.worked td.num { font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl); color: var(--color-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* the in-words box, on the field */
.say { background: var(--color-field); color: var(--color-field-ink); padding: var(--space-2xl) var(--edge); }
.say__in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-lg) var(--gap-columns); align-items: end; }
.say label { display: grid; gap: var(--space-xs); font-weight: 500; font-size: var(--text-sm); }
.say input { width: 100%; height: 52px; border: 0; border-bottom: var(--rule-hair) solid color-mix(in oklab, var(--color-field-ink) 60%, transparent); border-radius: 0; background: transparent; color: var(--color-field-ink); font-size: var(--text-2xl); font-family: var(--font-display); font-weight: 700; font-variant-numeric: tabular-nums; padding: 0; }
.say input:focus-visible { outline: 2px solid var(--color-field-ink); outline-offset: 2px; }
.say__fig { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.5rem, 5vw, 5rem); line-height: 0.95; letter-spacing: -0.035em; overflow-wrap: anywhere; }
.say__w { font-size: var(--text-xl); line-height: 1.3; margin-top: var(--space-sm); max-width: 40ch; }

/* the register of sources */
.register { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2xl); max-width: 62rem; }
.register__claim { font-family: var(--font-display); font-weight: 700; font-size: var(--text-title); color: var(--color-ink); line-height: 1.2; }
.register blockquote { margin: var(--space-sm) 0; padding: var(--space-md) var(--space-lg); background: var(--color-paper-2); }
.register blockquote p { max-width: 70ch; }
.register__src { font-size: var(--text-sm); color: var(--color-muted); max-width: 70ch; }

/* the foot */
.foot { background: var(--color-paper-2); padding-block: var(--space-2xl); }
.foot__in { display: grid; gap: var(--space-xs); }
.foot__note { max-width: 70ch; color: var(--color-ink-2); }
.foot__line { font-size: var(--text-sm); color: var(--color-muted); }

@media (max-width: 60rem) {
  .count { grid-template-columns: minmax(0, 1fr); }
  .count__rows { padding: 0 var(--gutter) var(--space-xl); }
  .sum { position: static; padding: var(--space-xl) var(--gutter); }
  .peek { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; position: sticky; bottom: 0; z-index: var(--z-sticky); margin-inline: calc(-1 * var(--gutter)); padding: var(--space-sm) var(--gutter); background: var(--color-field); color: var(--color-field-ink); font-weight: 500; }
  .peek b { font-family: var(--font-display); font-size: var(--text-xl); }
  .sec__in, .say__in { grid-template-columns: minmax(0, 1fr); }
  .say { padding: var(--space-xl) var(--gutter); }
}
@media (max-width: 40rem) {
  .count__rows { grid-template-columns: minmax(0, 1fr); }
  .row { grid-template-columns: 5.5rem 0.75rem minmax(3.5rem, 5.5rem) 0.75rem minmax(0, 1fr); }
  .worked td.num { font-size: var(--text-lg); white-space: normal; }
}
/* up to 600px a table row becomes one labelled block: every column shows, nothing scrolls sideways */
@media (max-width: 37.5rem) {
  .worked, .worked tbody, .worked tr, .worked td { display: block; width: 100%; }
  .worked thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .worked tr { border-top: var(--rule-hair) solid var(--color-rule); padding-block: var(--space-sm); }
  .worked td { border-top: 0; padding: var(--space-3xs) 0; }
  .worked td::before { content: attr(data-label); display: block; font-family: var(--font-body); font-weight: 500; font-size: var(--text-sm); color: var(--color-muted); }
  .worked td.num { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) { a, .btn { transition: none; } }

/* printed: the counts and the total on white paper, the controls left off */
@media print {
  @page { size: A4; margin: 12mm; }
  body { background: none; color: var(--color-ink); font-size: 11pt; }
  .skip, .bar__nav, .hero .lead, .sum__do, .peek, .sec, .foot, .row__note .ref { display: none !important; }
  .hero { padding: 0 0 6mm; }
  .count, .count__rows { display: block; padding: 0; }
  .kind { break-inside: avoid; margin-bottom: 6mm; }
  .row__n { border: 0; }
  .sum { position: static; background: none; color: var(--color-ink); padding: 6mm 0 0; }
  .sum__v { font-size: 32pt; }
}
