/* Identidade visual — Lino & Piccini Sociedade de Advogados
   Cores e fontes centralizadas aqui. Para mudar a paleta, edite só este arquivo. */

@font-face { font-family: "Source Serif 4"; src: url("/branding/fonts/source-serif-4-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("/branding/fonts/source-serif-4-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("/branding/fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/branding/fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/branding/fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/branding/fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  /* Paleta: azul-marinho e bege */
  --navy-900: #0f1f38;
  --navy-800: #16294a;
  --navy-700: #1f3860;
  --navy-500: #3d5a8a;
  --beige-50:  #faf7f1;
  --beige-100: #f3ede2;
  --beige-200: #e8dfcd;
  --beige-400: #c9b891;
  --beige-600: #8f7a4f;

  /* Tema claro (padrão) */
  --bg: var(--beige-50);
  --surface: #ffffff;
  --surface-2: var(--beige-100);
  --text: #1b2433;
  --muted: #56607a;
  --border: var(--beige-200);
  --accent: var(--navy-800);
  --accent-contrast: var(--beige-50);
  --link: var(--navy-700);
  --rule: var(--beige-400);
  --aside-bg: var(--navy-900);
  --aside-text: var(--beige-100);
  --aside-muted: #b9c2d3;
  --aside-rule: #2c4470;
  --flag-bg: #fff4d6;
  --flag-text: #6b4b00;
  --flag-border: #e6c25a;

  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 6px;
  --maxw: 1180px;
}

:root[data-theme="dark"] {
  --bg: #0c1626;
  --surface: #13213a;
  --surface-2: #182a47;
  --text: #e9e3d6;
  --muted: #a7b0c2;
  --border: #243a5e;
  --accent: var(--beige-200);
  --accent-contrast: var(--navy-900);
  --link: #d9c9a3;
  --rule: #3a5480;
  --aside-bg: #081120;
  --aside-text: var(--beige-100);
  --aside-muted: #a7b0c2;
  --aside-rule: #22375a;
  --flag-bg: #3a2f10;
  --flag-text: #f3dc9a;
  --flag-border: #8a6d1f;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1626;
    --surface: #13213a;
    --surface-2: #182a47;
    --text: #e9e3d6;
    --muted: #a7b0c2;
    --border: #243a5e;
    --accent: var(--beige-200);
    --accent-contrast: var(--navy-900);
    --link: #d9c9a3;
    --rule: #3a5480;
    --aside-bg: #081120;
    --aside-text: var(--beige-100);
    --aside-muted: #a7b0c2;
    --aside-rule: #22375a;
    --flag-bg: #3a2f10;
    --flag-text: #f3dc9a;
    --flag-border: #8a6d1f;
  }
}
