:root {
  --text-color: black;
  --accent: #a5c4bb;
  --max-width: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  background-color: var(--accent);
}

body {
  min-height: calc(100vh - 2px);
  overflow: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: white;
}

*,
a,
p,
b {
  font-family: "Montserrat Alternates", sans-serif;
  font-weight: 300;
  font-style: normal;
  font-size: 22px;
  line-height: 27px;
}

b {
  font-weight: 600;
}

a:hover {
  text-decoration: underline;
}

.spacer {
  flex-grow: 1;
}

.fancy {
  font-family: "Homellyst", sans-serif;
}

.regular {
  font-weight: 400;
}

.right {
  text-align: end;
}

/* Header */

.header {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 54px 40px;
  flex-grow: 0;
  position: relative;
}

.header-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 133px;
}

.header-link a {
  gap: 16px;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.header-link p,
.header-link a {
  color: var(--text-color);
  font-size: 16px;
}

/* Main */
.main {
  display: flex;
  justify-content: space-between;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 100px 20px;
  gap: 40px;
}

.main-column {
  max-width: 600px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 56px;
  justify-content: center;
  align-items: center;
}

.main-column-1 {
  text-align: end;
}

.main-image {
  max-width: 375px;
  width: 100%;
}

.main-instagram-link {
  font-weight: 600;
  color: var(--text-color);
  text-decoration: none;
}

/* Footer */
.footer {
  background-color: var(--accent);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 70px;
  padding: 60px 20px 20px 20px;
  flex-grow: 0;
}

.footer a,
.footer p {
  font-size: 16px;
}

.footer-content {
  max-width: var(--max-width);
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: start;
  gap: 62px;
}

.footer-title {
  font-size: 40px;
  margin-bottom: 33px;
}

.footer-column {
  flex: 1 1 0px;
  width: 0;
}

.footer-brands {
  display: flex;
  gap: 16px;
  flex-direction: column;
}

.footer-brand-logo {
  width: 70px;
}

.footer-brand-links {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
}

.footer-brand-links > a {
  line-height: 0;
}

@media only screen and (max-width: 768px) {
  .header {
    padding-top: 40px;
    justify-content: space-between;
  }

  .header-link {
    width: fit-content;
  }

  .main {
    flex-direction: column;
    padding-top: 0;
    align-items: center;
    gap: 20px;
  }

  .main-column {
    max-width: 100%;
    padding: 0 20px;
    gap: 20px;
  }

  .main-image {
    max-width: 100%;
  }

  .main-column-1 {
    order: 2;
    text-align: start;
  }

  .main-column-2 p {
    order: 2;
  }

  .footer {
    gap: 40px;
  }

  .footer-content {
    flex-direction: column;
  }

  .footer-column {
    width: 100%;
    padding: 0 20px;
    text-align: center;
  }

  .footer-brand-links {
    justify-content: center;
  }

  .hide-mobile {
    display: none;
  }
}
