/*
 * Night Doodle: design tokens
 * Playful, loud and a little cheeky on a deep aubergine night. Heavy rounded-geometric
 * headlines in white, one hand-drawn pink word tilted off the baseline, lime highlight bars,
 * sparkle stars in the sky, and chunky cartoon panels with flat fills and bright borders.
 *
 * Fonts (all free on Google Fonts):
 *   <link href="https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;600;700;800&family=Caveat:wght@700&family=JetBrains+Mono:wght@400;600&display=swap" rel="stylesheet">
 */
:root {
  /* Surfaces: the night sky, then lifted panels */
  --nd-night: #1b1230;        /* page background */
  --nd-night-2: #150d26;      /* deeper bands, footer */
  --nd-panel: #2a1d47;        /* cartoon panels and cards */
  --nd-panel-2: #362659;      /* hover, inputs, nested blocks */
  --nd-line: #4b3a78;         /* every border and divider */
  --nd-line-bright: #7a62c2;  /* the bright edge on featured panels */

  /* Text */
  --nd-ink: #fbf8ff;
  --nd-soft: #c3b6de;
  --nd-faint: #8a7cab;

  /* Accents: pink is the voice, lime is the highlighter, violet is the helper */
  --nd-pink: #ff4fa3;
  --nd-pink-dark: #e0328a;
  --nd-pink-soft: rgba(255, 79, 163, .16);
  --nd-lime: #c8f25c;
  --nd-lime-soft: rgba(200, 242, 92, .16);
  --nd-violet: #9b7bff;
  --nd-violet-soft: rgba(155, 123, 255, .18);
  --nd-gold: #ffd166;         /* stars and the odd sticker */

  /* Type */
  --nd-sans: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  --nd-script: "Caveat", "Comic Sans MS", cursive;
  --nd-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --nd-text-hero: clamp(44px, 7.4vw, 96px);
  --nd-text-script: 1.12em;   /* the script word is a little bigger than its line */
  --nd-text-h2: clamp(32px, 4.4vw, 56px);
  --nd-text-h3: 22px;
  --nd-text-lead: 20px;
  --nd-text-body: 16px;
  --nd-text-small: 14px;
  --nd-text-micro: 12px;

  --nd-weight-head: 800;
  --nd-tracking-hero: -.035em;
  --nd-tracking-caps: .06em;
  --nd-script-tilt: -6deg;

  /* Shape: chunky and flat. Bright 2px borders, small radii, glow instead of soft shadows */
  --nd-radius-sm: 6px;
  --nd-radius: 12px;
  --nd-radius-lg: 20px;
  --nd-radius-pill: 999px;
  --nd-border: 2px solid var(--nd-line);
  --nd-border-bright: 2px solid var(--nd-line-bright);
  --nd-shadow: 0 6px 0 var(--nd-night-2);              /* a flat drop under panels */
  --nd-glow-pink: 0 0 0 4px var(--nd-pink-soft), 0 0 28px rgba(255, 79, 163, .35);
  --nd-glow-lime: 0 0 24px rgba(200, 242, 92, .35);
  --nd-beam: linear-gradient(100deg, rgba(255, 79, 163, 0) 0%, rgba(255, 79, 163, .55) 60%, rgba(255, 79, 163, 0) 100%);

  /* Space */
  --nd-container: 1180px;
  --nd-narrow: 760px;
  --nd-gutter: 24px;
  --nd-section: clamp(72px, 10vw, 128px);
  --nd-space-1: 4px;
  --nd-space-2: 8px;
  --nd-space-3: 12px;
  --nd-space-4: 16px;
  --nd-space-5: 24px;
  --nd-space-6: 32px;
  --nd-space-7: 48px;
  --nd-space-8: 64px;

  /* Motion: springy, short */
  --nd-ease: cubic-bezier(.34, 1.56, .64, 1);
  --nd-speed: .25s;
}
