body,
html {
  margin: 0;
  padding: 0;

  height: 100%;
  height: 100vh;
  height: calc(100%);
}

a {
  color: inherit;
}

body {
  display: flex;
  flex-direction: column;
}


header,
footer {
  background-color: var(--color-primary);
}

footer,
main,
aside {
  padding: .5rem;
  box-sizing: border-box;
}

header {
  padding: 1rem;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
}

header .logo {
  max-height: 80px;
}

#wood {
  max-height: 250px;
  z-index: -99;
  position: fixed;
  bottom: 0;
  right: 0;
  opacity: .3;
}

main h1 {
  font-weight: 300;
}

@media(min-width: 600px) {
  aside {
    height: 250px;
    top: -110px;
  }
}

@media(max-width: 980px) {
  body {
    padding-top: calc(80px + 2rem);
  }

  header {
    position: fixed;
    top: 0;
    width: 100%;
    box-shadow: 0 0 10px black;
    z-index: 999;
  }
}

@media(min-width: 980px) {
  body {
    /* max-width: 1500px; */
    margin: 0 auto;
    display: grid;
    grid-template-columns: 200px auto;
    grid-template-rows: 1fr auto;
    grid-template-areas:
      "header main aside"
      "footer main aside";
    overflow-y: hidden;
  }

  .pills {
    display: block;
  }

  header {
    grid-area: header;
    flex-direction: column;
    justify-content: unset;
  }

  header .persona {
    background-image: url("img/persona_left.png");
    width: calc(200px - 2rem);
    height: calc(200px - 2rem);
    margin-top: 2rem;
  }

  header .logo {
    max-height: unset;
    width: 80%;
  }

  main {
    grid-area: main;
    max-height: 100vh;
    max-height: calc(100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  main h1 {
    font-size: 2.5em;
    margin-bottom: 1rem;
  }

  main section {
    margin: 0 2rem;
    max-width: 500px;
  }

  footer {
    grid-area: footer;
    text-align: left;
    /* display: flex;
    align-items: flex-end; */
    font-size: .8em;
  }

}