@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/space-grotesk/SpaceGrotesk-VariableFont_wght.woff2') format('woff2'),url('../fonts/space-grotesk/SpaceGrotesk-VariableFont_wght.ttf') format('truetype');
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: 'Urbanist';
  src: url('../fonts/urbanist/Urbanist-VariableFont_wght.woff2') format('woff2'),url('../fonts/urbanist/Urbanist-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #090B0E;
  --surface: #14181E;
  --elev: #1B2027;
  --text: #EAECF0;
  --muted: #C5C9DB;
  --dim: #7C8396;
  --accent: #9DA3C0;
  --line: rgba(255,255,255,.08);
  --glass: rgba(9,11,14,.72);
  --shadow: rgba(0,0,0,.75);
  --dotbg: rgba(255,255,255,.1);
  --l1: rgba(157,163,192,.30);
  --l2: rgba(52,60,72,1);
  --l3: rgba(94,102,136,.40);
  --l4: rgba(34,44,62,1);
  --vig: rgba(0,0,0,.55);
  --grain: .06;
  --on-accent: #090B0E;
  --accent-hover: #B8BED2;
  --display: 'Space Grotesk',sans-serif;
  --body: 'Urbanist',sans-serif;
  --w: 1160px;
  --ease: cubic-bezier(.16,1,.3,1);
  --hover: cubic-bezier(.2,.7,.2,1);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #F3F4F7;
  --surface: #FFFFFF;
  --elev: #EEF0F4;
  --text: #0D1016;
  --muted: #4A5162;
  --dim: #666D7E;
  --accent: #6B7394;
  --line: rgba(13,16,22,.09);
  --glass: rgba(243,244,247,.72);
  --shadow: rgba(13,16,22,.22);
  --dotbg: rgba(13,16,22,.12);
  --l1: rgba(157,163,192,.42);
  --l2: rgba(255,255,255,1);
  --l3: rgba(107,115,148,.30);
  --l4: rgba(214,218,228,1);
  --vig: rgba(120,128,150,.22);
  --grain: .04;
  --on-accent: #fff;
  --accent-hover: #7B839F;
  color-scheme: light;
}

/* troca de tema: os tokens de cor sao animados na raiz, entao tudo muda junto, no mesmo tempo */
@property --bg {
  syntax: '<color>';
  inherits: true;
  initial-value: #090B0E;
}

@property --surface {
  syntax: '<color>';
  inherits: true;
  initial-value: #14181E;
}

@property --elev {
  syntax: '<color>';
  inherits: true;
  initial-value: #1B2027;
}

@property --text {
  syntax: '<color>';
  inherits: true;
  initial-value: #EAECF0;
}

@property --muted {
  syntax: '<color>';
  inherits: true;
  initial-value: #C5C9DB;
}

@property --dim {
  syntax: '<color>';
  inherits: true;
  initial-value: #7C8396;
}

@property --accent {
  syntax: '<color>';
  inherits: true;
  initial-value: #9DA3C0;
}

@property --line {
  syntax: '<color>';
  inherits: true;
  initial-value: rgba(255,255,255,.08);
}

@property --glass {
  syntax: '<color>';
  inherits: true;
  initial-value: rgba(9,11,14,.72);
}

@property --shadow {
  syntax: '<color>';
  inherits: true;
  initial-value: rgba(0,0,0,.75);
}

@property --dotbg {
  syntax: '<color>';
  inherits: true;
  initial-value: rgba(255,255,255,.1);
}

@property --l1 {
  syntax: '<color>';
  inherits: true;
  initial-value: rgba(157,163,192,.30);
}

@property --l2 {
  syntax: '<color>';
  inherits: true;
  initial-value: rgba(52,60,72,1);
}

@property --l3 {
  syntax: '<color>';
  inherits: true;
  initial-value: rgba(94,102,136,.40);
}

@property --l4 {
  syntax: '<color>';
  inherits: true;
  initial-value: rgba(34,44,62,1);
}

@property --vig {
  syntax: '<color>';
  inherits: true;
  initial-value: rgba(0,0,0,.55);
}

@property --on-accent {
  syntax: '<color>';
  inherits: true;
  initial-value: #090B0E;
}

@property --accent-hover {
  syntax: '<color>';
  inherits: true;
  initial-value: #B8BED2;
}

@property --grain {
  syntax: '<number>';
  inherits: true;
  initial-value: .06;
}

:root {
  transition: --bg 1s cubic-bezier(.2,.7,.2,1),--surface 1s cubic-bezier(.2,.7,.2,1),--elev 1s cubic-bezier(.2,.7,.2,1),--text 1s cubic-bezier(.2,.7,.2,1),--muted 1s cubic-bezier(.2,.7,.2,1),--dim 1s cubic-bezier(.2,.7,.2,1),--accent 1s cubic-bezier(.2,.7,.2,1),--line 1s cubic-bezier(.2,.7,.2,1),--glass 1s cubic-bezier(.2,.7,.2,1),--shadow 1s cubic-bezier(.2,.7,.2,1),--dotbg 1s cubic-bezier(.2,.7,.2,1),--l1 1s cubic-bezier(.2,.7,.2,1),--l2 1s cubic-bezier(.2,.7,.2,1),--l3 1s cubic-bezier(.2,.7,.2,1),--l4 1s cubic-bezier(.2,.7,.2,1),--vig 1s cubic-bezier(.2,.7,.2,1),--on-accent 1s cubic-bezier(.2,.7,.2,1),--accent-hover 1s cubic-bezier(.2,.7,.2,1),--grain 1s cubic-bezier(.2,.7,.2,1);
}

.theme-anim *:not(#theme):not(#theme *),.theme-anim *::before,.theme-anim *::after {
  transition: none!important;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  body::before, body::after {
    animation: none;
  }
}
