/* Via Connect — Design tokens
   Fonte da verdade: design-system/MASTER.md */

/* Fontes originais da marca (mesmos arquivos do site atual) */
@font-face { font-family: "Apple Garamond"; src: url("fonts/AppleGaramond-Light.ttf") format("truetype"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Apple Garamond"; src: url("fonts/AppleGaramond-LightItalic.ttf") format("truetype"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Apple Garamond"; src: url("fonts/AppleGaramond.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Apple Garamond"; src: url("fonts/AppleGaramond-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Apple Garamond"; src: url("fonts/AppleGaramond-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Apple Garamond"; src: url("fonts/AppleGaramond-BoldItalic.ttf") format("truetype"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/Montserrat-Variable.ttf") format("truetype"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/Montserrat-Italic-Variable.ttf") format("truetype"); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  /* Cores — marca */
  --bege: #efe6da;
  --bege-apoio: #e9ddd2;
  --marrom: #311b17;
  --vermelho: #8e0213;
  --floresta: #19322f;
  --grafite: #252226;

  /* Cores — linhas */
  --linha: rgb(49 27 23 / 0.14);
  --linha-escura: rgb(239 230 218 / 0.1);

  /* Papéis (tema claro por padrão; seções escuras usam .tema-escuro) */
  --bg: var(--bege);
  --fg: var(--marrom);
  --fg-suave: rgb(49 27 23 / 0.72);
  --acento: var(--vermelho);
  --borda: var(--linha);
  --btn-bg: var(--vermelho);
  --btn-fg: var(--bege);

  /* Tipografia */
  --font-display: "Apple Garamond", Garamond, "Times New Roman", serif;
  --fw-display: 700;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-display-xl: clamp(3rem, 9vw, 9rem);
  --fs-display-l: clamp(2.25rem, 5vw, 4.5rem);
  --fs-display-m: clamp(2rem, 4vw, 3.5rem);
  --fs-titulo-s: 1.25rem;
  --fs-corpo: 1rem;
  --fs-label: 0.75rem;

  --lh-display-xl: 0.95;
  --lh-display-l: 1;
  --lh-display-m: 1.05;
  --lh-titulo: 1.3;
  --lh-corpo: 1.6;

  --tracking-label: 0.2em;
  --medida: 65ch;

  /* Espaçamento */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;
  --space-7: 160px;

  /* Layout */
  --container: 1440px;
  --gutter: 20px;
  --secao-py: var(--space-6);
  --radius-pilula: 9999px;

  /* Motion */
  --dur-hover: 200ms;
  --dur-bloco: 500ms;
  --dur-manchete: 700ms;
  --ease-saida: cubic-bezier(0.16, 1, 0.3, 1); /* ~expo.out */
}

@media (min-width: 1024px) {
  :root {
    --fs-corpo: 1.125rem;
    --gutter: 48px;
    --secao-py: var(--space-7);
  }
}

/* Seções escuras: acento vira bege (vermelho é proibido sobre marrom/floresta/grafite) */
.tema-escuro {
  --fg: var(--bege);
  --fg-suave: rgb(239 230 218 / 0.72);
  --acento: var(--bege);
  --borda: var(--linha-escura);
  --btn-bg: var(--bege);
  --btn-fg: var(--marrom);
}
