/*
  Colors provided by Catppuccin (https://github.com/catppuccin/catppuccin)
  License: MIT
  Copyright (c) 2021 Catppuccin
*/

:root {

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

  /* 2. tokens */
  --bg-primary: var(--base);
  --bg-secondary: var(--crust);

  --bg-code: var(--base);
  --bg-code-header: var(--surface0);

  --text-primary: var(--overlay2);
  --text-secondary: var(--white);
  --text-tertiary: var(--text);
  --text-quaternary: var(--black);

  --text-primary-template: var(--text);
  --text-secondary-template: var(--subtext1);
  --text-tertiary-template: var(--blue);

  --color-details: var(--flamingo);
  --color-border: var(--surface0);

  --color-tag-blue: var(--blue);
  --color-tag-yellow: var(--yellow);
  --color-tag-peach: var(--peach);
  --color-tag-green: var(--green);
  --color-tag-red: var(--red);

  /* 3. typography  */
  --font-main: 'JetBrains Mono', monospace;

  --fs-sm: clamp(0.8rem, 0.1vw + 0.78rem, 0.89rem);
  --fs-base: clamp(1rem, 0.3vw + 0.93rem, 1.2rem);
  --fs-md: clamp(1.25rem, 0.6vw + 1.1rem, 1.6rem);
  --fs-lg: clamp(1.56rem, 1.1vw + 1.29rem, 2.1rem);
  --fs-xl: clamp(2.44rem, 2.5vw + 1.8rem, 3.8rem);
}