/* Escala 5x2 · tokens de design: cores, tipografia, espaçamento, raios e sombras.
   Tudo que muda entre tema claro e escuro está aqui. Os demais arquivos só usam as variáveis. */
:root {
  color-scheme: light;

  /* tipografia */
  --font-ui: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Bricolage Grotesque', 'Instrument Sans', system-ui, sans-serif;
  --fs-1: 0.75rem;
  --fs-2: 0.8125rem;
  --fs-3: 0.9375rem;
  --fs-4: 1.0625rem;
  --fs-5: 1.375rem;
  --fs-6: 2rem;

  /* espaçamento (múltiplos de 4) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;

  /* forma */
  --r-1: 6px;
  --r-2: 10px;
  --r-3: 14px;

  /* superfícies e texto: papel com um tom leve de laranja, como a identidade da empresa */
  --paper: #fff7f0;
  --surface: #ffffff;
  --surface-2: #fff1e6;
  --surface-3: #ffe3cf;
  --line: #f2dccb;
  --line-strong: #e5c3a8;
  --ink: #2a1c12;
  --ink-2: #5b4433;
  --ink-3: #85694f;

  /* identidade: laranja da empresa */
  --brand: #d95300;
  --brand-ink: #ffffff;
  --brand-soft: #ffe9d9;
  --topbar-bg: linear-gradient(135deg, #fff7ed, #ffedd5);
  --topbar-line: #fed7aa;
  --switch-on: #d95300;

  /* estados da escala */
  --off: #ff7a29;
  --off-ink: #ffffff;
  --bh: #facc15;
  --bh-ink: #352a00;
  --weekend: #6b7280;
  --weekend-ink: #ffffff;
  --sunday: #e5e7eb;

  /* semântica */
  --ok: #17794d;
  --ok-soft: #dff3e8;
  --bad: #b3261e;
  --bad-soft: #fde7e4;
  --warn: #8a5a00;
  --warn-soft: #fff0cc;

  --primary: #d95300;
  --primary-ink: #ffffff;
  --focus: #2563eb;

  --shadow-2: 0 14px 40px rgba(122, 60, 12, 0.22);
  --shadow-1: 0 1px 2px rgba(122, 60, 12, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0d131a;
    --surface: #151d26;
    --surface-2: #1b2530;
    --surface-3: #243140;
    --line: #2a3745;
    --line-strong: #3a4a5b;
    --ink: #e8eef3;
    --ink-2: #b3bfcb;
    --ink-3: #8595a5;
    --brand: #ff7a2e;
    --brand-soft: #3a2111;
    --off: #e8590c;
    --off-ink: #ffffff;
    --bh: #d9a90b;
    --bh-ink: #1d1600;
    --weekend: #2c3947;
    --weekend-ink: #dce4ec;
    --sunday: #19232e;
    --ok: #5fd391;
    --ok-soft: #12372a;
    --bad: #ff8f85;
    --bad-soft: #3d1d1a;
    --warn: #f2c36b;
    --warn-soft: #3a2a0c;
    --primary: #e8eef3;
    --primary-ink: #0d131a;
    --topbar-bg: #151d26;
    --topbar-line: #2a3745;
    --switch-on: #ff7a29;
    --focus: #7aa7ff;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-2: 0 10px 30px rgba(0, 0, 0, 0.5);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0d131a;
  --surface: #151d26;
  --surface-2: #1b2530;
  --surface-3: #243140;
  --line: #2a3745;
  --line-strong: #3a4a5b;
  --ink: #e8eef3;
  --ink-2: #b3bfcb;
  --ink-3: #8595a5;
  --brand: #ff7a2e;
  --brand-soft: #3a2111;
  --off: #e8590c;
  --off-ink: #ffffff;
  --bh: #d9a90b;
  --bh-ink: #1d1600;
  --weekend: #2c3947;
  --weekend-ink: #dce4ec;
  --sunday: #19232e;
  --ok: #5fd391;
  --ok-soft: #12372a;
  --bad: #ff8f85;
  --bad-soft: #3d1d1a;
  --warn: #f2c36b;
  --warn-soft: #3a2a0c;
  --primary: #e8eef3;
  --primary-ink: #0d131a;
  --topbar-bg: #151d26;
  --topbar-line: #2a3745;
  --switch-on: #ff7a29;
  --focus: #7aa7ff;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 10px 30px rgba(0, 0, 0, 0.5);
}
