@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inter-latin-400.v1.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/inter-latin-600.v1.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/inter-latin-700.v1.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-400.v1.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-600.v1.woff2") format("woff2");
}

:root {
  color-scheme: light;

  /* Surface ramp — derived from NodDrop Windows Light Mode */
  --bg-canvas: #f6f5f0;
  --bg-surface: #fbfbfc;
  --bg-card: #ffffff;
  --bg-card-subtle: #f4f7f5;
  --bg-sage-tint: #e8f5ef;
  --bg-sage-soft: #f2faf6;
  --bg-warm-tint: #f9ecdd;
  --bg-warm-soft: #fbf5ec;
  --bg-code: #f0f4f2;
  --bg-hover: #edf2ef;
  --bg-backdrop: rgba(24, 27, 32, 0.32);

  /* Crisp 1px hairline borders */
  --border-hairline: #d5e2dc;
  --border-strong: #b8cbc2;
  --border-warm: #e4d3be;
  --border-emerald: #8ebfa7;

  /* Typography colors — WCAG AA/AAA calibrated */
  --text-primary: #181b20;
  --text-secondary: #48505c;
  --text-muted: #656e7b;
  --text-inverse: #ffffff;
  --text-emerald-deep: #124d30;

  /* Brand & semantic accents — restrained workstation palette */
  --accent-emerald: #1a6e45;
  --accent-emerald-hover: #145937;
  --accent-emerald-soft: #d6eee2;
  --accent-emerald-soft-hover: #c3e5d4;
  --accent-nod: #24577e;
  --accent-nod-hover: #1c4666;
  --accent-nod-soft: #e6eff6;
  --focus-ring: #24577e;

  --status-amber: #8a5b0f;
  --status-amber-bg: #fdf0d5;
  --status-amber-border: #e7c98d;
  --status-danger: #9e2a2a;
  --status-danger-bg: #fce8e8;

  /* Shadows — minimal, crisp elevation only on real window frames */
  --shadow-card: 0 1px 2px rgba(24, 38, 31, 0.05);
  --shadow-frame: 0 12px 32px rgba(24, 38, 31, 0.1), 0 2px 6px rgba(24, 38, 31, 0.06);

  /* Typography scale */
  --font-sans: "Segoe UI Variable Text", "Segoe UI", "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "Cascadia Mono", "JetBrains Mono", Consolas, monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.0625rem;
  --text-lg: 1.1875rem;
  --text-xl: 1.375rem;
  --text-2xl: clamp(1.5rem, 2.5vw, 2rem);
  --text-hero: clamp(2rem, 4.1vw, 3.125rem);

  /* Spacing & Layout */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  --container-max: 1200px;
  --container-prose: 780px;
  --header-height: 60px;

  /* Radii — disciplined desktop geometry */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;

  /* Motion */
  --motion-fast: 120ms ease;
}
