/* ==========================================================================
   Design tokens — extracted from the Penpot file "Garmin Padel Score"
   Boards: "Padel Score - Mobile" (440×6569) and "Padel Score - Desktop" (1440×6569)
   Values were measured from the Penpot export; see web/README.md for provenance.
   This file is the single source of truth: dot-grid.js reads the --dot-* tokens.
   ========================================================================== */

:root {
  /* The artwork is light-only. Declaring it here themes native browser UI
     (scrollbars, form controls, initial canvas) to match the page instead of
     letting a dark-mode OS render dark chrome around a light design. */
  color-scheme: only light;

  /* Colour ---------------------------------------------------------------- */
  --bg: #f6f6f6;           /* page background                              */
  --surface: #ffffff;      /* brand plate                                  */
  --ink: #23262f;          /* headings, borders, body copy                 */
  --brand: #ed71a6;        /* header hatch stripes                         */
  --dot: #c9cdd4;          /* background dot grid                          */
  --link: #2139cc;         /* footer links: retro.text.link → retro.cobalt */
  --link-hover: #cc0f7a;   /* footer hover: retro.text.link-hover → magenta */
  --cta-bg: #71cbd3;       /* store CTA: retro.bg.accent → retro.cyan        */
  --cta-bg-hover: #f7eb7f; /* store CTA hover: retro.bg.highlight → retro.sun */

  /* Typography ------------------------------------------------------------ */
  --font-display: "Jersey 10", "Trebuchet MS", sans-serif;
  --font-sub: "Jersey 15", "Trebuchet MS", sans-serif;
  /* Type is in rem so it follows the user's browser/OS text size. At the
     default 16px root these resolve to the Penpot measurements (48/30/24/17). */
  --fs-wordmark: 3rem;     /* 48px */
  --fs-subtitle: 1.875rem; /* 30px */
  --fs-label: 1.875rem;    /* 30px */
  --fs-body: 1.5rem;       /* 24px */
  --fs-footer: 1.0625rem;  /* 17px */
  --lh-footer: 1.25rem;    /* 20px */
  --lh-body: 1.2083;       /* design line box: 29px at 24px                */

  /* Layout ---------------------------------------------------------------- */
  --page-width: 440px;     /* mobile board width                           */
  --gutter: 16px;
  --content-width: 408px;  /* page width − 2 gutters                       */
  --header-height: 208px;
  /* Header art, measured from the Penpot "Header" board (identical on both
     the mobile and the desktop board): hatch band 384 × 208 anchored to the
     page's left edge; plate 389 × 104 at x = 25, y = 52, so the plate
     overhangs the hatch by 30px. The plate's browser height is content-driven
     (16px vertical padding), so it is ~116px with a one-line tagline. */
  --hatch-width: 384px;
  --hatch-height: 208px;
  --stripe-width: 3.5px;   /* 5px measured horizontally on a −45° diagonal */
  --stripe-period: 14.14px;/* 20px horizontal pitch                         */
  --plate-width: 389px;    /* design width; grows with the tagline ≥560px */
  --plate-padding-y: 16px; /* replaces the fixed 104px plate height        */
  --plate-offset-x: 9px;   /* on top of the 16px gutter → x = 25            */
  --plate-inset-x: 20px;   /* logo starts at x = 49                         */
  --plate-gap: 24px;       /* text starts at x = 137                        */
  --plate-offset-y: 52px;
  /* Language switcher ("Language Switch" component): two 26×26 flag discs
     12px apart, 14px from the top and 16px (--gutter) from the right edge. */
  --lang-flag-size: 26px;
  --lang-gap: 12px;
  --lang-inset-top: 14px;
  --lang-ring: 4px;
  --label-height: 52px;
  --step-gap: 100px;       /* vertical gap between step sections           */
  --intro-gap: 42px;       /* gap under the "How to Use" bar               */

  /* Footer ("Footer" 392×78 mobile / auto×78 desktop, "Footer Smaller" -----
     275×126): full width on mobile, right-aligned on desktop. */
  --footer-offset: 24px;   /* card inset from the page edges                */
  --footer-padding: 14px;  /* + 2px border = the design's 16px inset        */
  --footer-border: 2px;
  --footer-rule: 1px;      /* hairline between the credit and the links     */
  --footer-gap: 3px;       /* between rows and inside the credit row        */
  --footer-column-gap: 24px; /* desktop: Ko-fi button ↔ credit block        */
  --footer-small-gap: 16px;  /* stacked: button ↔ credit block              */
  --footer-link-gap: 8px;
  --footer-icon-size: 20px;/* heart; the whale is 21.36 × 15.72            */
  --kofi-color: #72a4f2;   /* Ko-fi widget/fallback button                  */

  /* Border / shadow of the hand-drawn boxes, measured from the Penpot shapes
     (strokes are "inner", shadows are drop-shadows with blur 0). */
  --line: #000000;
  --label-border: 2px;
  --label-inset: 22px;     /* + 2px border = the design's 24px text inset   */
  --label-shadow: 4px 4px 0 var(--line);
  --label-shadow-wide: 8px 8px 0 var(--line);   /* "How to Use" bar        */
  --label-rotation: 0deg;
  --plate-border: 4px;
  --plate-shadow: 16px 16px 0 var(--line);
  --footer-shadow: 8px 8px 0 var(--line);

  /* Dot grid -------------------------------------------------------------- */
  --dot-pitch: 52px;       /* measured on the desktop board                */
  --dot-size: 3px;
  --dot-color: rgba(201, 205, 212, 0.9);
  --dot-influence: 160px;  /* pointer radius (canvas only)                 */
  --dot-push: 10px;         /* max displacement (canvas only)               */
}
