:root {
  --accent: #83b1d2;
  --header-dark: #111926;
  --header-light: #83b1d2;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}


body {
  line-height: 1.4;
  font-family: Verdana;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  max-width: 1200px;
  min-height: 100vh;
  display: flex;
  flex-flow: column wrap;
  align-items: center;

  &>* {
    width: 100%;
    max-width: 800px;
    padding: 0 10px 0 10px;
  }
}


header {
  height: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #111926;
  background: url("header-image-800.jpg") center top / cover no-repeat;

  @supports(background-image: url("header-image-800.webp")) {
    background-image: url("header-image-800.webp");
  }

  & h1 {
    font-weight: 700;
    background-image: linear-gradient(to bottom right, var(--header-dark) 45%, var(--header-light));
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
  }

  & ul {
    padding: 0;
    list-style-type: none;
  }

  & .nav {
    font-size: 1.1em;
  }
}


footer {
  margin-top: auto;
  height: 70px;
  padding: 15px 35px 7px;
  text-align: right;
  color: var(--header-light);
  background-image: linear-gradient(to bottom right, #fff 75%, var(--accent));
}

h1,
h2,
h3,
h4 {
  font-family: Palatino;
  color: var(--header-dark);
  overflow-wrap: break-word;
}

p {
  margin-bottom: 0.8em;
  overflow-wrap: break-word;
}

article {
  padding: 1em 0 0.5em 0;

  &:last-child {
    margin-bottom: 30px;
  }
}

.nav {
  text-decoration: underline solid var(--accent);
  color: var(--header-dark);
}

@media screen and (min-width: 350px) {
  header>nav>ul {
    width: 300px;
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: space-around;
  }
}

@media screen and (min-width: 700px) {
  article#contacts>section {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    column-gap: 10px;
    row-gap: 10px;
  }
}
