/* Custom properties — the canonical source mirrors reference/design-tokens.md.
   Where this file diverges from that document, the divergence is the agreed
   correction (e.g., 25/50/25 column proportions). */

:root {
  /* Background */
  --color-bg: #fffff8;

  /* Text — opacity scale on background */
  --color-text:           rgba(0, 0, 0, 0.85);
  --color-text-secondary: rgba(0, 0, 0, 0.75);
  --color-text-tertiary:  rgba(0, 0, 0, 0.6);
  --color-text-muted:     rgba(0, 0, 0, 0.4);
  --color-text-faint:     rgba(0, 0, 0, 0.25);
  --color-text-ghost:     rgba(0, 0, 0, 0.15);

  /* Lines and rules */
  --color-rule:        rgba(0, 0, 0, 0.14);
  --color-border-soft: rgba(0, 0, 0, 0.2);

  /* Link states */
  --color-link:           rgba(0, 0, 0, 0.85);
  --color-link-underline: rgba(0, 0, 0, 0.25);
  --color-link-active:    rgba(0, 0, 0, 0.4);

  /* Font families — fallbacks chosen so the page still renders if a .woff2
     fails to load. */
  --font-display: "Geist", "Inter", system-ui, -apple-system, sans-serif;
  --font-mono:    "Chivo Mono", ui-monospace, "Courier New", monospace;

  /* Vertical rhythm */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2.5rem;
  --space-2xl: 4rem;

  /* Layout */
  --col-padding: 1rem;          /* matches K384 .page-content padding */
  --col-divider: 1px solid var(--color-text-ghost);
}
