/*
 * Cliff Homesite: tokens
 * Feel: a hand-built personal homepage from the early web, kept with love.
 * A flat cobalt field, one narrow column framed by a thick ink border, a
 * rounded sky bowl inside the frame, a bubbly hand-lettered wordmark in
 * magenta with a plum outline, stacked bold monospace links in sky cyan,
 * and grassy cliff islands standing in a pool of water at the foot of
 * every page. Playful, nostalgic, crafted and a little raw.
 *
 * Fonts (free, Google Fonts):
 * <link href="https://fonts.googleapis.com/css2?family=Chewy&family=JetBrains+Mono:ital,wght@0,400;0,700;0,800;1,400&display=swap" rel="stylesheet">
 */
:root {
  /* The field and the frame */
  --ch-field: #1c61b0;      /* the page outside the frame */
  --ch-sky: #2470c2;        /* the bowl inside the frame, where content lives */
  --ch-deep: #154f95;       /* frame corners, panels, table heads */
  --ch-pool: #0e3c74;       /* the water at the foot, inputs, code */
  --ch-ink: #0a0910;        /* the frame border and hard outlines */

  /* Text */
  --ch-text: #ffffff;
  --ch-dim: #d3e3f6;
  --ch-faint: #9fbde0;

  /* Accents */
  --ch-link: #72cdf8;       /* stacked links, inline links */
  --ch-link-hi: #b4e6ff;    /* link hover */
  --ch-magenta: #d4248f;    /* the wordmark, the main button, badges */
  --ch-magenta-hi: #ec46a8;
  --ch-plum: #5a0c43;       /* outline around magenta lettering */
  --ch-sun: #ffd84a;        /* one highlighted word, stars, new badges */

  /* The islands */
  --ch-grass: #8fc83f;
  --ch-grass-lo: #4e8a28;
  --ch-rock: #6d4a31;
  --ch-rock-lo: #3d281b;

  /* Type */
  --ch-display: "Chewy", "Comic Sans MS", system-ui, sans-serif;
  --ch-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --ch-text-mark: clamp(52px, 9vw, 96px);
  --ch-text-h1: clamp(36px, 6vw, 58px);
  --ch-text-h2: clamp(26px, 4vw, 36px);
  --ch-text-h3: 18px;
  --ch-text-link: clamp(20px, 3vw, 26px);
  --ch-text-body: 15px;
  --ch-text-small: 13px;
  --ch-text-micro: 11px;

  --ch-lh-body: 1.6;
  --ch-lh-head: 1.05;

  /* Shape */
  --ch-border: 3px solid var(--ch-ink);
  --ch-border-thin: 2px solid var(--ch-ink);
  --ch-r-bowl: 56px;        /* the inner top corners of the frame */
  --ch-r-card: 18px;        /* cards and plans, top corners only */
  --ch-r-pill: 999px;       /* buttons and badges */
  --ch-r-input: 10px;
  --ch-shadow-hard: 4px 4px 0 var(--ch-ink);
  --ch-shadow-press: 1px 1px 0 var(--ch-ink);
  --ch-stroke-mark: 5px;    /* plum outline on the wordmark */
  --ch-stroke-head: 3px;    /* plum or ink outline on headlines */

  /* Space */
  --ch-frame: 760px;        /* the column width */
  --ch-gap-1: 6px;
  --ch-gap-2: 12px;
  --ch-gap-3: 20px;
  --ch-gap-4: 32px;
  --ch-gap-5: 48px;
  --ch-gap-6: 72px;

  /* Motion */
  --ch-quick: 120ms ease-out;
  --ch-bob: 4s ease-in-out infinite;
}
