/* ==========================================================================
   tokens.css
   Every colour, size, space, radius and timing on the site lives here.
   Change a value here and it updates everywhere. Nothing else in the
   project should contain a raw colour or pixel value.
   ========================================================================== */

:root {
  /* ---------- Surfaces ---------- */
  --surface-0: #111113;          /* primary canvas, most sections */
  --surface-1: #1A1A1D;          /* alternating dark band, subtle shift from surface-0 */
  --surface-inverse: #F5F5F7;    /* light band, used to break up the dark run */
  --surface-hover: #242428;      /* hover fill on dark interactive surfaces */
  --hairline: #2C2C2F;           /* hairline rules only, used rarely */

  /* ---------- Ink ---------- */
  --ink-primary: #F5F5F7;        /* headings and body on dark surfaces */
  --ink-secondary: #A1A1A6;      /* supporting copy, captions */
  --ink-tertiary: #6E6E73;       /* labels, metadata, muted state */
  --ink-inverse-primary: #1D1D1F; /* headings and body on the light surface */
  --ink-inverse-secondary: #6E6E73;

  /* ---------- Accents ----------
     One per language of the name. Placeholder greys for now.
     Only for interactive elements and tags, never decoration. */
  --accent-en: #8E8E93;
  --accent-ta: #7C7C82;
  --accent-hi: #98989E;
  --accent-kn: #6B6B70;
  --accent-current: var(--accent-en);  /* sections override this */

  /* ---------- Derived colours ----------
     Built from the colours above so they stay in sync. */
  --surface-0-translucent: color-mix(in srgb, var(--surface-0) 80%, transparent);        /* scrolled header */
  --surface-inverse-translucent: color-mix(in srgb, var(--surface-inverse) 80%, transparent); /* progress nav on light */
  --hairline-inverse: #D2D2D7;   /* hairline on the light surface */
  --tag-border-mix: 30%;         /* tag border is the accent at this strength */
  --scrim: linear-gradient(to top, color-mix(in srgb, var(--surface-0) 85%, transparent) 0%, transparent 60%);

  /* Temporary v1 placeholder fills for grey image rectangles. Delete when real images land. */
  --placeholder-fill: #2A2A2E;
  --placeholder-fill-inverse: #DCDCE0;

  /* ---------- Typography ---------- */
  --font-display: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;

  /* display, hero headline only, one per page */
  --text-display: clamp(52px, 6.5vw, 96px);
  --leading-display: 1.04;
  --tracking-display: -0.015em;
  --weight-display: 700;

  /* h1 */
  --text-h1: clamp(40px, 5vw, 80px);
  --leading-h1: 1.05;
  --tracking-h1: -0.015em;

  /* h2, section headings */
  --text-h2: clamp(32px, 3.5vw, 56px);
  --leading-h2: 1.07;
  --tracking-h2: -0.005em;

  /* h3 */
  --text-h3: 32px;
  --leading-h3: 1.14;
  --tracking-h3: 0.004em;

  /* h4, card titles */
  --text-h4: 24px;
  --leading-h4: 1.25;
  --tracking-h4: 0.007em;

  /* body-lg, lead paragraphs and pull quotes */
  --text-body-lg: 21px;
  --leading-body-lg: 1.38;
  --tracking-body-lg: 0.011em;

  /* body, the workhorse reading size */
  --text-body: 17px;
  --leading-body: 1.47;
  --tracking-body: -0.022em;

  /* caption */
  --text-caption: 14px;
  --leading-caption: 1.3;
  --tracking-caption: -0.016em;

  /* micro, tags, labels, metadata */
  --text-micro: 12px;
  --leading-micro: 1.33;
  --tracking-micro: -0.01em;

  --weight-regular: 400;
  --weight-semibold: 600;
  --weight-bold: 700;

  --tracking-label: 0.08em;      /* uppercase labels and the BETA badge */
  --measure: 65ch;               /* comfortable reading width for paragraphs */
  --measure-lead: 48ch;          /* narrower width for hero supporting line */
  --measure-statement: 20ch;     /* contact statement line length */

  /* ---------- Spacing (4px base) ---------- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 80px;
  --space-10: 120px;
  --space-11: 160px;

  /* ---------- Radii ---------- */
  --radius-sm: 10px;    /* small interactive elements */
  --radius-md: 16px;
  --radius-lg: 28px;    /* cards, image containers, video containers */
  --radius-pill: 980px; /* all buttons */
  --radius-badge: 36px;

  /* ---------- Lines ---------- */
  --border-thin: 1px;
  --focus-ring-width: 2px;
  --focus-ring-offset: 3px;

  /* ---------- Layout ---------- */
  --max-width: 1200px;
  --gutter: 48px;        /* horizontal page padding */
  --section-gap: var(--space-10); /* vertical space between major sections, never below --space-9 */

  /* ---------- Component sizes ---------- */
  --button-padding-y: 14px;
  --button-padding-x: 28px;
  --header-height: 56px;
  --header-blur: 20px;
  --badge-padding-x: 10px;
  --logo-size: 48px;
  --hero-portrait-width: 500px;
  --hero-portrait-height: 600px;
  --name-cuboid-width: 200px;
  --name-cuboid-height: 80px;
  --about-photo-size: 400px;
  --tooltip-width: 240px;
  --icon-sm: 20px;
  --icon-md: 24px;
  --icon-button-size: 48px;
  --play-glyph-size: 64px;
  --gallery-item-width: 375px;
  --gallery-item-height: 812px;
  --gallery-progress-height: 2px;
  --progress-line-width: 20px;
  --progress-line-width-active: 32px;
  --progress-line-height: 2px;

  /* ---------- Stacking order ---------- */
  --z-progress-nav: 40;
  --z-header: 50;
  --z-overlay: 60;

  /* ---------- Motion ---------- */
  --transition-fast: 150ms;
  --transition-mid: 300ms;
  --transition-slow: 500ms;
  --ease-out: cubic-bezier(0.25, 0.1, 0.25, 1);
  --reveal-distance: 20px;       /* how far scroll-reveal elements rise */
  --hover-lift: -4px;            /* card lift on hover */
  --hover-scale: 1.03;           /* image zoom on card hover */
  --bob-distance: 6px;           /* scroll cue bounce height */
  --bob-duration: 2s;
}
