/*
 * Card Pile: design tokens
 * Nostalgic, gallery-quiet dark. Pure black pages, off-white grotesk type set small and tight,
 * a mono for labels, and one loud move: a loose pile of tilted, rounded cards in candy colors
 * stacked in the middle of the screen, like prints tipped out of a box onto a table.
 *
 * Fonts (all free on Google Fonts):
 *   <link href="https://fonts.googleapis.com/css2?family=Familjen+Grotesk:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap" rel="stylesheet">
 */
:root {
  /* Surfaces: black first, everything else floats on it */
  --cp-black: #050505;
  --cp-coal: #121212;        /* quiet sections, inputs, card backs */
  --cp-coal-2: #1c1c1c;      /* hover on coal */
  --cp-line: #2a2a2a;        /* every border and divider */

  /* Text */
  --cp-paper: #f4f1ea;       /* headlines, body, the badge tile */
  --cp-soft: #a3a09a;        /* leads and secondary text */
  --cp-faint: #66635e;       /* captions, legal, disabled */

  /* Card colors: only on the tilted cards, chips and one highlight per screen */
  --cp-candy: #f39ac0;       /* the main accent: primary buttons, focus, the active chip */
  --cp-candy-dark: #e57aa8;
  --cp-cobalt: #2f3fe0;
  --cp-mint: #9fe3c4;
  --cp-butter: #f2d675;
  --cp-clay: #c9774f;
  --cp-fog: #d8d6d0;         /* a pale card, like a white print */

  /* Type */
  --cp-sans: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --cp-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --cp-text-hero: clamp(40px, 5.6vw, 76px);
  --cp-text-h2: clamp(30px, 3.6vw, 48px);
  --cp-text-h3: 22px;
  --cp-text-lead: 19px;
  --cp-text-body: 16px;
  --cp-text-small: 14px;
  --cp-text-micro: 12px;

  --cp-tracking-hero: -.035em;
  --cp-tracking-h2: -.025em;

  /* Shape: rounded cards that tilt, square outlined buttons, almost no shadow */
  --cp-radius-xs: 2px;       /* buttons, inputs: nearly square */
  --cp-radius-card: 16px;    /* every card and print */
  --cp-radius-tile: 22px;    /* the badge tile */
  --cp-border: 1px solid var(--cp-line);
  --cp-outline: 1px solid var(--cp-paper);
  --cp-drop: 0 18px 40px rgba(0, 0, 0, .55);   /* only under tilted cards */

  --cp-tilt-1: -11deg;
  --cp-tilt-2: 7deg;
  --cp-tilt-3: -4deg;
  --cp-tilt-4: 14deg;
  --cp-tilt-5: -18deg;

  /* Space */
  --cp-section: clamp(80px, 10vw, 140px);
  --cp-container: 1200px;
  --cp-narrow: 720px;
  --cp-gutter: 24px;

  /* Motion: cards settle, nothing bounces */
  --cp-ease: cubic-bezier(.2, .7, .2, 1);
}
