:root {
  --header-height: 56px;
  --hero-total-height: 340px;
  --page-background: #fff;
  --header-background: #000;
  --header-text: #fff;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page-background);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--page-background);
  color: #212121;
  font-family: Lato, "Segoe UI", Arial, sans-serif;
}

.site-header {
  display: flex;
  align-items: center;
  min-height: var(--header-height);
  background: var(--header-background);
}

.site-nav {
  display: flex;
  align-items: center;
  min-height: var(--header-height);
  padding: 0 28px;
}

.site-nav a {
  color: var(--header-text);
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
  text-decoration: none;
}

.site-nav a:focus-visible {
  outline: 2px solid var(--header-text);
  outline-offset: 6px;
}

.hero {
  position: relative;
  height: calc(var(--hero-total-height) - var(--header-height));
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: calc(var(--header-height) * -1);
  right: 0;
  left: 0;
  height: var(--hero-total-height);
  background-image: url("assets/hero.jpg");
  background-position: center center;
  background-size: cover;
}

.gnomes {
  display: flex;
  justify-content: center;
  padding: 24px 24px 0;
}

.gnomes img {
  display: block;
  width: min(100%, 1152px);
  height: auto;
}

@media (max-width: 720px) {
  :root {
    --header-height: 56px;
    --hero-total-height: 250px;
  }

  .site-nav {
    padding-inline: 24px;
  }

  .gnomes {
    padding: 24px 0 0;
  }
}
