/*
 * Design tokens: every color, font, size and spacing value the site uses.
 * Restyle the site by editing this file. Placeholder values until Megan's design.
 * Semantic tints mirror TechMate/Theme.cs (foreground + background, light and dark).
 */
:root {
  color-scheme: light dark;

  /* Fonts */
  --font-text: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Type scale */
  --size-body: 1rem;
  --size-small: 0.875rem;
  --size-h1: clamp(2rem, 5vw, 3rem);
  --size-h2: 1.5rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.5rem;
  --space-6: 4rem;

  /* Shape */
  --radius: 6px;
  --content-width: 72rem;

  /* Surfaces and text (light) */
  --color-page: rgb(250, 250, 250);
  --color-surface: rgb(255, 255, 255);
  --color-text: rgb(28, 28, 28);
  --color-text-muted: rgb(96, 96, 96);
  --color-border: rgb(222, 222, 222);

  /* Brand / action (placeholder: TechMate Info tint) */
  --color-accent: rgb(0, 95, 184);
  --color-accent-text: rgb(255, 255, 255);

  /* Semantic tints (light): fg on bg */
  --tint-neutral-fg: rgb(72, 72, 74);    --tint-neutral-bg: rgb(238, 238, 238);
  --tint-info-fg: rgb(0, 95, 184);       --tint-info-bg: rgb(239, 246, 252);
  --tint-positive-fg: rgb(24, 116, 55);  --tint-positive-bg: rgb(231, 246, 235);
  --tint-warning-fg: rgb(146, 84, 0);    --tint-warning-bg: rgb(255, 244, 206);
  --tint-critical-fg: rgb(196, 43, 28);  --tint-critical-bg: rgb(253, 231, 233);
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-page: rgb(24, 24, 26);
    --color-surface: rgb(36, 36, 38);
    --color-text: rgb(238, 238, 238);
    --color-text-muted: rgb(176, 176, 176);
    --color-border: rgb(64, 64, 66);

    --color-accent: rgb(150, 200, 245);
    --color-accent-text: rgb(20, 20, 22);

    --tint-neutral-fg: rgb(196, 196, 196); --tint-neutral-bg: rgb(52, 52, 54);
    --tint-info-fg: rgb(150, 200, 245);    --tint-info-bg: rgb(26, 42, 58);
    --tint-positive-fg: rgb(138, 214, 158); --tint-positive-bg: rgb(24, 46, 31);
    --tint-warning-fg: rgb(250, 222, 143); --tint-warning-bg: rgb(60, 51, 26);
    --tint-critical-fg: rgb(255, 153, 164); --tint-critical-bg: rgb(68, 25, 29);
  }
}
