/* Nappedia shared tokens (#78, part of #67).
   One set of phone and tablet sizes. Every Mobile story uses these values instead of
   picking its own numbers. #31 adds colors and spacing to this same file.

   Breakpoints: custom properties cannot be used inside @media, so media queries copy
   these numbers literally. Use only these three:
     phone   @media (max-width: 640px)
     tablet  @media (max-width: 900px)    phones and tablets together
     desktop @media (min-width: 901px)
   The mobile audit (npm run audit:mobile) checks 320, 360, 390, 414 (phones),
   844x390 (phone landscape), 768 and 1024 (tablets), and 1440 (desktop reference).

   The minimums come from the mobile audit rules in scripts/mobile-audit.mjs:
   paragraphs 16px or more, no reader text under 12px, form fields 16px or more,
   tap targets 24px or more, main buttons 44px tall on phones and tablets. */

:root {
  --bp-phone-max: 640px;
  --bp-tablet-max: 900px;
  --bp-desktop-min: 901px;

  /* Phone type scale (640px and under). */
  --phone-fs-h1: 28px;
  --phone-fs-h2: 24px;
  --phone-fs-h3: 20px;
  --phone-fs-lead: 18px;
  --phone-fs-body: 16px;   /* paragraphs: never smaller */
  --phone-fs-small: 14px;  /* labels, captions, table cells */
  --phone-fs-meta: 12px;   /* badges, eyebrows, dates: the floor for any reader text */
  --phone-fs-field: 16px;  /* inputs and selects, so iPhone Safari does not zoom in */
  --phone-lh-body: 1.6;
  --phone-lh-heading: 1.2;

  /* Side gutters: space between the screen edge and the content. */
  --gutter-phone: 16px;
  --gutter-tablet: 24px;
  --gutter-desktop: 32px;

  /* Tap sizes. */
  --tap-min: 24px;         /* any link or control, unless it sits inside a sentence */
  --tap-button: 44px;      /* main buttons on phones and tablets */
  --tap-gap: 8px;          /* space between neighbouring tap targets */

  /* Colours (DESIGN.md section 1). */
  --color-bg: #f7f5f0;
  --color-card: #ffffff;
  --color-wash: #edf5f2;
  --color-panel: #faf8f4;
  --color-ink: #202b28;
  --color-ink-deep: #141f1b;
  --color-text: #202b28;
  --color-muted: #58625b;
  --color-link: #0066cc;
  --color-link-hover: #004499;
  --color-focus: #202b28;
  --color-focus-on-dark: #edf5f2;
  --color-coral: #cd4b2f;
  --color-coral-dark: #b83318;
  --color-success: #245c4f;
  --color-success-dark: #19483d;
  --color-warning: #a9412c;
  --color-warning-tint: #fbece8;
  --color-dark: #081a22;
  --color-dark-strip: #0e2732;
  --color-on-dark: #dce9ec;
  --color-on-dark-muted: #a9c2ca;
  --color-coral-on-dark: #f7a38b;

  /* Font families. */
  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans: "Inter", InterFallback, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Type sizes. The --phone-fs-* names above are the same values. */
  --fs-h1-phone: 28px;
  --fs-h1-tablet: 32px;
  --fs-h1: 40px;
  --fs-h2-phone: 24px;
  --fs-h2: 28px;
  --fs-h3: 20px;
  --fs-lead: 18px;
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-meta: 12px;
  --fs-field: 16px;
  --fs-wordmark: 20px;

  /* Long reading: brand reviews (scripts/fast-brand/build.mjs). Bigger text at --lh-body, a gap between paragraphs,
     and section headings that stand out, so a long review never reads as one block (Chris, 2026-11-04). */
  --fs-read-phone: 17px;
  --fs-read: 18px;
  --fs-h2-read-phone: 26px;
  --fs-h2-read: 32px;
  --fs-h3-read: 24px;

  /* Weights. */
  --fw-regular: 400;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* Line heights. */
  --lh-h1: 1.1;
  --lh-heading: 1.2;
  --lh-small: 1.5;
  --lh-body: 1.6;

  /* Spacing scale and section padding. */
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-48: 48px;
  --section-pad-desktop: 38px;
  --section-pad-tablet: 32px;
  --section-pad-phone: 28px;
  --section-pad-y: 38px;

  /* Radius, shadow and content widths. */
  --radius-control: 8px;
  --radius-card: 16px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 3px rgba(32, 43, 40, 0.08);
  --width-shell: 1050px;
}
