@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-Medium.woff2") format("woff2");
  font-weight: 500;
  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;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/IBMPlexMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/fonts/SourceSerif4-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/fonts/SourceSerif4-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Marca Hemoba — vinho institucional */
  --brand-900: #3d0c16;
  --brand-800: #56101d;
  --brand-700: #6f1526;
  --brand-600: #8a1c31;
  --brand-500: #a52840;
  --brand-100: #f3e6e9;
  --brand-50: #faf5f6;

  /* Neutros quentes, papel clínico */
  --ink-900: #1a1617;
  --ink-700: #3a3335;
  --ink-500: #6a6163;
  --ink-400: #8a8183;
  --line: #e8e1e2;
  --line-strong: #d0c7c9;
  --surface: #ffffff;
  --surface-2: #f7f3f3;
  --canvas: #efeaea;

  /* Semânticas — sóbrias */
  --ok: #1a6b45;
  --ok-bg: #e8f5ee;
  --warn: #8f5200;
  --warn-bg: #faf0de;
  --danger: #a8211e;
  --danger-bg: #f9e6e4;
  --info: #1a557a;
  --info-bg: #e6eef5;

  /* Tipografia */
  --font-sans: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-md: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.375rem;
  --fs-2xl: 1.875rem;
  --fs-3xl: 2.5rem;

  /* Espaçamento (base 4) */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-8: 3rem;

  /* Raio: institucional, não “app fofo” */
  --r-sm: 3px;
  --r-md: 5px;
  --r-lg: 8px;
  --shadow-1: 0 1px 2px rgba(26, 22, 23, 0.04);
  --shadow-2: 0 8px 28px rgba(26, 22, 23, 0.07);
  --focus: 0 0 0 3px rgba(138, 28, 49, 0.32);

  /* Layout */
  --sidebar-w: 260px;
  --topbar-h: 58px;
  --content-max: 1180px;

  /* Gráfico — daltônico-seguro */
  --chart-1: #3d0c16;
  --chart-2: #8a1c31;
  --chart-3: #1a557a;
  --chart-4: #1a6b45;
  --chart-5: #8f5200;
  --chart-6: #4f4375;
  --chart-7: #0d6363;
  --chart-8: #6a6163;

  /* Motion — curto e com propósito */
  --motion: 180ms cubic-bezier(0.22, 1, 0.36, 1);
  --motion-fast: 150ms cubic-bezier(0.22, 1, 0.36, 1);
  --z-sticky: 20;
  --z-sidebar: 30;
  --z-modal: 50;
  --z-toast: 60;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --motion: 0ms;
  }
}
