/*
  DESIGN TOKENS
  Derived from purolovers.com (editorial, PP Mori). Every colour, size, space and motion value
  lives here. Components in base.css only ever use these variables.
*/

@font-face { font-family: 'PP Mori'; src: url('../assets/fonts/PPMori-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'PP Mori'; src: url('../assets/fonts/PPMori-Semibold.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  /* Colour: two colours, pink paper and green ink (from the menu reference).
     --c-display is the purolovers green for large headings and numerals.
     --c-ink is a darker shade of the same green for text, rules and fills,
     so small text stays readable in bright sun (contrast ~4.9:1). */
  --c-paper: #EADDE8;
  --c-ink: #4A6636;
  --c-display: #5E7F45;
  --c-muted: #5E7F45;
  --c-placeholder: rgba(74, 102, 54, .45);
  --c-hairline: rgba(74, 102, 54, .28);
  --c-accent: #4A6636;
  --c-on-accent: #EADDE8;
  --c-scrim: rgba(74, 102, 54, .35);

  /* Typography */
  --font: 'PP Mori', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --fw-regular: 400;
  --fw-bold: 600;

  --fs-label: 11px;
  --fs-chip: 12px;
  --fs-note: 12px;
  --fs-small: 13px;
  --fs-body: 15px;
  --fs-lead: 19px;
  --fs-h3: clamp(22px, 5.6vw, 30px);
  --fs-h2: clamp(26px, 6.4vw, 42px);
  --fs-h1: clamp(42px, 12vw, 112px);
  --fs-hero: clamp(76px, 26vw, 240px);
  --fs-numeral: clamp(112px, 42vw, 360px);
  --fs-stat: clamp(26px, 7.4vw, 44px);

  --lh-hero: .86;
  --lh-display: .92;
  --lh-heading: 1.1;
  --lh-lead: 1.4;
  --lh-body: 1.55;
  --lh-note: 1.5;

  --tr-label: .13em;
  --tr-chip: .14em;
  --tr-seg: .04em;
  --tr-time: .09em;
  --tr-heading: -.02em;
  --tr-display: -.025em;
  --tr-numeral: -.055em;

  /* Spacing */
  --pad: clamp(18px, 2.8vw, 44px);
  --gutter: clamp(12px, 2vw, 32px);
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 72px;
  --measure: 52ch;

  /* Rules */
  --bw: 1px;
  --line: var(--bw) solid var(--c-ink);
  --hairline: var(--bw) solid var(--c-hairline);

  /* Components */
  --tap: 44px;
  --btn-pad: 12px 22px;
  --btn-pad-sm: 8px 14px;
  --btn-pad-lg: 14px 40px;
  --chip-pad: 9px 18px;
  --chip-pad-sm: 5px 9px;
  --input-pad: 12px;
  --check: 20px;
  --header-h: 52px;
  --sheet-w: 640px;

  /* Modular grid: 4 columns on phones, 8 on tablets, 12 on desktop (main area 9).
     --mod is one square module: the width of a column, used as the row height and section spacing.
     It is measured against the nearest container (.main), so it follows the content width. */
  --cols: 4;
  --mod: calc((100cqi - (var(--cols) - 1) * var(--gutter)) / var(--cols));

  /* Motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-panel: cubic-bezier(.22, 1, .36, 1);
  --ease-ui: cubic-bezier(.3, .8, .3, 1);
  --dur-fast: .2s;
  --dur-ui: .34s;
  --dur-page: .7s;
  --stagger: 28ms;
}

@media (min-width: 720px) {
  :root { --cols: 8; }
}
