/* Whalepop design system: the one place for colors, type sizes, corners and spacing.
   Every page loads this file before its own styles. Use these tokens instead of literal values;
   the style guide at /styleguide shows each one, and tools/check-styles.py flags literals that slip in. */

:root {
  /* Color: surfaces and accent */
  --night: #070B16;        /* dark page background */
  --ink: #0B1020;          /* dark text on cream; dark buttons */
  --cream: #F1F2EE;        /* light page background; main text on dark */
  --pop: #FF4F81;          /* accent: buttons, highlights, the whale */
  --pop-deep: #D62A66;     /* accent on cream, where #FF4F81 is too light to read */

  /* Color: text on dark (night) backgrounds, strongest to quietest */
  --text-1: #F1F2EE;       /* headings, emphasis */
  --text-2: #B7BFCD;       /* body and lead paragraphs */
  --text-3: #8D97AA;       /* labels, captions, meta */

  /* Color: text on cream backgrounds, strongest to quietest */
  --ink-1: #0B1020;
  --ink-2: #2E3443;        /* body */
  --ink-3: #4A5263;        /* labels, captions, meta */

  /* Color: lines on dark backgrounds */
  --line-soft: rgba(241, 242, 238, 0.08);
  --line: rgba(241, 242, 238, 0.14);
  --line-strong: rgba(241, 242, 238, 0.3);   /* outlined buttons */

  /* Color: surfaces on dark backgrounds */
  --panel: #0B1224;        /* cards, forms and panels that sit on --night (case-study tints are separate) */

  /* Type: families */
  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Instrument Sans', system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, monospace;

  /* Type: headlines (Bricolage Grotesque). Phone size → size at 1440 wide in the comments. */
  --fs-display: clamp(52px, 8.8vw, 144px);   /* 52 → 127: page titles, home headline, closing headline */
  --fs-headline: clamp(44px, 6vw, 96px);     /* 44 → 86: section headlines on home and Services */
  --fs-title: clamp(40px, 4.6vw, 72px);      /* 40 → 66: chapter headings in case studies and deep dives */
  --fs-subtitle: clamp(32px, 3.4vw, 52px);   /* 32 → 49: minor section headings, case study card titles */
  --fs-quote: clamp(26px, 3vw, 46px);        /* 26 → 43: pull quotes and statements */
  --fs-card: clamp(28px, 2.6vw, 40px);       /* 28 → 37: card titles */
  --fs-title-s: clamp(22px, 2vw, 28px);      /* 22 → 28: small titles, FAQ questions, step names */

  /* Type: figures (Bricolage Grotesque, light weight) */
  --fs-figure-xl: clamp(96px, 15vw, 236px);  /* 96 → 216: the headline result of a case study */
  --fs-figure-l: clamp(64px, 7vw, 112px);    /* 64 → 101: big stats, the Sprint price */
  --fs-figure-m: clamp(44px, 4.4vw, 64px);   /* 44 → 63: stat tiles, monthly prices */
  --fs-figure-s: clamp(36px, 3.4vw, 52px);   /* 36 → 49: small stats, prices in lists */

  /* Type: text (Instrument Sans) */
  --fs-lead: clamp(19px, 1.6vw, 23px);       /* intro paragraph under a title */
  --fs-body-lg: 19px;                        /* emphasized paragraphs and lists */
  --fs-body: 17px;                           /* running text, main buttons */
  --fs-body-sm: 15px;                        /* card text, nav, small buttons, figure captions */
  --fs-caption: 14px;                        /* footnotes, tags, roles under names */

  /* Type: labels (Geist Mono) */
  --fs-label: 12.5px;                        /* eyebrows and labels, uppercase with --ls-label */
  --fs-code: 13.5px;                         /* code blocks */

  /* Type: line height and tracking */
  --lh-display: 0.92;                        /* display and headline */
  --ls-display: -0.025em;
  --lh-title: 0.95;                          /* title */
  --ls-title: -0.035em;
  --lh-body: 1.55;
  --ls-label: 0.1em;

  /* Corners */
  --r-sm: 12px;                              /* inputs, small images, chips */
  --r-md: 18px;                              /* screenshots, small cards */
  --r-lg: clamp(18px, 1.7vw, 24px);          /* cards, framed screenshots */
  --r-xl: clamp(24px, 2.5vw, 36px);          /* big panels and section cards */
  --r-pill: 999px;                           /* buttons and pills */

  /* Spacing and layout */
  --pad-x: clamp(20px, 4vw, 56px);           /* left and right page padding */
  --section-y: clamp(80px, 9vw, 140px);      /* top and bottom padding of a section */
  --maxw: 1440px;                            /* widest content */

  /* Spacing inside sections. Fixed spacing uses multiples of 4px (4, 8, 12, 16, 20, 24, 32, 40, 48, 64).
     Spacing that grows with the screen uses one of these. Phone → 1440 wide in the comments. */
  --space-xs: clamp(12px, 1.4vw, 20px);      /* 12 → 20: between a label and its text */
  --space-s: clamp(16px, 2vw, 28px);         /* 16 → 28: inside small cards, between list rows */
  --space-m: clamp(20px, 2.2vw, 32px);       /* 20 → 32: card padding, gaps in card grids */
  --space-l: clamp(24px, 2.8vw, 40px);       /* 24 → 40: big card padding, headline to text */
  --space-xl: clamp(32px, 3.9vw, 56px);      /* 32 → 56: panel padding, between columns */
  --space-2xl: clamp(40px, 5vw, 72px);       /* 40 → 72: big panel padding, headline to content */
  --space-3xl: clamp(40px, 6.7vw, 96px);     /* 40 → 96: between blocks inside a section */
  --space-4xl: clamp(64px, 7.2vw, 104px);    /* 64 → 104: between major blocks of a long page */
  --stage-x: clamp(16px, 5vw, 80px);         /* 16 → 72: side padding of the colored case-study stages */
  --bezel: clamp(7px, 0.9vw, 12px);          /* frame around the laptop mockup on the home page */

  /* Buttons. Height and side padding come in pairs; the radius is always --r-pill. */
  --btn-h-lg: 56px;   --btn-pad-lg: 28px;    /* main calls to action (Book an intro) */
  --btn-h: 52px;      --btn-pad: 24px;       /* secondary and outlined buttons */
  --btn-h-sm: 44px;   --btn-pad-sm: 20px;    /* header button, buttons inside cards */
  --chip-h: 32px;     --chip-pad: 14px;      /* small pills and filters */
  --tap: 44px;                               /* smallest tap target for text links and icon buttons */
}
