/* Design tokens. Change colours/type here, not in components. */
/* Weathermath · Sounding ink (locked 2026-11-16). */

@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/fonts/IBMPlexSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/fonts/IBMPlexSans-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/IBMPlexMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --color-bg: #f2f5f8;
  --color-surface: #ffffff;
  --color-text: #162033;
  --color-muted: #556070;
  --color-border: #d3d9e2;
  --color-accent: #1f4c81;           /* Primary */
  --color-accent-contrast: #ffffff;
  --color-highlight: #9e5c20;        /* brass Accent */
  --color-warm: #b13c1a;
  --color-cold: #176a8a;
  --color-error: #b42318;           /* calculator error text; AA on bg and surface */

  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.25rem;
  --text-xl: 1.75rem;
  --text-2xl: 2.25rem;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.5rem;

  --radius: 0.5rem;
  --wrap: 68rem;
  --tap-min: 44px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #131820;
    --color-surface: #1c232c;
    --color-text: #e8eef4;
    --color-muted: #9aa6b4;
    --color-border: #2c3540;
    --color-accent: #8aadd6;
    --color-accent-contrast: #162033;
    --color-highlight: #e2a35a;
    --color-warm: #e88960;
    --color-cold: #7bb8d4;
    --color-error: #f97066;
  }
}
