/* ------------------------------------------------------------------
   Shark Tools — design tokens
   Public Sans, 1rem radii, #3ea4ec primary, light + dark surfaces.
   ------------------------------------------------------------------ */

@font-face {
  font-family: 'Public Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/public-sans-latin.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Public Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/public-sans-latin-ext.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Kantumruy Pro';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/kantumruy-pro.ttf') format('truetype');
}

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

:root {
  color-scheme: light;

  --background: #ffffff;
  --foreground: #0a0a0a;
  --card: #ffffff;
  --card-foreground: #0a0a0a;
  --popover: #ffffff;
  --popover-foreground: #0a0a0a;

  --primary: #3ea4ec;
  --primary-foreground: #ffffff;
  --primary-strong: #1683cf;
  --secondary: #eeeeee;
  --secondary-foreground: #004f8b;

  --muted: #f5f5f5;
  --muted-foreground: #606060;
  --accent: #3ea4ec;
  --accent-foreground: #ffffff;

  --destructive: #e40014;
  --success: #009767;
  --warning: #cd8900;

  --border: #e8e8e8;
  --border-strong: #d4d4d4;
  --input: #e8e8e8;
  --ring: #42a6ff;

  --code-bg: #0b0f17;
  --code-border: #1e293b;
  --code-fg: #e6edf3;

  --radius: 1rem;
  --radius-sm: calc(var(--radius) * 0.6);
  --radius-md: calc(var(--radius) * 0.8);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) * 1.35);

  --header-h: 4.25rem;
  --container: 1180px;

  --font-sans: 'Public Sans Variable', 'Public Sans', -apple-system,
    BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-khmer: 'Kantumruy Pro', 'Noto Sans Khmer', 'Public Sans Variable',
    sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', 'JetBrains Mono', Menlo,
    Consolas, 'Liberation Mono', monospace;

  --grad-from: #3ea4ec;
  --grad-to: #8b5cf6;
  --grad-mid: #6366f1;

  --shadow-xs: 0 1px 2px rgba(10, 10, 10, 0.04);
  --shadow-sm: 0 1px 3px rgba(10, 10, 10, 0.06);
  --shadow-md: 0 8px 24px -12px rgba(10, 10, 10, 0.18);
  --shadow-lg: 0 28px 70px -32px rgba(10, 10, 10, 0.32);

  --header-bg: rgba(255, 255, 255, 0.78);
  --hero-glow-a: rgba(62, 164, 236, 0.16);
  --hero-glow-b: rgba(139, 92, 246, 0.14);
  --grid-line: rgba(10, 10, 10, 0.045);
}

[data-theme='dark'] {
  color-scheme: dark;

  --background: #1e1e1e;
  --foreground: #f3f3f3;
  --card: #2a2a2a;
  --card-foreground: #f3f3f3;
  --popover: #2f2f2f;
  --popover-foreground: #f3f3f3;

  --primary: #3ea4ec;
  --primary-foreground: #ffffff;
  --primary-strong: #64b9f4;
  --secondary: #2f2f2f;
  --secondary-foreground: #c6e1ff;

  --muted: #2f2f2f;
  --muted-foreground: #b7b7b7;

  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);
  --input: rgba(255, 255, 255, 0.14);
  --ring: #1a75c5;

  --success: #2fbf8f;
  --warning: #f0a93a;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 30px -14px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 34px 80px -34px rgba(0, 0, 0, 0.72);

  --header-bg: rgba(30, 30, 30, 0.78);
  --hero-glow-a: rgba(62, 164, 236, 0.18);
  --hero-glow-b: rgba(139, 92, 246, 0.16);
  --grid-line: rgba(255, 255, 255, 0.045);
}
