/* migrei. — colors & type system
   Canonical CSS vars for the brand. Import this first, then layer semantic styles. */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* ——— BASE COLORS ——— */
  --ink: #0A0A0A;           /* preto profundo — primary dark */
  --paper: #F2EFE8;          /* creme — primary light */

  /* ——— ACCENTS ——— */
  --accent: #C6FF3D;         /* verde-limão elétrico — PRIMARY ACCENT */
  --accent-2: #FF3D7F;       /* magenta shock — apoio */
  --accent-3: #4B2EFF;       /* roxo sinal — apoio */
  --accent-4: #FF7A1A;       /* laranja alerta — apoio */

  /* ——— NEUTRAL SCALE ——— */
  --paper-2: #E8E5DD;        /* cinza papel, acima de paper */
  --line: rgba(10, 10, 10, 0.14);
  --line-strong: rgba(10, 10, 10, 0.28);
  --mute: #6B6B6B;           /* texto secundário em fundo claro */
  --mute-ink: rgba(242, 239, 232, 0.55); /* texto secundário em fundo ink */

  /* ——— SEMANTIC FOREGROUNDS ——— */
  --fg-1: var(--ink);
  --fg-2: #333333;
  --fg-3: var(--mute);
  --fg-on-ink: var(--paper);
  --fg-on-accent: var(--ink);

  /* ——— SEMANTIC BACKGROUNDS ——— */
  --bg-1: var(--paper);
  --bg-2: var(--paper-2);
  --bg-ink: var(--ink);
  --bg-accent: var(--accent);

  /* ——— TYPE FAMILIES ——— */
  --font-display: "Space Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* ——— TYPE SCALE (web/product, not deck) ——— */
  --fs-display: clamp(72px, 9vw, 140px);
  --fs-h1: clamp(48px, 6vw, 88px);
  --fs-h2: clamp(36px, 4.5vw, 56px);
  --fs-h3: 32px;
  --fs-body: 18px;
  --fs-body-lg: 22px;
  --fs-small: 14px;
  --fs-eyebrow: 13px;

  /* tracking */
  --tr-display: -0.055em;   /* tight, for wordmark-style */
  --tr-heading: -0.04em;
  --tr-body: -0.01em;
  --tr-eyebrow: 0.12em;
  --tr-mono: 0.04em;

  /* line-heights */
  --lh-tight: 0.92;
  --lh-snug: 1.1;
  --lh-body: 1.45;

  /* ——— SPACING (4px base) ——— */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 120px;

  /* ——— RADII (brand is mostly squared; minimal rounding) ——— */
  --r-0: 0;
  --r-1: 2px;
  --r-2: 4px;
  --r-3: 8px;
  --r-pill: 999px;

  /* ——— SHADOWS (used sparingly) ——— */
  --shadow-card: 0 16px 50px rgba(0, 0, 0, 0.12);
  --shadow-lift: 0 30px 60px rgba(0, 0, 0, 0.15);

  /* ——— BORDERS ——— */
  --border-hairline: 1px solid var(--line);
  --border-strong: 2px solid var(--ink);
}

/* ——— SEMANTIC TYPE STYLES ——— */

.type-display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--tr-display);
  text-wrap: balance;
}

.type-h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h1);
  line-height: var(--lh-snug);
  letter-spacing: var(--tr-heading);
}

.type-h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-h2);
  line-height: 1.05;
  letter-spacing: var(--tr-heading);
}

.type-h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-h3);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.type-body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--tr-body);
}

.type-body-lg {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body);
}

.type-small {
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  line-height: 1.4;
}

.type-eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
}

.type-mono {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: var(--tr-mono);
}

/* Wordmark — always lowercase, tight, with coloured dot */
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 0.82;
  text-transform: lowercase;
}
.wordmark .dot { color: var(--accent); }

/* The signature trailing dot — reusable */
.accent-dot {
  display: inline-block;
  width: 0.42em;
  height: 0.42em;
  border-radius: 999px;
  background: var(--accent);
  vertical-align: baseline;
  transform: translateY(0.04em);
}
