@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Italic-Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: block;
}

@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/Fraunces-Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/Fraunces-Italic-Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: block;
}

:root {
  --color-white: #fcfbfb;
  --color-black: #2B2622;
  --color-darkgray: #454545;
  --color-lightgray: #F4F2F2;
  --color-sage: #6B897A;
  --color-sagelight: #E5ECE8;
  --color-clay: #C67E68;
  --color-claylight: #D8A595;
  --font-main: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  background-color: var(--color-white);
  font-family: var(--font-main);
  color: var(--color-black);
  height: 100%;
}

h1 {
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 42px;
  line-height: 48px;
  margin: 0 0 10px;
  color: var(--color-darkgray);
}

h2 {
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 32px;
  line-height: 38px;
  margin: 0 0 10px;
  color: var(--color-darkgray);
}

h4 {
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 26px;
  font-weight: 400;
  margin: 0 0 15px;
}

h5 {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 24px;
  font-weight: 400;
  margin: 0 0 10px;
}

p {
  font-size: 16px;
  line-height: 22px;
  font-family: var(--font-body);
  color: var(--color-darkgray);
  margin: 0 0 10px;
}

a {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 22px;
  color: var(--color-darkgray);
  text-decoration: none;
  transition: 0.4s;

  &:hover {
    color: var(--color-clay);
  }
}

a.btn {
  background-color: var(--color-clay);
  color: var(--color-white);
  border-radius: 50px;
  padding: 10px 25px;
  min-width: 230px;
  display: flex;
  text-align: center;
  justify-content: center;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: 0.4s;

  &:hover {
    background-color: var(--color-claylight);
    color: var(--color-black);
  }
}

.content-wrapper {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
}

header {
  padding: 0 45px;
  .header-wrapper {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 0.5px solid #E9E7E7;

    .logo-wrapper {
      width: 25%;
      img {
        width: 115px;
      }
    }

    .nav-wrapper {
      flex: 1;
      ul.main-nav {
        margin: 0;
        padding: 0;
        display: flex;
        justify-content: flex-end;
        gap: 25px;

        li {
          list-style: none;

          a {
            font-size: 14px;
            line-height: 14px;
          }

          &.reviews {
            a {
              color: var(--color-clay);
              &:hover {
                color: var(--color-sage);
              }
            }
          }


        }
      }
    }
  }
}

footer {
  padding: 0 45px;
  .footer-wrapper {
    background-color: var(--color-black);
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    padding: 25px;
    max-width: 1440px;
    margin: 0 auto;

    a {
      display: inline-block;
      margin-bottom: 10px;
      img {
        width: 95px;
      }
    }

    p {
      margin: 0;
      color: var(--color-white);
      font-size: 11px;
      line-height: 16px;
      max-width: 500px;
      opacity: 0.7;
    }
  }
}

section.home-hero {
  padding: 25px 45px;
  .content-wrapper {
    background-size: cover;
    background-position: center;
    border-radius: 25px;
    min-height: 450px;
    display: flex;

    &:before {
      content: '';
      display: block;
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: white;
      opacity: 0.65;
      z-index: 1;
      border-radius: 25px;
    }

    .content {
      position: relative;
      z-index: 1;
      flex: 1;
      width: 100%;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: flex-start;
      padding: 0 65px;

      h4 {
        max-width: 550px;
      }
    }
  }
}

section.home-featured-articles {
  padding: 25px 45px 45px;

  .content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  .featured-article {
    display: flex;
    gap: 85px;
    align-items: center;
    text-decoration: none;
    color: var(--color-black);

    .content {
      flex: 0 0 55%;
      display: flex;
      flex-direction: column;

      .label {
        color: var(--color-sage);
        font-size: 14px;
        letter-spacing: 1px;
        font-family: var(--font-body);
        text-transform: uppercase;
        margin-bottom: 10px;
      }

      .read-link {
        color: var(--color-sage);
        font-weight: 500;
        display: inline-block;
        margin-top: 10px;
      }
    }

    .media {
      flex: 1;
      position: relative;

      img {
        width: 100%;
        height: 500px;
        object-fit: cover;
        border-radius: 16px;
        display: block;
      }
    }

  }

  .explore-bar {
    background-color: var(--color-sagelight);
    padding: 20px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 25px;

    h5 {
      margin: 0;
      font-size: 15px;
    }

    .links-wrapper {
      display: flex;
      gap: 20px;
      a.btn {
        background-color: var(--color-sagelight);
        border: solid 1px var(--color-darkgray);
        border-radius: 50px;
        color: var(--color-darkgray);
        min-width: 0;
        font-size: 14px;
        font-weight: 500;
        padding:  5px 15px 7px;

        &:hover {
          background-color: var(--color-sage);
          color: white;
          border-color: var(--color-sage);
        }

        &.reviews {
          background-color: var(--color-claylight);
          color: white;

          &:hover {
            background-color: var(--color-clay);
            border-color: var(--color-clay);
          }
        }
      }
    }
  }

  .articles-grid {
    display: flex;
    gap: 30px;

    a.article-card {
      flex: 1;
      text-decoration: none;
      color: var(--color-black);
      display: flex;
      flex-direction: column;
      gap: 16px;

      .card-media img {
        width: 100%;
        height: 240px;
        object-fit: cover;
        border-radius: 12px;
        display: block;
        transition: opacity 0.3s;
      }

      .card-content {
        display: flex;
        flex-direction: column;
        gap: 8px;

        .tag {
          font-family: var(--font-body);
          font-size: 11px;
          font-weight: 600;
          letter-spacing: 1.2px;
          text-transform: uppercase;
          color: var(--color-clay);
        }

        h3 {
          font-family: var(--font-main);
          font-size: 22px;
          line-height: 28px;
          font-weight: 500;
          margin: 0;
        }

        .read-time {
          font-family: var(--font-body);
          font-size: 13px;
          color: var(--color-black);
          opacity: 0.5;
        }
      }

      &:hover .card-media img {
        opacity: 0.85;
      }
    }
  }
}