/*
 * Frost Cap: tokens
 * Feel: a night climb under a starry aubergine sky that fades to a mossy
 * olive glow at the horizon. One big faceted ice peak, drawn as flat
 * low-poly shards (lilac faces, cyan glints, snow on top). Chunky rounded
 * Lilita One headlines in icy cyan with a thick ink outline and a hard
 * extruded drop, like a game title. Cards and buttons are outlined stickers
 * with a hard ink drop and a cap of snow that drips over their top edge.
 * Tiny Silkscreen pixel labels count your progress.
 *
 * Fonts (free, Google Fonts):
 * <link href="https://fonts.googleapis.com/css2?family=Lilita+One&family=Nunito:wght@400;600;700;800&family=Silkscreen&display=swap" rel="stylesheet">
 */
:root {
  /* Surfaces, darkest to lightest */
  --fc-ink: #120A1C;
  --fc-night: #1A1029;
  --fc-plum: #27173B;
  --fc-dusk: #36214F;
  --fc-raise: #452C63;
  --fc-moss: #4C4A2B;
  --fc-line: rgba(232, 222, 255, .14);
  --fc-line-bright: rgba(232, 222, 255, .26);

  /* Text */
  --fc-snow: #F3F6FF;
  --fc-dim: #C9BEE2;
  --fc-faint: #8E80AD;

  /* Accents */
  --fc-ice: #72D8EE;
  --fc-ice-deep: #3FA9C9;
  --fc-ice-pale: #CBF2FA;
  --fc-ice-soft: rgba(114, 216, 238, .14);
  --fc-lilac: #A390E4;
  --fc-lilac-deep: #6E5BB3;
  --fc-lilac-soft: rgba(163, 144, 228, .16);
  --fc-berry: #EE5168;
  --fc-berry-soft: rgba(238, 81, 104, .16);
  --fc-gold: #F3D27A;

  /* Facets of the ice peak, lightest to darkest. Recolour the peak here only. */
  --fc-facet-snow: #F3F6FF;
  --fc-facet-glint: #9EE6F5;
  --fc-facet-1: #B8A8F0;
  --fc-facet-2: #9480DA;
  --fc-facet-3: #7461BE;
  --fc-facet-4: #574597;
  --fc-facet-edge: #120A1C;

  /* The sky: aubergine overhead, olive moss at the horizon */
  --fc-sky: linear-gradient(180deg, #160C25 0%, #2A1340 34%, #3A1D45 58%, #47343A 80%, #4C4A2B 100%);
  --fc-sky-short: linear-gradient(180deg, #1D0F2E 0%, #331A48 55%, #4A3E35 100%);
  --fc-stars:
    radial-gradient(2px 2px at 6% 14%, #F3F6FF 99%, transparent),
    radial-gradient(1.4px 1.4px at 13% 38%, #F3F6FF 99%, transparent),
    radial-gradient(2.4px 2.4px at 22% 9%, #CBF2FA 99%, transparent),
    radial-gradient(1.4px 1.4px at 31% 27%, #F3F6FF 99%, transparent),
    radial-gradient(1.8px 1.8px at 41% 5%, #F3F6FF 99%, transparent),
    radial-gradient(1.2px 1.2px at 52% 21%, #F3F6FF 99%, transparent),
    radial-gradient(2.2px 2.2px at 63% 11%, #CBF2FA 99%, transparent),
    radial-gradient(1.4px 1.4px at 72% 33%, #F3F6FF 99%, transparent),
    radial-gradient(2px 2px at 81% 7%, #F3F6FF 99%, transparent),
    radial-gradient(1.2px 1.2px at 89% 25%, #F3F6FF 99%, transparent),
    radial-gradient(2.4px 2.4px at 95% 12%, #CBF2FA 99%, transparent),
    radial-gradient(1.4px 1.4px at 3% 52%, #F3F6FF 99%, transparent),
    radial-gradient(1.4px 1.4px at 97% 48%, #F3F6FF 99%, transparent);

  /* Snow cap with drips. Used as a repeating mask, coloured by --fc-snow. */
  --fc-shape-snow: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 22'><path d='M0 0H120V9C114 9 113 12 112 16C111 20 106 20 105 16C104 12 102 10 96 10C88 10 86 12 85 13C84 15 80 15 79 12C78 10 74 9 66 9C58 9 57 11 56 16C55 21 50 21 49 16C48 11 45 10 38 10C30 10 29 12 28 13C27 15 23 15 22 12C21 10 16 9 8 9C3 9 1 9 0 9Z'/></svg>");
  --fc-shape-ridge: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 18' preserveAspectRatio='none'><polygon points='0,18 0,10 14,4 26,12 40,2 54,10 66,6 80,14 94,3 108,11 120,7 120,18'/></svg>");

  /* Fonts */
  --fc-font-display: "Lilita One", "Arial Rounded MT Bold", sans-serif;
  --fc-font-body: Nunito, "Avenir Next", sans-serif;
  --fc-font-pixel: Silkscreen, "Courier New", monospace;

  /* Type scale */
  --fc-text-hero: clamp(48px, 9vw, 120px);
  --fc-text-h1: clamp(40px, 6vw, 72px);
  --fc-text-h2: clamp(30px, 4vw, 48px);
  --fc-text-h3: 22px;
  --fc-text-lead: clamp(18px, 1.8vw, 21px);
  --fc-text-body: 17px;
  --fc-text-small: 15px;
  --fc-text-micro: 11px;

  /* Outlines and extrusion */
  --fc-stroke: 3px;
  --fc-title-stroke: clamp(6px, .9vw, 10px);
  --fc-title-drop: 0 .06em 0 var(--fc-lilac-deep), 0 .1em 0 var(--fc-ink);
  --fc-drop: 0 6px 0 var(--fc-ink);
  --fc-drop-sm: 0 4px 0 var(--fc-ink);
  --fc-drop-lg: 0 10px 0 var(--fc-ink);
  --fc-glow: 0 0 40px rgba(114, 216, 238, .35);

  /* Radius: rounded, chunky */
  --fc-radius-sm: 10px;
  --fc-radius: 18px;
  --fc-radius-lg: 28px;
  --fc-radius-pill: 999px;

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