@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&display=swap");

@font-face {
  font-family: "IvyMode Regular";
  src: url("/font/IvyMode-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "IvyMode Bold";
  src: url("/font/IvyMode-Bold.woff2") format("woff2");
}

article {
  margin: 80px 10%;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: Open Sans, sans-serif;
}

article a {
  text-decoration: underline !important;
}

article div {
  margin: 20px 0;
}

article p {
  font-family: Open Sans, sans-serif;
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  font-size: calc((1.2 - 1) * 1.2vw + 1rem);
  margin-bottom: 20px;
  text-align: left;
}

article li {
  font-family: Open Sans, sans-serif;
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  font-size: calc((1.2 - 1) * 1.2vw + 1rem);
  margin-bottom: 20px;
  text-align: left;
}

article p b {
  font-weight: 600;
}

article a {
  color: black;
}

article h1 {
  font-style: normal;
  letter-spacing: 0em;
  text-transform: none;
  line-height: 1.5em;
  font-size: calc((2.8 - 1) * 1.2vw + 1rem);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 400;
}

article h2 {
  font-size: calc((2.4 - 1) * 1.2vw + 1rem);
  margin-bottom: 20px;
}

article h3 {
  font-size: calc((2 - 1) * 1.2vw + 1rem);
  margin-bottom: 20px;
}

article img {
  padding: 20px;
  width: 100%;
  max-width: 600px;
}

article .divider {
  background-color: black;
  height: 1px;
  width: calc(80vw);
}

article .square {
  aspect-ratio: 1;
  object-fit: cover;
}

article .align-vertical img {
  padding: 20px 0;
}

article .align-horizontal img {
  align-self: flex-start;
  width: 50%;
  padding: 0 20px;
}

article .align-horizontal a img {
  width: 100%;
}

article .align-horizontal div {
  flex: 1;
}

article .align-horizontal div img {
  width: 100%;
}

article ol {
  list-style: decimal;
  padding: 0 40px;
}

article ul {
  list-style: disc;
  padding: 0 40px;
}

article .date {
  font-weight: 500;
}

article .author-by {
  font-weight: 600;
}

article .align-horizontal {
  display: flex;
  flex-direction: row;
  width: 100%;
}

article .align-vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

article .align-vertical .left {
  align-self: flex-start;
}

article .align-vertical .right {
  align-self: flex-end;
}

article .align-vertical .center {
  align-self: center;
}

/* Leaving the class name as .ivy so old articles are not affected */
article .ivy {
  font-family: Open Sans, sans-serif;
}

article .bold {
  font-weight: 600;
}

article .extra-bold {
  font-weight: 800;
}
article .italic {
  font-style: italic;
}

article .full-width {
  max-width: 100%;
}

article .grid {
  margin: 0px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 100%;
}

article .grid .grid-item {
  margin: 0px 0px;
  padding: 0px 10px;
}

article .grid .grid-item img {
  padding: 0px 0px 5px 0px;
  height: 200px;
  object-fit: contain;
}

article .grid .grid-item a {
  text-align: center;
}

article .grid .grid-item p {
  margin-bottom: 0px;
  text-align: center;
  line-height: normal;
  font-size: 16px;
}

article .grid.two-col .grid-item {
  flex: 0 0 34%;
}

article .grid.three-col .grid-item {
  flex: 0 0 26%;
}

article .grid.four-col .grid-item {
  flex: 0 0 21%;
}

article .image-with-subtitle {
  display: flex;
  flex-direction: column;
  align-items: center;
}

article .image-with-subtitle p {
  font-size: 10px;
  align-self: flex-start;
}

@media only screen and (max-width: 800px) {
  article {
    margin: 40px 20px;
  }

  article p {
    text-align: justify;
  }

  article .align-horizontal {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  article .align-horizontal img {
    width: 100%;
    padding: 0px;
  }

  article img {
    margin: 0px;
    width: 100%;
  }

  article .grid {
    max-width: 100%;
  }

  article .grid.grid.three-col .grid-item {
    flex: 0 0 calc(40%);
  }

  article .grid.grid.four-col .grid-item {
    flex: 0 0 calc(40%);
  }

  article .divider {
    background-color: black;
    width: calc(100vw - 40px);
  }
}
