@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;
}

@font-face {
  font-family: "DMsans";
  src: url(../type/DMSans-VariableFont_opsz,wght.ttf) format("truetype");
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DMsans";
  src: url(../type/DMSans-Italic-VariableFont_opsz,wght.ttf) format("truetype");
  font-style: italic;
  font-display: swap;
}

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;
  --backdrop: #ffffff50;
  --aotd-text: #2d3153;

  --background-1: light-dark(#c2c6de, #bea5bd);
  --background-2: light-dark(#f6f7f9, #f6f7f9);
  --text-color: light-dark(#2d3153, #868686);
  --text-background: light-dark(#ffdaff, #35374f);
  --article-text: light-dark(#2d3153, #8e778d);
  --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);
  --backdrop: light-dark(#ffffff50, #11111150);
  --aotd-text: light-dark(#2d3153, #262535);
}

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 #fff9ff50;
}

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; /* offset-x, y, blur */
      color: var(--hover-nav);
    }
    &:active {
      transform: scale(0.9);
      transition: 0.2s ease-in-out;
    }
  }
}

body {
  font-family: "DMsans", Helvetica, sans-serif;
  font-style: normal;
  color: var(--aotd-text);
  background-image: linear-gradient(
    var(--background-2) 0 30%,
    var(--background-1)
  );
  background-attachment: fixed;
  background-size: 100%;
  margin: 0;
  position: relative;
  opacity: 1em;
}

main {
  position: relative;
  max-width: 100%;
  margin-inline: auto;
  gap: 2em;
  margin: 0em 2em 0em 2em;
  display: grid;
  grid-template-columns: 1fr 1fr;
  @media (max-width: 600px) {
    grid-template-columns: 1fr;
  }
}
.manifest-title {
  font-family: "MissFajardose";
  font-size: clamp(1.4rem, 8vw, 3.5rem);
}

h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-variation-settings:
    "opsz" 40,
    "wght" 1000;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-variation-settings:
    "opsz" 40,
    "wght" 700;
}

h4 {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-variation-settings:
    "opsz" 40,
    "wght" 700;
}

p,
article,
li {
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.6;
  font-variation-settings:
    "opsz" 5,
    "wght" 400;
}
.myfavs {
  position: sticky;
  top: 4em;
  margin-top: 1em;

  display: flex;
  flex-direction: column;
  column-count: 2;
  column-gap: 1em;
  gap: 1.5em;

  word-wrap: break-word;
  overflow-wrap: break-word;
}

.myfavs article {
  background-color: var(--article-text);
  color: var(--arrow-background);
  padding: 1em;
  border-radius: 10px;
}
.myfavs img {
  display: block;
  margin: 0 auto 1rem auto;
  max-width: 20em;
  border-radius: 0.5em;
}
