:root {
  --color-green: #214a29;
  --color-red: #9f5535;
  --color-green-dark: #386541;
  --color-green-light: #d4ded2;
  --color-red-light: #f2ece7;
  --color-base: #f4f4f4;
  --color-base-green: #dce2da;
  --transition: 0.3s ease-in-out;
  --border-radius: 3rem;
}

html {
  font-size: 16px;
}

body {
  background: var(--color-base-green);
  background-image: url(../img/bg.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  color: var(--color-green);
  font-family: "Source Sans 3", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 2rem;
}

p {
  margin-top: 0;
}

a {
  color: var(--color-green-dark);
  text-decoration: underline;
  transition: var(--transition);
}

a:hover,
a:focus-visible {
  color: var(--color-red);
}

figure {
  padding: 0;
  margin: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.hero__logo {
  width: 350px;
}

.hero__title {
  font-size: 4rem;
  margin-bottom: 0;
}

.hero__subtitle {
  font-size: 2rem;
  margin-bottom: 0;
}

.contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  text-align: center;
}

.contact__link {
  text-decoration: none;
  background: var(--color-green-dark);
  color: var(--color-base);
  border-radius: var(--border-radius);
  font-weight: 400;
  padding: 0.5rem 2rem;
}

.contact__icon {
  height: 1em;
  position: relative;
  top: 2px;
  margin-right: 0.5rem;
}

.contact__link:hover,
.contact__link:focus-visible {
  background: var(--color-red);
  color: var(--color-base);
}

.footer {
  text-align: center;
  padding: 1rem 2rem;
}

.footer__copyright {
  margin-bottom: 0;
}

@media screen and (max-width: 480px) {
  body {
    gap: 1rem;
  }

  .hero__logo {
    width: 200px;
  }

  .hero__title {
    font-size: 2.5rem;
  }

  .hero__subtitle {
    font-size: 1.5rem;
  }

  .footer__line {
    display: block;
  }
}
