/*
 * Soft Desktop: design tokens
 * A friendly, nerdy "operating system" for a website. The page sits in a pale window on a drawn
 * meadow wallpaper, with desktop icons down both sides, highlighter marks behind key words,
 * raised keycap buttons with a darker bottom edge, and a bold violet tab bar.
 *
 * Fonts (all free on Google Fonts):
 *   <link href="https://fonts.googleapis.com/css2?family=Rethink+Sans:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500&display=swap" rel="stylesheet">
 */
:root {
  /* Wallpaper: a soft sky fading into meadow greens */
  --sd-sky: #dfe9d4;
  --sd-meadow: #9dbb7a;
  --sd-meadow-deep: #6f9152;
  --sd-hill: #b9cf98;

  /* Window and surfaces */
  --sd-window: #eef0e6;
  --sd-window-bar: #e3e6d8;
  --sd-paper: #ffffff;
  --sd-tint: #f6f7f1;
  --sd-line: #d3d6c8;
  --sd-line-strong: #b9bdab;

  /* Text */
  --sd-ink: #1c1f1a;
  --sd-soft: #5e6358;
  --sd-faint: #8d9285;

  /* Accents: marigold for actions, violet for the active tab, cobalt for links */
  --sd-marigold: #e8a230;
  --sd-marigold-edge: #b97a16;
  --sd-marigold-soft: #fbe8c4;
  --sd-violet: #a632d6;
  --sd-violet-edge: #7d1fa6;
  --sd-cobalt: #2f6fe0;

  /* Highlighter marks behind words */
  --sd-mark-yellow: #f6e3a6;
  --sd-mark-blue: #cfe0fb;
  --sd-mark-peach: #f8d5bd;

  /* Status */
  --sd-success: #3f8f4e;
  --sd-danger: #c8462f;

  /* Fonts */
  --sd-font: "Rethink Sans", system-ui, sans-serif;
  --sd-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* Type scale */
  --sd-hero: clamp(36px, 5.2vw, 60px);
  --sd-h2: clamp(28px, 3.6vw, 42px);
  --sd-h3: 21px;
  --sd-lead: clamp(17px, 1.6vw, 20px);
  --sd-body: 16px;
  --sd-small: 14px;
  --sd-label: 12px;

  /* Shape */
  --sd-radius-window: 16px;
  --sd-radius: 8px;
  --sd-radius-sm: 6px;
  --sd-radius-pill: 999px;
  --sd-edge: 3px;           /* the keycap bottom edge on buttons */

  /* Shadows: windows float on the wallpaper, cards sit flat */
  --sd-shadow-window: 0 24px 60px -20px rgba(28, 40, 20, 0.35), 0 2px 0 rgba(28, 40, 20, 0.06);
  --sd-shadow-card: 0 10px 30px -14px rgba(28, 40, 20, 0.25);
  --sd-focus: 0 0 0 3px var(--sd-mark-blue);

  /* Space */
  --sd-gutter: clamp(16px, 4vw, 40px);
  --sd-dock: 112px;         /* width of each desktop icon column */
  --sd-section: clamp(48px, 7vw, 88px);
  --sd-max: 1080px;
}
