/* Kellet Line holding page. No inline styles anywhere: the CSP allows this file only. The same ledger look
   as the full site (site/templates/assets/site.css): paper, ink rules, labelled sections, one indigo band,
   madder only for the seal mark. Text contrast, light / dark: ink 17.4, indigo 12.6, muted 6.9 / 9.1,
   footer 12.6 / 14.5 (WCAG AA is 4.5). No fonts, images or other hosts. */
:root {
  --paper: #f9f8ed; --ink: #141313; --muted: #5a564c; --brand: #203040; --seal: #b4180c;
  --band: #203040; --band-ink: #f9f8ed; --band-muted: #a0b0c0;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --measure: 46rem; --label: 13rem; --gutter: clamp(1rem, 4vw, 2.5rem); --section: clamp(2.5rem, 5.5vw, 4.25rem);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #141313; --ink: #f9f8ed; --muted: #b9b6a8; --brand: #a0b0c0; --seal: #f04010; --band: #1b2533; --band-muted: #b9b6a8; }
}
* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink);
       font: 1.0625rem/1.65 var(--sans); overflow-wrap: break-word; }
header.site div, main, footer.site div { width: 100%; max-width: calc(var(--label) + var(--measure) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--brand); text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
header.site { border-bottom: 1px solid var(--ink); }
.brand { display: inline-flex; align-items: center; min-height: 3.75rem; font: 700 .95rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; }
.brand::before { content: ""; width: .75rem; height: .75rem; margin-right: .7rem; background: var(--seal); }
main { flex: 1 0 auto; padding-block: clamp(2.25rem, 7vw, 5rem) var(--section); counter-reset: section; }
h1 { font: 700 clamp(2.1rem, 1.1rem + 4.2vw, 4.75rem)/1 var(--sans); letter-spacing: -.03em; text-transform: uppercase;
     color: var(--brand); margin: 0 0 clamp(1.25rem, 3vw, 2rem); max-width: 18ch; text-wrap: balance; }
.lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.5; color: var(--muted); }
h2 { counter-increment: section; font: 600 .8rem/1.35 var(--sans); letter-spacing: .14em; text-transform: uppercase;
     margin: var(--section) 0 1rem; padding-top: 1rem; border-top: 1px solid var(--ink); }
h2::before { content: counter(section, decimal-leading-zero); content: counter(section, decimal-leading-zero) / "";
             display: block; margin-bottom: .4rem; font: 500 .75rem/1 var(--mono); color: var(--muted); }
p, ul { margin: 0 0 1rem; max-width: var(--measure); }
ul { padding-left: 1.25rem; }
li { margin: .35rem 0; }
@media (min-width: 60rem) {
  main { display: grid; grid-template-columns: var(--label) minmax(0, var(--measure)); align-content: start; }
  main > * { grid-column: 2; min-width: 0; }
  main > h1, main > h1 ~ :not(h2, h2 ~ *) { grid-column: 1 / -1; }
  main > h2 { grid-column: 1; padding-right: 1.5rem; margin-bottom: 0; }
  main > h2 + * { margin-top: var(--section); padding-top: 1rem; border-top: 1px solid var(--ink); }
}
code, pre { font-family: var(--mono); font-size: .88em; }
pre { border: 1px solid var(--ink); padding: .9rem 1rem; overflow-x: auto; }
footer.site { background: var(--band); color: var(--band-muted); font-size: .85rem; padding-block: clamp(1.75rem, 5vw, 3rem); }
footer.site a { color: var(--band-ink); }
footer.site p { margin: .4rem 0; }
@media print {
  :root { --paper: #fff; --ink: #000; --muted: #333; --brand: #000; --band: #fff; --band-ink: #000; --band-muted: #000; }
  main { display: block; }
}
