/* The frame (PLAN.md, "Themes"; Ticketless's layer 1): type, space, radii, motion and the status inks, the same under every theme. Every
   other color is a theme's role, in src/themes.json, written into assets/themes.css by the build. tests/contrast.test.mjs reads this file
   and the themes and checks every pair that carries words (4.5:1; an error or a confirmation 7:1) or a mark (3:1), light and dark.
   The one exception: the Solutions scene (--sc-*, --sh-*), drawing colors that sit here because they belong to the picture, not a theme. */
:root {
  color-scheme: light dark;

  /* type: the system font for words; the heading face is one choice in build.mjs (FACES, self-hosted under its license), whose
     assets/fonts.css gives its family with a system face to show while it loads (--face-head) and the size of a shirt's name in it */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-head: var(--face-head, sans-serif);
  --name-scale: var(--face-name-scale, 1);
  /* the small steps 1.25 apart (Board 42, his yes on the canon), the quote's 28 his own (Open Calls 02), 34 the one big card's heading */
  --fs-13: 13px; --fs-16: 16px; --fs-body: 20px; --fs-25: 25px; --fs-28: 28px; --fs-34: 34px;
  --fs-h1: clamp(48px, 13vw, 96px);
  --fs-h1-product: clamp(40px, 8.5vw, 80px);
  --fs-h2: clamp(32px, 6vw, 52px);
  --fs-h3: 25px;

  /* space: the house scale; inside a group 8, between groups 32 or more */
  --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;
  --gap-in: var(--s-2);
  --gap-out: var(--s-6);
  --wrap: 1160px;
  --r: 16px; --r-ctl: 14px; --r-chip: 999px;

  /* the buttons' one finish (Board 36, src/site.css), the four shadows since his Round 16 pick (Nov 6: the mock's soft contact shadow in
     place of Board 40's lip): a top light, a bottom shade and a soft shadow where the button meets the page, the filled button's stronger
     than a quiet one's, which change with the mode (below). Its corner is his setting beside the theme (Boards 38 and 40;
     src/themes.json's shape): --r-btn the big buttons', --r-btn-sm the small ones', --r-ctl rounded, --r-chip a pill */
  --fill-hi: rgba(255, 255, 255, .35);
  --fill-shade: rgba(0, 0, 0, .2);
  --fill-contact: rgba(0, 0, 0, .4);
  --quiet-hi: rgba(255, 255, 255, .9);
  --quiet-shade: rgba(0, 0, 0, .08);
  --quiet-contact: rgba(0, 0, 0, .11);

  /* motion: the press, anything arriving, anything leaving (faster), the load-in's rise and step (UI.md, Nov 2) */
  --t-press: 100ms;
  --t-ui: 240ms;
  --t-exit: 140ms;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in: cubic-bezier(.55, 0, 1, .45);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --rise: 20px;
  --step: 50ms;

  /* the status inks: an error and a confirmation, at 7:1 on every theme's tiles, light and dark */
  --good-ink: #1F5A2E;
  --bad-ink: #8A2312;

  /* the city around the shops on the Solutions page (🧵 AT 49): a day sky, pale towers and windows, a white cloud, the sun and moon */
  --sc-top: #99CCFF; --sc-bot: var(--bg); --sc-far: #C9D6E3; --sc-near: #AEBBC8; --sc-w: #DCE4EC; --sc-lit: #DCE4EC;
  --sc-cloud: #FFFFFF; --sc-sun: #FFCC33; --sc-moon: #FFFFCC; --sc-shopwin: var(--tile-2);
  /* the data line between the roofs (🧵 AT 50, F): green from your shop to ours, blue back */
  --sh-up: #009933; --sh-down: #0066CC;
  /* the shops (🧵 AT 51): outline, walls and the OURS awning, as tokens so a settings view can offer more later */
  --sh-edge: var(--ink); --sh-wall: var(--bg); --sh-awn: var(--head);
}

@media (prefers-color-scheme: dark) {
  :root {
    --good-ink: #8EE0A8;
    --bad-ink: #FFB4A3;
    /* the city at night: a navy sky, dark towers, some windows lit gold, a dim cloud, a lit shop window */
    --sc-top: #000033; --sc-bot: #1A1A33; --sc-far: #1F2433; --sc-near: #2A3040; --sc-w: #2A3142; --sc-lit: #FFCC66; --sc-cloud: #3A4255; --sc-shopwin: #5C4A1F;
    --sh-up: #66FF99; --sh-down: #66CCFF;
    --sh-edge: #666666; --sh-wall: var(--tile); --sh-awn: #ECE8DF;
    --quiet-hi: rgba(255, 255, 255, .12);
    --quiet-shade: rgba(0, 0, 0, .4);
    --quiet-contact: rgba(0, 0, 0, .3);
  }
}
