/*
 * Ghost Caret: tokens
 * Feel: a quiet slate room with one warm lamp. Everything is monospace, text you
 * haven't reached yet waits as dim "ghost" letters, and a single amber caret,
 * number or button shows where you are. Flat panels, no shadows, small radii.
 *
 * Fonts (free on Google Fonts):
 * <link href="https://fonts.googleapis.com/css2?family=Martian+Mono:wght@400;500;600&family=Red+Hat+Mono:ital,wght@0,400;0,500;0,600;1,400&display=swap" rel="stylesheet">
 */

:root {
  /* Surfaces */
  --gc-slate: #2A2C30;        /* page background */
  --gc-well: #222428;         /* sunken wells: inputs, code, the typing stage */
  --gc-raised: #34373C;       /* raised panels, cards, keycaps */
  --gc-raised-2: #3E4148;     /* hover on raised, active segment */
  --gc-line: #43464D;         /* hairlines and dividers */

  /* Text */
  --gc-paper: #DCD8CE;        /* main text, typed letters */
  --gc-paper-2: #C4C0B7;      /* long-form body text */
  --gc-ghost: #6B6F78;        /* untyped letters, secondary text, icons */
  --gc-ghost-2: #50535B;      /* faint labels, disabled */

  /* Accents */
  --gc-amber: #EAB54A;        /* the one accent: caret, active item, primary button, big numbers */
  --gc-amber-ink: #2A2C30;    /* text on amber */
  --gc-amber-soft: rgba(234, 181, 74, .14);
  --gc-coral: #DC6A5E;        /* mistakes and errors only */
  --gc-sage: #93BF8C;         /* "correct" marks only, inside product UI */

  /* Fonts */
  --gc-display: "Martian Mono", ui-monospace, monospace;
  --gc-mono: "Red Hat Mono", ui-monospace, monospace;

  /* Type scale */
  --gc-text-hero: clamp(34px, 5.4vw, 68px);
  --gc-text-h2: clamp(26px, 3.4vw, 40px);
  --gc-text-h3: 20px;
  --gc-text-lead: 19px;
  --gc-text-body: 16px;
  --gc-text-small: 14px;
  --gc-text-micro: 12px;
  --gc-text-stage: clamp(22px, 2.6vw, 32px);   /* the ghost-text typing line */
  --gc-text-stat: clamp(48px, 7vw, 88px);      /* big amber numbers */
  --gc-tracking-display: -.03em;

  /* Shape */
  --gc-radius-sm: 6px;
  --gc-radius: 10px;
  --gc-radius-lg: 16px;
  --gc-radius-pill: 999px;
  --gc-border: 1px solid var(--gc-line);
  --gc-key-edge: 0 3px 0 var(--gc-well);       /* the only "shadow": a keycap lip */
  --gc-focus: 0 0 0 2px var(--gc-amber);

  /* Space */
  --gc-container: 1120px;
  --gc-narrow: 720px;
  --gc-section: clamp(72px, 10vw, 128px);
  --gc-gap: 24px;

  /* Motion */
  --gc-blink: 1s steps(1) infinite;
  --gc-ease: cubic-bezier(.2, .7, .2, 1);
}
