/* Lifetape design tokens.
   Colours sampled from the print kit (reference/Lifetape cards v1.5_flat.pdf).
   See docs/DESIGN_SYSTEM.md for usage rules. */

:root {
  /* Ink and neutrals */
  --ink: #231f20;            /* print "off-black" (logo, Plan pill, header blocks) */
  --ink-2: #4a4546;          /* secondary text */
  --ink-3: #706d6e;          /* tertiary text, placeholders (5.1:1, DS-03) */
  --paper: #ffffff;
  --paper-2: #f6f5f5;        /* alternating column fill */
  --line: #e2e0e0;           /* thin dividers */
  --line-2: #cfcccc;
  --tape-lane: #fafafa;      /* where cards land on the tape: lighter than --paper-2, so the white ruler reads as a strip */
  --tape-band-1: #e5e5e5;    /* decade band (print tape) */
  --tape-band-2: #cccccc;
  --think: #e9e8e8;          /* Think pill (print base pack) */
  --on-ink-2: #e9e8e8;       /* second line of text on the ink and purple panels */

  /* Pack families. strong = print accent (triangles, base pack bars)
     mid = number square on print cards, light = print card header fill */
  --red-strong: #ef2d2e;    --red-mid: #f46f5b;    --red-light: #fab9a6;    --red-wash: #fdeae4;
  --red-salmon: #e68c79;    /* the schools site's footer links, as on lifetape.kids (on ink, about 6.5:1) */
  --youtube-red: #ff0000;   /* YouTube's own icon colour; used only for their icon on the schools site */
  --yellow-strong: #fab211; --yellow-mid: #fbca59; --yellow-light: #fde5ad; --yellow-wash: #fef6e2;
  --green-strong: #81b630;  --green-mid: #accc68;  --green-light: #d8e6b2;  --green-wash: #f1f6e4;
  --blue-strong: #53c5e3;   --blue-mid: #8fd8eb;   --blue-light: #cbedf5;   --blue-wash: #ebf8fb;
  --purple-strong: #4f2b85; --purple-mid: #805da8; --purple-light: #bea8d3; --purple-wash: #efe9f5;
  --violet-strong: #6b3fa8; --violet-mid: #9a7cc4; --violet-light: #d6c9e8; --violet-wash: #f4effa;
  --pink-strong: #e6338a;   --pink-mid: #ee7fb0;   --pink-light: #f7c6dc;   --pink-wash: #fdeef5;   /* DS-02: Be an AI optimist; ink text only */
  --teal-strong: #12a594;   --teal-mid: #6fcabd;   --teal-light: #b8e6de;   --teal-wash: #e7f6f3;   /* SITE-12: placeholder for the seventh pack on the schools site; ink text only */

  /* Feedback */
  --good: #4f9a2a;
  --good-wash: #dcefd0;
  --warn: #c2410c;
  --warn-wash: #fde0d7;
  --scrim-strong: rgba(35, 31, 32, .78); /* onboarding: dims every column except the one being explained */
  --ios-blue: #0a84ff;       /* Safari toolbar icons in the phone preview mock-up only */
  --focus-surround: #4a4442; /* warm dark grey either side of the tape in focus mode */
  --mini-view: rgba(35, 31, 32, .07); /* mini tape: the tint inside the frame around the years on screen */

  /* Party colours: the vote mini-game only, never on a slim card or the tape (SEC-06, D-30).
     Each has an -ink partner for text on that colour: white only where it passes AA for large bold text. */
  --party-conservative: #0087dc; --party-conservative-ink: #ffffff;
  --party-labour: #e4003b;       --party-labour-ink: #ffffff;
  --party-libdem: #faa61a;       --party-libdem-ink: #231f20;
  --party-green: #02a95b;        --party-green-ink: #ffffff;
  --party-reform: #12b6cf;       --party-reform-ink: #231f20;

  /* Type. Print uses a neo-grotesk (Neue Haas / Helvetica family).
     Web substitute: Helvetica Neue where installed, else Inter Tight. See decisions.md DS-01. */
  --font: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;  /* DS-01: one face on every device */
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-bold: 700;
  --track-tight: -0.02em;

  --fs-2xs: 10px;           /* decade numbers on the mini tape only */
  --fs-xs: 11px;
  --fs-sm: 13px;
  --fs-sentiment: 14px;     /* decade sentiments: the longest (age 70) still fits one line at 1440 wide */
  --fs-md: 15px;
  --fs-lg: 18px;
  --fs-xl: 24px;
  --fs-2xl: 32px;
  --fs-3xl: 44px;

  /* Shape and depth */
  --r-xs: 3px;             /* checkbox corners */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(35, 31, 32, .06), 0 2px 6px rgba(35, 31, 32, .06);
  --shadow-2: 0 4px 12px rgba(35, 31, 32, .10), 0 12px 32px rgba(35, 31, 32, .10);
  --shadow-3: 0 18px 50px rgba(35, 31, 32, .22);

  /* Layout */
  --header-h: 64px;
  --col-head-h: 56px;
  --col-foot-h: 48px;
  --tape-foot-h: 132px;
  --year-h: 64px;           /* one year slot on the PLAN tape */
  --day-h: 52px;            /* one day slot on the ACT tape */
  --band-h: 30px;           /* decade / week band */
  --ruler-w: 104px;
  --mini-w: 76px;           /* the mini tape in focus mode */
  --packs-slim-w: 96px;      /* column 1 with pack details hidden */
  --task-h: 50px;           /* slim task card; fits two lines */

  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* Pack theme helper: set data-colour on any element to get --c-* variables. */
[data-colour="red"]    { --c-strong: var(--red-strong);    --c-mid: var(--red-mid);    --c-light: var(--red-light);    --c-wash: var(--red-wash); }
[data-colour="yellow"] { --c-strong: var(--yellow-strong); --c-mid: var(--yellow-mid); --c-light: var(--yellow-light); --c-wash: var(--yellow-wash); }
[data-colour="green"]  { --c-strong: var(--green-strong);  --c-mid: var(--green-mid);  --c-light: var(--green-light);  --c-wash: var(--green-wash); }
[data-colour="blue"]   { --c-strong: var(--blue-strong);   --c-mid: var(--blue-mid);   --c-light: var(--blue-light);   --c-wash: var(--blue-wash); }
[data-colour="purple"] { --c-strong: var(--purple-strong); --c-mid: var(--purple-mid); --c-light: var(--purple-light); --c-wash: var(--purple-wash); }
[data-colour="violet"] { --c-strong: var(--violet-strong); --c-mid: var(--violet-mid); --c-light: var(--violet-light); --c-wash: var(--violet-wash); }
[data-colour="teal"]   { --c-strong: var(--teal-strong);   --c-mid: var(--teal-mid);   --c-light: var(--teal-light);   --c-wash: var(--teal-wash); }
[data-colour="pink"]   { --c-strong: var(--pink-strong);   --c-mid: var(--pink-mid);   --c-light: var(--pink-light);   --c-wash: var(--pink-wash); }
