@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

:root {
  --primary-color: #eeb1dd;
  --primary-color-dark: #f0c5e7;
  --text-dark: #333333;
  --white: #ffffff;
  --max-width: 1200px;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

img {
  display: flex;
  width: 100%;
}

a {
  text-decoration: none;
  transition: 0.3s;
}

ul {
  list-style: none;
}

/* Background gradient: brand pink fading down into white, and the
   whole page is centered in the viewport since there's no nav
   bar taking up space above the hero section. */
html,
body {
  min-height: 100vh;
}

body {
  font-family: "Montserrat", sans-serif;
  background: linear-gradient(180deg, #eeb1dd 0%, #ffffff 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

header {
  max-width: var(--max-width);
  width: 100%;
  margin: auto;

  padding: 2rem 1rem;

  display: grid;
  gap: 4rem 1rem;
}

.header__image {
  overflow: hidden;
}

.header__image img {
  max-width: 500px;
  margin-inline: auto;
}

.header__content h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #fa7acd;
  text-align: center;
}

.header__content h1 {
  margin-bottom: 1rem;
  font-size: 4rem;
  font-weight: 800;
  line-height: 4.5rem;
  color: var(--text-dark);
  text-align: center;
}

.header__content p {
  margin-bottom: 2rem;
  font-weight: 500;
  line-height: 1.75rem;
  color: var(--text-dark);
  text-align: center;
}

.header__btn {
  margin-bottom: 5rem;
  text-align: center;
}

.header__btn button {
  padding: 1rem 1.5em;
  outline: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  background-color: var(--primary-color);
  border-radius: 5rem;
  transition: 0.3s;
  cursor: pointer;
}

.header__btn button:hover {
  background-color: var(--primary-color-dark);
}

/* The <a> inside the button fills it completely so the whole
   button is clickable, and inherits the button's white text */
.header__btn button a {
  display: block;
  color: inherit;
}

.header__socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.header__socials a {
  padding: 8px 10px;
  font-size: 1.5rem;
  color: var(--white);
  background-color: var(--primary-color);
  border-radius: 100%;
}

.header__socials a:hover {
  background-color: var(--primary-color-dark);
}

@media (width > 768px) {
  header {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }

  .header__content {
    grid-area: 1/1/2/2;
  }

  .header__content :is(h2, h1, p, .header__btn) {
    text-align: left;
  }

  .header__socials {
    justify-content: flex-start;
  }
}