/* Guess & Click — tokens.
   Every colour, size and timing the components use, read from inputs/sheet.html (Style Sheet No. 1, signed November 26th, 2026).
   Material: pink, purple and cyan ink printed as halftone dots on crinkled paper pasted to a near-black wall.
   Tone comes only from dot size and grain. Only the three inks glow, a little. Shadows stay hard and black. */
:root {
  /* ---- the wall, the paper, the inks: one job each (section 04) ---- */
  --wall: #0A0912;          /* under it all */
  --paper: #151122;         /* sheets are cut from it */
  --paper-raised: #1d1830;  /* a sheet pasted on a sheet (section 06, raised) */
  --paper-deep: #211b33;    /* the dialog sheet */
  --ink: #F4F0FA;           /* words, the white ink */
  --ink-worn: #DCD5E8;      /* body copy */
  --ink-soft: #E6E0F0;      /* table cells, index rows */
  --muted: #A79FB8;         /* worn ink: labels */
  --faint: #6E6680;         /* out of ink: placeholders, disabled words */
  --shade: #3b3450;         /* words printed on the white strip */
  --rule: #4d4462;          /* dotted rules */
  --rule-2: #5c536f;        /* dotted connectors */
  --rim: #4a4160;           /* unprinted rims and empty dots */
  --unprinted: #2d2640;     /* dots not printed yet */
  --pink: #FF3DA6;          /* actions, the marked day */
  --purple: #9B5CFF;        /* busy fields, the back plate */
  --cyan: #35C6E8;          /* focus, and only focus; the second plate */
  --black: #000;            /* hard shadows */

  /* ---- glow: fluorescent ink only, soft and low, never paper (decision 3) ---- */
  --glow-pink: 0 0 14px rgba(255, 61, 166, .34);
  --glow-pink-hi: 0 0 12px rgba(255, 61, 166, .45);
  --glow-purple: 0 0 12px rgba(155, 92, 255, .36);
  --glow-cyan: 0 0 14px rgba(53, 198, 232, .4);
  --glow-plate: 0 0 14px rgba(255, 61, 166, .34), 0 0 12px rgba(53, 198, 232, .22);
  --glow-text-pink: 0 0 10px rgba(255, 61, 166, .5);
  --glow-text-purple: 0 0 10px rgba(155, 92, 255, .55);
  --glow-text-cyan: 0 0 10px rgba(53, 198, 232, .5);

  /* ---- registration: inks land off register, pink right, cyan left (rule 6) ---- */
  /* misprint: crisp at every size. Offsets in em so they scale with the type, a dark keyline keeps the white sharp, one faint glow instead of blurred plates (Chelsie, November 26th, 2026: headings and numbers read as blurry) */
  --reg-big: max(1px,.012em) max(1px,.012em) 0 var(--on-ink), calc(-1*max(1px,.012em)) calc(-1*max(1px,.012em)) 0 var(--on-ink), max(1px,.012em) calc(-1*max(1px,.012em)) 0 var(--on-ink), calc(-1*max(1px,.012em)) max(1px,.012em) 0 var(--on-ink), .035em .028em 0 var(--pink), -.022em -.018em 0 var(--cyan), 0 0 .1em rgba(255, 61, 166, .22);
  --reg-mid: max(1px,.012em) max(1px,.012em) 0 var(--on-ink), calc(-1*max(1px,.012em)) calc(-1*max(1px,.012em)) 0 var(--on-ink), max(1px,.012em) calc(-1*max(1px,.012em)) 0 var(--on-ink), calc(-1*max(1px,.012em)) max(1px,.012em) 0 var(--on-ink), .03em .024em 0 var(--pink), -.02em -.016em 0 var(--cyan), 0 0 .1em rgba(255, 61, 166, .2);
  --reg-small: max(1px,.014em) max(1px,.014em) 0 var(--on-ink), calc(-1*max(1px,.014em)) calc(-1*max(1px,.014em)) 0 var(--on-ink), max(1px,.014em) calc(-1*max(1px,.014em)) 0 var(--on-ink), calc(-1*max(1px,.014em)) max(1px,.014em) 0 var(--on-ink), .028em .02em 0 var(--pink), -.018em -.014em 0 var(--cyan), 0 0 .1em rgba(255, 61, 166, .2);
  --reg-field: 4px 3px 0 rgba(255, 61, 166, .85), -3px -2px 0 rgba(53, 198, 232, .8);

  /* ---- shadows: hard and black, paper on paper (section 06) ---- */
  --sh-sheet: 6px 7px 0 var(--black);
  --sh-plate: 7px 8px;        /* the button's shadow offset at rest */
  --sh-plate-up: 11px 13px;   /* peeled up on hover */
  --sh-mini: 4px 5px;
  --sh-mini-up: 7px 9px;
  --sh-small: 3px 4px 0 var(--black);
  --sh-inset: inset 4px 4px 0 var(--black);
  --sh-inset-deep: inset 6px 7px 0 var(--black);

  /* ---- type (decision 4): Bricolage Grotesque talks, Permanent Marker shouts ---- */
  --f-grot: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-marker: "Permanent Marker", "Segoe Print", "Comic Sans MS", cursive;
  --w-text: 400;
  --w-sub: 600;
  --w-display: 800;
  --fs-label: 11px;       /* labels, caps, spaced out */
  --fs-small: 12px;
  --fs-text: 14px;        /* 13 on the sheet, one step up for the screen */
  --fs-sub: 19px;
  --fs-head: 25px;
  --fs-band: 50px;
  --fs-number: 176px;
  --ls-label: .12em;

  /* ---- line (section 07) ---- */
  --line-dotted: 1px;     /* table rows */
  --line-ink: 2px;        /* section heads */
  --line-focus: 3px;      /* cyan: focus, and only focus */
  --line-marker: 5px;     /* underlines, strikes */
  --line-icon: 3px;       /* icons and marks */

  /* ---- corners: 3, 10, round (section 07) ---- */
  --r-tight: 3px;
  --r-soft: 10px;
  --r-plate: 14px;
  --r-round: 999px;

  /* ---- spacing: the 8 px dot pitch (section 08): 8 inside a part, 24 between sheets, 48 between bands ---- */
  --s-4: 4px;
  --s-8: 8px;
  --s-12: 12px;
  --s-16: 16px;
  --s-24: 24px;
  --s-32: 32px;
  --s-48: 48px;
  --s-72: 72px;
  --tap: 44px;            /* the smallest thing a finger presses */

  /* ---- motion: the seven moves drawn on the sheet (section 10) ---- */
  --t-enter: 240ms;  --e-enter: cubic-bezier(.16, .84, .3, 1);   /* slaps on, ease-out, pasted flat */
  --t-press: 90ms;   --e-press: cubic-bezier(.55, 0, .9, .45);   /* goes flat, ease-in, creased */
  --t-row: 400ms;    --e-row: linear;                            /* load: a row at a time */
  --t-leave: 300ms;  --e-leave: cubic-bezier(.55, 0, .9, .45);   /* peels off, ease-in, leaves a glue mark */
  --t-sweep: 900ms;  --e-sweep: cubic-bezier(.16, .84, .3, 1);   /* one pass of extra ink, ease-out */
  --t-sweep-every: 4000ms;                                       /* every 4 s */
  --t-nudge: 150ms;  --nudge: 6px;                               /* hover: the arrow leans in 6 px */
  --t-draw: 500ms;   --e-draw: cubic-bezier(.65, 0, .35, 1);     /* the underline draws itself, ease-in-out, once */
  --t-letter: 60ms;                                              /* typing: 60 ms a letter */
  --t-caret: 530ms;                                              /* the caret blinks */
  --t-hold: 1200ms;                                              /* the word holds */
  --t-toast: 4000ms;                                             /* a toast peels off at 4 s */

  /* ---- motion worked out from the material (not drawn on the sheet; see COMPONENTS.md) ---- */
  --t-hover: 150ms;  --e-hover: var(--e-enter);   /* hover: the paper peels up, on the nudge's clock */
  --t-type: 60ms;                                 /* type: each letter lands on the letter clock; the slot inks purple while busy */
  --t-unletter: 30ms;                             /* typing line: letters come off twice as fast as they go on */
  --t-drag: 90ms;    --e-drag: linear;            /* drag: the thumb is the hand, the dots catch up in one press */
  --t-scroll: 150ms;                              /* scroll: real scrolling; the paper curls at the ends answer in one nudge */
  --t-break: 90ms;                                /* break: plates slip out of register in press-sized jolts */
  --t-recover: 400ms;                             /* recover: plates slide back into register over one load row */
  --t-done: 240ms;                                /* done: the result slaps on, then the underline draws */
  --t-count: 1200ms; --e-count: var(--e-enter);   /* counting: three load rows long */
}

/* =====================================================================================================
   Added for the design pack (Step 4). Nothing above this line changed.
   Two themes, one set of tokens. The default is "Night print": the inks under a black light, glowing a little.
   "Daylight" is the same three inks printed on white stock in room light: no black light, so no glow.
   A new token is added only where a part needs one to work in both themes.
   ===================================================================================================== */
:root, [data-theme="night"] {
  --on-ink: #0A0912;          /* words printed ON ink (pink, cyan, the white strip): always dark */
  --white-ink: #F4F0FA;       /* the white ink as a surface: band heads, the pasted tab, the toast, knobs */
  --pink-text: var(--pink);   /* an ink used for words; deepened in daylight so it still reads */
  --purple-text: var(--purple);
  --cyan-text: var(--cyan);
  --tex-crinkle: var(--tex-crinkle-night);
  --tex-grain: var(--tex-grain-night);
  --tex-off: var(--tex-off-night);
  --tex-alert: var(--tex-alert-night);
  --theme-name: "Night print";
  color-scheme: dark;
}
/* a Night print panel inside a Daylight page (the Theming page shows both): the night values again, scoped */
[data-theme="night"] {
  --wall: #0A0912;
  --paper: #151122;
  --paper-raised: #1d1830;
  --paper-deep: #211b33;
  --ink: #F4F0FA;
  --ink-worn: #DCD5E8;
  --ink-soft: #E6E0F0;
  --muted: #A79FB8;
  --faint: #6E6680;
  --shade: #3b3450;
  --rule: #4d4462;
  --rule-2: #5c536f;
  --rim: #4a4160;
  --unprinted: #2d2640;
  --glow-pink: 0 0 14px rgba(255, 61, 166, .34);
  --glow-pink-hi: 0 0 12px rgba(255, 61, 166, .45);
  --glow-purple: 0 0 12px rgba(155, 92, 255, .36);
  --glow-cyan: 0 0 14px rgba(53, 198, 232, .4);
  --glow-plate: 0 0 14px rgba(255, 61, 166, .34), 0 0 12px rgba(53, 198, 232, .22);
  --glow-text-pink: 0 0 10px rgba(255, 61, 166, .5);
  --glow-text-purple: 0 0 10px rgba(155, 92, 255, .55);
  --glow-text-cyan: 0 0 10px rgba(53, 198, 232, .5);
}
[data-theme="daylight"] {
  --wall: #E3DCEB;            /* a pale wall */
  --paper: #F6F2FA;           /* white stock */
  --paper-raised: #FFFFFF;
  --paper-deep: #EEE8F5;
  --ink: #151122;             /* words are printed in the paper's old colour */
  --ink-worn: #2C2640;
  --ink-soft: #221C33;
  --muted: #5A526D;
  --faint: #7A7290;
  --shade: #3b3450;
  --rule: #A89FBA;
  --rule-2: #8F86A3;
  --rim: #B3A9C5;
  --unprinted: #D5CDE1;
  --pink-text: #C2006B;
  --purple-text: #6A2FD6;
  --cyan-text: #00708F;
  /* no black light, no glow: the inks stay flat */
  --glow-pink: 0 0 0 transparent;
  --glow-pink-hi: 0 0 0 transparent;
  --glow-purple: 0 0 0 transparent;
  --glow-cyan: 0 0 0 transparent;
  --glow-plate: 0 0 0 transparent;
  --glow-text-pink: none;
  --glow-text-purple: none;
  --glow-text-cyan: none;
  --tex-crinkle: var(--tex-crinkle-day);
  --tex-grain: var(--tex-grain-day);
  --tex-off: var(--tex-off-day);
  --tex-alert: var(--tex-alert-day);
  --theme-name: "Daylight";
  color-scheme: light;
}

/* ---- the pack's frame (worked out from the sheet's sizes; see foundations/spacing.html) ---- */
:root {
  --bar-h: 64px;              /* the top bar */
  --side-w: 248px;            /* the sidebar */
  --toc-w: 188px;             /* On this page */
  --t-drawer: var(--t-enter); /* a sheet pulled in from the side: the enter move */
}
