/*
 * Swatch Book: design tokens
 * A raw, typewriter-y index style. A white page, everything set in one monospace face,
 * outlined square tabs for navigation, and a wall of flat color tiles: each tile is one
 * entry, with its title at the top and a date or count pinned to the bottom. No shadows,
 * no gradients, no rounding (except the one pill-shaped search field). Small inverse
 * labels ("Note:") and a highlighter-yellow sticker are the only decoration besides a
 * hand-drawn pixel mark.
 *
 * Fonts (all free on Google Fonts):
 *   <link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,400;0,500;0,700;1,400&family=Silkscreen&display=swap" rel="stylesheet">
 */
:root {
  /* Surfaces */
  --sb-page: #ffffff;
  --sb-fog: #f0efeb;
  --sb-line: #d6d5d0;
  --sb-ink: #121212;
  --sb-soft: #5f5f5c;
  --sb-faint: #9b9a96;

  /* Tile colors: flat, loud, one per entry. Text color is set per tile in components.css */
  --sb-orange: #ef8b17;
  --sb-sky: #cfe2f6;
  --sb-cyan: #52f1ee;
  --sb-mustard: #e4d24c;
  --sb-plum: #561867;
  --sb-peach: #f5b394;
  --sb-tomato: #d8471b;
  --sb-lime: #b5d13c;
  --sb-slate: #8f8f8d;

  /* Accents: link blue for text links, highlighter for the one sticker per screen */
  --sb-blue: #1d1de8;
  --sb-highlight: #f6f21c;

  /* Type: one monospace for everything, a pixel face only for tiny labels */
  --sb-mono: "IBM Plex Mono", "Courier New", ui-monospace, monospace;
  --sb-pixel: "Silkscreen", "IBM Plex Mono", monospace;

  --sb-text-hero: clamp(30px, 4vw, 52px);
  --sb-text-h2: clamp(24px, 2.8vw, 34px);
  --sb-text-h3: 17px;
  --sb-text-body: 16px;
  --sb-text-prose: 17px;
  --sb-text-small: 14px;
  --sb-text-micro: 12px;
  --sb-leading: 1.45;
  --sb-leading-tight: 1.2;

  /* Shape: square, outlined, flat */
  --sb-radius: 0;
  --sb-radius-pill: 999px;
  --sb-border: 1px solid var(--sb-ink);
  --sb-border-dotted: 1px dotted var(--sb-ink);
  --sb-border-soft: 1px solid var(--sb-line);
  --sb-shadow: none;
  --sb-tile-ratio: 1 / 1;

  /* Space: tight gaps between tiles, plain padding inside */
  --sb-gap: 10px;
  --sb-gutter: clamp(14px, 1.6vw, 20px);
  --sb-pad: 11px;
  --sb-section: clamp(48px, 7vw, 96px);
  --sb-container: 1400px;
  --sb-narrow: 720px;

  /* Motion: instant. Hovers swap colors, nothing glides */
  --sb-speed: .08s;
}
