/* Fonts */
@font-face {
  font-family: "Figtree";
  src: url(./assets/fonts/Figtree-VariableFont_wght.ttf);
}
@font-face {
  font-family: "Figtree-Italic";
  src: url(./assets/fonts/Figtree-Italic-VariableFont_wght.ttf);
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  --primary-yellow: hsl(47, 88%, 63%);
  --neutral-white: hsl(0, 0%, 100%);
  --neutral-grey: hsl(0, 0%, 50%);
  --neutral-black: hsl(0, 0%, 7%);
}

body {
  background-color: var(--primary-yellow);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 100vh;
}

p {
  font-family: "Figtree", sans-serif;
  font-size: 1.6rem;
}

/* Main Section */
.main-section {
  text-align: left;
  max-width: 40rem;
  background-color: var(--neutral-white);
  border-radius: 2rem;
  border: 0.1rem solid var(--neutral-black);
  box-shadow: 0.9rem 1rem 0 0 var(--neutral-black);
}

.main-section:hover {
  box-shadow: 1.8rem 2rem 0 0 var(--neutral-black);
}

.content-box {
  width: 90%;
  margin: auto;
}

/* Header Image */
.img-div {
  padding-top: 2rem;
  text-align: center;
}

.img-div img {
  width: 100%;
  object-fit: contain;
  border-radius: 2rem;
}

.highlight-text {
  margin: 1rem auto 1rem auto;
  font-weight: 600;
}

.highlight {
  background-color: var(--primary-yellow);
  padding: 0.5rem;
  border-radius: 0.5rem;
}

/* Title Section */
.title-section {
  margin-top: 1rem;
}

.title-section p {
  color: var(--neutral-grey);
  text-align: left;
  margin-top: 1rem;
}

.title-link {
  font-family: "Figtree", sans-serif;
  font-weight: 700;
  font-size: 2.8em;
  text-decoration: none;
  color: var(--neutral-black);
}

.title-link:hover {
  color: var(--primary-yellow);
}

/* Author Section */
.author-section {
  display: flex;
  align-items: center;
  margin-top: 2rem;
  padding-bottom: 2rem;
}

.avatar-div img {
  width: 4rem;
  height: 4rem;
}

.author-name {
  margin-left: 1.5rem;
  font-weight: 700;
}

/* Attribution Section */
.attribution {
  margin-top: 5rem;
  font-size: 11px;
  text-align: center;
}
.attribution a {
  color: hsl(228, 45%, 44%);
}

/* Media Queries */
@media screen and (max-width: 416px) {
  .main-section {
    margin: 3rem;
  }
  .title-link {
    font-size: 2.3rem;
  }
}
