/*
 * Lattice Sky: design tokens
 * A dreamy science-magazine style. A white page with heavy, bookish serif headlines and
 * small geometric capitals for every label. The signature is the specimen sky: a full-bleed
 * ultramarine nebula with a polar lattice drawn over it, glowing nodes joined by fine lines,
 * glass polyhedra in violet and magenta, and soft cloud banks at the edges. Under it sit an
 * underlined topic kicker, a big serif headline and a right-aligned figure credit.
 * Ultramarine leads, magenta glints once per screen. Corners are nearly square.
 *
 * Fonts (all free on Google Fonts):
 *   <link href="https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;0,8..60,800;1,8..60,400&family=Jost:wght@400;500;600&display=swap" rel="stylesheet">
 */
:root {
  /* Surfaces */
  --lk-page: #ffffff;
  --lk-mist: #f4f3fb;
  --lk-haze: #e7e5f7;
  --lk-line: #e2e0ee;
  --lk-line-strong: #c6c2dc;

  /* Text */
  --lk-ink: #14122a;
  --lk-ink-2: #2b2845;
  --lk-soft: #5f5b78;
  --lk-faint: #9a96b2;
  --lk-on-sky: #ffffff;

  /* Accents: ultramarine leads, magenta is the once-per-screen glint */
  --lk-ultra: #3d33c4;
  --lk-ultra-deep: #2a2192;
  --lk-ultra-soft: #e2e0fb;
  --lk-magenta: #c03fb6;
  --lk-magenta-soft: #f8e1f5;
  --lk-alert: #c0362c;

  /* The specimen sky (drawings only) */
  --lk-sky-night: #1d1a5c;
  --lk-sky-deep: #3a35a8;
  --lk-sky-mid: #6f6ee0;
  --lk-sky-glow: #b7b3ff;
  --lk-sky-cloud: #eef0ff;
  --lk-glass-a: #8f7cff;
  --lk-glass-b: #d968d0;
  --lk-glass-c: #63c7f2;
  --lk-node: #ffffff;
  --lk-lattice: rgba(255, 255, 255, 0.38);
  --lk-sky-gradient: radial-gradient(ellipse at 50% 55%, var(--lk-sky-glow) 0%, var(--lk-sky-mid) 28%, var(--lk-sky-deep) 58%, var(--lk-sky-night) 100%);

  /* Fonts */
  --lk-serif: "Source Serif 4", Georgia, serif;
  --lk-sans: "Jost", "Futura", "Avenir Next", Arial, sans-serif;

  /* Type scale */
  --lk-size-hero: clamp(38px, 5.4vw, 72px);
  --lk-size-h1: clamp(34px, 4.4vw, 58px);
  --lk-size-h2: clamp(28px, 3.2vw, 40px);
  --lk-size-h3: 22px;
  --lk-size-dek: clamp(18px, 1.6vw, 21px);
  --lk-size-body: 17px;
  --lk-size-prose: 19px;
  --lk-size-small: 14px;
  --lk-size-label: 12px;
  --lk-size-credit: 11.5px;
  --lk-leading: 1.6;
  --lk-leading-prose: 1.72;
  --lk-leading-tight: 1.08;
  --lk-tracking-label: 0.2em;
  --lk-tracking-nav: 0.01em;

  /* Shape */
  --lk-radius: 2px;
  --lk-radius-round: 999px;
  --lk-border: 1px solid var(--lk-line);
  --lk-border-strong: 1px solid var(--lk-ink);
  --lk-kicker-rule: 2px solid var(--lk-ultra);
  --lk-shadow-card: 0 1px 0 var(--lk-line), 0 18px 40px -28px rgba(29, 26, 92, 0.45);
  --lk-shadow-glow: 0 0 0 1px rgba(255, 255, 255, 0.35), 0 10px 40px rgba(143, 124, 255, 0.55);
  --lk-focus: 0 0 0 3px var(--lk-ultra-soft);

  /* Space */
  --lk-space-1: 4px;
  --lk-space-2: 8px;
  --lk-space-3: 12px;
  --lk-space-4: 16px;
  --lk-space-5: 24px;
  --lk-space-6: 32px;
  --lk-space-7: 48px;
  --lk-space-8: 72px;
  --lk-space-9: 104px;
  --lk-max: 1180px;
  --lk-narrow: 720px;
  --lk-gutter: clamp(18px, 4vw, 40px);
  --lk-sidebar: 300px;
}
