/* =========================================================================
   CISOSE 2027 — Shared design tokens (all nine sites)
   Contrast values are verified by tests/contrast.test.mjs (WCAG 2.2 AA).
   Change values here only; sites and components consume the variables.
   ========================================================================= */

:root {
  /* ---- Colour: ice blue (surfaces) ---- */
  --c-white: #ffffff;
  --c-ice-50: #f3f9fd;
  --c-ice-100: #e6f2fa;
  --c-ice-200: #cfe6f5;
  --c-ice-300: #9fcbe8;   /* decorative only (1.7:1 on white) */
  --c-sky-50: #edf7fd;    /* info-card gradient mid stop (V6.6.2) */
  --c-sky-100: #ddeff8;   /* info-card gradient end stop (V6.6.2) */

  /* ---- Colour: teal (accent & interaction) ---- */
  --c-teal-50: #e8f7f6;
  --c-teal-400: #2bc4bf;  /* decorative only */
  --c-teal-600: #0a8c8f;  /* large text / graphics only (4.07:1) */
  --c-teal-700: #08757a;  /* text, links, buttons (5.47:1 on white) */
  --c-teal-800: #065f63;

  /* ---- Colour: deep blue (text & structure) ---- */
  --c-navy-900: #0b2545;  /* headings (15.4:1) */
  --c-navy-800: #1e3a5f;  /* body text (11.5:1) */
  --c-navy-600: #4a6283;  /* secondary text (6.2:1) */
  --c-blue-700: #0f5c99;  /* secondary accent text (7.0:1) */

  /* ---- Colour: status ---- */
  --c-amber-50: #fff7e6;
  --c-amber-800: #8a4b00; /* TBC label text (≥ 6:1 on amber-50) */
  --c-amber-400: #e9a23b;

  /* ---- Semantic aliases ---- */
  --color-bg: var(--c-white);
  --color-bg-soft: var(--c-ice-50);
  --color-bg-tint: var(--c-ice-100);
  --color-bg-accent: var(--c-teal-50);
  --color-bg-inverse: var(--c-navy-900);
  --color-heading: var(--c-navy-900);
  --color-text: var(--c-navy-800);
  --color-text-muted: var(--c-navy-600);
  --color-text-inverse: #eaf4fb;
  --color-link: var(--c-teal-700);
  --color-link-hover: var(--c-teal-800);
  --color-accent: var(--c-teal-700);
  --color-accent-strong: var(--c-teal-800);
  --color-border: var(--c-ice-200);
  --color-border-strong: var(--c-navy-600); /* control boundaries ≥ 3:1 */
  --color-focus: var(--c-blue-700);

  /* ---- Typography ---- */
  --font-sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial,
    "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", Consolas, "SFMono-Regular", monospace;

  --fs-xs: 0.8125rem;   /* 13px */
  --fs-sm: 0.9375rem;   /* 15px */
  --fs-base: 1.0625rem; /* 17px */
  --fs-lg: 1.25rem;
  --fs-xl: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem);
  --fs-2xl: clamp(1.75rem, 1.4rem + 1.3vw, 2.375rem);
  --fs-3xl: clamp(2.25rem, 1.6rem + 2.8vw, 3.75rem);
  --fs-display: clamp(2.75rem, 1.8rem + 4.4vw, 5.25rem);

  --lh-tight: 1.1;
  --lh-snug: 1.3;
  --lh-body: 1.65;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --tracking-caps: 0.12em;
  --measure: 68ch;

  /* ---- Spacing (4px base) ---- */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --section-y: clamp(4rem, 2.5rem + 6vw, 8rem);
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --container: 75rem;      /* 1200px */
  --container-wide: 85rem; /* 1360px */

  /* ---- Shape & depth ---- */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgb(11 37 69 / 0.06), 0 1px 3px rgb(11 37 69 / 0.05);
  --shadow-md: 0 6px 20px -6px rgb(11 37 69 / 0.14), 0 2px 6px rgb(11 37 69 / 0.05);
  --shadow-lg: 0 24px 48px -18px rgb(11 37 69 / 0.22);

  /* ---- Surfaces ----
     V6.6.2: one static light gradient for the homepage info cards (Conference Venue · Call for Papers ·
     Important Dates). Text contrast on its darkest stop (sky-100) is verified by tests/contrast.test.mjs. */
  --gradient-info-card: linear-gradient(145deg, var(--c-white) 0%, var(--c-sky-50) 58%, var(--c-sky-100) 100%);

  /* ---- Motion ---- */
  --dur-fast: 150ms;
  --dur-base: 260ms;
  --dur-slow: 600ms;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --reveal-shift: 18px;

  /* ---- Breakpoints ----
     Media queries cannot read var(), so these values are repeated literally in
     shared-components/components.css; components.js reads them from here.
     tests/congress-home.test.mjs asserts all three stay identical. */
  --bp-nav-desktop: 71.25rem;   /* 1140px: inline nav (V6.3: logo + 6 top-level items of the original menu ≈ 900px, + margin) */
  --bp-header-cta: 86.25rem;    /* 1380px: + header CTA (≈ 1307px incl. scrollbar, + ~70px font margin) */

  /* ---- Layers ---- */
  --z-header: 50;
  --z-skip: 100;
  --header-h: 4.25rem;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-fast: 0ms;
    --dur-base: 0ms;
    --dur-slow: 0ms;
    --reveal-shift: 0px;
  }
}
