@import "./site.css";

.hidden {
  display: none;
}

.visible {
  visibility: visible;
}

button.link {
  font-size: 100%;
  text-decoration: underline;
  background-color: transparent;
  font-family: inherit;
  border: none;
  cursor: pointer;
}

main {
  margin-top: 5em;
  padding: 0 5rem;
  display: grid;
  grid-template-columns: 1fr 4fr;
}

main > nav {
  visibility: hidden;
}

main > nav h1 {
  margin: 0;
  text-transform: uppercase;
}

main > nav ul {
  margin-left: 0;
  padding: 0;
  list-style-type: none;
  line-height: 1.6em;
}

main > nav ul li.selected button {
  font-weight: 600;
}

.results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  grid-gap: 1rem;
}

main article {
  display: grid;
  background-color: var(--color-white);
  box-shadow: 0px 3px 0px 0px rgba(217,214,208,0.75);
  padding: 0.8em;
  box-sizing: border-box;
}

article:hover {
  border-top: 5px solid var(--color-main);
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
  transition: box-shadow 0.3s ease-in;
}

main article figure {
  height: 140px;
  margin: 0;
  text-align: center;
}

main article img {
  max-width: 100%;
  max-height: 130px;
  margin-bottom: 1em;
}

main article h2 {
  margin: 0;
  font-size: 110%;
}

main article time {
  justify-self: flex-end;
  font-size: 80%;
}

main article a {
  font-weight: 600;
}

main article a,
main article a:visited {
  color: var(--color-dark-accent);
}

main article:hover a {
  color: var(--color-accent);
}

main article .variety {
  display: none;
}

/* old stuff below */
.posts {
  list-style-type: none;
  margin-left: 0;
}

.posts li {
  border-bottom: 1px solid #EEE;
  padding: 7px 0px;
}

.date {
  float: right;
}

@media screen and (max-width: 765px) {
  main {
    padding: 0 2rem;
  }

  main > nav {
    display: none;
  }

  .results {
    grid-column: 1 / 3;
  }
}