/* ============================================================
   Design System — Adriano Bernardes Ferreira
   Tokens: cor, tipografia, escala, ritmo, motion
   ============================================================ */

:root {
  /* --- Cor -------------------------------------------------- */
  --ink-900: #08080A;   /* preto profundo */
  --ink-800: #0E0F11;
  --ink-700: #16171A;   /* grafite escuro */
  --ink-600: #202226;   /* grafite */
  --ink-400: #4A4D54;
  --ink-300: #7A7E86;

  --paper-000: #FFFFFF;
  --paper-100: #F4F2ED;  /* off-white */
  --paper-200: #E9E6DF;
  --paper-300: #D8D4CB;

  --accent: #ED5F26;     /* laranja premium — assinatura */
  --accent-deep: #C8481A;

  /* Papéis semânticos — tema escuro (padrão) */
  --bg: var(--ink-900);
  --bg-soft: var(--ink-800);
  --fg: #F1EFEA;
  --fg-muted: #9A9EA6;
  --fg-faint: #8C9098;
  --rule: rgba(255, 255, 255, 0.13);
  --rule-strong: rgba(255, 255, 255, 0.26);

  /* --- Tipografia ------------------------------------------ */
  --font-display: "Inter Tight", "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --t-eyebrow: 0.72rem;
  --t-micro: 0.78rem;
  --t-small: 0.875rem;
  --t-body: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  --t-lead: clamp(1.09rem, 1rem + 0.42vw, 1.32rem);
  --t-h4: clamp(1.15rem, 1.05rem + 0.5vw, 1.45rem);
  --t-h3: clamp(1.5rem, 1.28rem + 1.05vw, 2.15rem);
  --t-h2: clamp(2.1rem, 1.6rem + 2.4vw, 4rem);
  --t-h1: clamp(2.7rem, 1.75rem + 4.6vw, 6.1rem);
  --t-mega: clamp(3.4rem, 1.6rem + 8.2vw, 10rem);

  --lh-tight: 0.96;
  --lh-snug: 1.12;
  --lh-text: 1.62;

  --track-tight: -0.035em;
  --track-wide: 0.16em;

  /* --- Ritmo / grid ---------------------------------------- */
  --gutter: clamp(1.25rem, 4.2vw, 5.5rem);
  --maxw: 1560px;
  --col-gap: clamp(1.5rem, 3vw, 3.5rem);

  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --section-y: clamp(5rem, 10vw, 11.5rem);

  /* --- Motion ---------------------------------------------- */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 460ms;
}

/* Seções claras invertem apenas os papéis semânticos */
.tone-light {
  --bg: var(--paper-100);
  --bg-soft: var(--paper-200);
  --fg: var(--ink-900);
  --fg-muted: #55585F;
  --fg-faint: #6E7178;
  --rule: rgba(8, 8, 10, 0.14);
  --rule-strong: rgba(8, 8, 10, 0.3);
}

.tone-dark {
  --bg: var(--ink-900);
  --bg-soft: var(--ink-800);
  --fg: #F1EFEA;
  --fg-muted: #9A9EA6;
  --fg-faint: #8C9098;
  --rule: rgba(255, 255, 255, 0.13);
  --rule-strong: rgba(255, 255, 255, 0.26);
}
