/*
 * Virality Media — Foundation
 * Design tokens, reset, and base element styles.
 * Breakpoints — Tailwind's scale, mobile-first (min-width). var() cannot be
 * used inside @media conditions, so values are written literally.
 *   sm: 640px   md: 768px   lg: 1024px   xl: 1280px   2xl: 1536px
 */

:root {
  /* Brand palette — the logo's purple, pushed into a night sky, with an electric lime spark */
  --night: #0e0718;
  --night-raised: #170d26;
  --brand: #4a2072;
  --violet: #7c3aed;
  --violet-bright: #a77bff;
  --lilac: #d9c7ff;
  --lime: #d4ff3f;
  --lime-soft: #e4ff85;

  --text: #f5f0ff;
  --text-soft: rgba(245, 240, 255, 0.72);
  --text-muted: rgba(245, 240, 255, 0.5);
  --line: rgba(245, 240, 255, 0.12);

  --paper: #f4effc;
  --paper-ink: #1d1030;
  --paper-ink-soft: #54476a;
  --paper-line: #e1d6f3;

  /* Typography */
  --font-display: "Bricolage Grotesque", "Bricolage Fallback", Arial, sans-serif;
  --font-body: "Inter", "Inter Fallback", system-ui, sans-serif;

  /* Layout */
  --container: 1140px;
  --radius: 28px;
}

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

/* Clipped on the root: the tilted marquee and the glows bleed past the edges on purpose */
html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--night);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

::selection {
  background: var(--lime);
  color: var(--night);
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
