/* Hallmark · shape: Map / Diagram · genre: modern-minimal · theme: Furrow (deal 1/3, seed lekhpal-plain-hindi-guide-2148·24f04884·2026-11-23·r0) · job: visit · draw: 48888f
 * hero: Stage · nav: floating pill · footer: letter close · imagery: the product (a generated village map, one holding edged, its khatauni open beside it; no photographs) · signature: the village map as the index of the lekhpal's work, each job pinned where it happens
 * axes: light/grotesk-sans/warm · posture: committed · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V4 · weakest: P, a reference argues little; the argument is that every line names its law or its notice, so each page ends on where it is written */
/* Hallmark · dismissed 23 · the tangerine band is the one field of the declared committed posture, Furrow's field band, with ink on it */
/* Hallmark · dismissed 58 · the paragraph under a reading page's head is the answer itself, two short sentences, as the page's first words; the page count over 450 is the register of sources, the law's own sentences */
/* No grain, no fibre and no notebook grid: plain paper behind every word (owner, 2026-11-19). The map is line work only.
   Type: the theme's Red Hat has no Devanagari, so the site's family "Lekh" is Anek Devanagari 600 (both scripts) for heads,
   and at 400 Anek's Latin with Noto Sans Devanagari, the face Hindi readers already have on a phone. Red Hat Mono keeps the figures. */
: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(96% 0.011 85); --color-paper-2: oklch(99.5% 0.005 85); --color-paper-3: oklch(92% 0.016 85);
  --color-ink: oklch(18% 0.006 60); --color-ink-2: oklch(28% 0.008 60); --color-muted: oklch(44% 0.012 60); --color-rule: oklch(88% 0.013 85);
  --color-accent: oklch(70% 0.19 40); --color-accent-ink: oklch(18% 0.006 60); --color-accent-soft: oklch(91% 0.05 50); --color-focus: oklch(60% 0.19 40);
  --color-green: oklch(48% 0.11 150); --color-green-soft: oklch(92% 0.04 150);
  --color-contour: oklch(62% 0.07 58); --color-water: oklch(60% 0.05 232); --color-hedge: oklch(50% 0.1 150);
  --color-grid: oklch(90% 0.014 85); --color-grid-strong: oklch(85% 0.018 85); --color-sheet: oklch(99.3% 0.004 85);
  --font-display: "Lekh", "Noto Sans Devanagari", ui-sans-serif, system-ui, sans-serif; --font-body: "Lekh", "Noto Sans Devanagari", ui-sans-serif, system-ui, sans-serif;
  --font-outlier: "Red Hat Mono", ui-monospace, monospace;
  --radius-card: 10px; --radius-entry: 14px; --radius-pill: 6px; --rule-hair: 1px;
  --shadow-card: 0 1px 2px oklch(18% 0.006 60 / 0.08), 0 14px 28px -16px oklch(18% 0.006 60 / 0.28);
  --shadow-lift: 0 1px 1px oklch(18% 0.006 60 / 0.1), 0 2px 4px -1px oklch(18% 0.006 60 / 0.1), 0 24px 44px -20px oklch(18% 0.006 60 / 0.42);
  --tracking-display: -0.035em; --display-weight: 600;
}

*, *::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) 22%, 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 con=8 sat=-6 */
[data-slot] > img { filter: contrast(1.08) saturate(0.94); }

@font-face { font-family: "Lekh"; src: url("/fonts/anek-latin-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lekh"; src: url("/fonts/anek-latin-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lekh"; src: url("/fonts/anek-deva-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09; }
@font-face { font-family: "Lekh"; src: local("Noto Sans Devanagari"), url("/fonts/noto-deva-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09; }
@font-face { font-family: "Red Hat Mono"; src: url("/fonts/red-hat-mono.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; }

:root { --bar-h: 64px; --key-h: 48px; --row-h: 136px; }

/* Hindi sets looser than Latin: the headline rule (shirorekha) and the marks above and below it need the room */
html[lang="hi"] { --tracking-display: 0; }
html[lang="hi"] body { font-size: 1.0625rem; line-height: 1.7; }
html[lang="hi"] h1, html[lang="hi"] h2 { line-height: 1.24; }
html[lang="hi"] h3, html[lang="hi"] .steps__h, html[lang="hi"] .glance dd { line-height: 1.45; }
html[lang="hi"] .lead { line-height: 1.6; }
body { font-weight: 400; }
b, strong { font-weight: 600; }
.num { font-family: var(--font-outlier); font-variant-numeric: tabular-nums; }

.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-4xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); }
.skip:focus-visible { top: var(--space-md); }

/* the bar: a white sheet that floats over the paper; every link stays in view on a phone */
.bar { position: sticky; top: var(--space-sm); z-index: var(--z-sticky-nav); margin-top: var(--space-sm); }
.bar__in { padding-inline: var(--gutter); }
.bar__sheet { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 var(--space-lg); min-height: var(--bar-h); padding: var(--space-xs) var(--space-md) var(--space-xs) var(--space-lg); background: var(--color-paper-2); border-radius: var(--radius-card); box-shadow: 0 0 0 var(--rule-hair) var(--color-rule), var(--shadow-card); }
.wordmark { display: grid; justify-items: start; color: var(--color-ink); text-decoration: none; line-height: 1.2; }
.wordmark__name { display: inline-flex; align-items: baseline; }
.wordmark b { font-family: var(--font-display); font-weight: 600; font-size: var(--text-xl); }
.wordmark i { font-family: var(--font-display); font-weight: 600; font-style: normal; font-size: var(--text-xl); color: var(--color-muted); }
.wordmark small { font-size: var(--text-xs); color: var(--color-muted); line-height: 1.3; }
.bar nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-lg); }
.bar nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--text-md); color: var(--color-ink); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; transition: border-color var(--dur-short) var(--ease-out); }
.bar nav a:hover, .bar nav a[aria-current] { border-bottom-color: var(--color-accent); }
.bar nav a.bar__lang { padding-inline: var(--space-sm); min-height: 36px; border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-pill); font-size: var(--text-sm); transition: background-color var(--dur-short) var(--ease-out); }
.bar nav a.bar__lang:hover { background: var(--color-paper-3); border-color: var(--color-rule); }

/* keys: moulded, 6px, the primary a tangerine fill with ink on it */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: var(--key-h); padding: 0 var(--space-lg); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-pill); background: var(--color-paper-2); color: var(--color-ink); font-weight: 600; font-size: var(--text-md); line-height: 1.2; white-space: nowrap; text-decoration: none; cursor: pointer; box-shadow: inset 0 1px 0 var(--color-sheet), 0 1px 1px var(--color-rule); transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-paper-3); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); border-color: color-mix(in oklab, var(--color-accent) 78%, var(--color-ink)); box-shadow: inset 0 1px 0 color-mix(in oklab, var(--color-sheet) 32%, transparent), inset 0 -1px 0 color-mix(in oklab, var(--color-ink) 10%, transparent); }
.btn--primary:hover { background: color-mix(in oklab, var(--color-accent) 90%, var(--color-ink)); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* links in running text; a reference names its place in the law and jumps to the source's own words */
main a:not([class]), .close__letter a { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-muted); transition: text-decoration-color var(--dur-short) var(--ease-out); }
main a:not([class]):hover, .close__letter a:hover { text-decoration-color: var(--color-accent); }
.ref { font-size: var(--text-sm); line-height: 1.4; color: var(--color-muted); text-decoration: underline; text-decoration-color: var(--color-rule); text-underline-offset: 0.22em; white-space: nowrap; font-variant-numeric: tabular-nums; transition: color var(--dur-short) var(--ease-out); }
.ref:hover { color: var(--color-ink); }

/* ---- the hero: the head on plain paper, the village beside it ---------------------------------------------------- */
.hero__in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--space-2xl); align-items: center; min-height: min(calc(100svh - var(--bar-h) - var(--space-lg)), 820px); padding-block: var(--space-xl) var(--space-2xl); }
.hero__text .lead { margin-top: var(--space-lg); color: var(--color-ink-2); max-width: none; }
.nb { white-space: nowrap; }
.hero__go { margin-top: var(--space-xl); display: flex; flex-wrap: wrap; gap: var(--space-sm); }

/* the village: line work from scripts/map.mjs, the jobs pinned on it as links, one record open */
.map { position: relative; margin: 0; }
.map__land { position: relative; }
.m { width: 100%; height: auto; overflow: hidden; }
.m-plot { fill: none; stroke: var(--color-contour); stroke-width: 1; }
.m-held { fill: var(--color-accent-soft); stroke: var(--color-accent); stroke-width: 2.2; }
.m-bound { fill: none; stroke: var(--color-ink); stroke-width: 1.5; stroke-dasharray: 12 4 2 4; }
.m-roadbed { fill: none; stroke: var(--color-ink-2); stroke-width: 7; }
.m-road { fill: none; stroke: var(--color-paper); stroke-width: 5; }
.m-drainbed { fill: none; stroke: var(--color-paper); stroke-width: 8; }
.m-drain { fill: none; stroke: var(--color-water); stroke-width: 3; }
.m-pond { fill: color-mix(in oklab, var(--color-water) 28%, var(--color-paper)); stroke: var(--color-water); stroke-width: 1.5; }
.m-abadi { fill: var(--hatch); stroke: var(--color-ink); stroke-width: 1.2; }
.m-hatch { stroke: var(--color-contour); stroke-width: 1; }
.m-house { fill: var(--color-paper-3); stroke: var(--color-ink); stroke-width: 1; }
.m-tree { fill: none; stroke: var(--color-hedge); stroke-width: 1.5; }
.m-n { font-family: var(--font-outlier); font-size: 12px; fill: var(--color-muted); text-anchor: middle; dominant-baseline: central; }
.m-n--held { fill: var(--color-ink); font-weight: 500; }
.m-l { font-family: var(--font-body); font-size: 14px; fill: var(--color-ink-2); text-anchor: middle; dominant-baseline: central; paint-order: stroke; stroke: var(--color-paper); stroke-width: 5px; stroke-linejoin: round; }
.m-chain { stroke: var(--color-ink); stroke-width: 1.6; stroke-dasharray: 5 4; }
.m-peg { fill: var(--color-ink); }
.m-north path { fill: none; stroke: var(--color-ink); stroke-width: 1.5; }
.m-north text { font-family: var(--font-body); font-size: 13px; fill: var(--color-ink); text-anchor: middle; }

.pins { list-style: none; margin: 0; padding: 0; }
.pin { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 48px; margin-top: calc(-1 * var(--space-lg)); margin-left: calc(-1 * var(--space-xs)); color: var(--color-ink); text-decoration: none; }
.pin::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--color-ink); box-shadow: 0 0 0 3px var(--color-paper); }
.pin--job::before { border-radius: 2px; transform: rotate(45deg); }
.pin span { display: inline-flex; align-items: center; min-height: 30px; padding: 0 var(--space-sm); border-radius: var(--radius-pill); background: var(--color-ink); color: var(--color-paper-2); font-size: var(--text-sm); line-height: 1.2; white-space: nowrap; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.pin:hover span, .pin--open span { background: var(--color-accent); color: var(--color-accent-ink); }
.pin--open::before { background: var(--color-accent); box-shadow: 0 0 0 3px var(--color-paper), 0 0 0 4px var(--color-ink); }
.pin:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: var(--radius-pill); }
.map__cap { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); max-width: 44ch; }

/* the open record: the theme's notebook page (an ink ring, an ink head, ruled cells) */
.entry { background: var(--color-paper-2); border-radius: var(--radius-entry); box-shadow: 0 0 0 1px var(--color-ink), var(--shadow-lift); overflow: hidden; }
.entry__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-md); padding: var(--space-sm) var(--space-md); background: var(--color-ink); color: var(--color-paper-2); font-size: var(--text-sm); }
.entry__head b { font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); }
.entry__who { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-2xs) var(--space-md); align-items: end; margin: 0; padding: var(--space-sm) var(--space-md); border-bottom: 1px solid var(--color-ink); }
.entry__who dt { font-size: var(--text-xs); color: var(--color-muted); line-height: 1.3; }
.entry__who dd { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); line-height: 1.3; }
.entry__who div:last-child { text-align: right; }
.entry table { width: 100%; border-collapse: collapse; }
.entry th, .entry td { padding: var(--space-xs) var(--space-md); text-align: left; border-bottom: 1px solid var(--color-rule); font-size: var(--text-sm); line-height: 1.4; }
.entry th { font-weight: 400; color: var(--color-muted); font-size: var(--text-xs); }
.entry td:last-child, .entry th:last-child { text-align: right; }
.entry tfoot td { border-bottom: 0; border-top: 1px solid var(--color-ink); font-weight: 600; }
.entry td.num { font-size: var(--text-sm); }
.entry__key { display: flex; margin: var(--space-sm) var(--space-md) var(--space-md); }
.hero .entry { position: absolute; right: calc(-1 * var(--space-xl)); bottom: calc(-1 * var(--space-xl)); width: min(18rem, 42%); z-index: var(--z-raised); }
.hero .m-under { display: none; }

/* ---- sections --------------------------------------------------------------------------------------------------- */
.sec { padding-block: var(--section-gap-s) 0; }
.sec--l { padding-top: var(--section-gap); }
.sec__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); align-items: end; row-gap: var(--space-md); margin-bottom: var(--space-2xl); }
.sec__head h2 { grid-column: 1 / span 6; }
.sec__head .lead { grid-column: 8 / -1; color: var(--color-ink-2); }

/* the jobs, as a bento: two with a picture, three in words */
.jobs { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); list-style: none; margin: 0; padding: 0; }
.job { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 240px; padding: var(--space-lg); background: var(--color-paper-3); border-radius: var(--radius-card); overflow: hidden; transition: background-color var(--dur-short) var(--ease-out); }
.job:hover { background: color-mix(in oklab, var(--color-paper-3) 86%, var(--color-contour)); }
.job--a { grid-column: span 7; } .job--b { grid-column: span 5; } .job--d { grid-column: span 3; }
.job--d h3 { font-size: var(--text-xl); }
.job h3 { font-size: var(--text-2xl); max-width: 16ch; }
.job h3 a { color: var(--color-ink); text-decoration: none; }
.job h3 a::after { content: ""; position: absolute; inset: 0; }
.job h3 a:focus-visible { outline: none; }
.job:has(a:focus-visible) { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.job p { margin-top: var(--space-xs); color: var(--color-ink-2); }
.job .job__sec { margin-top: var(--space-md); font-size: var(--text-sm); color: var(--color-muted); }
.job__pic { flex: none; height: 232px; margin: calc(-1 * var(--space-lg)) calc(-1 * var(--space-lg)) var(--space-lg); overflow: hidden; pointer-events: none; }
.job__pic .m { width: 100%; height: 100%; }
.job__pic--sheet { position: absolute; top: var(--space-lg); right: var(--space-lg); width: min(21rem, 46%); height: auto; margin: 0; overflow: visible; }
.job--a h3, .job--a p { max-width: 46%; }
.job--b { justify-content: space-between; }
.job--a, .job--b { min-height: 400px; }

/* rows: a name on the left, what it is in the middle, where it is written on the right; hairlines between */
.rows, .glance, .steps, .ladder { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--color-ink); }
.rows > li, .glance > div, .steps > li, .ladder > li { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); align-items: baseline; min-height: var(--row-h); padding-block: var(--space-xl); border-bottom: 1px solid var(--color-rule); }
.rows h3 { grid-column: 1 / span 4; }
.rows h3 a { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-rule); text-decoration-thickness: 2px; text-underline-offset: 0.2em; transition: text-decoration-color var(--dur-short) var(--ease-out); }
.rows h3 a:hover { text-decoration-color: var(--color-accent); }
.rows p { grid-column: 5 / -1; color: var(--color-ink-2); font-size: var(--text-lead); }
.row__ref { grid-column: 11 / -1; justify-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-2xs); text-align: right; }
.steps__h { font-family: var(--font-display); font-weight: 600; font-size: var(--text-title); line-height: 1.35; color: var(--color-ink); }

/* the band: a tangerine field with ink on it */
.band { margin-top: var(--section-gap); padding-block: var(--section-gap-s); background: var(--color-accent); color: var(--color-accent-ink); --color-focus: var(--color-ink); }
.band__in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-2xl); align-items: end; }
.band h2 { grid-column: 1 / span 7; }
.band .lead { grid-column: 1 / span 6; }
.band__go { grid-column: 9 / -1; justify-self: end; }
.band .btn { background: transparent; color: var(--color-ink); border-color: var(--color-ink); box-shadow: none; }
.band .btn:hover { background: color-mix(in oklab, var(--color-accent) 86%, var(--color-ink)); }
.figures { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.figures > div { padding-inline: var(--space-lg); border-left: 1px solid var(--color-ink); }
.figures > div:first-child { padding-left: 0; border-left: 0; }
.figures dd { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: var(--text-display-s); line-height: 1.1; font-variant-numeric: tabular-nums; }
.figures dt { margin-top: var(--space-xs); font-size: var(--text-md); }

/* the ladder: who sits above the lekhpal, and what is decided at each desk */
.ladder { counter-reset: rung; }
.ladder > li { counter-increment: rung; }
.ladder > li::before { content: counter(rung); grid-column: 1; font-family: var(--font-outlier); color: var(--color-muted); font-size: var(--text-sm); }
.ladder .steps__h { grid-column: 2 / span 4; }
.ladder p:not([class]) { grid-column: 6 / span 5; color: var(--color-ink-2); font-size: var(--text-lead); max-width: none; }
.ladder > li:first-child .steps__h { font-size: var(--text-2xl); }

/* the close: a letter's sign-off, set with air around it */
.close { margin-top: var(--section-gap-l); padding-block: var(--space-3xl) var(--space-2xl); border-top: 1px solid var(--color-ink); }
.close__in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-2xl); }
.close__letter { grid-column: 1 / span 6; }
.close__letter p { font-size: var(--text-lead); line-height: 1.6; max-width: 46ch; }
.close__sign { margin-top: var(--space-lg); color: var(--color-ink-2); }
.close__links { grid-column: 8 / -1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap-columns); align-content: start; }
.close__links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-ink); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color var(--dur-short) var(--ease-out); }
.close__links a:hover { border-bottom-color: var(--color-accent); }
.close__house { grid-column: 1 / -1; font-size: var(--text-sm); color: var(--color-muted); max-width: none; }
.close__house a { color: var(--color-ink-2); }

/* ---- reading pages ------------------------------------------------------------------------------------------------ */
/* the head is the page's first screen: the title, the answer and the way to the official portal on the left; the job's
   own record (or the map, or the specimen) on the right */
.head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: var(--space-2xl); align-items: center; min-height: min(78svh, 690px); padding-block: var(--space-3xl); }
.head + .sec { padding-top: var(--space-lg); }
.crumbs { font-size: var(--text-sm); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-muted); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color var(--dur-short) var(--ease-out); }
.crumbs a:hover { border-bottom-color: var(--color-accent); }
.head h1 { font-size: var(--text-display); max-width: 14ch; margin-top: var(--space-xs); }
.head .lead { margin-top: var(--space-lg); color: var(--color-ink-2); max-width: none; }
.head__ref { margin-top: var(--space-sm); display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-md); }
.head__go { margin-top: var(--space-xl); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-lg); }
.head__go small { font-size: var(--text-sm); color: var(--color-muted); }
.head__pic { width: 100%; margin: 0; }
.head__pic > .map__cap { margin-top: var(--space-lg); }
.head__pic--cut .map__land { border-radius: var(--radius-card); overflow: hidden; background: var(--color-paper-2); box-shadow: 0 0 0 var(--rule-hair) var(--color-rule); }
.head__pic--cut .m { display: block; }
.head__pic .entry th, .head__pic .entry td { padding-block: var(--space-md); font-size: var(--text-md); }
.head__pic .entry__who { padding-block: var(--space-md); }
.entry--job .entry__head { padding: var(--space-md) var(--space-lg); }
.entry__facts { margin: 0; }
.entry__facts > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); column-gap: var(--space-md); align-items: center; min-height: 94px; padding: var(--space-md) var(--space-lg); border-bottom: 1px solid var(--color-rule); }
.entry__facts > div:last-child { border-bottom: 0; }
.entry__facts dt { font-size: var(--text-sm); color: var(--color-muted); line-height: 1.4; }
.entry__facts dd { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); line-height: 1.4; }

/* at a glance: one fact a row */
.glance dt { grid-column: 1 / span 4; color: var(--color-muted); }
.glance dd { grid-column: 5 / span 6; margin: 0; font-family: var(--font-display); font-weight: 600; font-size: var(--text-title); line-height: 1.35; }
.glance dd a { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-muted); }

/* the order of things, when there is a real order */
.steps { counter-reset: step; }
.steps > li { counter-increment: step; }
.steps > li::before { content: counter(step); grid-column: 1; font-family: var(--font-display); font-weight: 600; font-size: var(--text-2xl); line-height: 1.1; }
.steps .steps__h { grid-column: 2 / span 3; }
.steps p:not([class]) { grid-column: 5 / span 6; color: var(--color-ink-2); font-size: var(--text-lead); max-width: none; }

/* a table that stays a table */
.plan { width: 100%; border-collapse: collapse; border-top: 1px solid var(--color-ink); }
.plan th, .plan td { padding: var(--space-lg) var(--space-md) var(--space-lg) 0; text-align: left; border-bottom: 1px solid var(--color-rule); vertical-align: baseline; }
.plan thead th { font-weight: 400; font-size: var(--text-sm); color: var(--color-muted); white-space: nowrap; }
.plan tbody th { font-weight: 600; font-family: var(--font-display); font-size: var(--text-lg); }
.plan td.num, .plan th.num { text-align: right; padding-right: 0; white-space: nowrap; }
.plan tfoot td, .plan tfoot th { border-bottom: 0; border-top: 2px solid var(--color-ink); font-weight: 600; font-family: var(--font-display); font-size: var(--text-lg); }
.plan tfoot td.num { font-family: var(--font-outlier); }
.plan__ref { margin-top: var(--space-md); display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--space-2xs) var(--space-md); max-width: none; }

/* where it is written: each document once, the places cited from it as keys into the register of sources */
.srcs { margin-top: var(--section-gap-s); }
.srcs__h { font-size: var(--text-sm); color: var(--color-muted); padding-bottom: var(--space-sm); max-width: none; }
.sources { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--color-ink); }
.sources > li { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-2xs); align-items: baseline; padding-block: var(--space-xl); border-bottom: 1px solid var(--color-rule); }
.sources cite { grid-column: 1 / span 4; font-style: normal; font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); line-height: 1.35; }
.sources cite a { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-muted); }
.sources__where { grid-column: 1 / span 4; font-size: var(--text-sm); color: var(--color-muted); }
.sources__places { grid-column: 5 / -1; grid-row: 1 / span 2; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.key { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-md); border: 1px solid var(--color-rule); border-radius: var(--radius-pill); background: var(--color-paper-2); color: var(--color-ink); font-size: var(--text-sm); font-variant-numeric: tabular-nums; text-decoration: none; white-space: nowrap; transition: background-color var(--dur-short) var(--ease-out); }
.key:hover { background: var(--color-paper-3); }
.key:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* the register of sources: the place on the left, the source's own words on the right */
.register { margin: 0; border-top: 1px solid var(--color-ink); }
.register > div { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); align-items: baseline; padding-block: var(--space-lg); border-bottom: 1px solid var(--color-rule); scroll-margin-top: var(--space-3xl); }
.register > div:target { background: var(--color-accent-soft); box-shadow: 0 0 0 var(--space-md) var(--color-accent-soft); }
.register dt { grid-column: 1 / span 3; font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); font-variant-numeric: tabular-nums; }
.register dd { grid-column: 4 / -1; margin: 0; }
.register blockquote { margin: 0; }
.register blockquote p { max-width: 56ch; font-size: var(--text-lead); line-height: 1.6; color: var(--color-ink); }
.register__seen, .register__on { margin-top: var(--space-xs); font-size: var(--text-sm); color: var(--color-muted); max-width: 70ch; }

/* a few things side by side, each a title and a line */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--across, 3), minmax(0, 1fr)); gap: var(--gap-columns); }
.tiles > li { display: flex; flex-direction: column; justify-content: flex-end; min-height: 200px; padding: var(--space-lg); background: var(--color-paper-3); border-radius: var(--radius-card); }
.tiles h3 { font-size: var(--text-xl); }
.tiles p { margin-top: var(--space-xs); color: var(--color-ink-2); }
.tiles p a { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-muted); }

/* related pages: three across */
.more { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); }
.more > li { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 144px; padding: var(--space-lg); background: var(--color-paper-3); border-radius: var(--radius-card); transition: background-color var(--dur-short) var(--ease-out); }
.more > li:hover { background: color-mix(in oklab, var(--color-paper-3) 86%, var(--color-contour)); }
.more h3 { font-size: var(--text-xl); }
.more h3 a { color: var(--color-ink); text-decoration: none; }
.more h3 a::after { content: ""; position: absolute; inset: 0; }
.more h3 a:focus-visible { outline: none; }
.more > li:has(a:focus-visible) { outline: 2px solid var(--color-focus); outline-offset: 2px; }

.lost { padding-block: var(--section-gap) var(--space-2xl); }
.lost p { margin-top: var(--space-lg); font-size: var(--text-lead); }

/* ---- narrower screens ------------------------------------------------------------------------------------------- */
@media (max-width: 60rem) {
  :root { --row-h: 0px; }
  .hero__in { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-xl); min-height: 0; padding-block: var(--space-xl) var(--space-xl); }
  .hero .map { display: flex; flex-direction: column; }
  .hero .entry { position: static; width: auto; max-width: 24rem; margin-top: var(--space-lg); }
  .hero .m-under { display: inline; }
  .sec__head h2, .sec__head .lead { grid-column: 1 / -1; }
  .job--a, .job--b, .job--d { grid-column: span 6; }
  .job--a { grid-column: 1 / -1; }
  .job__pic--sheet { position: static; width: 100%; max-width: 21rem; margin: 0 0 var(--space-lg); }
  .job--a h3, .job--a p { max-width: none; }
  .rows > li, .glance > div, .steps > li, .ladder > li { padding-block: var(--space-lg); row-gap: var(--space-2xs); }
  .rows h3, .rows p, .glance dt, .glance dd, .steps .steps__h, .steps p:not([class]), .ladder .steps__h, .ladder p:not([class]), .row__ref { grid-column: 1 / -1; }
  .steps > li::before, .ladder > li::before { grid-column: 1 / -1; }
  .row__ref { justify-self: start; flex-direction: row; flex-wrap: wrap; gap: var(--space-2xs) var(--space-md); text-align: left; }
  .band h2, .band .lead { grid-column: 1 / -1; }
  .band__go { grid-column: 1 / -1; justify-self: start; }
  .close__letter, .close__links { grid-column: 1 / -1; }
  .head { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-xl); min-height: 0; padding-block: var(--space-xl); }
  .head__pic { max-width: 28rem; }
  .sources cite, .sources__where, .sources__places { grid-column: 1 / -1; grid-row: auto; }
  .register dt, .register dd { grid-column: 1 / -1; }
  .register dd { margin-top: var(--space-xs); }
  .sources__places { margin-top: var(--space-sm); }
  .more { grid-template-columns: minmax(0, 1fr); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles > li { min-height: 0; }
  .more > li { min-height: 0; }
}
@media (max-width: 40rem) {
  .bar__sheet { padding-inline: var(--space-md); }
  .bar nav { gap: 0 var(--space-sm); width: 100%; justify-content: space-between; }
  .wordmark { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-md); width: 100%; }
  .wordmark small { text-align: right; }
  .job--b, .job--d { grid-column: 1 / -1; }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .job { min-height: 0; }
  .job--a, .job--b { min-height: 340px; }
  .figures { grid-template-columns: minmax(0, 1fr); }
  .figures > div { padding: var(--space-md) 0; border-left: 0; border-top: 1px solid var(--color-ink); }
  .figures > div:first-child { border-top: 0; padding-top: 0; }
  .m-n { display: none; }
  .m-l { font-size: 22px; }
  .pin { gap: var(--space-2xs); }
  .pin span { min-height: 28px; padding: 0 var(--space-xs); font-size: var(--text-xs); }
  .plan th, .plan td { padding-right: var(--space-sm); }
  .close__links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
