@import url("https://fonts.googleapis.com/css2?family=Radio+Canada+Big:ital,wght@0,400..700;1,400..700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,200..900;1,8..60,200..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Geist+Mono:wght@100..900&display=swap");
/* Prevent iOS automatic text size adjustments (avoids content appearing "zoomed")
   and set a predictable box-sizing model to avoid unintentional overflow. */
html,
body {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

header {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background-color: transparent;
  backdrop-filter: blur(30px);
  z-index: 1000;
  padding: 20px 20px;
  transition: background-color 300ms ease;
}

header > img:hover {
  cursor: pointer;
}

/* nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
} */

#mobile-menu-icon {
  display: none;
}

.navmenu-items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.navmenu-items li {
  list-style: none;
}

.navmenu-items li a {
  color: #000000;
  text-decoration: none;
  font-family: "Radio Canada Big", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 120%;
  letter-spacing: 0px;
}

#getstart {
  display: flex;
  align-items: center;
  gap: 4px;
}

#arrow {
  position: relative;
}

/* Use transform for smoother GPU-accelerated animation */
#getstart #arrow {
  position: relative;
  transition: transform 400ms ease;
  will-change: transform;
}

#getstart:hover #arrow {
  transform: translateX(8px);
}

.journal-hero {
  padding: 65px 20px 0px 20px;
}

.journal-hero img {
  width: 100%;
}
.latest-articles {
  padding: 80px 20px 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 40px;
}

.article-head {
  font-family: "Radio Canada Big", sans-serif;
  font-size: 40px;
  font-weight: 500;
  line-height: 100%;
  letter-spacing: -1px;
  text-align: center;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 80px 16px;
}

.article {
  box-sizing: border-box;
  cursor: pointer;
  padding: 20px;
  border-radius: 16px;
}

.article:hover {
  box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.1);
  transition: box-shadow 200ms ease;
  will-change: box-shadow;
}
.article-flex {
  display: flex;
  align-items: center;
  gap: 16px;
}

.article-img-container {
  width: 100%;
  height: auto;
}

.article-img-container img {
  width: 100%;
}

.article-descp {
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.article-descp p {
  font-family: "Source Serif Pro", serif;
  font-size: 18px;
  font-weight: 400;
  /* line-height: 120px; */
  letter-spacing: -0.5px;
}

.descp-title {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.descp-title p {
  font-family: "Radio Canada Big", sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 100%;
  letter-spacing: -0.5px;
}

.duration {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.duration p {
  font-family: "Geist Mono", monospace;
  font-size: 14px;
  font-weight: 400;
  line-height: 100%;
  letter-spacing: 0px;
  color: #6c6c6c;
}

.rq-demo {
  padding: 120px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  background-color: #f6f8fb;
}

#rq-demo-head {
  font-family: "Radio Canada Big", sans-serif;
  font-size: 40px;
  font-weight: 500;
  line-height: 100%;
  letter-spacing: -1.5px;
}

#rq-demo-button {
  font-family: "Geist Mono", monospace;
  font-weight: 500;
  line-height: 100%;
  font-size: 14px;
  padding: 16px 16px;
  border: none;
  color: #ffffff;
  background-color: #000000;
  transition: color 200ms ease, background-color 200ms ease;
  will-change: color, background-color;
}

#rq-demo-button:hover {
  color: #bdbcbc;
  cursor: pointer;
}

footer {
  background-color: #fff546;
  padding: 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.site-map {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-map-menu {
  display: flex;
  gap: 20px;
}

.site-map-items {
  list-style: none;
}

.site-map-items a {
  text-decoration: none;
  color: #000000;
  font-family: "Radio Canada Big", sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 100%;
  letter-spacing: -0.5px;
  color: #66640f;
}

.site-map p {
  font-family: "Source Serif Pro", serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 120%;
  letter-spacing: -1px;
  color: #66640f;
}

@media screen and (min-width: 800px) and (max-width: 1279px) {
  .latest-articles {
    padding: 40px 20px 24px 20px;
    align-items: unset;
  }

  .article-grid {
    grid-template-columns: repeat(1, 1fr);
    padding-bottom: 80px;
    gap: 80px 40px;
  }

  .rq-demo {
    padding: 80px 20px;
  }

  #rq-demo-head {
    font-size: 32px;
  }

  #f-img {
    content: url("assets/Footer\ image-1.svg");
  }

  #f-logo {
    content: url("assets/Footer\ Logo-1.svg");
  }
}

@media screen and (min-width: 1px) and (max-width: 799px) {
  body {
    box-sizing: border-box;
    width: 100%;
  }

    header {
    flex-direction: column;
    align-items: flex-start;
  }

  #navigation {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
  }

  .navmenu-items {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 400ms ease, opacity 300ms ease;
  }

  .navmenu-items.open {
    max-height: 500px; /* adjust based on your menu height */
    opacity: 1;
    padding-top: 20px;
  }

  .navmenu-items li a {
    font-size: 24px;
    letter-spacing: -1.5px;
    padding-bottom: 20px;
  }

  .navmenu-items li {
    width: 100%;
    border-bottom: 1px solid #dbe0ec;
    display: flex;
  }

  .navmenu-items li a:hover {
    opacity: 0.55;
    transition: opacity 200ms ease;
    cursor: pointer;
  }

  #getstart {
    text-align: center;
    border-bottom: none;
  }

  #get-started {
    width: 100%;
    background-color: #000000;
    color: #ffffff;
    font-family: "Geist Mono", monospace;
    font-size: 20px;
    line-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 20px;
    transition: color 200ms ease, background-color 200ms ease;
    will-change: color, background-color;
  }

  #get-started:hover {
    opacity: 1;
    color: #bdbcbc;
    cursor: pointer;
  }

  #arrow {
    display: none;
  }

  #mobile-menu-icon {
    display: unset;
    cursor: pointer;
  }

  .latest-articles {
    padding: 24px 20px 16px 20px;
    align-items: unset;
  }

  .article-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 40px 0px;
    padding-bottom: 40px;
  }

  .article-descp p {
    font-size: 18px;
    letter-spacing: -1.46px;
  }

  .descp-title p {
    font-size: 18px;
    letter-spacing: -1px;
  }

  .rq-demo {
    padding: 40px 20px;
    width: 100%;
  }

  #rq-demo-head {
    font-size: 24px;
    letter-spacing: -1px;
    text-align: center;
  }

  #rq-demo-button {
    line-height: 130%;
  }

  footer {
    width: 100%;
    padding: 40px 20px 20px 20px;
  }

  .site-map {
    flex-direction: column;
    gap: 40px;
  }

  .site-map-menu {
    flex-wrap: wrap;
    justify-content: center;
  }

  .site-map-items a {
    font-size: 18px;
  }

  .site-map p {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
