/*
 * Cover Drift: design tokens
 * A quiet catalog on bright paper. Near-white pages, one centered square cover at a time with
 * faded neighbors drifting behind it, a thin tick rail on the right edge, small grotesk type,
 * mono catalog numbers and square corners everywhere. Covers carry the color: deep slate, rust,
 * sage and charcoal blocks over pale paper with a single drawn line.
 *
 * Fonts (all free on Google Fonts):
 *   <link href="https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap" rel="stylesheet">
 */
:root {
  /* Surfaces: bright paper, a fog tone for quiet sections */
  --cd-paper: #fcfcfa;
  --cd-white: #ffffff;
  --cd-fog: #f1f1ed;
  --cd-line: #e2e2dc;
  --cd-line-strong: #c9c9c2;

  /* Text */
  --cd-ink: #121315;
  --cd-soft: #66686b;
  --cd-faint: #a4a6a8;

  /* Cover colors: these live on covers, tiles and one band per page, never on body text */
  --cd-slate: #284459;
  --cd-slate-deep: #1b3142;
  --cd-rust: #a9512b;
  --cd-sage: #7f8d74;
  --cd-charcoal: #2b2b2d;
  --cd-mist: #e7ecee;      /* the pale paper on the lower half of a cover */

  /* The one interactive accent: links, focus, the active tick, the primary button hover */
  --cd-accent: var(--cd-slate);

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

  --cd-text-hero: clamp(36px, 5vw, 60px);
  --cd-text-h2: clamp(28px, 3.2vw, 38px);
  --cd-text-h3: 20px;
  --cd-text-lead: 18px;
  --cd-text-body: 16px;
  --cd-text-small: 14px;
  --cd-text-micro: 12px;

  --cd-tracking-hero: -.025em;
  --cd-tracking-h2: -.02em;
  --cd-tracking-label: .08em;

  /* Shape: square corners, hairlines, one soft shadow reserved for the front cover */
  --cd-radius: 0;
  --cd-hair: 1px solid var(--cd-line);
  --cd-hair-strong: 1px solid var(--cd-line-strong);
  --cd-shadow-cover: 0 1px 2px rgba(18, 19, 21, .06), 0 30px 60px -24px rgba(27, 49, 66, .28);

  /* Space: lots of it */
  --cd-section: clamp(88px, 12vw, 160px);
  --cd-container: 1180px;
  --cd-narrow: 680px;
  --cd-cover: min(500px, 78vw);

  /* Motion: slow drifts, no bounce */
  --cd-ease: cubic-bezier(.25, .7, .2, 1);
  --cd-slow: .9s;
}
