/*
 * Cloud Lantern: tokens
 *
 * A clear night over drifting violet clouds. Pages are deep indigo, and the top
 * of each one sits inside a rounded sky frame: a star field, soft cloud banks
 * lit from below, and a warm lantern dot. Headlines are a soft serif (Fraunces),
 * UI is Figtree, and data lives in a framed console window that rises out of the
 * bottom of the sky. One violet button colour, one warm lantern accent.
 *
 * Fonts (free on Google Fonts):
 * <link href="https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500&family=Figtree:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
 */

:root {
  /* Surfaces */
  --cl-night: #13111F;
  --cl-deep: #1C1931;
  --cl-raise: #27233F;
  --cl-hover: #312C4E;
  --cl-console: #0D0B17;

  /* Text */
  --cl-text: #F3F0FA;
  --cl-dim: #AEA8C6;
  --cl-faint: #736D8E;

  /* Accents */
  --cl-violet: #7458E0;
  --cl-violet-hi: #9A82F0;
  --cl-violet-ring: rgba(154, 130, 240, 0.45);
  --cl-lamp: #F4C46A;
  --cl-mint: #6CD1A5;
  --cl-rose: #E58A9E;

  /* Sky */
  --cl-sky-top: #0F0D1D;
  --cl-sky-low: #2A2348;
  --cl-cloud: #3C3360;
  --cl-cloud-lit: #6A5890;
  --cl-cloud-rose: #87678C;
  --cl-star: #FFF5D8;
  --cl-sky: linear-gradient(180deg, var(--cl-sky-top) 0%, #1A1631 45%, var(--cl-sky-low) 100%);
  --cl-stars:
    radial-gradient(1.2px 1.2px at 22px 38px, var(--cl-star) 50%, transparent 51%),
    radial-gradient(1px 1px at 140px 92px, rgba(255, 245, 216, 0.7) 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 96px 160px, var(--cl-star) 50%, transparent 51%),
    radial-gradient(1px 1px at 190px 20px, rgba(255, 245, 216, 0.55) 50%, transparent 51%),
    radial-gradient(1px 1px at 60px 210px, rgba(255, 245, 216, 0.6) 50%, transparent 51%);
  --cl-stars-b:
    radial-gradient(1px 1px at 40px 120px, rgba(255, 245, 216, 0.5) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 300px 60px, var(--cl-star) 50%, transparent 51%),
    radial-gradient(1px 1px at 210px 250px, rgba(255, 245, 216, 0.65) 50%, transparent 51%),
    radial-gradient(1px 1px at 350px 280px, rgba(255, 245, 216, 0.4) 50%, transparent 51%);
  --cl-stars-size: 230px 240px;
  --cl-stars-b-size: 377px 313px;

  /* Lines and glass */
  --cl-line: rgba(243, 240, 250, 0.09);
  --cl-line-strong: rgba(243, 240, 250, 0.16);
  --cl-glass: rgba(28, 25, 49, 0.62);
  --cl-glass-ring: inset 0 0 0 1px rgba(243, 240, 250, 0.10);

  /* Fonts */
  --cl-serif: 'Fraunces', Georgia, serif;
  --cl-sans: 'Figtree', system-ui, sans-serif;
  --cl-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Type scale */
  --cl-text-hero: clamp(40px, 6vw, 76px);
  --cl-text-h2: clamp(30px, 3.6vw, 46px);
  --cl-text-h3: 20px;
  --cl-text-lead: clamp(17px, 1.5vw, 20px);
  --cl-text-body: 16px;
  --cl-text-small: 14px;
  --cl-text-micro: 12px;
  --cl-track-tight: -0.02em;
  --cl-track-wide: 0.14em;

  /* Shape */
  --cl-radius-sm: 8px;
  --cl-radius: 12px;
  --cl-radius-lg: 18px;
  --cl-radius-xl: 28px;
  --cl-radius-pill: 999px;

  /* Shadows */
  --cl-shadow-btn: 0 0 0 1px var(--cl-violet-hi) inset, 0 8px 24px -8px rgba(116, 88, 224, 0.7);
  --cl-shadow-card: 0 1px 0 rgba(243, 240, 250, 0.06) inset, 0 20px 40px -24px rgba(0, 0, 0, 0.7);
  --cl-shadow-console: 0 0 0 1px rgba(243, 240, 250, 0.08), 0 40px 80px -30px rgba(0, 0, 0, 0.85), 0 0 120px -40px rgba(116, 88, 224, 0.5);
  --cl-glow-lamp: 0 0 18px 4px rgba(244, 196, 106, 0.45);

  /* Space */
  --cl-space-1: 4px;
  --cl-space-2: 8px;
  --cl-space-3: 12px;
  --cl-space-4: 16px;
  --cl-space-5: 24px;
  --cl-space-6: 40px;
  --cl-space-7: 64px;
  --cl-space-8: 96px;
  --cl-container: 1160px;
  --cl-text-width: 680px;

  /* Motion */
  --cl-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --cl-drift: 60s;
}
