/* Design tokens, round 5 "שולחן צבעוני" (colourful desk).
   Warm white page, one strong violet for actions, a sunny yellow accent, soft tinted sections that alternate.
   The product (real page renders and covers) brings most of the colour. Contrast ratios are in design/design-system.md.
   Fonts: Secular One (display, Hebrew, heavy and slightly soft) + Assistant (text, Hebrew). Max two families. */
@import url('https://fonts.googleapis.com/css2?family=Assistant:wght@400;600;700;800&family=Secular+One&display=swap');

:root {
  /* fonts */
  --font-display: 'Secular One', 'Assistant', 'Arial Hebrew', Arial, sans-serif;
  --font-body: 'Assistant', 'Arial Hebrew', Arial, sans-serif;
  --fw-display: 400;          /* Secular One has one (heavy) weight */
  --fw-display-strong: 400;
  --fw-body: 400;
  --fw-medium: 600;
  --fw-bold: 700;
  --fw-black: 800;

  /* type scale (mobile first; desktop values in styles.css media query) */
  --fs-xs: 0.9375rem;   /* 15px */
  --fs-sm: 1rem;        /* 16px */
  --fs-body: 1.0625rem; /* 17px mobile body, 18px desktop */
  --fs-lead: 1.1875rem; /* 19px */
  --fs-h4: 1.25rem;     /* 20px */
  --fs-h3: 1.5rem;      /* 24px */
  --fs-h2: 2rem;        /* 32px */
  --fs-h1: 2.5rem;      /* 40px */
  --fs-display: 2.75rem;/* 44px */
  --lh-body: 1.65;
  --lh-head: 1.12;

  /* colour: base */
  --c-bg: #FFFDF8;          /* warm white page */
  --c-surface: #FFFFFF;
  --c-ink: #1F1A3D;         /* 16.2:1 on bg */
  --c-ink-2: #4E4868;       /* 8.4:1 on bg, 7.3:1 on lilac, 7.7:1 on butter */
  --c-line: #E9E4F2;
  --c-line-strong: #CFC8E0;
  --c-field: #8B86A3;       /* field borders, 3.5:1 on white */

  /* colour: action + accent */
  --c-primary: #5B34D6;     /* violet: buttons, links, selected. White on it 7.2:1; on bg 7.1:1 */
  --c-primary-hover: #4A28B8;
  --c-on-primary: #FFFFFF;
  --c-night: #2A1F6B;       /* ticker + closing band. White 13.9:1, sun 9.0:1 */
  --c-sun: #FFC83D;         /* sunny accent: fills, highlights, badges (ink text on it 10.7:1). Never text on light. */
  --c-sun-soft: #FFE59A;
  --c-coral: #FF7F5C;       /* decorative only (tape, dots) */
  --c-accent: #B4400F;      /* small accent text: 5.6:1 on bg, 5.2:1 on butter */
  --c-accent-soft: #FFE6D9;

  /* colour: tinted sections, alternate down the page */
  --t-butter: #FFF3D1;
  --t-lilac: #EFEBFF;
  --t-mint: #E2F5EA;
  --t-peach: #FFE6D9;
  --t-sky: #E3F0FF;

  /* level colours (match the coloured boxes on the pages themselves) */
  --lv-a: #3B82F6; --lv-a-soft: #E3F0FF;
  --lv-b: #F97316; --lv-b-soft: #FFE9D6;
  --lv-c: #16A34A; --lv-c-soft: #DFF5E6;
  --lv-p: #E8579A; --lv-p-soft: #FCE4EF;
  --lv-d: #6A4FD6; --lv-d-soft: #E9E4FB;

  /* old names kept so every component still resolves */
  --c-sand: var(--t-butter);
  --c-band: var(--c-night);
  --c-band-ink: #FFFFFF;
  --c-band-ink-2: #D9D3FF;  /* 9.8:1 on night */
  --c-band-accent: var(--c-sun);
  --c-focus: #5B34D6;
  --c-error: #B42318;       /* 6.4:1 on bg */
  --c-ok: #166534;
  --c-photo: #EEE9F7;
  --c-photo-ink: #4E4868;
  --c-sheet-desk: #F6E4BF;  /* warm "desk" surface the printed pages lie on */
  --c-desk-2: #EFD6A6;
  --c-scrim: rgba(31, 26, 61, 0.5);

  /* shape */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-btn: 999px;
  --r-card: 22px;
  --border-card: 1px solid var(--c-line);

  /* shadow */
  --shadow-sheet: 0 1px 1px rgba(40, 30, 60, 0.08), 0 4px 8px rgba(40, 30, 60, 0.06), 0 18px 34px -14px rgba(40, 30, 60, 0.35);
  --shadow-card: 0 2px 4px rgba(40, 30, 60, 0.05), 0 16px 40px -20px rgba(40, 30, 60, 0.28);
  --shadow-pop: 0 24px 60px -20px rgba(31, 26, 61, 0.45);
  --shadow-btn: 0 6px 0 -1px #3A1F9E;

  /* spacing (4px base) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  /* layout */
  --max: 1200px;
  --max-text: 60ch;
  --gutter: 16px;
  --header-h: 64px;

  /* motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: 220ms;
}
