/*
 * Filigree Night: design tokens
 * A storybook dark style. Pure black pages under a painted cobalt night, tall Roman inscription
 * capitals framed by drawn filigree scrollwork, a quiet geometric sans for reading, and one pale
 * "lantern" cyan glow that floats as spores. Square corners, thin double rules, no hard shadows.
 *
 * Fonts (all free on Google Fonts):
 *   <link href="https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600&family=Jost:wght@300;400;500&family=Cormorant+Garamond:ital,wght@1,400;1,500&display=swap" rel="stylesheet">
 */
:root {
  /* Surfaces: black first, the painted night only in heroes and covers */
  --fn-black: #050508;
  --fn-crypt: #0c0d14;        /* raised panels, cards, inputs */
  --fn-crypt-2: #141626;      /* hover on panels, table headers */
  --fn-line: #262a40;         /* hairlines and frames */
  --fn-line-bright: #4a5180;  /* the inner rule of a double frame */

  /* The painted night: hero and cover gradients */
  --fn-abyss: #0a1033;
  --fn-cobalt: #1d2f86;
  --fn-haze: #6f78d8;         /* the lit mist in the upper corner */
  --fn-dusk: #b48ad6;         /* a faint violet blush in the haze */

  /* Text */
  --fn-moon: #eef1fb;         /* headlines and the filigree */
  --fn-ash: #a7adc6;          /* body text */
  --fn-dim: #6c7291;          /* meta, captions, helper text */

  /* The one accent: lantern cyan. Primary buttons, spores, a highlighted word, focus */
  --fn-lantern: #8fdcff;
  --fn-lantern-deep: #4fb6ea;
  --fn-lantern-glow: rgba(143, 220, 255, 0.35);
  --fn-lantern-soft: rgba(143, 220, 255, 0.10);

  /* Errors only */
  --fn-ember: #ff7a7a;

  /* Type */
  --fn-display: "Cinzel", "Trajan Pro", "Times New Roman", serif;
  --fn-sans: "Jost", "Futura", system-ui, sans-serif;
  --fn-italic: "Cormorant Garamond", Georgia, serif;

  --fn-text-hero: clamp(44px, 8vw, 104px);
  --fn-text-h1: clamp(36px, 5vw, 64px);
  --fn-text-h2: clamp(28px, 3.6vw, 44px);
  --fn-text-h3: 22px;
  --fn-text-lead: 19px;
  --fn-text-body: 16px;
  --fn-text-small: 14px;
  --fn-text-label: 12px;

  --fn-track-display: 0.06em;
  --fn-track-label: 0.24em;

  /* Shape: square corners, thin rules, glows instead of shadows */
  --fn-radius: 0px;
  --fn-radius-pill: 999px;    /* only for the round spore dots and toggles */
  --fn-rule: 1px solid var(--fn-line);
  --fn-glow: 0 0 24px var(--fn-lantern-glow);
  --fn-glow-lg: 0 0 60px rgba(111, 120, 216, 0.35);

  /* Space */
  --fn-space-1: 4px;
  --fn-space-2: 8px;
  --fn-space-3: 16px;
  --fn-space-4: 24px;
  --fn-space-5: 40px;
  --fn-space-6: 64px;
  --fn-space-7: 104px;
  --fn-container: 1180px;
  --fn-narrow: 720px;

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