/* Hallmark · genre: editorial · shape: Index-First · draw da794a · theme: Almanac (dealt 1/3) · posture: restrained · hero: counter · job: learn · nav: search-led bar · footer: statement · signature: an illustrated ladder setup beside a printable pre-use checklist */
/* Hallmark · critique: the generic field-guide risk is solved with a real inspection photo, an original setup diagram and an index that carries the useful content. */
/* Hallmark · pre-emit critique: P5 H4 E4 S5 R4 V5 · weakest: execution, the photo crop could compete with the checklist; kept the frame narrow and diagram subordinate. */
: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(84% 0.012 245); --color-paper-2: oklch(81% 0.012 245); --color-paper-3: oklch(77% 0.012 245);
  --color-ink: oklch(16% 0.020 245); --color-ink-2: oklch(24% 0.018 245); --color-muted: oklch(38% 0.016 245);
  --color-rule: oklch(73% 0.013 240); --color-rule-2: oklch(32% 0.018 240);
  --color-accent: oklch(45% 0.180 350); --color-accent-2: oklch(37% 0.160 350); --color-accent-ink: oklch(97% 0.006 245); --color-focus: oklch(46% 0.190 350);
  --color-sheet: oklch(93.5% 0.008 245);
  --font-display: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Newsreader", ui-serif, Georgia, serif;
  --font-outlier: "IBM Plex Mono", ui-monospace, monospace;
  --radius-card: 0; --radius-pill: 2px; --rule-hair: 1px; --rule-bar: 2px; --shadow-card: none;
  --tracking-display: -0.02em; --display-weight: 600;
}


:root { --container: 1200px; --gutter: 56px; --gap-columns: 34px; --section-gap-s: 80px;
  --color-paper: oklch(94% 0.008 245); --color-paper-2: oklch(90% 0.009 245); --color-paper-3: oklch(86% 0.011 245);
  --color-ink: oklch(19% 0.020 245); --color-ink-2: oklch(28% 0.019 245); --color-muted: oklch(43% 0.016 245);
  --color-rule: oklch(77% 0.012 245); --color-rule-2: oklch(36% 0.016 245);
  --color-accent: oklch(47% 0.17 350); --color-accent-2: oklch(39% 0.15 350); --color-accent-ink: oklch(97% 0.006 245); --color-focus: oklch(43% 0.18 350); --color-sheet: oklch(97% 0.006 245);
  --font-display: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif; --font-body: "Newsreader", ui-serif, Georgia, serif; --font-outlier: "IBM Plex Mono", ui-monospace, monospace;
}

*, *::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: pretty; }
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: var(--space-md); } }
@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: muted */
[data-slot] > img { filter: saturate(0.65) contrast(0.97); }

h1,h2,h3 { text-wrap: pretty; }
html,body { overflow-x: clip; }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
body { font-size: 17px; }
.skip { position: absolute; left: 1rem; top: -5rem; z-index: 20; padding: .8rem var(--space-md); color: var(--color-accent-ink); background: var(--color-ink); }
.skip:focus { top: 1rem; }
.head { border-bottom: 1px solid var(--color-rule); }
.head-inner { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; font: 650 1.1rem/1.05 var(--font-display); letter-spacing: -.02em; }
.brand-mark { width: 42px; height: 42px; flex: 0 0 auto; }
.brand span small { display: block; margin-top: .3rem; color: var(--color-muted); font: 400 .8rem/1.2 var(--font-body); letter-spacing: 0; }
.nav { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.nav a { font: 500 .88rem/1.3 var(--font-display); }
.nav a[aria-current="page"] { text-decoration-thickness: 2px; text-decoration-color: var(--color-accent); }
.search { display: flex; gap: var(--space-2xs); align-items: center; border-bottom: 1px solid var(--color-ink); }
.search input { min-height: 42px; width: 154px; padding: .35rem var(--space-xs); border: 0; background: transparent; color: var(--color-ink); }
.search button { min-height: 42px; padding: .35rem .55rem; border: 0; color: var(--color-ink); background: transparent; cursor: pointer; }
.hero { min-height: min(760px, calc(100svh - 92px)); display: grid; grid-template-columns: minmax(0, .96fr) minmax(300px, 1.04fr); gap: var(--gap-columns); align-items: center; padding-block: 3.5rem; border-bottom: 1px solid var(--color-rule-2); }
.hero-copy { max-width: 560px; }
.hero h1 { max-width: 9ch; font-size: clamp(3.5rem, 7.1vw, 7rem); line-height: .91; margin: var(--space-md) 0 var(--space-lg); }
.hero .lead { max-width: 40ch; font-size: clamp(1.2rem, 1.8vw, 1.5rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md); margin-top: 2rem; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: .7rem var(--space-md); background: var(--color-ink); color: var(--color-paper); text-decoration: none; font: 650 .9rem/1.2 var(--font-display); border: 1px solid var(--color-ink); }
.button:hover { background: var(--color-accent); border-color: var(--color-accent); }
.button:active,.search button:active { transform: translateY(1px); }
.button:disabled,.search button:disabled { opacity: .55; cursor: not-allowed; }
.button { white-space: nowrap; }
.hero-secondary { font: 550 .9rem/1.3 var(--font-display); }
.hero-art { display: grid; grid-template-columns: minmax(0, 1fr) minmax(110px, .33fr); gap: var(--space-md); align-items: end; }
.hero-photo { margin: 0; min-width: 0; }
.photo-frame { border: 1px solid var(--color-ink); padding: .4rem; background: var(--color-sheet); }
.hero-photo img { width: 100%; height: 420px; object-fit: cover; object-position: 50% 18%; filter: saturate(.64) contrast(1.03); }
.hero-photo figcaption { max-width: 38ch; padding-top: .6rem; color: var(--color-muted); font: 400 .78rem/1.45 var(--font-body); }
.diagram-plate { padding: .65rem; border-left: 2px solid var(--color-accent); background: var(--color-paper-2); }
.diagram-plate svg { width: 100%; height: auto; }
.diagram-plate p { margin-top: .6rem; color: var(--color-muted); font: 400 .76rem/1.4 var(--font-body); }
.fileline { display: flex; justify-content: space-between; gap: var(--space-md); align-items: baseline; padding: .55rem 0; border-bottom: 1px solid var(--color-rule); font: 500 .75rem/1.4 var(--font-outlier); color: var(--color-muted); }
.section { padding-block: var(--section-gap-s); border-bottom: 1px solid var(--color-rule); }
.section-title { display: grid; grid-template-columns: minmax(0, .45fr) minmax(0, 1fr); gap: var(--gap-columns); align-items: end; margin-bottom: 1.7rem; }
.section-title p { max-width: 50ch; color: var(--color-muted); }
.index { border-top: 1px solid var(--color-ink); }
.index-row { display: grid; grid-template-columns: 44px minmax(0, .78fr) minmax(0, 1.22fr) 22px; gap: var(--space-md); align-items: baseline; padding: 1.1rem .35rem; border-bottom: 1px solid var(--color-rule); color: inherit; text-decoration: none; }
.index-row:hover { background: var(--color-paper-2); }
.index-row .no { color: var(--color-accent-2); font: 500 .78rem/1.4 var(--font-outlier); }
.index-row strong { font: 600 1.2rem/1.18 var(--font-display); }
.index-row small { color: var(--color-muted); font: 400 1rem/1.4 var(--font-body); }
.index-row .mark { color: var(--color-accent); font: 500 1.4rem/1 var(--font-display); }
.bento { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1px; border: 1px solid var(--color-rule); background: var(--color-rule); }
.bento-main,.bento-entry { display: block; padding: 1.3rem; background: var(--color-paper-2); color: inherit; text-decoration: none; }
.bento-main { grid-row: span 2; min-height: 220px; }
.bento-main strong,.bento-entry strong { display: block; font: 650 1.25rem/1.2 var(--font-display); }
.bento-main p,.bento-entry p { margin-top: .7rem; max-width: 53ch; }
.bento a:hover { background: var(--color-sheet); }
.diagram-section { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: var(--gap-columns); align-items: center; }
.diagram-section h2 { font-size: clamp(2rem, 4vw, 3.7rem); }
.diagram-large { padding: var(--space-md); border: 1px solid var(--color-rule); background: var(--color-sheet); }
.diagram-large svg { width: 100%; }
.news-list { border-top: 1px solid var(--color-ink); }
.news-row { display: grid; grid-template-columns: 170px minmax(0,1fr) 165px; gap: var(--space-md); padding: var(--space-md) var(--space-2xs); border-bottom: 1px solid var(--color-rule); }
.news-row time,.news-row .publisher { color: var(--color-muted); font: 450 .76rem/1.5 var(--font-outlier); }
.news-row h2 { font-size: 1.2rem; margin-bottom: .45rem; }
.news-row p { max-width: 65ch; }
.news-row .publisher { align-self: end; text-align: right; }
.page-head { padding-block: var(--space-2xl) 2rem; border-bottom: 1px solid var(--color-rule-2); }
.page-head h1 { max-width: 14ch; margin: .8rem 0 var(--space-md); font-size: clamp(3rem, 6vw, 6rem); }
.page-head p { max-width: 62ch; font-size: 1.2rem; }
.reading { max-width: 1110px; display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: var(--gap-columns); margin: 0 auto; padding: 3rem 2rem 5rem; }
.reading aside { align-self: start; position: sticky; top: 1rem; border-top: 2px solid var(--color-accent); padding-top: var(--space-sm); }
.reading aside h2 { font: 650 .82rem/1.3 var(--font-display); letter-spacing: .01em; }
.reading aside ul { list-style: none; padding: 0; margin: .8rem 0; }
.reading aside li { margin: .55rem 0; font: 400 .86rem/1.35 var(--font-body); }
.reading article { min-width: 0; max-width: 70ch; }
.reading article h1 { max-width: 17ch; margin: .6rem 0 1.4rem; font-size: clamp(2.7rem, 5vw, 4.8rem); }
.reading article h2 { margin: 2.8rem 0 .7rem; padding-top: .6rem; border-top: 1px solid var(--color-rule); font-size: clamp(1.65rem, 3.2vw, 2.5rem); }
.reading article h3 { margin: 1.8rem 0 var(--space-xs); font-size: 1.3rem; }
.reading article p { margin: .9rem 0; max-width: 68ch; }
.reading article p:first-of-type { font-size: 1.16rem; line-height: 1.65; }
.reading article li { margin: .55rem 0; padding-left: var(--space-2xs); max-width: 65ch; }
.reading article ul,.reading article ol { padding-left: 1.25rem; }
.note { border-left: 2px solid var(--color-accent); padding: var(--space-md) 1.2rem; margin: var(--space-lg) 0; background: var(--color-paper-2); }
.related { margin-top: 3rem; border-top: 2px solid var(--color-ink); padding-top: var(--space-md); }
.related h2 { border: 0 !important; margin: .2rem 0 var(--space-md) !important; padding: 0 !important; }
.related ul { columns: 2; }
.term-list { display: grid; grid-template-columns: minmax(0, .42fr) minmax(0,1fr); border-top: 1px solid var(--color-ink); }
.term-list dt,.term-list dd { margin: 0; padding: .8rem var(--space-2xs); border-bottom: 1px solid var(--color-rule); }
.term-list dt { font: 650 1.02rem/1.35 var(--font-display); }
.term-list dd { max-width: 68ch; }
.source-list { border-top: 1px solid var(--color-ink); }
.source { display: grid; grid-template-columns: 200px minmax(0,1fr); gap: 1.25rem; padding: 1.2rem var(--space-2xs); border-bottom: 1px solid var(--color-rule); }
.source-type { color: var(--color-muted); font: 450 .75rem/1.45 var(--font-outlier); }
.source h2 { font-size: 1.24rem; margin-bottom: .4rem; }
.source p + p { margin-top: .55rem; }
.source a { font-weight: 600; }
.checklist { border-top: 1px solid var(--color-ink); }
.check { display: grid; grid-template-columns: 28px minmax(0,1fr); gap: var(--gap-columns); align-items: start; padding: .8rem .15rem; border-bottom: 1px solid var(--color-rule); }
.check span:first-child { width: 20px; height: 20px; border: 1px solid var(--color-ink); }
.check p { max-width: 64ch; }
.privacy-copy { max-width: 68ch; padding-block: var(--space-xl) 5rem; }
.privacy-copy h2 { margin: 2.2rem 0 .7rem; font-size: 1.6rem; }
.foot { padding-block: 3rem; background: var(--color-ink); color: var(--color-paper); }
.foot-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(250px,.7fr); gap: var(--gap-columns); }
.foot p + p { margin-top: .55rem; }
.foot a { color: var(--color-paper); }
.foot .muted { color: var(--color-paper-2); }
.home-link { padding-block: var(--space-lg) 3.5rem; }
.folio { color: var(--color-muted); font: 450 .75rem/1.4 var(--font-outlier); }
.search-status { min-height: 1lh; color: var(--color-muted); }
@media (max-width: 850px) { :root { --gutter: 24px; --section-gap-s: 56px; }
  .head-inner { align-items: flex-start; flex-direction: column; padding-block: 1.1rem; }
  .nav { width: 100%; gap: .65rem var(--space-md); }
  .search { margin-left: auto; }
  .hero { min-height: 0; grid-template-columns: 1fr; padding-block: 2.6rem; }
  .hero-art { max-width: 680px; }
  .hero-photo img { height: min(76vw, 420px); }
  .section-title { grid-template-columns: 1fr; gap: var(--space-sm); }
  .diagram-section { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento-main { grid-row: auto; min-height: 0; }
  .index-row { grid-template-columns: 36px minmax(0,1fr) 22px; }
  .index-row small { grid-column: 2; }
  .index-row .mark { grid-column: 3; grid-row: 1; }
  .news-row { grid-template-columns: 130px minmax(0,1fr); }
  .news-row .publisher { grid-column: 2; text-align: left; }
  .reading { grid-template-columns: 1fr; gap: var(--space-lg); padding: 2rem var(--space-lg) 3.5rem; }
  .reading aside { position: static; }
  .reading aside ul { columns: 2; }
}
@media (max-width: 520px) { :root { --gutter: 16px; }
  .hero-art { grid-template-columns: minmax(0, 1fr) 100px; gap: .55rem; }
  .hero-photo img { height: 330px; }
  .fileline { align-items: flex-start; flex-direction: column; gap: .1rem; }
  .index-row { gap: var(--space-xs); padding-block: .9rem; }
  .index-row strong { font-size: 1.04rem; }
  .news-row { grid-template-columns: 1fr; gap: .4rem; }
  .news-row .publisher { grid-column: 1; }
  .reading { padding-inline: var(--space-md); }
  .reading aside ul { columns: 1; }
  .related ul { columns: 1; }
  .term-list,.source { grid-template-columns: 1fr; gap: .2rem; }
  .term-list dt { padding-bottom: .1rem; border-bottom: 0; }
  .term-list dd { padding-top: 0; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media print { .head,.foot,.hero-actions,.home-link { display: none; } body { background: var(--color-paper); color: var(--color-ink); } .container { max-width: none; padding: 0; } }
