/* Fonts *******************************************************************/

@font-face {
  font-family: Nunito;
  src: url("../fonts/Nunito-Variable.woff2") format("woff2");
}

@font-face {
  font-family: Rubik;
  src: url("../fonts/Rubik-Variable.woff2") format("woff2");
}


/* Variables ***************************************************************/

:root {
  /* Blueberry Dark */
  --bd-background-color: #2C2A33;
  --bd-border-color-quote: #6C648B;
  --bd-color-quote: #E2E0F0;
  --bd-color-header: #C5C3D3;
  --bd-color-link: #A8A6B6;
  --bd-color-link-hover: #6C648B;
  --bd-color-text: #A8A6B6;
  /* Blueberry Light */
  --bl-background-color: #C5C3D3;
  --bl-border-color-quote: #7E78A6;
  --bl-color-quote: #6A6482;
  --bl-color-header: #2C2A33;
  --bl-color-link: #222222;
  --bl-color-link-hover: #7E78A6;
  --bl-color-text: #222222;

  --font-family-header: Rubik, sans-serif;
  --font-family-nav: Nunito, sans-serif;
  --font-family-text: Nunito, sans-serif;
}


/* Tags ********************************************************************/

a {
  color: var(--bd-color-link);
  transition: color 0.2s ease;
}

a:hover {
  color: var(--bd-color-link-hover);
}

blockquote {
  border-left: 3px solid var(--bd-border-color-quote);
  color: var(--bd-color-quote);
  font-style: italic;
  margin: 2rem 2rem;
  padding-left: 1rem;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--bd-color-header);
  font-family: var(--font-family-header);
  font-weight: 800;
  margin-top: 50px;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.9rem;
}

h3 {
  font-size: 1.8rem;
}

h4 {
  font-size: 1.7rem;
}

h5 {
  font-size: 1.6rem;
}

h6 {
  font-size: 1.5rem;
}


/* Containers **************************************************************/

body {
  background-color: var(--bd-background-color);
}

/***** Nav ******************************/

nav {
  font-family: var(--font-family-nav);
  font-size: 1.6rem;
  font-weight: 700;
  left: 2rem;
  position: fixed;
  top: 4rem;
}

nav ul {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  list-style: none;
  padding-left: 0;
}

/***** Main *****************************/

main {
  color: var(--bd-color-text);
  font-family: var(--font-family-text);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 5rem;
  margin-left: max(250px, calc(50% - 450px));
  margin-right: 2rem;
  width: min(900px, calc(100% - 250px - 2rem));
}

/***** Footer ***************************/

footer {
  bottom: 1.5rem;
  left: 1.5rem;
  opacity: 0.3;
  position: fixed;
}
