/* ==========================================================================
   Chaitanya 2k26 — design tokens and base defaults
   Loaded first; every other stylesheet may use these variables.

   The site has a single light theme (no dark mode).
   ========================================================================== */

:root {
  color-scheme: light;

  /* Type: 12px is the floor for labels and controls, 14px for body copy. */
  --fs-label: 12px;
  --fs-body: 14px;
  --fs-lead: 16px;

  /* Ink and surfaces (contrast measured on white unless noted). */
  --ink: #000000;
  --ink-muted: #4a5160; /* 7.9:1 on white, 4.8:1 on the sky gradient's darkest stop */
  --ink-on-dark: #ffffff; /* text/icons on an --ink fill (black pills, badges) */
  --surface: #ffffff;
  --surface-raised: rgba(255, 255, 255, 0.9); /* cards over the page gradient */
  --surface-sunken: rgba(0, 0, 0, 0.04); /* read-only inputs, tracks, chips */
  --sky-top: #f7faff;
  --sky-bottom: #b4cbf5;
  /* Full page background (pattern + gradient) for page roots. */
  --page-bg: url(/images/footerPatern.png), linear-gradient(0deg, var(--sky-bottom), var(--sky-top));
  --page-bg-size: 80px, auto;

  /* Motion (motion audit): only these durations; ease-out on enter,
     ease-in on exit. Exceptions: the one-time site loader and the footer's
     shutter-glyph signature animation (documented in their files). */
  --motion-100: 100ms;
  --motion-150: 150ms;
  --motion-200: 200ms;
  --motion-300: 300ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);

  /* Status */
  --ok: #005a3c;
  --ok-bg: #eafaf1;
  --warn-ink: #6b4a00;
  --warn-bg: #fff3cd;
  --danger: #b00020;
  --danger-bg: #fdf3f4;
  --danger-ink: #8a1020; /* error text on --danger-bg chips/notices */

  /* Hairline divider/card border on surfaces; --line-strong for the black
     outlines used on pills, inputs and cards. */
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: #000000;
  --shadow-soft: 0 20px 60px rgba(15, 23, 42, 0.10);

  /* Event categories: darkened so 12px labels pass WCAG AA (≥4.5:1) on
     white; keep in sync with EVENT_CATEGORIES in events-data.js. */
  --cat-tech: #0062d6;
  --cat-innovation: #c2410c;
  --cat-business: #005a3c;
  --cat-esports: #7a2fd0;
  --cat-cultural: #be1d5c;

  /* Interaction */
  --tap: 44px;
  --focus-ring: 2px solid var(--ink);
  --focus-offset: 3px;

  /* Letter-spacing. Display = big Druk headings, label = uppercase mono
     nav/buttons/section labels, name = person names, body = running text. */
  --track-display: 0.02em;
  --track-label: 0.08em;
  --track-name: 0.02em;
  --track-body: 0.01em;
}
/* Visible keyboard focus everywhere. Zero specificity (:where) so any
   component with its own focus style still wins. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

/* The 404 page's "go home" button removed its outline entirely. */
.error-page .go-home:focus-visible {
  outline: var(--focus-ring) !important;
  outline-offset: 6px;
}

::selection {
  background: var(--ink);
  color: var(--ink-on-dark);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Reduced motion, site-wide: every CSS transition and animation becomes
   instant and smooth scrolling is off. Components may add scoped opacity-only
   fades (≤150ms) on top. JS motion (GSAP smoother, cursor, mobile menu, the 3D
   scene's ambient animation) checks the same query in code. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
