/* ==========================================================================
   tokens.css — Catppuccin Mocha (default) and Latte palettes
   Raw palette values follow Catppuccin. Semantic aliases are the only colors
   component styles should use, so a theme switch never needs a second rule set.
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Catppuccin Mocha */
  --ctp-rosewater: #f5e0dc;
  --ctp-flamingo: #f2cdcd;
  --ctp-pink: #f5c2e7;
  --ctp-mauve: #cba6f7;
  --ctp-red: #f38ba8;
  --ctp-maroon: #eba0ac;
  --ctp-peach: #fab387;
  --ctp-yellow: #f9e2af;
  --ctp-green: #a6e3a1;
  --ctp-teal: #94e2d5;
  --ctp-sky: #89dceb;
  --ctp-sapphire: #74c7ec;
  --ctp-blue: #89b4fa;
  --ctp-lavender: #b4befe;
  --ctp-text: #cdd6f4;
  --ctp-subtext1: #bac2de;
  --ctp-subtext0: #a6adc8;
  --ctp-overlay2: #9399b2;
  --ctp-overlay1: #7f849c;
  --ctp-overlay0: #6c7086;
  --ctp-surface2: #585b70;
  --ctp-surface1: #45475a;
  --ctp-surface0: #313244;
  --ctp-base: #1e1e2e;
  --ctp-mantle: #181825;
  --ctp-crust: #11111b;

  /* Surfaces and text */
  --bg: var(--ctp-base);
  --bg-deep: var(--ctp-mantle);
  --bg-deepest: var(--ctp-crust);
  --surface: var(--ctp-surface0);
  --surface-strong: var(--ctp-surface1);
  --text: var(--ctp-text);
  --text-strong: #eef1ff;
  --muted: var(--ctp-subtext0);
  --faint: #9ba1ba;
  --border: var(--ctp-surface1);
  --border-soft: var(--ctp-surface0);
  --header-bg: rgba(30, 30, 46, 0.82);
  --code-bg: var(--ctp-mantle);

  /* Interaction */
  --accent: var(--ctp-mauve);
  --on-accent: var(--ctp-base);
  --link: var(--ctp-sapphire);
  --link-hover: var(--ctp-lavender);
  --focus: var(--ctp-lavender);
  --selection: rgba(203, 166, 247, 0.32);

  /* Section accents */
  --accent-profile: var(--ctp-lavender);
  --accent-work: var(--ctp-peach);
  --accent-work-alt: var(--ctp-pink);
  --accent-skills: var(--ctp-mauve);
  --accent-skills-alt: var(--ctp-teal);
  --accent-skills-ter: var(--ctp-peach);
  --accent-experience: var(--ctp-teal);
  --accent-current: var(--ctp-pink);
  --accent-contact: var(--ctp-sky);

  /* Fixed-contrast text on dark code/header surfaces */
  --wordmark-arrow: var(--ctp-pink);
  --wordmark-text: var(--ctp-green);
  --wordmark-suffix: var(--ctp-sky);
  --terminal-command: var(--ctp-green);
  --terminal-key: var(--ctp-mauve);
  --terminal-cursor: var(--ctp-teal);

  /* Decorative glows */
  --glow-one: rgba(203, 166, 247, 0.14);
  --glow-two: rgba(148, 226, 213, 0.09);
  --grid-line: rgba(205, 214, 244, 0.035);
  --shadow: 0 24px 60px -32px rgba(17, 17, 27, 0.9);

  /* Type */
  --font-mono:
    'JetBrains Mono', ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas,
    'Liberation Mono', monospace;
  --font-pixel: 'VT323', 'JetBrains Mono', monospace;
  --text-base: 0.9375rem; /* 15px */
  --text-sm: 0.8125rem;
  --text-xs: 0.75rem;
  --leading: 1.65;
  --measure: 68ch;

  /* Layout */
  --shell: 1120px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-gap: clamp(3.5rem, 8vw, 6.5rem);
  --radius: 12px;
  --radius-sm: 8px;
  --header-height: 4.25rem;
}

/* Catppuccin Latte. Accent aliases are darker siblings of the Latte hues so
   small labels keep readable contrast on the light base. */
html[data-theme='latte'] {
  color-scheme: light;

  --ctp-rosewater: #dc8a78;
  --ctp-flamingo: #dd7878;
  --ctp-pink: #ea76cb;
  --ctp-mauve: #8839ef;
  --ctp-red: #d20f39;
  --ctp-maroon: #e64553;
  --ctp-peach: #fe640b;
  --ctp-yellow: #df8e1d;
  --ctp-green: #40a02b;
  --ctp-teal: #179299;
  --ctp-sky: #04a5e5;
  --ctp-sapphire: #209fb5;
  --ctp-blue: #1e66f5;
  --ctp-lavender: #7287fd;
  --ctp-text: #4c4f69;
  --ctp-subtext1: #5c5f77;
  --ctp-subtext0: #6c6f85;
  --ctp-overlay2: #7c7f93;
  --ctp-overlay1: #8c8fa1;
  --ctp-overlay0: #9ca0b0;
  --ctp-surface2: #acb0be;
  --ctp-surface1: #bcc0cc;
  --ctp-surface0: #ccd0da;
  --ctp-base: #eff1f5;
  --ctp-mantle: #e6e9ef;
  --ctp-crust: #dce0e8;

  --text-strong: #303246;
  --header-bg: rgba(239, 241, 245, 0.86);

  --muted: #525568;
  --faint: #55586f;

  --accent: #7c3aed;
  --on-accent: #ffffff;
  --link: #1d4ed8;
  --link-hover: #7c3aed;
  --focus: #1d4ed8;
  --selection: rgba(124, 58, 237, 0.18);

  --accent-profile: #4f46e5;
  --accent-work: #9a3412;
  --accent-work-alt: #a21caf;
  --accent-skills: #7c3aed;
  --accent-skills-alt: #0f766e;
  --accent-skills-ter: #9a3412;
  --accent-experience: #0f766e;
  --accent-current: #be185d;
  --accent-contact: #0369a1;

  --wordmark-arrow: #be185d;
  --wordmark-text: #166534;
  --wordmark-suffix: #075985;
  --terminal-command: #166534;
  --terminal-key: #6d28d9;
  --terminal-cursor: #0f766e;

  --glow-one: rgba(124, 58, 237, 0.1);
  --glow-two: rgba(15, 118, 110, 0.08);
  --grid-line: rgba(76, 79, 105, 0.05);
  --shadow: 0 24px 60px -36px rgba(76, 79, 105, 0.45);
}

/* Fonts ----------------------------------------------------------------- */

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-latin.woff2') format('woff2');
  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: 'VT323';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/vt323-latin.woff2') format('woff2');
  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;
}
