:root {
  --black: #020305;
  --paper: #e8e9e5;
  --soft: #aab3bd;
  --ice: #b8cbd8;
  --artist-blue: #68778e;
  --line: rgba(213, 224, 231, 0.22);
  --panel: rgba(4, 7, 11, 0.76);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--paper);
  background: var(--black);
  font-family: "Candara Light", Candara, "Segoe UI", sans-serif;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0.025em;
  overflow-x: hidden;
}

.site-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--black);
  pointer-events: none;
}

.site-background::before {
  content: "";
  position: absolute;
  inset: -1.5%;
  background: url("img/enceladus_back.jpg") center center / cover no-repeat;
  opacity: 0.32;
}

.site-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.42),
      rgba(0, 0, 0, 0.10) 48%,
      rgba(0, 0, 0, 0.30)
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.04),
      rgba(0, 0, 0, 0.28)
    );
}

main,
footer {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  top: -5rem;
  left: 1rem;
  z-index: 20;
  padding: 0.7rem 1rem;
  color: #000;
  background: #fff;
  text-decoration: none;
  transition: top 160ms ease;
}

.skip-link:focus {
  top: 1rem;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: clamp(2.5rem, 7vw, 6rem) clamp(1.2rem, 5vw, 4rem);
}

.new-album {
  position: absolute;
  top: clamp(1.4rem, 3vw, 2.6rem);
  left: 50%;
  margin: 0;
  color: rgba(232, 233, 229, 0.72);
  font-size: clamp(2.78rem, 3.1vw, 2.96rem);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateX(-50%);
}

.hero-inner {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 5rem);
}

.album-cover-wrap {
  position: relative;
  width: min(100%, 500px);
  aspect-ratio: 2010 / 2047;
  justify-self: end;
}

.album-cover-wrap::before {
  content: "";
  position: absolute;
  inset: 8% -7% -8% 10%;
  z-index: -1;
  background: rgba(111, 147, 174, 0.17);
  filter: blur(42px);
}

.album-cover {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  box-shadow:
    0 34px 110px rgba(0, 0, 0, 0.68),
    0 0 0 10px rgba(255, 255, 255, 0.06);
}

.release {
  min-width: 0;
  max-width: none;
}

.artist,
h1 {
  display: block;
  width: max-content;
  max-width: 100%;
  color: var(--paper);
  font-size: clamp(3.35rem, 5.15vw, 5.45rem);
  font-weight: 300;
  line-height: 0.88;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  text-shadow: 0 10px 42px rgba(0, 0, 0, 0.82);
  white-space: nowrap;
}

.artist {
  margin: 0 0 0.32rem;
  color: var(--artist-blue);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1.45rem;
}

.date {
  margin-bottom: 2.3rem;
  color: var(--paper);
  font-size: clamp(1.05rem, 2.1vw, 1.45rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}

.links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  opacity: 0.76;
  text-decoration: none;
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    filter 160ms ease;
}

.links img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.links a:hover,
.links a:focus-visible {
  opacity: 1;
  filter: drop-shadow(0 0 14px rgba(184, 203, 216, 0.3));
  transform: translateY(-2px) scale(1.035);
  outline: none;
}

.discography {
  padding:
    clamp(5rem, 9vw, 8rem)
    clamp(1.2rem, 5vw, 4rem)
    clamp(5rem, 8vw, 7rem);
  background:
    linear-gradient(
      180deg,
      rgba(1, 2, 4, 0.66),
      rgba(1, 2, 4, 0.92)
    ),
    rgba(1, 2, 4, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(8px);
}

.discography-inner {
  width: min(100%, var(--max-width));
  margin: 0 auto;
}

h2 {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  color: var(--paper);
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.2rem, 3vw, 2.6rem);
}

.album-card {
  min-width: 0;
  color: var(--paper);
}

.album-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.album-name {
  font-size: clamp(1.15rem, 2.1vw, 1.55rem);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.album-year {
  color: var(--soft);
  font-size: 0.86rem;
  letter-spacing: 0.17em;
}

.album-cover-link {
  display: block;
  text-decoration: none;
}

.album-card-image {
  overflow: hidden;
  background: #080b0f;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
}

.album-cover-link img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition:
    transform 300ms ease,
    filter 300ms ease;
}

.album-cover-link:hover img,
.album-cover-link:focus-visible img {
  transform: scale(1.025);
  filter: brightness(1.06);
}

.album-cover-link:focus-visible,
.album-links a:focus-visible {
  outline: 1px solid rgba(232, 233, 229, 0.72);
  outline-offset: 4px;
}

.album-links {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  padding-top: 1.15rem;
}

.album-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 50%;
  opacity: 0.72;
  text-decoration: none;
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    filter 160ms ease;
}

.album-links img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.album-links a:hover,
.album-links a:focus-visible {
  opacity: 1;
  filter: drop-shadow(0 0 12px rgba(184, 203, 216, 0.28));
  transform: translateY(-2px) scale(1.035);
}

footer {
  padding: 1.5rem 1.2rem 2.5rem;
  color: rgba(220, 225, 228, 0.56);
  background: #010204;
  text-align: center;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 1050px) {
  .hero {
    min-height: auto;
    padding-top: 6.5rem;
    padding-bottom: 5rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.6rem;
  }

  .release {
    width: 100%;
    max-width: none;
    text-align: center;
  }

  .artist,
  h1 {
    margin-inline: auto;
  }

  .album-cover-wrap {
    width: min(84vw, 570px);
    justify-self: center;
    order: 2;
  }

  .links {
    justify-content: center;
  }
}

@media (max-width: 900px) {
  .site-background::before {
    background-position: 42% center;
    opacity: 0.50;
  }

  .album-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .album-card:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 0.6rem);
    justify-self: center;
  }
}

@media (max-width: 600px) {
  .site-background::after {
    background:
      linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.20),
        rgba(0, 0, 0, 0.50)
      ),
      linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.24),
        rgba(0, 0, 0, 0.16)
      );
  }

  .hero {
    padding-top: 5.4rem;
    padding-inline: 1rem;
  }

  .new-album {
    top: 1.35rem;
    left: 1rem;
    right: 1rem;
    width: auto;
    transform: none;
    text-align: center;
    font-size: clamp(1rem, 5vw, 1.25rem);
    line-height: 1.2;
    letter-spacing: 0.24em;
  }

  .artist,
  h1 {
    max-width: 100%;
    margin-inline: auto;
    font-size: clamp(2.35rem, 11.8vw, 4.1rem);
    line-height: 0.92;
    letter-spacing: 0.035em;
  }

  /* Keep DAVID BOILY blue on mobile. */
  .artist {
    color: var(--artist-blue);
  }

  .date {
    font-size: 0.96rem;
    line-height: 1.7;
  }

  .links {
    gap: 0.72rem;
  }

  .links a {
    width: 3rem;
    height: 3rem;
  }

  .album-cover-wrap {
    width: 100%;
  }

  .discography {
    padding-inline: 1rem;
  }

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

  .album-card:last-child {
    grid-column: auto;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
  }
}
