:root {
  --background-color: #141514;
  --text-color: #eae0d5;
  --primary-color-light: #aebd93;
  --primary-color: #7a8450;
  --secondary-color: #d66853;
  --font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  font-family: "National Park", sans-serif;
  font-family: 16px;
}

a {
  text-decoration: none;
  color: var(--text-color);
  border-bottom: 2px solid var(--primary-color);
}

p {
  .dim {
    opacity: 0.25;
  }
  line-height: 1.5;
}

h1 {
  font-weight: 500;
}

button#burger {
  grid-area: hamburger;
  display: none;
}
body {
  font-size: 1.25rem;
  padding: 1rem;
  margin: 0 auto;
  max-width: 1000px;
  min-height: 100vh;
  display: grid;
  grid-template-areas:
    "header"
    "main"
    "footer";
  grid-template-rows: auto 1fr auto;
  background-color: var(--background-color);
  color: var(--text-color);
}

body > header {
  grid-area: header;
  height: 100%;
  display: grid;
  grid-template-areas: "logo nav";
  grid-template-columns: 1fr auto;
  position: sticky;
  bottom: 0;
  align-items: center;
  .logo {
    grid-area: logo;
    border: none;
    img {
      max-width: 24rem;
    }
  }

  nav {
    grid-area: nav;
    align-self: center;
    ul {
      list-style: none;
      display: flex;
      gap: 1rem;
      margin: 0;
      padding: 0;
      li {
        padding: 0;
      }
    }
    a {
      display: block;
      color: white;
      text-decoration: none;
      font-weight: 400;
      margin-bottom: 0.5rem;
    }
  }
}

main {
  grid-area: main;
}

footer {
  grid-area: footer;
}

@media (min-width: 768px) {
  body {
    grid-template-areas:
      "header"
      "main"
      "footer";
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
  }

  header {
    height: 100%;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 1rem;
  }
  body > header {
    grid-template-areas:
      "logo hamburger"
      "nav nav";
    button#burger {
      font-size: 1.5rem;
      color: var(--primary-color-light);
      display: block;
      border: none;
      background-color: transparent;
      cursor: pointer;
      align-self: start;
    }
    .logo img {
      width: 16rem;
    }
    nav {
      display: none;
      ul {
        display: block;
        width: 100%;
        padding-right: 0.5rem;
        li {
          display: block;
          text-align: right;
          width: 100%;
        }
        a {
          display: inline;
          line-height: 3;
          color: white;
          text-decoration: none;
          font-weight: 400;
          margin-bottom: 0.5rem;
        }
      }
    }
  }
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  img {
    border: 0.25rem solid #ffffff;
    aspect-ratio: 1 / 1;
    width: 100%;
  }
}
