:root {
  --kh-ink: #121212;
  --kh-paper: #e4e2dd;
  --kh-card: #f3f2ee;
  --kh-signal: #c92516;
  --kh-muted: #5c5a55;
  --kh-line: #2a2925;
  --kh-soft: #9a968c;
  --kh-on-ink: #f3f2ee;
  --kh-rule: #c9c6bf;
  --kh-step: 120ms;
  --kh-ease: cubic-bezier(.2, 0, 0, 1);
  --kh-display: 'Big Shoulders Display', 'Arial Narrow', Impact, sans-serif;
  --kh-sans: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
}
html { scroll-padding-top: 72px; }
/* The body takes the darkest band so no light canvas shows past the footer; every light band sets its own ground. */
body { font-family: var(--kh-sans); color: var(--kh-ink); line-height: 1.5; font-size: 17px; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--kh-ink); outline-offset: 3px; }
.kh-nav :focus-visible, .kh-footer :focus-visible, .kh-cookie :focus-visible { outline-color: #fff; }

/* Nav: the same ink bar as the home page. */

/* Intro: the quote page's short paper band, with the headline, one line on what the page covers and its date. */
.kh-intro { background: var(--kh-paper); padding: 72px 0 32px; }
.kh-intro h1 { font-size: clamp(3rem, 8vw, 6.6rem); max-width: 14ch; }
.kh-intro-lead { margin: 20px 0 0; max-width: 60ch; font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.4; }
.kh-date { margin: 18px 0 0; color: var(--kh-muted); font-weight: 600; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }

/* Load sequence: the intro's lines rise in order, as on the quote page. */
@keyframes kh-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.kh-seq > * { opacity: 0; animation: kh-rise 520ms var(--kh-ease) forwards; animation-delay: calc(300ms + var(--i, 0) * var(--kh-step)); }

/* Scroll reveals: hidden only once the head script marks the page kh-js, so the content shows with JavaScript off. */
.kh-js .kh-reveal { opacity: 0; transform: translateY(18px); transition: opacity 560ms var(--kh-ease), transform 560ms var(--kh-ease); }
.kh-js .kh-fade { opacity: 0; transition: opacity 560ms ease-out; }
.kh-js .kh-reveal.kh-in, .kh-js .kh-fade.kh-in { opacity: 1; transform: none; }
/* With JavaScript off, photos held back by the loader show their noscript copy and the placeholder hides. */
html:not(.kh-js) img[data-srcset] { display: none !important; }

/* Shared band parts. */
.kh-link { font-weight: 600; color: inherit; text-decoration: underline; text-decoration-color: var(--kh-signal); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* The text: one column at a 70 character measure on paper, an h2 per section. */
.kh-legal { background: var(--kh-paper); padding: 8px 0 96px; }
.kh-doc { max-width: 62ch; }
.kh-doc h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin: 56px 0 16px; }
.kh-doc h3 { font-family: var(--kh-sans); text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 1.15rem; line-height: 1.3; margin: 28px 0 10px; }
.kh-doc p, .kh-doc ul { margin: 0 0 14px; }
.kh-doc ul { padding-left: 1.2em; }
.kh-doc li { margin: 0 0 8px; }
.kh-doc li::marker { color: var(--kh-signal); }
.kh-doc blockquote { margin: 0 0 14px; padding: 12px 16px; background: var(--kh-card); border-left: 4px solid var(--kh-rule); }
.kh-doc blockquote p { margin: 0; }
.kh-note { margin: 0 0 8px !important; padding: 16px 18px; background: var(--kh-card); border-left: 4px solid var(--kh-signal); font-weight: 600; }
.kh-toc { margin: 0 0 32px; padding: 16px 0 12px; border-top: 1px solid var(--kh-rule); border-bottom: 1px solid var(--kh-rule); }
.kh-toc p { margin: 0 0 4px; color: var(--kh-muted); font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.kh-toc ol { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; }
.kh-toc a { display: inline-flex; align-items: center; min-height: 44px; }
.kh-address { margin: 0 0 14px; font-style: normal; line-height: 1.7; }
.kh-foot-grid p, .kh-foot-grid ul { margin: 0; }
.kh-foot-list a { display: inline-flex; align-items: center; min-height: 32px; color: #e4e1da; text-decoration: none; }
.kh-foot-bottom a, .kh-foot-bottom button { color: var(--kh-soft); text-decoration: none; font: inherit; display: inline-flex; align-items: center; min-height: 28px; }
@media (max-width: 900px) {
  .kh-foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .kh-js .kh-nav-links a { min-height: 52px; padding: 0; border-top: 1px solid var(--kh-line); font-size: 17px; }
  .kh-intro { padding: 40px 0 24px; }
  .kh-intro h1 { font-size: clamp(2.6rem, 13vw, 4rem); }
  .kh-legal { padding-bottom: 64px; }
  .kh-doc h2 { margin-top: 44px; }
  .kh-toc ol { columns: 1; }
}
/* Between the phone menu and the full bar, the nav drops its quote button; the hero and the closing band carry it. */

/* Reduced motion stays last so it wins every cascade. */
@media (prefers-reduced-motion: reduce) {
  .kh-nav-links a { transition: none; }
  .kh-seq > * { animation: none; opacity: 1; }
  .kh-btn { transition: none; }
  .kh-btn:hover { transform: none; }
}
