/*
 * Civic Mast: tokens
 * Feel: a public agency's mission page after dark. A black masthead bar over a
 * graphite sub-nav band with a breadcrumb, giant heavy stacked headlines set flush
 * left over a full-bleed drawn night plate, mono letterspaced status lines with a
 * coloured dot, a red outlined LIVE tag, square corners and plain 1px rules.
 * One sodium amber lights the drawn object and the main action.
 *
 * Fonts (free, Google Fonts):
 * <link href="https://fonts.googleapis.com/css2?family=Public+Sans:wght@400;500;700;800;900&family=DM+Mono:wght@400;500&display=swap" rel="stylesheet">
 */
:root {
  /* Surfaces, from the mast down */
  --cm-mast: #000000;
  --cm-night: #08090C;
  --cm-graphite: #17181D;
  --cm-panel: #1E2027;
  --cm-rule: #2C2F38;
  --cm-rule-bright: #4A4E5A;

  /* Text */
  --cm-white: #F4F5F7;
  --cm-read: #CDD0D6;
  --cm-mute: #9499A4;
  --cm-faint: #5F6470;

  /* Accent: sodium amber. The lit object, the main button, the active link */
  --cm-amber: #F2A93B;
  --cm-amber-deep: #C98419;
  --cm-amber-soft: rgba(242, 169, 59, .16);

  /* Status colours: small dots and tags only */
  --cm-go: #3DD68C;
  --cm-live: #F0483E;
  --cm-hold: #F2A93B;

  /* Plate colours: only inside .cm-plate drawings */
  --cm-plate-sky: linear-gradient(180deg, #0B0E1A 0%, #141A33 46%, #2A2440 74%, #3A2A3C 100%);
  --cm-plate-dusk: linear-gradient(180deg, #10142A 0%, #2B2546 55%, #57374A 100%);
  --cm-plate-ground: #0C0D12;
  --cm-plate-steel: #2A2D38;
  --cm-plate-mauve: #8E6A8C;
  --cm-stars: radial-gradient(circle at 15% 25%, rgba(244, 245, 247, .7) 0 1px, transparent 1.5px), radial-gradient(circle at 65% 70%, rgba(244, 245, 247, .45) 0 1px, transparent 1.5px), radial-gradient(circle at 40% 55%, rgba(244, 245, 247, .3) 0 .8px, transparent 1.2px);
  --cm-scrim: linear-gradient(90deg, rgba(8, 9, 12, .86) 0%, rgba(8, 9, 12, .45) 48%, rgba(8, 9, 12, 0) 78%);
  --cm-scrim-low: linear-gradient(0deg, rgba(8, 9, 12, .92) 0%, rgba(8, 9, 12, 0) 60%);

  /* Fonts */
  --cm-sans: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --cm-mono: "DM Mono", ui-monospace, monospace;
  --cm-weight-regular: 400;
  --cm-weight-medium: 500;
  --cm-weight-bold: 700;
  --cm-weight-heavy: 800;
  --cm-weight-black: 900;

  /* Type scale */
  --cm-text-hero: clamp(52px, 8.4vw, 128px);
  --cm-text-h1: clamp(42px, 5.6vw, 84px);
  --cm-text-h2: clamp(30px, 3.6vw, 52px);
  --cm-text-h3: 21px;
  --cm-text-lead: 19px;
  --cm-text-body: 16px;
  --cm-text-small: 14px;
  --cm-text-nav: 15px;
  --cm-text-micro: 12px;
  --cm-tracking-hero: -.035em;
  --cm-tracking-head: -.025em;
  --cm-tracking-micro: .22em;

  /* Shape: square, ruled, flat */
  --cm-radius: 0;
  --cm-radius-dot: 50%;
  --cm-border: 1px solid var(--cm-rule);
  --cm-border-bright: 1px solid var(--cm-rule-bright);
  --cm-focus: 0 0 0 3px var(--cm-amber-soft);
  --cm-shadow: none;

  /* Space */
  --cm-gutter: clamp(20px, 2.4vw, 32px);
  --cm-container: 1360px;
  --cm-narrow: 720px;
  --cm-section: clamp(72px, 9vw, 128px);
  --cm-mast-h: 84px;

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