@import url("https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Playfair:ital,opsz,wght@0,5..1200,300..900;1,5..1200,300..900&display=swap");

/* GENERAL */

:root {
  --color-midnight: #001d3d;
  --color-navy: #003566;
  --color-gold: #ffc300;
  --color-sun: #ffd60a;
  --color-white: #ffffff;

  --font-heading: "Playfair Display", serif;
  --font-tagline: "Playfair", serif;
  --font-body: "Noto Sans", sans-serif;
}

html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

html,
body {
  background: var(--color-midnight);
  color: var(--color-white);
  font-family: var(--font-body);
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-flow: column nowrap;
  gap: 2rem;
  margin-left: auto;
  margin-right: auto;
  padding: 1.5rem;
  max-width: 960px;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-gold);
  margin: 0;
}

h3 {
  font-size: 1.4rem;
}

a {
  color: var(--color-gold);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-sun);
}

/* SITE HEADER */

.site-header {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 1rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-header h2 span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header p {
  display: block;
  padding: 1rem;
  background-color: var(--color-navy);
  color: var(--color-white);
  font-family: var(--font-tagline);
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0.04rem;
  text-align: center;
}

.site-header p.is-not-index {
  display: none;
}

@media (min-width: 641px) {
  .site-header {
    grid-template-columns: 3fr 2fr;
    gap: 2rem;
  }

  .site-header p.is-not-index {
    display: block;
  }
}

/* MAIN */

main {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

/* ALBUM */

.album {
  display: flex;
  flex-flow: column nowrap;
  gap: 3rem;
}

.album header {
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
  text-align: center;
  gap: 2rem;
}

.album header h1 {
  display: flex;
  flex-flow: column nowrap;
  gap: 0.6rem;
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 600;
}

.album header h1 a {
  color: var(--color-white);
  font-family: var(--font-tagline);
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1;
  text-decoration: none;
}

.album header h1 strong {
  color: var(--color-gold);
  font-size: 2.5rem;
  font-style: normal;
  font-weight: 900;
  line-height: 0.95;
}

.album header h1 span {
  color: var(--color-sun);
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 600;
  line-height: 1.2;
}

.album .streaming-links {
  display: flex;
  flex-flow: column nowrap;
  gap: 1rem;
  text-align: center;
}

.album .streaming-links h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.album .streaming-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
}

.album .streaming-links ul li {
  width: 2.5rem;
  margin: 0 0.5rem;
}

.album .streaming-links ul li.break {
  height: 0.5rem;
  margin: 0;
  flex-basis: 100%;
}

.album .streaming-links li span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.album .streaming-links a svg {
  transition:
    fill 0.3s ease,
    opacity 0.3s ease;
  opacity: 0.8;
}

.album .streaming-links a:hover svg {
  opacity: 1;
}

.album .streaming-links .spotify svg {
  fill: #1ed760;
}

.album .streaming-links .apple-music svg {
  fill: #fa243c;
}

.album .streaming-links .youtube svg,
.album .streaming-links .youtube-music svg {
  fill: #ff0000;
}

.album .streaming-links .amazon-music svg {
  fill: #ffffff;
}

.album .streaming-links .tidal svg {
  fill: #ffffff;
}

.album .streaming-links .deezer svg {
  fill: #a238ff;
}

.album .streaming-links em {
  font-size: 0.8rem;
  font-family: var(--font-body);
  color: var(--color-white);
}

.album .columns {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 2rem;
}

.album .column {
  display: flex;
  flex-flow: column nowrap;
  gap: 2rem;
}

.album .cover-art {
  display: flex;
  justify-content: center;
}

.album .cover-art img {
  max-width: min(80%, 480px);
  border-radius: 0.5rem;
  box-shadow: 0 0 1rem rgba(255, 214, 10, 0.15);
}

.album .genres h3 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.album .genres ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.album .genres ul li {
  background-color: var(--color-navy);
  color: var(--color-white);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.album .description {
  display: flex;
  flex-flow: column nowrap;
  gap: 1rem;
}

.album .description p {
  color: var(--color-white);
  line-height: 1.4;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  padding: 0;
  margin: 0;
}

.album .external-links {
  display: flex;
  flex-flow: column nowrap;
  gap: 1rem;
}

.album .external-links ul {
  display: flex;
  flex-flow: column nowrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.album .external-links ul li {
  position: relative;
  padding-left: 1.2rem;
}

.album .external-links ul li::before {
  content: "⇒";
  position: absolute;
  top: 0.1rem;
  left: 0;
  color: var(--color-white);
  font-size: 1rem;
  line-height: 1;
}

.album .curated-lists {
  display: flex;
  flex-flow: column nowrap;
  gap: 1rem;
}

.album .curated-lists ul {
  display: flex;
  flex-flow: column nowrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.album .curated-lists ul li {
  position: relative;
  padding-left: 1.2rem;
}

.album .curated-lists ul li::before {
  content: "●";
  position: absolute;
  top: 0.1rem;
  left: 0;
  color: var(--color-gold);
  font-size: 1rem;
  line-height: 1;
}

@media (min-width: 641px) {
  .album header h1 strong {
    font-size: 4rem;
  }

  .album header h1 span {
    font-size: 2rem;
  }

  .album .streaming-links ul li.break {
    display: none;
  }

  .album .columns {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .album .cover-art img {
    max-width: min(100%, 480px);
  }

  .album .genres ul {
    justify-content: flex-start;
  }
}

/* ALBUM NAVIGATION */

.album-nav {
  display: flex;
  flex-flow: column nowrap;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
}

.album-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 1rem;
}

.album-nav ul.two-columns {
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
  align-items: center;
}

.album-nav ul.three-columns {
  display: grid;
  grid-template-columns: 1fr min-content 1fr;
}

.album-nav ul li {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  text-align: center;
}

.album-nav ul.two-columns li {
  justify-content: center;
}

.album-nav ul.three-columns li:nth-child(1) {
  justify-content: flex-end;
}

.album-nav ul.three-columns li:nth-child(2) {
  justify-content: center;
}

.album-nav ul.three-columns li:nth-child(3) {
  justify-content: flex-start;
}

/* ALBUM ARCHIVE */

.album-archive {
  display: flex;
  flex-flow: column nowrap;
  gap: 3rem;
}

.album-archive header {
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
  text-align: center;
  gap: 2rem;
}

.album-archive header h1 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-style: normal;
  font-weight: 900;
  line-height: 0.95;
  color: var(--color-gold);
}

.album-archive table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1em;
}

.album-archive thead {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.album-archive th,
.album-archive td {
  padding: 0.5em;
  text-align: left;
  vertical-align: top;
}

.album-archive thead th {
  font-weight: 600;
  color: var(--color-sun);
}

.album-archive tbody th {
  font-weight: 600;
}

.album-archive .date {
  white-space: nowrap;
}

.album-archive .year {
  text-align: right;
}

.album-archive .album {
  display: flex;
  flex-flow: column nowrap;
  gap: 0.5rem;
}

.album-archive .date,
.album-archive .artist,
.album-archive .title,
.album-archive .year {
  display: none;
}

.album-archive footer {
  display: flex;
  flex-flow: row wrap;
  gap: 1rem;
  justify-content: center;
  max-width: 66%;
  align-self: center;
}

.album-archive nav {
  display: flex;
  flex-flow: column nowrap;
  gap: 1rem;
  text-align: center;
}

.album-archive nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 1rem;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
}

.album-archive nav ul li a {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  text-align: center;
  padding: 0.5rem 0.75rem;
  background-color: var(--color-navy);
  color: var(--color-white);
  text-decoration: none;
  line-height: 1;
}

.album-archive nav ul li a:hover {
  color: var(--color-sun);
}

.album-archive nav ul li a.active,
.album-archive nav ul li a.active:hover {
  background-color: var(--color-sun);
  color: var(--color-midnight);
  font-weight: 600;
}

@media (min-width: 641px) {
  .album-archive header h1 {
    font-size: 4rem;
  }

  .album-archive .date,
  .album-archive .artist,
  .album-archive .title,
  .album-archive .year {
    display: table-cell;
  }

  .album-archive .album {
    display: none;
  }
}

/* SITE FOOTER */

.site-footer {
  display: grid;
  grid-template-columns: 1fr;
  align-items: top;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
}

.site-footer .social-links {
  display: flex;
  flex-flow: column nowrap;
  gap: 1rem;
  text-align: center;
}

.site-footer .social-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
}

.site-footer .social-links ul li {
  width: 2.5rem;
  margin: 0 0.5rem;
}

.site-footer .social-links ul li.break {
  height: 0.5rem;
  margin: 0;
  flex-basis: 100%;
}

.site-footer .social-links li span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-footer .social-links a svg {
  transition:
    fill 0.3s ease,
    opacity 0.3s ease;
  opacity: 0.8;
}

.site-footer .social-links a svg {
  transition:
    fill 0.3s ease,
    opacity 0.3s ease;
  opacity: 0.8;
}

.site-footer .social-links a:hover svg {
  opacity: 1;
}

.site-footer .social-links .instagram svg {
  fill: #ff0069;
}

.site-footer .social-links .facebook svg {
  fill: #0866ff;
}

.site-footer .social-links .x svg {
  fill: #ffffff;
}

.site-footer .social-links .bluesky svg {
  fill: #0285ff;
}

.site-footer .social-links .reddit svg {
  fill: #ff4500;
}

.site-footer .social-links .spotify svg {
  fill: #1ed760;
}

.site-footer .social-links .rss svg {
  fill: #ffa500;
}

.site-footer .data-sources {
  display: flex;
  flex-flow: column nowrap;
  gap: 1rem;
  text-align: center;
}

.site-footer .data-sources ul {
  display: inline;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 0.8rem;
}

.site-footer .data-sources ul li {
  display: inline;
  white-space: nowrap;
}

.site-footer .data-sources ul li:not(:last-child)::after {
  content: ", ";
}

.site-footer .data-sources ul li:last-child::after {
  content: ".";
}

@media (min-width: 641px) {
  .site-footer {
    grid-template-columns: 3fr 2fr;
    gap: 2rem;
  }

  .site-footer .social-links ul li {
    width: 1.9rem;
  }

  .site-footer .social-links ul li.break {
    display: none;
  }
}

.error-page {
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  padding: 4rem 0;
  gap: 4rem;
}
