/* Import local Circular font */
/* Light */
@font-face {
  font-family: "Circular";
  src: url("../assets/fonts/circular/CircularStd-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Circular";
  src: url("../assets/fonts/circular/CircularStd-LightItalic.otf")
    format("opentype");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

/* Normal */
@font-face {
  font-family: "Circular";
  src: url("../assets/fonts/circular/CircularStd-Book.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Circular";
  src: url("../assets/fonts/circular/CircularStd-BookItalic.otf")
    format("opentype");
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

/* Medium */
@font-face {
  font-family: "Circular";
  src: url("../assets/fonts/circular/CircularStd-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Circular";
  src: url("../assets/fonts/circular/CircularStd-MediumItalic.otf")
    format("opentype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

/* Bold */
@font-face {
  font-family: "Circular";
  src: url("../assets/fonts/circular/CircularStd-Bold.otf") format("opentype");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Circular";
  src: url("../assets/fonts/circular/CircularStd-BoldItalic.otf")
    format("opentype");
  font-weight: bold;
  font-style: italic;
  font-display: swap;
}

/* Black */
@font-face {
  font-family: "Circular";
  src: url("../assets/fonts/circular/CircularStd-Black.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Circular";
  src: url("../assets/fonts/circular/CircularStd-BlackItalic.otf")
    format("opentype");
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Spotify color palette. */
  --green: #1db954;
  --green-bright: #1ed760;
  --green-highlight: #3be477;
  --green-press: #1abc54;
  --charcoal: #212121;
  --black: #121212;
  --mid-gray: #353535;
  --mid-gray-brighter: #404040;
  --gray: #535353;
  --ash: #b3b3b3;

  --papa-color: #e40914;
  --lucas-color: #086ee5;

  --main-font-family: "Circular", sans-serif;
}

/* 1. Use a more-intuitive box-sizing model */
*,
*::before,
*::after {
  box-sizing: border-box;
  /* 4. Add accessible line-height
  See: https://www.joshwcomeau.com/css/custom-css-reset/#four-add-accessible-line-height-5 */
  line-height: calc(1em + 0.5rem);
}

/* 2. Remove default margin */
* {
  margin: 0;
}

/* 3. Enable keyword animations */
@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

body {
  /* 5. Improve text rendering */
  -webkit-font-smoothing: antialiased;
}

/* 6. Improve media defaults */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* 7. Inherit fonts for form controls */
input,
button,
textarea,
select {
  font: inherit;
}

/* 8. Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* 9. Improve line wrapping */
p {
  text-wrap: pretty;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}
