/* Kinholder's design tokens: the one place a colour, a font stack or a type size is written
   down. Custom properties only, so linking or inlining this file changes nothing on its own.
   docs/brand.md says what each token is for and which pairs have been measured for contrast. */
:root {
  --kh-color-bg: #f7f4ee;
  --kh-color-surface: #fffdf9;
  --kh-color-text: #1f2a2e;
  --kh-color-muted: #566064;
  --kh-color-rule: #d9d2c4;
  --kh-color-border: #7b8481;
  --kh-color-accent: #2f5d50;
  --kh-color-accent-hover: #234a3f;
  --kh-color-on-accent: #ffffff;
  --kh-color-focus: #1c5d99;
  --kh-color-success: #2f6b2a;
  --kh-color-warning: #855000;
  --kh-color-danger: #a3261f;

  /* Literata comes from fonts.css; the names after it are what a visitor sees until it loads.
     Display is its cut for h1 and h2; everything smaller is set in serif. */
  --kh-font-serif: "Literata", Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --kh-font-display: "Literata 36pt", "Literata", Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --kh-font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Sizes are in rem. The public site sets its root to 112.5% (18px), the app leaves it at
     100% (16px), so small is 16px on the site; the app uses it only for the footer's small print. */
  --kh-size-small: 0.889rem;
  --kh-size-body: 1rem;
  --kh-size-lead: 1.25rem;
  --kh-size-h3: 1.25rem;
  --kh-size-h2: 1.563rem;
  --kh-size-h1: 2.441rem;
  --kh-leading-body: 1.6;
  --kh-leading-heading: 1.15;
  --kh-measure: 34rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --kh-color-bg: #161b1d;
    --kh-color-surface: #1f2629;
    --kh-color-text: #e9e5dc;
    --kh-color-muted: #a3acaf;
    --kh-color-rule: #2e3538;
    --kh-color-border: #77838a;
    --kh-color-accent: #8cc2b0;
    --kh-color-accent-hover: #abd7c8;
    --kh-color-on-accent: #10201b;
    --kh-color-focus: #8ab8f0;
    --kh-color-success: #8fd18a;
    --kh-color-warning: #e6b450;
    --kh-color-danger: #f2938c;
  }
}
