:root {
  --color-beige: #e0d8ce;
  --color-light-olive: #c2bdac;
  --color-olive: #a2a28c;
  --color-dark-navy: #495554;
  --color-text: #000000;

  --font-heading: "Merriweather", serif;
  --font-label: "Montserrat", sans-serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background-color: var(--color-beige);
  font-family: var(--font-body);
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.5;
}

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

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

/* Navbar */
.navbar {
  display: flex;
  align-items: center;
  min-height: 4.5rem;
  padding: 0.5% 5%;
  background-color: var(--color-beige);
}

.navbar__logo {
  width: 144px;
  height: auto;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  background-color: var(--color-light-olive);
}

.hero__content {
  max-width: 35rem;
  margin-left: 5vw;
  margin-right: 5rem;
}

.hero__eyebrow {
  margin: 0 0 24px;
  font-family: var(--font-label);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-beige);
}

.hero__heading {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-beige);
}

.hero__heading-accent {
  color: var(--color-dark-navy);
}

.hero__panel {
  height: 100vh;
  background-color: var(--color-olive);
}

/* Footer */
.footer {
  padding: 80px 5%;
  background-color: var(--color-beige);
}

.footer__inner {
  max-width: 80rem;
  margin: 0 auto;
}

.footer__logo-link {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.footer__logo {
  width: 183px;
  height: auto;
}

.footer__divider {
  width: 100%;
  height: 1px;
  background-color: #000000;
}

.footer__credit {
  margin: 32px 0 0;
  text-align: center;
  font-size: 0.875rem;
}

/* Tablet */
@media screen and (max-width: 991px) {
  .navbar {
    min-height: 4.5rem;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 6rem;
    row-gap: 4rem;
  }

  .hero__content {
    margin-left: 5%;
    margin-right: 5%;
  }

  .hero__heading {
    font-size: 2.75rem;
  }

  .hero__panel {
    height: 128px;
  }
}

/* Mobile landscape */
@media screen and (max-width: 767px) {
  .navbar {
    min-height: 4rem;
  }

  .hero {
    padding-top: 4rem;
  }

  .hero__panel {
    height: 64px;
  }
}

/* Mobile portrait */
@media screen and (max-width: 479px) {
  .hero__heading {
    font-size: 2.25rem;
  }
}

/* Desktop: fit navbar + hero + footer into one screen, no scroll */
@media screen and (min-width: 992px) {
  html, body {
    height: 100%;
  }

  body {
    display: flex;
    flex-direction: column;
  }

  main {
    display: contents;
  }

  .navbar {
    flex: 0 0 auto;
  }

  .hero {
    flex: 1 1 auto;
    min-height: 0;
  }

  .hero__content {
    align-self: center;
  }

  .hero__panel {
    height: 100%;
  }

  .footer {
    flex: 0 0 auto;
  }
}
