/*
 * Sunset Steps: design tokens
 * Bright and engineered. A warm paper page ruled into hairline cells like a blueprint sheet,
 * a tight grotesk for headlines and body, a pixel face for small labels, square corners and
 * no shadows. The color lives in one place: stepped sunset blocks (red, orange, amber, gold)
 * that climb like a staircase, plus rotated diamonds and small pixel sprites drawn in SVG.
 *
 * Fonts (all free on Google Fonts):
 *   <link href="https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&family=Silkscreen&display=swap" rel="stylesheet">
 */
:root {
  /* Surfaces: warm paper first, white inside cells, ink for the few dark blocks */
  --ss-paper: #fbfaf7;
  --ss-white: #ffffff;
  --ss-cream: #fff4dc;      /* soft fill for callouts and selected rows */
  --ss-rule: #e5e0d6;       /* every hairline: cell edges, column rails, dividers */
  --ss-rule-strong: #cfc8bb;

  /* Text */
  --ss-ink: #17140f;
  --ss-soft: #6a645b;
  --ss-faint: #a29a8e;

  /* The sunset ramp. Always used together and always in this order, darkest at the bottom */
  --ss-red: #e3371e;
  --ss-orange: #f2631c;
  --ss-amber: #f9951b;
  --ss-gold: #ffc522;
  --ss-red-dark: #c42a14;

  /* Status, only inside product UI */
  --ss-green: #2f9e5b;

  /* Type */
  --ss-sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ss-pixel: "Silkscreen", ui-monospace, "SF Mono", Menlo, monospace;

  --ss-text-hero: clamp(44px, 7.4vw, 104px);
  --ss-text-h2: clamp(32px, 4.4vw, 60px);
  --ss-text-h3: 22px;
  --ss-text-lead: 19px;
  --ss-text-body: 16px;
  --ss-text-small: 14px;
  --ss-text-pixel: 12px;   /* Silkscreen only reads well small */

  --ss-tracking-hero: -.045em;
  --ss-tracking-h2: -.035em;

  /* Shape: square. Hairlines instead of shadows */
  --ss-radius: 0px;
  --ss-border: 1px solid var(--ss-rule);
  --ss-border-ink: 1px solid var(--ss-ink);
  --ss-shadow: none;

  /* The stepped sunset band, as a hard-stop gradient for strips and thin bars */
  --ss-band: linear-gradient(90deg, var(--ss-red) 0 25%, var(--ss-orange) 25% 50%, var(--ss-amber) 50% 75%, var(--ss-gold) 75% 100%);
  --ss-band-v: linear-gradient(0deg, var(--ss-red) 0 25%, var(--ss-orange) 25% 50%, var(--ss-amber) 50% 75%, var(--ss-gold) 75% 100%);

  /* Space */
  --ss-cell: clamp(24px, 4vw, 48px);       /* padding inside a ruled cell */
  --ss-section: clamp(64px, 9vw, 120px);
  --ss-container: 1240px;
  --ss-narrow: 720px;
  --ss-nav-h: 56px;

  /* Motion: steps, not glides */
  --ss-ease: steps(4, end);
}
