/*
 * gOT it Labs TF Workshop design tokens.
 * Light theme only. The logo green is the single accent colour; every other
 * colour is a neutral or a status colour. Layers are declared here so the
 * cascade order is explicit: tokens < base < components < layout.
 */
@layer tokens, base, components, layout;

@layer tokens {
  :root {
    color-scheme: light;

    /* Accent: sampled from the supplied gOT it logo (#267439, 5.8:1 on white). */
    --accent: #267439;
    --accent-strong: #1c5a2c;
    --accent-hover: #21672f;
    --accent-soft: #e6f2e9;
    --accent-softer: #f2f8f3;
    --accent-line: rgba(38, 116, 57, .34);
    --on-accent: #ffffff;

    /* Neutrals with a faint green bias so they sit with the accent. */
    --white: #ffffff;
    --gray-25: #fafbfa;
    --gray-50: #f4f6f4;
    --gray-100: #edf0ed;
    --gray-150: #e4e8e4;
    --gray-200: #d9ded9;
    --gray-300: #c4cbc5;
    --gray-400: #9ba49d;
    --gray-500: #6c766e;
    --gray-600: #4d5750;
    --gray-700: #363e38;
    --gray-800: #232a25;
    --gray-900: #151b17;

    --text: #161d18;
    --text-secondary: #485249;
    --text-tertiary: #5f6a62;      /* 5.3:1 on white, 4.9:1 on gray-50 */
    --text-on-glass: #121813;
    --separator: rgba(22, 29, 24, .1);
    --separator-strong: rgba(22, 29, 24, .16);

    --surface: #ffffff;
    --surface-raised: #ffffff;
    --surface-sunken: var(--gray-50);
    --surface-paper: #fffefa;
    --page: #eef1ee;

    /* Status colours are always paired with an icon and a word. */
    --pass: #1b7136;  --pass-bg: #e5f3e9;  --pass-line: #a9d6b5;
    --fail: #b3261e;  --fail-bg: #fdebe9;  --fail-line: #f0b4ae;
    --warn: #7d5300;  --warn-bg: #fdf3da;  --warn-line: #ecd08f;
    --info: #3c5470;  --info-bg: #edf1f6;  --info-line: #c4d0de;
    --muted: #5b6570; --muted-bg: #eff1f3; --muted-line: #d3d8de;
    --plumb: #c2453a;
    --landmark: #d9a521;

    /* Typography. Geist for interface text, Geist Mono for measured values. */
    --font-sans: "Geist Variable", "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-mono: "Geist Mono Variable", "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

    --type-large-title: 650 34px/1.12 var(--font-sans);
    --type-title: 650 26px/1.18 var(--font-sans);
    --type-title-2: 620 21px/1.24 var(--font-sans);
    --type-headline: 600 16px/1.32 var(--font-sans);
    --type-body: 400 15px/1.5 var(--font-sans);
    --type-callout: 400 14px/1.45 var(--font-sans);
    --type-subhead: 500 13px/1.4 var(--font-sans);
    --type-footnote: 400 12.5px/1.4 var(--font-sans);
    --type-caption: 500 12px/1.35 var(--font-sans);
    --type-value: 500 14px/1.2 var(--font-mono);

    --tracking-large: -0.024em;
    --tracking-title: -0.018em;
    --tracking-headline: -0.008em;
    --tracking-caption: 0.01em;

    /* 4/8 px spacing grid. */
    --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 20px;
    --s-6: 24px; --s-7: 28px; --s-8: 32px; --s-10: 40px; --s-12: 48px;

    /* Concentric radii: an inner radius is its container radius minus padding. */
    --r-xs: 6px; --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 26px; --r-pill: 999px;

    --hit: 44px;          /* minimum touch target */
    --bar-h: 60px;
    --panel-gap: 12px;

    /* Shadows: layered, soft, never pure black. */
    --shadow-1: 0 1px 1px rgba(17, 26, 20, .04), 0 1px 3px rgba(17, 26, 20, .06);
    --shadow-2: 0 1px 2px rgba(17, 26, 20, .05), 0 6px 16px rgba(17, 26, 20, .07), 0 18px 40px rgba(17, 26, 20, .06);
    --shadow-3: 0 2px 6px rgba(17, 26, 20, .07), 0 16px 36px rgba(17, 26, 20, .12), 0 40px 80px rgba(17, 26, 20, .12);

    /* Liquid Glass materials, used only for the floating control layer. */
    --glass-thin: rgba(255, 255, 255, .58);
    --glass-regular: rgba(255, 255, 255, .7);
    --glass-thick: rgba(252, 253, 252, .84);
    --glass-tint: rgba(236, 243, 238, .28);
    --glass-blur-thin: 10px;
    --glass-blur: 16px;
    --glass-blur-thick: 26px;
    --glass-saturate: 1.7;
    --glass-edge: rgba(255, 255, 255, .78);
    --glass-outline: rgba(22, 34, 26, .09);
    --glass-specular: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -1px 0 rgba(255, 255, 255, .25), inset 0 0 0 .5px rgba(255, 255, 255, .55);
    --glass-shadow: 0 1px 2px rgba(17, 26, 20, .06), 0 8px 22px rgba(17, 26, 20, .1);
    --scrim: rgba(28, 38, 31, .26);

    /* Motion: short and springy, never continuous except the tutorial glow. */
    --ease-out: cubic-bezier(.22, .8, .24, 1);
    --ease-in-out: cubic-bezier(.45, 0, .2, 1);
    --ease-spring: linear(0, .012 1.1%, .052 2.3%, .238 5.8%, .482 9.9%, .72 14.5%, .881 18.9%, .99 23.6%, 1.052 28.4%, 1.075 32.7%, 1.07 38.6%, 1.035 47.4%, 1.008 57.9%, .998 70%, 1);
    --t-fast: 120ms;
    --t-base: 220ms;
    --t-slow: 380ms;
    --press-scale: .965;

    --focus-ring: 0 0 0 2px var(--white), 0 0 0 4.5px rgba(38, 116, 57, .62);
    --glow: 0 0 0 3px rgba(38, 116, 57, .3), 0 0 0 8px rgba(38, 116, 57, .12), 0 0 26px 4px rgba(64, 160, 92, .35);
  }

  /* Higher contrast: stronger separators and opaque control surfaces. */
  @media (prefers-contrast: more) {
    :root {
      --text-secondary: #2b332d;
      --text-tertiary: #3d463f;
      --separator: rgba(22, 29, 24, .3);
      --separator-strong: rgba(22, 29, 24, .45);
      --glass-thin: rgba(255, 255, 255, .96);
      --glass-regular: rgba(255, 255, 255, .97);
      --glass-thick: rgba(255, 255, 255, .98);
      --glass-outline: rgba(22, 34, 26, .4);
    }
  }
}
