/* ============================================================
   Creative Source — Base element styles & helpers
   Imported after tokens so the cascade has all variables.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: var(--fw-regular);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--text-primary);
  background: var(--surface-base);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--text-primary);
}

p { margin: 0; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--cs-orange); color: var(--text-on-orange); }

:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: var(--radius-xs);
}

/* ---- Brand text helpers ------------------------------------ */
.cs-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-label);
  font-weight: var(--fw-regular);
  letter-spacing: var(--ls-mono);
  text-transform: uppercase;
  color: var(--cs-orange);
}

.cs-hash::before { content: "#"; color: var(--cs-orange); }

.cs-mono {
  font-family: var(--font-mono);
  letter-spacing: var(--ls-mono);
}

/* gradient-spray text fill */
.cs-spray-text {
  background: linear-gradient(96deg, var(--cs-orange) 0%, var(--cs-coral) 48%, var(--cs-pink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* fine grain / paper noise overlay utility */
.cs-grain { position: relative; }
.cs-grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}
