@import "reset.css";

body {
  display: grid;
  grid-template-rows: 3fr 2fr 1fr;
  align-items: stretch;
  height: 100vh;
  background-color: #c9c9c9;
  color: #333;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 14px;
  line-height: 1.3;
}

body > * {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

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

a:hover {
  text-decoration: underline;
}

header {
  background: #e3e3e3;
  font-size: calc(14px * 4);
}

section {
  font-size: calc(14px * 2);
}

footer {
  justify-content: flex-end;
}

footer ul {
  display: flex;
  margin: 1rem 0;
}

footer li {
  line-height: 1rem;
  border-left: solid 1px #333;
  margin-left: .5rem;
  padding-left: .5rem;
}

footer li:first-child {
  border-left: 0;
  margin-left: 0;
  padding-left: 0;
}

.pointer {
  cursor: pointer;
}

@media screen and (max-width: 549px) {
  header {
    font-size: calc(14px * 3);
  }

  section {
    font-size: calc(14px * 1.5);
  }
}

@media screen and (max-width: 400px) {
  header {
    font-size: calc(14px * 2);
  }

  section {
    font-size: calc(14px * 1.2);
  }
}
