/*
  Design tokens — Paulo Daré Advocacia Sucessória
  Origem: cores e fontes do tema do site anterior + escala própria.
  Documentação visual: design-system/index.html
*/
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-wght.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Cores de marca (originais do tema) */
  --color-navy: #0e1f2e;
  --color-gold: #d7be82;
  --color-wine: #431c1c;
  --color-ink: #1c2220;
  --color-white: #ffffff;

  /* Derivadas */
  --color-navy-deep: #08141f;
  --color-navy-raised: #142a3c;
  --color-navy-line: #27425a;
  --color-gold-hover: #e6d3a4;
  --color-gold-press: #c4aa6a;
  --color-text: #f4f1ea;
  --color-text-muted: #b9c3cc;

  /* Papéis semânticos */
  --bg-page: var(--color-navy);
  --bg-band: var(--color-navy-deep);
  --bg-card: var(--color-navy-raised);
  --bg-accent: var(--color-wine);
  --border: var(--color-navy-line);
  --fg: var(--color-text);
  --fg-muted: var(--color-text-muted);
  --fg-heading: var(--color-gold);
  --link: var(--color-gold);
  --link-hover: var(--color-gold-hover);
  --focus: #ffffff;

  /* Tipografia */
  --font-heading: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;

  --text-xs: 0.8125rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-h4: 1.25rem;
  --text-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --text-h2: clamp(1.625rem, 1.25rem + 1.5vw, 2.25rem);
  --text-h1: clamp(2rem, 1.3rem + 3vw, 3.25rem);

  --leading-tight: 1.2;
  --leading-body: 1.6;
  --tracking-eyebrow: 0.14em;

  /* Espaçamento (base 4px) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 5rem;
  --space-9: 6.25rem;

  /* Layout */
  --container: 71.25rem; /* 1140px */
  --container-narrow: 48rem; /* 768px, leitura de artigos */
  --gutter: clamp(1rem, 4vw, 1.5rem);
  --section-y: clamp(3rem, 2rem + 4vw, 6.25rem);
  --header-h: 4.5rem;

  /* Forma e elevação */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 999px;
  --shadow-card: 0 10px 30px rgb(0 0 0 / 0.35);
  --ring: 0 0 0 3px var(--color-navy), 0 0 0 5px var(--focus);

  /* Movimento */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 200ms;
}

@media (min-width: 48em) {
  :root { --header-h: 5rem; }
}
