@font-face {
  font-family: "MissFajardose";
  src: url(../type/MissFajardose-Regular.ttf);
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "BeVietnam";
  src: url(../type/BeVietnamPro-Regular.ttf);
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "BeVietnam";
  src: url(../type/BeVietnamPro-Bold.ttf);
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: "BeVietnam";
  src: url(../type/BeVietnamPro-MediumItalic.ttf);
  font-weight: 400;
  font-style: italic;
}
html {
  color-scheme: light dark;
  --background-1: #c2c6de;
  --background-2: #f6f7f9;
  --text-color: #2d3153;
  --text-background: #ffdaff;
  --article-text: #2d3153;
  --hover-background: #2d3153;
  --hover-text: #ffafff;
  --hover-nav: #ffdaff;
  --hover-nav-shadow: #6a176a;
  --cookie: #2d2d2d;
  --arrow: #35374f;
  --arrow-background: #fbfbfb;
  --summary-open: #2d3153;
  --summary-open-text: #ffdaff;

  --background-1: light-dark(#c2c6de, #bea5bd);
  --background-2: light-dark(#f6f7f9, #8e778d);
  --text-color: light-dark(#2d3153, #868686);
  --text-background: light-dark(#ffdaff, #35374f);
  --article-text: light-dark(#2d3153, #ffffff);
  --hover-background: light-dark(#2d3153, #131522);
  --hover-text: light-dark(#ffafff, #ffffff);
  --hover-nav: light-dark(#ffdaff, #fbfbfb);
  --hover-nav-shadow: light-dark(#6a176a, #fbfbfb);
  --summary-open: light-dark(#2d3153, #fbfbfb);
  --summary-open-text: light-dark(#ffdaff, #2d3153);
}

body {
  font-family: "BeVietnam", Helvetica, sans-serif;
  font-style: normal;
  color: var(--text-color);
  background-image: repeating-linear-gradient(
    90deg,
    var(--background-1) 0 1em,
    var(--background-2) 0 2em
  );
  margin: 0;
  position: relative;
  background-repeat: repeat;
  opacity: 1em;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  color: #262535;
  transition: 0.5s ease-in-out;
  padding: 0 1em 0 1em;
  background-color: var(--background-1);
  position: sticky;
  top: 0;
  margin: 0;
  z-index: 100;
  @media (width<30em) {
    flex-direction: column;
    align-items: center;
    gap: 1em;
  }
  box-shadow: inset 0em 3em 5em #6a176a50;
}

header a {
  text-decoration: none;
  color: #262535;

  &:hover {
    cursor: pointer;
  }
  &:focus-visible {
    outline: 0.2em dashed #262535;
    outline-offset: 0.2em;
  }
}

header h1 {
  font-family: "MissFajardose";
  font-size: 3.5em;
  margin: 0;
  font-weight: bold;

  @media (width<30em) {
    font-size: 3em;
  }
  &:active {
    transform: scale(0.9);
    transition: 0.2s ease-in-out;
  }
}

nav {
  margin: 0;
  display: flex;
  flex-wrap: balance;
  gap: 2em;
  align-items: center;
  max-width: fit-content;
  padding: 1em;

  font-family: "BeVietnam", sans-serif;
  font-weight: 700;

  & a {
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s ease-in-out;
    text-transform: uppercase;
    &:hover {
      text-shadow: var(--hover-nav-shadow) 0px 0 7px;
      color: var(--hover-nav);
    }
    &:active {
      transform: scale(0.9);
      transition: 0.2s ease-in-out;
    }
  }
}
