/*
  Safe Light: design tokens
  A single-ink, after-hours workroom look. The page is near black and
  everything on it is printed in one safelight red at different strengths:
  no white text, no second accent. Headlines are tall modular capitals
  (Handjet) set huge and tight, everything else is a small mono. Labels
  sit in solid red tabs pinned to 1px red hairlines, the page is framed
  like an instrument panel with corner crop marks, and pictures are drawn
  as red line art (contact sheets, film strips, timers). Square corners,
  no shadows except a faint red glow on the headline.

  Fonts (free, Google Fonts):
  <link href="https://fonts.googleapis.com/css2?family=Handjet:wght@300..800&family=Red+Hat+Mono:wght@400;500;700&display=swap" rel="stylesheet">
*/

:root {
  /* Surfaces */
  --sf-black: #070202;
  --sf-dark: #130505;
  --sf-deep: #240907;
  --sf-line: rgba(232, 36, 28, .32);
  --sf-line-soft: rgba(232, 36, 28, .16);

  /* The one ink, at three strengths */
  --sf-red: #E8241C;
  --sf-red-hot: #FF3A2C;
  --sf-red-mid: #A8201A;
  --sf-red-low: #6A1511;

  /* Ready state only (a lamp that says "done") */
  --sf-amber: #FF8A3D;

  /* Text on a red fill */
  --sf-on-red: #070202;

  /* Fonts */
  --sf-font-display: "Handjet", "Courier New", monospace;
  --sf-font-mono: "Red Hat Mono", ui-monospace, monospace;

  /* Type scale */
  --sf-text-mega: clamp(64px, 15vw, 232px);
  --sf-text-hero: clamp(56px, 10vw, 148px);
  --sf-text-h1: clamp(48px, 7vw, 104px);
  --sf-text-h2: clamp(40px, 5vw, 72px);
  --sf-text-h3: 30px;
  --sf-text-lead: clamp(15px, 1.4vw, 18px);
  --sf-text-body: 14px;
  --sf-text-article: 16px;
  --sf-text-label: 12px;
  --sf-text-micro: 10.5px;

  --sf-tracking-label: .08em;
  --sf-leading-display: .82;
  --sf-leading-body: 1.6;

  /* Shape */
  --sf-radius: 0;
  --sf-rule: 1px solid var(--sf-line);
  --sf-rule-soft: 1px solid var(--sf-line-soft);
  --sf-rule-hard: 1px solid var(--sf-red);
  --sf-glow: 0 0 24px rgba(232, 36, 28, .35);
  --sf-mark: 14px;

  /* Space */
  --sf-space-1: 4px;
  --sf-space-2: 8px;
  --sf-space-3: 12px;
  --sf-space-4: 16px;
  --sf-space-5: 24px;
  --sf-space-6: 32px;
  --sf-space-7: 48px;
  --sf-space-8: 72px;
  --sf-space-9: 112px;
  --sf-container: 1360px;
  --sf-narrow: 700px;
  --sf-gutter: clamp(14px, 2.4vw, 28px);

  /* Motion */
  --sf-ease: cubic-bezier(.2, .7, .2, 1);
  --sf-fast: 140ms;
}
