/* =====================================================================
   FUCAM — Tokens de design (fonte única de cor, tipo, raio e sombra)
   Carregado ANTES de qualquer outra folha do portal. Para ajustar a
   identidade visual, altere aqui; as demais folhas usam var(--…).
   ===================================================================== */

/* ---------- Fontes (servidas pelo próprio portal: sem Google Fonts) ----------
   Fontes variáveis, subconjunto latino (cobre o português). Licença OFL 1.1
   em /fonts/fucam/OFL-*.txt. */
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url('../fonts/fucam/manrope-latin-wght.woff2') format('woff2');
}
@font-face {
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 200 900;
    font-display: swap;
    src: url('../fonts/fucam/source-sans-3-latin-wght.woff2') format('woff2');
}
@font-face {
    font-family: 'Source Sans 3';
    font-style: italic;
    font-weight: 200 900;
    font-display: swap;
    src: url('../fonts/fucam/source-sans-3-latin-wght-italic.woff2') format('woff2');
}

:root {
    /* ---------- Marca: escala única do verde FUCAM ----------
       Contraste com branco: 700 = 5,2:1 (texto e botões), 600 = 4,7:1,
       500 e mais claros só para elementos decorativos ou sobre fundo escuro. */
    --brand-950: #012a24;  /* cabeçalho, rodapé */
    --brand-900: #063f36;
    --brand-800: #0b5d49;
    --brand-750: #006d55;  /* hover de botões */
    --brand-700: #087b61;  /* cor principal */
    --brand-600: #0a8466;
    --brand-500: #0bb18a;  /* decorativo */
    --brand-400: #55a795;  /* bordas de foco/realce */
    --brand-300: #6fe0b3;  /* destaque sobre fundo escuro */
    --brand-200: #a6e8cd;  /* texto claro sobre fundo escuro */
    --brand-100: #e8f2ee;  /* fundos suaves */
    --brand-50:  #f6faf8;

    /* ---------- Neutros (levemente esverdeados) ---------- */
    --ink: #172129;          /* texto principal */
    --ink-brand: #12382c;    /* títulos */
    --ink-2: #33504a;        /* texto secundário forte */
    --muted: #5b6b66;        /* texto de apoio (5,6:1 no branco) */
    --line-strong: #b9d7c9;
    --line: #d3e4dc;
    --line-soft: #e2ece7;
    --surface-2: #eef6f2;
    --surface: #f6faf8;
    --surface-0: #fbfdfc;
    --white: #ffffff;

    /* ---------- Acento institucional (dourado) ---------- */
    --accent: #f0b429;       /* nunca como cor de texto sobre branco */

    /* ---------- Tipografia ---------- */
    --font-display: 'Manrope', 'Segoe UI', Arial, sans-serif;
    --font-body: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;

    --fs-xs: .75rem;      /* 12px — selos em caixa alta */
    --fs-sm: .8125rem;    /* 13px — metadados */
    --fs-md: .875rem;     /* 14px — interface */
    --fs-base: 1rem;      /* 16px — texto */
    --fs-lg: 1.125rem;    /* 18px */
    --fs-xl: 1.25rem;     /* 20px */
    --fs-2xl: 1.5rem;     /* 24px */
    --fs-3xl: 2rem;       /* 32px */
    --fs-4xl: 2.5rem;     /* 40px */
    /* Títulos fluidos */
    --fs-display-sm: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
    --fs-display: clamp(2.1rem, 1.5rem + 2.6vw, 3.6rem);

    --tracking-tight: -.02em;  /* títulos grandes: mais que isso cola as palavras */
    --measure: 68ch;           /* largura confortável de leitura */

    /* ---------- Forma ---------- */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-pill: 999px;

    --shadow-sm: 0 1px 2px rgba(1, 42, 36, .06), 0 2px 8px rgba(1, 42, 36, .05);
    --shadow-md: 0 8px 24px rgba(1, 42, 36, .10);
    --shadow-lg: 0 18px 40px rgba(1, 42, 36, .14);

    /* ---------- Movimento ---------- */
    --ease-out: cubic-bezier(.22, .8, .24, 1);
    --dur-fast: 150ms;
    --dur: 250ms;

    /* ---------- Foco ---------- */
    --focus-outer: var(--accent);
    --focus-inner: #0b2b23;

    /* Aliases usados pelas folhas antigas (mantidos por compatibilidade). */
    --green: var(--brand-700);
    --green-dark: var(--brand-800);
    --green-soft: var(--brand-100);
}
