html {
  height: 100%;
}
body {
  font-family: "Newsreader", Georgia, "Times New Roman", Times, serif;
  color: #222;
  background-color: #f6f2ee;
  background-image: url("/images/grain-texture.svg");
  background-repeat: repeat;
  line-height: 1.5;
  max-width: 620px;
  margin: 0 auto;
  min-height: 100%;
  font-synthesis: none;
  display: flex;
  flex-direction: column;
}
a {
  color: navy;
}
a:hover {
  text-decoration: none;
}
h1,
h2 {
  letter-spacing: -0.01em;
}
hr {
  border: none;
  border-top: 1px solid #ccc;
  margin-left: 0;
}
header {
  padding: 1.5rem 1rem 0;
}
main {
  margin: 0 auto;
  padding: 0 1rem;
  flex: 1;
  width: 100%;
  box-sizing: border-box;
}
footer {
  font-size: small;
  color: #666;
  text-align: center;
  margin: 1rem 0;
}
.back-link {
  display: inline-block;
  text-decoration: none;
  color: #222;
  font-size: 1.25rem;
  margin: 0;
}
article {
  padding: 2rem;
  overflow-x: auto;
  background-color: white;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  line-height: 1.35;
}
.article-content {
  margin: 0 auto;
}
.article-content h2,
.article-content h3,
.article-content h4 {
  text-align: left;
}
article img {
  max-width: 100%;
  display: block;
}
article h2 {
  margin-top: 0;
}
article figure {
  margin: 1.5rem 0;
  padding: 0;
}
article figcaption {
  font-size: small;
}
article figcaption p {
  margin-top: 0;
  padding-top: 0;
}
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar h1 {
  margin: 0;
  font-size: 2.5rem;
}
.contact {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.contact a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background-color: white;
  border-radius: 50%;
}
.contact a:hover {
  opacity: 0.7;
}
svg {
  width: 1.25rem;
  height: 1.25rem;
}
.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.nav-links {
  display: flex;
  gap: 1.25rem;
}
.nav-links a {
  text-decoration: none;
  color: #222;
  transition: none;
}
.nav-links a:hover {
  color: #555;
}
.nav-links a.active {
  font-weight: 600;
}
.article-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.article-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.6rem 0;
  border-bottom: 1px solid #e0e0e0;
}
.article-list li:last-child {
  border-bottom: none;
}
.article-list time {
  color: #888;
  font-size: 0.85rem;
  white-space: nowrap;
  margin-left: 1rem;
}
.updated-on {
  font-size: small;
  font-style: italic;
  border-left: 2px solid #666;
  padding-left: 0.75rem;
  margin: 0.5rem 0;
}
.album-filters {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.filter-tag {
  padding: 0.25rem 0.75rem;
  padding-top: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 3px;
  text-decoration: none;
  font-size: 0.85rem;
  color: #555;
}
.filter-tag.active {
  background-color: #222;
  color: white;
  border-color: #222;
}
.filter-tag:hover {
  text-decoration: none;
  border-color: #888;
}
.albums-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.album {
  width: 47%;
  margin-bottom: 2rem;
}
.album img {
  width: 100%;
  height: auto;
}
.album-artist {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
  color: #888;
  margin: 0 0 0;
}
.album-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
}
.album-year,
.album-genre {
  margin-bottom: 1rem;
  border-bottom: 1px solid #222;
}
#about-me h2 {
  margin: 0;
  margin-top: 1rem;
}

@media (max-width: 600px) {
  #about-me {
    margin-top: unset;
    padding: 0;
    border-top: 1px solid #ccc;
  }
  .top-bar {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }
  .album {
    width: 100%;
  }
  .album-filters {
    flex-wrap: wrap;
  }
  header hr {
    display: none;
  }
  article {
    padding: 1.5rem;
    margin-left: -1rem;
    margin-right: -1rem;
    border-radius: 0;
    box-shadow: none;
  }
}
