/* ============================================================
   BASE.CSS — Design Tokens, Reset, Body, Cursor, Grain, Particles
   Extraído do design-system.html — Páscoa 2026
   ============================================================ */

/* ── Design Tokens ── */
:root {
  /* Fontes */
  --font-display : 'Playfair Display', Georgia, serif;
  --font-body    : 'DM Sans', system-ui, sans-serif;
  --font-mono    : 'DM Mono', 'Courier New', monospace;

  /* Escala tipográfica */
  --text-display : clamp(2.75rem, 6.5vw, 5.5rem);
  --text-h2      : clamp(1.75rem, 3.5vw, 3rem);
  --text-h3      : 2.25rem;
  --text-body-lg : 1.125rem;
  --text-body    : 1rem;
  --text-sm      : 0.9375rem;
  --text-xs      : 0.75rem;

  /* Letter-spacing */
  --tracking-tight  : -0.03em;
  --tracking-normal : 0em;
  --tracking-wide   : 0.08em;
  --tracking-widest : 0.15em;

  /* Easing */
  --ease-out-expo : cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out   : cubic-bezier(0.4, 0, 0.2, 1);

  /* Duração */
  --dur-fast   : 0.5s;
  --dur-base   : 0.8s;
  --dur-slow   : 1.2s;
  --dur-slower : 1.8s;

  /* Paleta base */
  --c-bg          : #09070200;
  --c-bg-solid    : #0C0900;
  --c-bg-layer    : #110D02;
  --c-surface     : #1C1507;
  --c-surface-e   : #241C08;

  /* Acento dourado */
  --c-gold        : #C89A3A;
  --c-gold-lt     : #F0C05A;
  --c-gold-dk     : #8B6018;
  --c-gold-dim    : rgba(200, 154, 58, 0.12);
  --c-gold-border : rgba(200, 154, 58, 0.3);

  /* Chocolate / cobre */
  --c-choco       : #5C2D0A;
  --c-choco-lt    : #8B4513;

  /* Texto */
  --c-text-h      : #F5E6C0;
  --c-text-p      : #B8A882;
  --c-text-muted  : #6B5A3E;

  /* Borda */
  --c-border      : rgba(200, 154, 58, 0.18);
  --c-border-lt   : rgba(200, 154, 58, 0.08);

  /* Urgência */
  --c-urgent      : #E87A3A;

  /* Sombras */
  --shadow-gold        : 0 20px 60px rgba(200, 154, 58, 0.22);
  --shadow-gold-hover  : 0 30px 80px rgba(200, 154, 58, 0.42), 0 0 40px rgba(200, 154, 58, 0.18);
  --shadow-deep        : 0 40px 100px rgba(0,0,0,0.6);

  /* Border radius */
  --r-sm   : 0.375rem;
  --r-md   : 0.75rem;
  --r-lg   : 1.25rem;
  --r-xl   : 2rem;
  --r-full : 9999px;

  /* Espaçamento */
  --sp-xs  : 0.5rem;
  --sp-sm  : 1rem;
  --sp-md  : 2rem;
  --sp-lg  : 3rem;
  --sp-xl  : 4.5rem;
  --sp-2xl : 7rem;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  overflow-x: hidden;
  overflow-y: auto;
  height: auto;
}

body {
  font-family    : var(--font-body);
  background     : var(--c-bg-solid);
  color          : var(--c-text-h);
  cursor         : none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--c-gold-dk); color: var(--c-text-h); }

/* ── Cursor customizado ── */
#cur-dot {
  width: 10px; height: 10px;
  background: var(--c-gold);
  border-radius: 50%;
  position: fixed; pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
  transition: width .25s var(--ease-out-expo), height .25s var(--ease-out-expo), background .25s;
}
#cur-ring {
  width: 34px; height: 34px;
  border: 1.5px solid rgba(200, 154, 58, 0.45);
  border-radius: 50%;
  position: fixed; pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width .4s var(--ease-out-expo), height .4s var(--ease-out-expo), border-color .3s;
}
.cur-expand #cur-dot  { width: 20px; height: 20px; background: var(--c-gold-lt); }
.cur-expand #cur-ring { width: 52px; height: 52px; border-color: rgba(200, 154, 58, 0.7); }

/* ── Grain texture ── */
#grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 800; opacity: .032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 300px 300px;
}

/* ── Particles canvas ── */
#ptc-canvas {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
}

/* ── Utilitário ── */
.will-change-transform { will-change: transform; }
