/* YeS — design tokens
 * Canonical source for all web work. Mirror any change into tokens.json.
 * Rules live in brandbook.md — do not add colors here that aren't there.
 */

:root {
  /* ---- Color ---- */
  --yes-black: #000000;
  --yes-yellow: #f8e40e;
  --yes-white: #ffffff;
  --yes-offwhite: #f2f2f2;

  /* Semantic */
  --color-bg: var(--yes-black);
  --color-bg-alt: var(--yes-offwhite);
  --color-surface: var(--yes-white);
  --color-text: var(--yes-white);
  --color-text-invert: var(--yes-black);
  --color-text-muted: rgba(255, 255, 255, 0.66);
  --color-accent: var(--yes-yellow);
  --color-accent-text: var(--yes-black); /* text ON yellow is always black */
  --color-border: rgba(255, 255, 255, 0.14);
  --color-border-invert: rgba(0, 0, 0, 0.12);

  /* ---- Typography ---- */
  --font-display: "League Spartan", "Arial Black", "Helvetica Neue", sans-serif;
  --font-body: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-bold: 700;
  --fw-black: 900;

  --text-xs: 0.75rem;    /* 12px — tags, legendas */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px — corpo */
  --text-lg: 1.25rem;    /* 20px */
  --text-xl: 1.75rem;    /* 28px */
  --text-2xl: 2.5rem;    /* 40px */
  --text-3xl: 3.5rem;    /* 56px */
  --text-4xl: 5rem;      /* 80px — hero */

  --leading-tight: 1.05;
  --leading-snug: 1.25;
  --leading-normal: 1.5;

  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.06em;
  --tracking-wider: 0.12em; /* caixa alta pequena */

  /* ---- Space (4px base) ---- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* ---- Layout ---- */
  --container-max: 1200px;
  --container-pad: var(--space-6);

  /* ---- Radius ---- */
  --radius-none: 0;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 32px;
  --radius-pill: 999px;
  --radius-card: 40px; /* cards da identidade — Instagram / impresso apenas */
  --radius-web: 0;     /* site: cantos retos em tudo (brandbook §10) */

  /* ---- Elevation ---- */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.18);
  --shadow-accent: 0 8px 24px rgba(248, 228, 14, 0.28);

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-snap: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 140ms;
  --dur-base: 240ms;
  --dur-slow: 420ms;
  --dur-logo: 1400ms; /* sequência de animação da marca */

  /* ---- Graphic elements ---- */
  --rule-thickness: 6px;  /* filete amarelo */
  --frame-thickness: 3px; /* cantoneiras de enquadramento */

  /* Grid language (brandbook §5, v1.1) */
  --grid-cell: 96px;                          /* célula da grade */
  --grid-line: rgba(255, 255, 255, 0.12);     /* sobre preto */
  --grid-line-invert: rgba(0, 0, 0, 0.10);    /* sobre branco */
  --grid-line-accent: rgba(0, 0, 0, 0.14);    /* sobre amarelo */
  --mark-bg: var(--yes-yellow);               /* marcação amarela atrás de palavra */
  --mark-text: var(--yes-black);
}

/* Light section: invert semantics inside .yes-light */
.yes-light {
  --color-bg: var(--yes-white);
  --color-text: var(--yes-black);
  --color-text-muted: rgba(0, 0, 0, 0.62);
  --color-border: var(--color-border-invert);
  --grid-line: var(--grid-line-invert);
}

/* Yellow section */
.yes-accent {
  --color-bg: var(--yes-yellow);
  --color-text: var(--yes-black);
  --color-text-muted: rgba(0, 0, 0, 0.7);
  --color-border: rgba(0, 0, 0, 0.16);
  --grid-line: var(--grid-line-accent);
}
