@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.attribution {
  position: fixed;
  bottom: 0;
  width: 100%;
  padding: 10px;
  font-size: 11px;
  text-align: center;
}
.attribution a {
  color: hsl(228, 45%, 44%);
}
:root {
  --soft-orange: hsl(35, 77%, 62%);
  --soft-red: hsl(5, 85%, 63%);
  --off-white: hsl(36, 100%, 99%);
  --grayish-blue: hsl(233, 8%, 79%);
  --dark-grayish-blue: hsl(236, 13%, 42%);
  --very-dark-blue: hsl(240, 100%, 5%);
  --font-size-paragraph: 15px;
}
body {
  font-family: "Inter", sans-serif;
  min-height: 100vh;
  padding: 20px 20px;
}

main {
  margin: 30px auto;
  width: 100%;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  /* display: none; */
}
.bright {
  font-size: 3.1rem;
  font-weight: 700;
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.nav-links {
  display: flex;
  gap: 30px;
}
.menu-icon-cont {
  display: flex;
  justify-content: center;
  align-items: center;
  display: none;
}
button {
  background-color: var(--soft-red);
  padding: 10px;
  outline: none;
  border: none;
  color: var(--very-dark-blue);
  width: 180px;
  font-weight: 700;
  letter-spacing: 3px;
  cursor: pointer;
}
button:hover {
  background-color: black;
  color: var(--off-white);
}
.sect-head {
  font-weight: 700;
  font-size: 1.3rem;
  cursor: pointer;
}
.sect-head:hover {
  color: var(--soft-orange);
}
.sect-desc {
  color: var(--grayish-blue);
  font-size: 0.9rem;
}
.menu-div {
  position: fixed;
  display: flex;
  flex-direction: column;
  top: 0;
  right: -500px;
  background-color: var(--off-white);
  width: 300px;
  height: 100%;
  z-index: 1000;
  padding: 30px;
  gap: 80px;
  transition: all 1s linear;
}
.menu-div-image-container {
  margin-left: auto;
}
.menu-nav-links {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.menu-container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: -10px;
  left: 0;
  background-color: rgba(0, 0, 0, 0.2);
  display: none;
}
a {
  text-decoration: none;
  color: var(--dark-grayish-blue);
}
a:hover {
  color: var(--soft-red);
}
article {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1.5fr 1fr;
  grid-template-areas:
    "puzzle puzzle new"
    "bright read new";
  gap: 30px;
}
.puzzle-container {
  grid-area: puzzle;
  width: 100%;
}
.puzzle-container img {
  width: 100%;
  height: 100%;
}
.bright-text-div {
  grid-area: bright;
}
.read-more-div {
  grid-area: read;
  display: flex;
  flex-direction: column;
  gap: 30px;
  color: var(--dark-grayish-blue);
  line-height: 30px;
}
.line {
  width: 100%;
  height: 2px;
  background-color: var(--dark-grayish-blue);
}
.text-sect {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 15px 0;
}
.new-div {
  grid-area: new;
  background-color: var(--very-dark-blue);
  color: var(--off-white);
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 25px;
}
.new {
  color: var(--soft-orange);
  font-size: 2.5rem;
}
footer {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.box {
  width: calc(1 / 3 * 100%);
  display: flex;
  gap: 20px;
}
.box-image-container {
  width: 200px;
  height: 140px;
}
.box-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.right-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.number {
  color: var(--soft-red);
  font-size: 1.6rem;
  font-weight: 700;
}
.box-text {
  font-weight: 700;
}
.box-text:hover {
  color: var(--soft-red);
}
.box-desc {
  color: var(--dark-grayish-blue);
}
.mobile {
  display: none;
}
@media (max-width: 810px) {
  main {
    width: 100%;
    max-width: none;
    margin: 0px;
  }
  .bright {
    font-size: 2rem;
  }
  .read-more-div {
    line-height: 25px;
  }
}
@media (max-width: 640px) {
  body {
    padding: 30px;
  }

  article {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  footer {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 30px;
  }
  .box {
    width: 100%;
  }
  .box-image-container {
    width: 30%;
    height: auto;
  }
  .right-text {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 70%;
  }
  .nav-links {
    display: none;
  }
  .menu-icon-cont {
    display: flex;
  }
  .menu-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: -10px;
    left: 0;
    background-color: rgba(0, 0, 0, 0.2);
    display: none;
  }
  .desktop {
    display: none;
  }
  .mobile {
    display: block;
  }
  .menu-div {
    position: fixed;
    display: flex;
    flex-direction: column;
    top: 0;
    right: -500px;
    background-color: var(--off-white);
    width: 300px;
    height: 100%;
    z-index: 1000;
    padding: 30px;
    gap: 80px;
    transition: all 1s linear;
  }
  .menu-div-image-container {
    margin-left: auto;
  }
  .menu-nav-links {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }
  .show {
    display: flex;
  }
}
