/* Hallmark · shape: Workbench · genre: modern-minimal · theme: Rim (deal 3/3, seed decoded-indian-codes-decoded-b4e2·34ee78f2·2026-12-04·r0) · job: try · draw: none
 * hero: Stage, the decoder well on the first screen beside the head · nav: edge-aligned bar, five short links that never hide · footer: colophon lines · imagery: none, the product is the reading: each part of a code in mono with its name and what it says · signature: a code split into its parts, read left to right
 * axes: dark/grotesk-sans/warm · posture: committed · copy: verbatim · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V3 · weakest: V, no photographs; the decoder well and the parts in mono carry the screens */
/* Hallmark · waive 44c · the guide pages · a guide is a lookup: its head is the worked example beside the question, and the parts start on the first screen */
/* Hallmark · waive 79 · the guide pages · the space under a guide's head is the section gap before its parts, not an empty hero */
/* Hallmark · waive 77 · the IFSC guide · three parts are the whole of the code; padding them out would be filler */
/* Hallmark · dismissed 58 · the number-plate and pin-code guides · the window holds the table of 36 state codes or a zone's sorting districts: data a reader scans for one row, not copy; every other page keeps to the budget */
:root {
  color-scheme: dark;
  --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(72% 0.15 27); --color-success: oklch(76% 0.13 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(9% 0.008 75); --color-paper-2: oklch(12.5% 0.009 75); --color-paper-3: oklch(6.5% 0.007 75);
  --color-ink: oklch(94% 0.010 80); --color-ink-2: oklch(84% 0.011 80); --color-muted: oklch(68% 0.012 80); --color-muted-2: oklch(50% 0.010 80);
  --color-rule: oklch(25% 0.010 78); --color-rule-2: oklch(16% 0.009 78);
  --color-accent: oklch(72% 0.17 45); --color-accent-ink: oklch(10% 0.02 45); --color-accent-2: oklch(74% 0.12 250); --color-focus: oklch(78% 0.15 45);
  --font-display: "Switzer", ui-sans-serif, system-ui, sans-serif; --font-body: var(--font-display);
  --font-outlier: "Geist Mono", ui-monospace, monospace;
  --plate-white: oklch(97% 0 0); --plate-black: oklch(15% 0 0); --plate-yellow: oklch(86% 0.17 95); --plate-green: oklch(40% 0.11 150);
  --radius-card: 0; --radius-pill: 0; --rule-hair: 1px; --shadow-card: none;
  --tracking-display: -0.04em; --display-weight: 500;
}

*, *::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: color-mix(in oklab, var(--color-accent) 35%, transparent); color: var(--color-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: natural sat=-20 con=10 */
[data-slot] > img { filter: saturate(0.8) contrast(1.1); }

@font-face { font-family: "Switzer"; src: url("/fonts/switzer-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("/fonts/switzer-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/geist-mono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/geist-mono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

body { color: var(--color-ink-2); }
h1, h2 { color: var(--color-ink); font-weight: 500; }
a { color: var(--color-ink); text-decoration-color: var(--color-accent); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.num { font-family: var(--font-outlier); font-variant-numeric: tabular-nums; }
.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); }

/* ---- the bar ------------------------------------------------------------------------------------------------------------- */
.bar { border-bottom: var(--rule-hair) solid var(--color-rule); }
.bar__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-xs) var(--space-xl); padding-block: var(--space-md); }
.wordmark { font-weight: 500; font-size: var(--text-xl); letter-spacing: var(--tracking-display); color: var(--color-ink); text-decoration: none; }
.wordmark span { color: var(--color-accent); }
.bar__nav { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-lg); }
.bar__nav a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; color: var(--color-muted); font-weight: 500; }
.bar__nav a:hover { color: var(--color-ink); }
.bar__nav a[aria-current="page"] { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; }

/* ---- the hero and the decoder well ----------------------------------------------------------------------------------------- */
.hero { padding-block: var(--space-3xl); }
.hero__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); align-items: center; }
.hero h1 { font-size: var(--text-display); line-height: 1.02; max-width: 9ch; }
.hero .lead { margin-top: var(--space-lg); font-size: var(--text-lead); max-width: 28ch; color: var(--color-muted); }
.deck { background: var(--color-paper-2); border: var(--rule-hair) solid var(--color-rule); padding: var(--space-lg); display: grid; gap: var(--space-sm); }
.deck__label { font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }
.deck__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-xs); align-items: stretch; }
.deck__row .btn { min-height: 52px; max-height: 52px; }
.deck input { height: 52px; line-height: 1.2; min-height: 0; padding: var(--space-xs) var(--space-md); font-family: var(--font-outlier); font-size: var(--text-xl); color: var(--color-ink); background: var(--color-paper-3); border: var(--rule-hair) solid var(--color-muted-2); border-radius: 0; }
.deck input::placeholder { color: var(--color-muted-2); }
.deck input:hover { border-color: var(--color-muted); }
.deck__try { font-size: var(--text-sm); color: var(--color-muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: var(--space-xs) var(--space-lg); font: inherit; font-weight: 500; text-decoration: none; border: var(--rule-hair) solid var(--color-accent); border-radius: 0; cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out); }
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); }
.btn--primary:hover { background: transparent; color: var(--color-accent); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .deck input:disabled { opacity: 0.5; cursor: not-allowed; }

/* the reading: each part of the code in mono, its name, what it says */
.read { border-top: var(--rule-hair) solid var(--color-rule); padding-top: var(--space-sm); }
.read__kind { font-size: var(--text-sm); font-weight: 500; color: var(--color-accent-2); }
.read__parts { list-style: none; margin: var(--space-xs) 0 0; padding: 0; }
.read__parts li { display: grid; grid-template-columns: minmax(6.5rem, auto) minmax(0, 7rem) minmax(0, 1fr); gap: var(--space-md); align-items: baseline; padding-block: var(--space-xs); border-bottom: var(--rule-hair) solid var(--color-rule-2); }
.read__chars { font-family: var(--font-outlier); font-size: var(--text-xl); color: var(--color-ink); letter-spacing: 0.04em; overflow-wrap: anywhere; }
.read__name { font-size: var(--text-sm); color: var(--color-muted); }
.read__says { color: var(--color-ink-2); }
.read__note { margin-top: var(--space-sm); color: var(--color-ink); border-left: 0; padding: var(--space-xs) var(--space-sm); background: var(--color-paper-3); outline: var(--rule-hair) solid var(--color-accent); }
.read__more, .read__empty { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); }
.read--static { background: var(--color-paper-2); border: var(--rule-hair) solid var(--color-rule); padding: var(--space-md) var(--space-lg); }

/* ---- sections ---------------------------------------------------------------------------------------------------------------- */
.sec { padding-block: var(--section-gap-s); border-top: var(--rule-hair) solid var(--color-rule); }
.sec--first { padding-top: var(--section-gap-s); }
.sec h2 { font-size: var(--text-section); line-height: 1.02; letter-spacing: -0.03em; }
.sec h2 + * { margin-top: var(--space-lg); }
.sec__in--two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-2xl); }
.guides { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: var(--rule-hair) solid var(--color-rule); }
.guides li { padding: var(--space-lg) var(--space-lg) var(--space-lg) 0; border-right: var(--rule-hair) solid var(--color-rule-2); }
.guides li + li { padding-left: var(--space-lg); }
.guides li:last-child { border-right: 0; }
.guides__h { display: inline-block; font-size: var(--text-xl); font-weight: 500; letter-spacing: -0.02em; min-height: 44px; }
.guides p { margin-top: var(--space-xs); color: var(--color-muted); }
.head { padding-block: var(--space-3xl) var(--space-2xl); }
.head__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-xl); align-items: center; }
.head h1 { font-size: var(--text-display-s); line-height: 1.02; letter-spacing: -0.03em; }
.head .lead { margin-top: var(--space-md); font-size: var(--text-lead); color: var(--color-ink-2); max-width: 40ch; }
.head__go { margin-top: var(--space-lg); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--space-2xl); border-top: var(--rule-hair) solid var(--color-rule); }
.steps li { padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule-2); font-size: var(--text-lg); }
.steps li b { color: var(--color-ink); font-weight: 500; }
.steps--read { grid-template-columns: minmax(0, 1fr); max-width: 64ch; }
.steps--one { grid-template-columns: minmax(0, 1fr); align-self: end; }
.sec__in--two .read--static { margin-top: var(--space-lg); }
.table { width: 100%; border-collapse: collapse; border-top: var(--rule-hair) solid var(--color-rule); }
.table th, .table td { padding: var(--space-xs) var(--space-sm) var(--space-xs) 0; border-bottom: var(--rule-hair) solid var(--color-rule-2); text-align: left; font-weight: 400; vertical-align: baseline; }
.table th { color: var(--color-ink); }
.table--codes th { width: 4.5rem; color: var(--color-accent); }
.table tbody tr:hover th, .table tbody tr:hover td { background: var(--color-paper-2); }
.note { margin-top: var(--space-md); font-size: var(--text-sm); color: var(--color-muted); max-width: 62ch; }
.ref { font-size: var(--text-sm); color: var(--color-muted); white-space: nowrap; }

/* a plate sample in its colours (the colours are the content: tokens in tokens.css) */
.plate { display: inline-block; font-family: var(--font-outlier); font-size: var(--text-sm); padding: 0 var(--space-xs); margin-right: var(--space-xs); border: var(--rule-hair) solid var(--color-muted-2); }
.plate--white-black { background: var(--plate-white); color: var(--plate-black); }
.plate--green-white { background: var(--plate-green); color: var(--plate-white); }
.plate--yellow-black { background: var(--plate-yellow); color: var(--plate-black); }
.plate--green-yellow { background: var(--plate-green); color: var(--plate-yellow); }
.plate--black-yellow { background: var(--plate-black); color: var(--plate-yellow); }

/* the zones, each folding its sorting districts */
.zones { border-top: var(--rule-hair) solid var(--color-rule); }
.zone { border-bottom: var(--rule-hair) solid var(--color-rule-2); }
.zone summary { list-style: none; display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: var(--space-md); align-items: baseline; padding-block: var(--space-md); cursor: pointer; min-height: 44px; }
.zone summary::-webkit-details-marker { display: none; }
.zone__d { font-size: var(--text-2xl); color: var(--color-accent); }
.zone__name { font-size: var(--text-lg); color: var(--color-ink); }
.zone summary:hover .zone__name { text-decoration: underline; text-decoration-color: var(--color-accent); }
.zone[open] summary .zone__name { color: var(--color-accent); }
.zone .table { margin-bottom: var(--space-lg); }

/* sources */
.register { list-style: none; margin: 0; padding: 0; border-top: var(--rule-hair) solid var(--color-rule); max-width: 62rem; }
.register li { padding-block: var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule-2); }
.register__claim { color: var(--color-ink); font-weight: 500; }
.register blockquote { margin: var(--space-sm) 0; padding: var(--space-sm) var(--space-md); background: var(--color-paper-2); border: var(--rule-hair) solid var(--color-rule); }
.register__src { font-size: var(--text-sm); color: var(--color-muted); }
li:target .register__claim { color: var(--color-accent); }

/* ---- the foot ---------------------------------------------------------------------------------------------------------------- */
.foot { border-top: var(--rule-hair) solid var(--color-rule); background: var(--color-paper-3); }
.foot__in { padding-block: var(--space-xl); display: grid; gap: var(--space-xs); font-size: var(--text-sm); color: var(--color-muted); }
.foot__note { max-width: 62ch; }

@media (max-width: 60rem) {
  .hero__in, .head__in, .sec__in--two { grid-template-columns: minmax(0, 1fr); }
  .guides { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guides li:nth-child(2) { border-right: 0; }
  .guides li:nth-child(3) { padding-left: 0; }
  .hero { padding-block: var(--space-xl); }
  .head { padding-block: var(--space-xl); }
}
@media (max-width: 40rem) {
  .guides, .steps { grid-template-columns: minmax(0, 1fr); }
  .guides li, .guides li + li { padding-left: 0; border-right: 0; border-bottom: var(--rule-hair) solid var(--color-rule-2); }
  .read__parts li { grid-template-columns: minmax(0, 1fr) auto; }
  .read__says { grid-column: 1 / -1; }
  .deck__row { grid-template-columns: minmax(0, 1fr); }
}
