/*
 * Relief Grid: design tokens
 * Precise, cinematic and a little futuristic. A pale fog page split by hairline frame grids,
 * with flush, square color tiles in deep navy and signal ember. The signature is the drawn
 * relief: topographic contour rings in ember over navy, with a survey grid on top, used for
 * heroes and image tiles instead of photos. Every tile has a small corner arrow.
 *
 * Fonts (all free on Google Fonts):
 *   <link href="https://fonts.googleapis.com/css2?family=Schibsted+Grotesk:wght@400;500;600&family=Instrument+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap" rel="stylesheet">
 */
:root {
  /* Surfaces: pale fog page, near-white paper tiles */
  --rg-fog: #eceff3;
  --rg-paper: #f8f9fb;
  --rg-white: #ffffff;

  /* Navy: text, dark tiles, the relief ground */
  --rg-navy: #13295a;
  --rg-navy-deep: #0b1b40;
  --rg-navy-mid: #2a4180;

  /* Ember: the one accent. Headlines on navy, labels, the relief lines, the main button */
  --rg-ember: #ea7b3c;
  --rg-ember-deep: #c9612a;
  --rg-ember-soft: #f7d2b8;

  /* Text */
  --rg-ink: var(--rg-navy);
  --rg-soft: #5a6782;
  --rg-faint: #8d97ab;
  --rg-on-navy: #e8ecf5;
  --rg-on-navy-soft: #a9b4cf;

  /* Hairlines: the frame grid */
  --rg-line: #c6cdd9;
  --rg-line-strong: #98a3b8;
  --rg-line-on-navy: rgba(232, 236, 245, .28);

  /* Status */
  --rg-low: #3f9b6e;
  --rg-high: #d9452f;

  /* Type */
  --rg-display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --rg-sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --rg-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --rg-text-hero: clamp(48px, 8vw, 112px);
  --rg-text-h2: clamp(32px, 4.6vw, 60px);
  --rg-text-h3: clamp(22px, 2.2vw, 28px);
  --rg-text-lead: 19px;
  --rg-text-body: 16px;
  --rg-text-small: 14px;
  --rg-text-micro: 12px;

  --rg-tracking-hero: -.035em;
  --rg-tracking-h2: -.025em;
  --rg-tracking-mono: .04em;

  /* Shape: square corners, hairline frames, no shadows */
  --rg-radius: 0;
  --rg-radius-field: 2px;
  --rg-border: 1px solid var(--rg-line);
  --rg-border-on-navy: 1px solid var(--rg-line-on-navy);
  --rg-shadow: none;
  --rg-focus: 0 0 0 3px var(--rg-ember-soft);

  /* The relief: contour rings and a survey grid, drawn in CSS */
  --rg-relief-line: rgba(234, 123, 60, .8);
  --rg-relief-line-2: rgba(234, 123, 60, .45);
  --rg-relief-grid: rgba(232, 236, 245, .1);
  --rg-relief-step: 22px;

  /* Space */
  --rg-frame: clamp(10px, 1.6vw, 20px);
  --rg-pad: clamp(20px, 2.6vw, 36px);
  --rg-section: clamp(72px, 10vw, 128px);
  --rg-container: 1280px;
  --rg-narrow: 720px;
}
