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

@font-face {
  font-family: "Inter Display";
  src: url(../fonts/InterDisplay-Bold.woff2);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter";
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: "Inter Display";
  -webkit-font-smoothing: antialiased;
}

h1 {
  font-size: 2.75em;
  line-height: 1.1;
}

a {
  text-decoration: none;
  color: black;
}

p {
  margin: 0;
}

.header {
  display: flex;
  justify-content: space-between;
  padding: 1em;
}

.logo {
  font-family: "Playfair Display";
}

.hero {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 5em;
  max-width: 1305px;
  margin: 0 auto;
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 2em;
  margin-top: 10%;
  padding: 0 3em;
}

.hero-title span {
  font-size: 1.375em;
}

.hero-title p {
  color: #79808a;
  line-height: 1.625;
}

.hero-title a {
  margin-top: 2em;
  padding: 1em 2em;
  width: fit-content;
  background-color: hsl(12, 98%, 50%);
  color: white;
  border-radius: 0.5em;
}

.hero-image {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden; /* prevents extra scroll on mobile */
  padding: 0 3em 9em 3em;
}

.circle {
  position: absolute;
  top: 90%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70em;
  height: 70em;
  border-radius: 9999px;
  aspect-ratio: 1 / 1;
  background-color: hsl(12, 98%, 50%);
  z-index: -10;
}

.image {
  width: 22em;
  padding: 0 1em;
  filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.25));
}

/* Desktop Layout */
@media (min-width: 992px) {
  .hero {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 7em;
    font-size: 1em;
    margin-top: 5em;
  }

  .hero-image {
    width: auto;
    display: block;
    overflow: visible;
  }

  .image {
    margin: 0;
    display: block;
    width: 25em;
  }

  .circle {
    width: 50em;
    height: 50em;
    top: -15em;
    left: auto;
    right: -20em;
    transform: none;
  }
}
