/* tokens.css : design tokens (bible 1, 2.1, 2.3, 4.1). Owner: Integrator.
   Layer order for the whole site is declared here, first. */
@layer tokens, base, acts, hud, eggs;

@layer tokens {
  :root {
    /* Act 1 (S0) named tokens, bible section 1 */
    --c0-bg: #F4F7FB;
    --c0-surface: #FFFFFF;
    --c0-ink: #1A1F27;
    --c0-muted: #5E6673;
    --c0-rule: #DCE3EC;
    --c0-accent: #2F5BD3;
    --c0-hl: #FFE9A8;
    --c0-avatar-a: #8EC5FF;
    --c0-avatar-b: #2F5BD3;

    /* Palette ladder, bible 2.1: --c-{key}-{role}, key lowercased (s0..s8, h) */
    --c-s0-bg: #F4F7FB; --c-s0-ink: #1A1F27; --c-s0-muted: #5E6673; --c-s0-rule: #DCE3EC; --c-s0-accent: #2F5BD3;
    --c-s1-bg: #EDF2F9; --c-s1-ink: #1A1F27; --c-s1-muted: #5E6673; --c-s1-rule: #D3DCE8; --c-s1-accent: #2F5BD3;
    --c-s1-hl: #FFE9A8; --c-s1-consent: #2B2B2B;
    --c-s2-bg: #E5EDF8; --c-s2-ink: #1C2230; --c-s2-muted: #5B6577; --c-s2-rule: #C9D6E8; --c-s2-accent: #2F5BD3;
    --c-s2-teal: #1C736B; --c-s2-amber: #E8B04A;
    --c-s3-bg: #D9E5F7; --c-s3-ink: #1B2333; --c-s3-muted: #4A5874; --c-s3-rule: #B9CCE8; --c-s3-accent: #2747A8;
    --c-s3-hl: #FFE066;
    --c-s4-bg: #FFF8E1; --c-s4-ink: #111111; --c-s4-muted: #5C5340; --c-s4-rule: #111111; --c-s4-rule-w: 2px;
    --c-s4-accent: #00875A; --c-s4-coupon: #FFD400; --c-s4-price: #E0115F; --c-s4-shadow: 4px 4px 0 #111111;
    --c-h-bg: #E6E2DA; --c-h-ink: #3A3631; --c-h-muted: #625D55; --c-h-rule: #CFC9BE; --c-h-accent: #6E685E;
    --c-s5-bg: #0F1426; --c-s5-ink: #E6E4F0; --c-s5-muted: #9095AD; --c-s5-rule: #262C45; --c-s5-accent: #D0A42C;
    --c-s5-star: #FBF8F3;
    --c-s6-bg: #161616; --c-s6-ink: #E6E4F0; --c-s6-muted: #8C8C8C; --c-s6-rule: #333333; --c-s6-accent: #00E5FF;
    --c-s6-split-r: #FF2E2E; --c-s6-split-c: #00E5FF;
    --c-s7-bg: #9A968F; --c-s7-plate: #FBF8F3; --c-s7-plate-ink: #111111;
    --c-s7-a1: #FF4FD8; --c-s7-a2: #3DF5A6; --c-s7-a3: #FFE14D; --c-s7-a4: #5B5BFF; --c-s7-a5: #FF7A1A;
    --c-s8-bg-from: #9A968F; --c-s8-bg: #F4F7FB; --c-s8-ink: #1A1F27; --c-s8-paper: #FFFFFF;

    /* Type, bible 1 and 2.2. System fonts only on the first screen. */
    --f-hero: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --f-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --f-serif: "Iowan Old Style", Charter, "Palatino Linotype", Palatino, Georgia, serif;
    --f-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
    --f-rec: "Sess Recursive", var(--f-body);

    --t-hero: 2.25rem;
    --t-sub: 1.1875rem;
    --t-label: 0.75rem;
    --t-body: 1.0625rem;
    --t-small: 0.875rem;

    /* Spacing, 4px base */
    --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
    --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

    --col: 36rem;
    --gutter: 24px;

    /* Motion, bible 2.3 */
    --ease-out: cubic-bezier(.2, .7, .2, 1);
    --ease-io: cubic-bezier(.6, 0, .4, 1);

    /* Z-index scale, bible 4.1 */
    --z-act-max: 19;
    --z-hud: 1000;
    --z-cookie: 1100;
    --z-controls: 1200;
    --z-skip: 2000;
  }

  @media (min-width: 900px) {
    :root {
      --t-hero: 3rem;
      --t-sub: 1.25rem;
      --t-body: 1.125rem;
    }
  }
}
