/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  /*colors*/
  --dark: #373d3f;
  --light: #f2f3f4;
  --light-1: #eaebec;
  --light-2: #d7d8d9;

  /*--dark: #f2f3f4;
  --light: #3f3f40;
  --light-1: #3b3b3b;
  --light-2: #676767;*/

  /*text*/
  --title: 2rem;
  --subtitle: 1.5rem;
  --text: 1.25rem;
  --paragraph: 1rem;

  --title-w: 500;
  --subtitle-w: 500;
  --text-w: 500;
  --paragraph-w: 400;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role="list"],
ol[role="list"] {
  list-style: none;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  font-family: "Cormorant Infant", serif;
  background-color: var(--light);
  color: var(--dark);
}

a,
a:visited,
a:hover,
a:active {
  color: inherit;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/*------------------ Styling ---------------------*/

/*dev styles*/

.title-text {
  text-align: center;
  font-size: var(--title);
  font-weight: var(--title-w);
}

.subtitle-text {
  font-size: var(--subtitle);
  font-weight: var(--subtitle-w);
}

.text-text {
  font-size: var(--text);
  font-weight: var(--text-w);
}

.paragraph-text {
  font-size: var(--paragraph);
  font-weight: var(--paragraph-w);
}

.dark {
  background-color: var(--dark);
}

.light {
  background-color: var(--light);
}

.light-1 {
  background-color: var(--light-1);
}

.light-2 {
  background-color: var(--light-2);
}

/*Preloader*/

.preloader {
  display: flex;
  flex-direction: column;
  position: fixed;
  width: 100vw;
  height: 100vh;
  align-items: center;
  justify-content: center;
  background-color: var(--light);
  z-index: 1000;
  animation: load-completed 1000ms reverse forwards 2400ms;
}

#logo path:nth-child(1) {
  animation: fill 1000ms ease-in 1200ms forwards;
}
#logo path:nth-child(2) {
  animation: fill 1000ms ease-in 1100ms forwards;
}
#logo path:nth-child(3) {
  animation: fill 1000ms ease-in 1000ms forwards;
}
#logo path:nth-child(4) {
  animation: fill 1000ms ease-in 900ms forwards;
}
#logo path:nth-child(5) {
  animation: fill 1000ms ease-in 800ms forwards;
}
#logo path:nth-child(6) {
  animation: fill 1000ms ease-in 700ms forwards;
}
#logo path:nth-child(7) {
  animation: fill 1000ms ease-in 600ms forwards;
}
#logo path:nth-child(8) {
  animation: fill 1000ms ease-in 500ms forwards;
}
#logo path:nth-child(9) {
  animation: fill 1000ms ease-in 400ms forwards;
}
#logo path:nth-child(10) {
  animation: fill 1000ms ease-in 300ms forwards;
}

@keyframes fill {
  from {
    fill: transparent;
  }
  to {
    fill: var(--dark);
  }
}

@keyframes load-completed {
  from {
    opacity: 0;
    display: none;
  }
}
