/*
 * Clay Wall: design tokens
 * Quiet, sunlit and tactile. Full-bleed painted walls (clay, sage, ochre) with a drawn dappled
 * leaf shadow, oak-framed paper boards hung on them with a long soft sun shadow, warm off-white
 * paper sections, and thin light grotesk headlines. Buttons are ink or white pills, never colored.
 *
 * Fonts (all free on Google Fonts):
 *   <link href="https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@300;400;500;600&family=Inter+Tight:wght@500;700&family=DM+Mono:wght@400&display=swap" rel="stylesheet">
 */
:root {
  /* Walls: the painted surfaces behind hung objects. One wall per section, never two side by side */
  --cw-clay: #c47a5d;
  --cw-clay-deep: #a65f45;
  --cw-sage: #a7b09a;
  --cw-sage-deep: #848e78;
  --cw-ochre: #d6a462;
  --cw-ochre-deep: #b98443;

  /* Paper: the page and quiet sections */
  --cw-paper: #f2eee7;
  --cw-paper-2: #e8e2d8;
  --cw-eink: #dcd8ce;        /* the screen inside a framed board: flat, grey, a little green */
  --cw-white: #ffffff;
  --cw-line: rgba(30, 27, 24, .14);
  --cw-line-light: rgba(255, 255, 255, .5);

  /* Wood: frames around boards */
  --cw-oak: #caa470;
  --cw-oak-dark: #9c7547;

  /* Text */
  --cw-ink: #1e1b18;
  --cw-soft: #6c635a;
  --cw-faint: #9b9289;
  --cw-on-wall: #fffaf4;     /* text set straight on a wall */

  /* Type */
  --cw-sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --cw-panel: "Inter Tight", "Hanken Grotesk", system-ui, sans-serif;  /* big numbers on boards only */
  --cw-mono: "DM Mono", ui-monospace, Menlo, monospace;                /* captions and labels */

  --cw-text-hero: clamp(42px, 5.6vw, 76px);
  --cw-text-h2: clamp(32px, 3.6vw, 46px);
  --cw-text-h3: 24px;
  --cw-text-lead: 19px;
  --cw-text-body: 16px;
  --cw-text-small: 14px;
  --cw-text-micro: 12px;
  --cw-text-board: clamp(64px, 7vw, 96px);   /* the date or count on a board */

  --cw-weight-display: 300;
  --cw-tracking-hero: -.035em;
  --cw-tracking-h2: -.025em;

  /* Shape: square walls and tiles, almost-square boards, pill buttons */
  --cw-radius-none: 0;
  --cw-radius-board: 2px;
  --cw-radius-sm: 6px;
  --cw-radius-pill: 999px;
  --cw-border: 1px solid var(--cw-line);
  --cw-frame: 10px solid var(--cw-oak);      /* oak frame around a board */
  --cw-frame-thin: 6px solid var(--cw-oak);

  /* Shadows: sunlight comes from the top left, so every hung thing casts down and to the right */
  --cw-sun: 14px 18px 0 -2px rgba(70, 28, 12, .16), 22px 30px 36px rgba(70, 28, 12, .34);
  --cw-sun-sm: 8px 10px 0 -2px rgba(70, 28, 12, .14), 12px 16px 22px rgba(70, 28, 12, .28);
  --cw-lift: 0 1px 2px rgba(30, 27, 24, .06), 0 10px 30px rgba(30, 27, 24, .07);

  /* Leaf shadow tint */
  --cw-leaf: rgba(60, 24, 10, .55);

  /* Space */
  --cw-section: clamp(72px, 9vw, 120px);
  --cw-container: 1200px;
  --cw-narrow: 720px;
  --cw-gutter: 32px;

  /* Motion: slow drift only */
  --cw-ease: cubic-bezier(.25, .7, .25, 1);
}
