/*
 * Eclipse Rim: tokens
 * Feel: a quiet tool for the small hours. Pages sit on a violet-black void.
 * Headlines are medium-weight Geist, centred, fading from white to a cool
 * lilac grey like light catching metal. Labels, keys and times are Geist Mono.
 * The signature is an eclipse: a dark disc whose rim burns ultraviolet,
 * rising from behind a glass app window, with faint orbit rings and node
 * dots around it. Buttons are small 8px glass slabs, the main one lit violet.
 *
 * Fonts (free, Google Fonts):
 * <link href="https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600&family=Geist+Mono:wght@400;500&display=swap" rel="stylesheet">
 */
:root {
  /* Surfaces, darkest to lightest */
  --er-void: #08061A;
  --er-deep: #0E0B22;
  --er-panel: #15112E;
  --er-raised: #1F1940;
  --er-line: #2C2552;
  --er-line-soft: rgba(206, 196, 255, .09);
  --er-line-lit: rgba(206, 196, 255, .22);

  /* Text */
  --er-text: #EEEAF8;
  --er-dim: #9C95BA;
  --er-faint: #655E86;

  /* Accents */
  --er-uv: #7A5CF6;
  --er-uv-deep: #4E33C2;
  --er-lilac: #C2B3FF;
  --er-flare: #F4D9FF;
  --er-sky: #7DB6FF;

  /* Light */
  --er-title-fill: linear-gradient(180deg, #FFFFFF 0%, #E6E1F7 45%, #9C95BA 100%);
  --er-glow: radial-gradient(50% 60% at 50% 100%, rgba(122, 92, 246, .55) 0%, rgba(122, 92, 246, .16) 45%, rgba(122, 92, 246, 0) 75%);
  --er-glow-soft: radial-gradient(60% 80% at 50% 0%, rgba(122, 92, 246, .20) 0%, rgba(122, 92, 246, 0) 70%);
  --er-glass: rgba(21, 17, 46, .66);
  --er-glass-hi: linear-gradient(180deg, rgba(255, 255, 255, .07) 0%, rgba(255, 255, 255, 0) 40%);
  --er-rim:
    0 0 0 1.5px var(--er-flare),
    0 0 14px 3px rgba(244, 217, 255, .85),
    0 0 46px 14px rgba(194, 179, 255, .55),
    0 0 120px 40px rgba(122, 92, 246, .55);

  /* Fonts */
  --er-sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --er-mono: "Geist Mono", ui-monospace, Menlo, monospace;

  /* Type scale */
  --er-text-hero: clamp(34px, 6vw, 68px);
  --er-text-h2: clamp(26px, 3.6vw, 42px);
  --er-text-h3: 18px;
  --er-text-lead: 18px;
  --er-text-body: 15px;
  --er-text-small: 13px;
  --er-text-micro: 12px;

  /* Shape */
  --er-radius-xs: 6px;
  --er-radius-sm: 8px;
  --er-radius-md: 12px;
  --er-radius-lg: 18px;
  --er-radius-pill: 999px;

  /* Shadows */
  --er-shadow-card: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 24px 60px -24px rgba(0, 0, 0, .8);
  --er-shadow-window: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 40px 120px -30px rgba(0, 0, 0, .9), 0 0 0 1px var(--er-line-soft);
  --er-shadow-btn: 0 1px 0 rgba(255, 255, 255, .22) inset, 0 0 0 1px rgba(194, 179, 255, .45), 0 0 22px -4px rgba(122, 92, 246, .8);
  --er-ring: 0 0 0 3px rgba(122, 92, 246, .45);

  /* Space */
  --er-space-1: 4px;
  --er-space-2: 8px;
  --er-space-3: 12px;
  --er-space-4: 16px;
  --er-space-5: 24px;
  --er-space-6: 32px;
  --er-space-7: 48px;
  --er-space-8: 72px;
  --er-space-9: 112px;
  --er-container: 1160px;
  --er-narrow: 680px;
  --er-gutter: 24px;
}
