@font-face {
  font-family: "PP Monument Extended";
  src: url("/assets/font/PPMonumentExtended-Black.woff2");
  font-weight: 900;
  font-style: normal;
}

@font-face {
  font-family: "PP Editorial New";
  src: url("/assets/font/PPEditorialNew-Regular.woff2");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "PP Editorial New";
  src: url("/assets/font/PPEditorialNew-Italic.woff2");
  font-weight: 400;
  font-style: italic;
}

html {
  background-color: #f3f3f3;
}

body {
  font-family: "PP Editorial New", serif;
  max-width: 800px;
  margin: 0 auto;
  padding: 5.4em 1.6em 0em 1.6em;
}

h1 {
  font-family: "PP Monument Extended", sans-serif;
}

p {
  font-size: 1.5em;
  line-height: 1.5;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-width: 800px;
  margin: 0 auto;
  padding: 0em 1.6em;
  z-index: 1;
  pointer-events: none;
}

header::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 5em;
  mask: linear-gradient(white, white, transparent);
  backdrop-filter: blur(10px);
  background: linear-gradient(
    180deg,
    rgb(95.29% 95.29% 95.29% / 0.75) 0%,
    rgb(95.29% 95.29% 95.29% / 0.659) 6.25%,
    rgb(95.29% 95.29% 95.29% / 0.574) 12.5%,
    rgb(95.29% 95.29% 95.29% / 0.495) 18.75%,
    rgb(95.29% 95.29% 95.29% / 0.422) 25%,
    rgb(95.29% 95.29% 95.29% / 0.354) 31.25%,
    rgb(95.29% 95.29% 95.29% / 0.293) 37.5%,
    rgb(95.29% 95.29% 95.29% / 0.237) 43.75%,
    rgb(95.29% 95.29% 95.29% / 0.188) 50%,
    rgb(95.29% 95.29% 95.29% / 0.144) 56.25%,
    rgb(95.29% 95.29% 95.29% / 0.105) 62.5%,
    rgb(95.29% 95.29% 95.29% / 0.073) 68.75%,
    rgb(95.29% 95.29% 95.29% / 0.047) 75%,
    rgb(95.29% 95.29% 95.29% / 0.026) 81.25%,
    rgb(95.29% 95.29% 95.29% / 0.012) 87.5%,
    rgb(95.29% 95.29% 95.29% / 0.003) 93.75%,
    rgb(95.29% 95.29% 95.29% / 0) 100%
  );
  z-index: -1;
}

.header__container {
  padding: 1.4em 0 1em;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 0.4em);
  height: calc(100dvh - 0.4em);
}

.header__contents {
  pointer-events: all;
  color: #f3f3f3;
  background-color: #2e3d4f00;
  border-radius: 10px;
  padding: 0 0.8em;
  display: flex;
  flex-direction: column;
  flex-grow: 0;
  gap: 1.6em;
  transition: all 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.header__contents.open {
  flex-grow: 1;
  padding: 0.8em 1.4em;
}

.header__contents.active {
  background-color: rgba(46, 61, 79, 0.6);
  backdrop-filter: blur(12px);
}

.header__contents.active.open {
  background-color: rgba(46, 61, 79, 0.85);
}

.header__contents.active h1 {
  visibility: visible;
}

.header__contents__title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__contents__title h1 {
  visibility: hidden;
  font-size: 1em;
  text-transform: uppercase;
}

.header__contents__title h1 a {
  color: #f3f3f3;
  text-decoration: none;
}

.header__contents__title button {
  background-color: transparent;
  border: none;
  text-align: inherit;
  margin: 0;
  padding: 0;
  width: 2rem;
  height: 2rem;
}

.menu-icon {
  fill: #000;
  cursor: pointer;
  transition: fill 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.menu-icon.white {
  fill: #f3f3f3;
}

.menu-icon__top,
.menu-icon__bottom {
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
}
.menu-icon__top.active {
  transform: translate(-0.29rem, 0.29rem) rotate(45deg);
}
.menu-icon__bottom.active {
  transform: translate(-0.29rem, -0.29rem) rotate(-45deg);
}

.header__contents nav {
  display: none;
}

.header__contents.active.open nav {
  display: block;
}

.header__contents nav ul {
  display: flex;
  flex-direction: column;
  gap: 1em;
  margin: 0;
  padding: 0;
  list-style-type: none;
  text-indent: 0;
}

.header__contents nav ul li,
.header__contents nav ul li a {
    font-size: 1.4em;
    font-style: italic;
    color: #f3f3f3;
    text-decoration: none;
}

.header__contents nav ul li {
  overflow: hidden;
}
.header__contents nav ul :nth-child(1) {
  width: 5em;
}
.header__contents nav ul :nth-child(2) {
  width: 9em;
}

.header__contents nav ul li a {
  display: flex;
  align-items: center;
  transform: translateX(-1.1em);
  transition: transform 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.header__contents nav ul li a::after {
  content: "→";
  margin-left: 0.3em;
  
}
.header__contents nav ul li a::before {
  content: "→";
  margin-right: 0.3em;
}
.header__contents nav ul li a:hover {
  transform: translateX(0em);
}

.hero-card {
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 4em;
}

.hero-card__content {
  position: relative;
  background-image: image-set(
      url("assets/img/falling.avif") type("image/avif"),
      url("assets/img/falling.jpg") type("image/jpeg")
    ),
    url("assets/img/falling-lqip.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  height: max(64vh, 450px);
}

.hero-card__title {
  color: #f3f3f3;
  font-size: 2.2em;
  padding: 0.2em 1em;
  width: 100%;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-card__content {
  transform: scale(1.5);
}
.hero-card__title {
  transform: scale(calc((1 / 1.5)));
}

@media (min-width: 500px) {
  .hero-card__content {
    transform: scale(1.3);
  }
  .hero-card__title {
    transform: scale(calc((1 / 1.3)));
  }
}

@media (min-width: 600px) {
  .hero-card__content {
    transform: scale(1.2);
  }
  .hero-card__title {
    transform: scale(calc((1 / 1.2)));
    font-size: 2.4em;
  }

  p {
    font-size: 1.8em;
  }
}

@media (min-width: 700px) {
  .hero-card__content {
    transform: scale(1);
  }
  .hero-card__title {
    transform: scale(1);
    font-size: 3em;
  }
}

.hero-card__title__upper {
  align-self: flex-start;
  opacity: 0;
  transform: translateX(150%);
  animation: slideIn 0.5s cubic-bezier(0.25, 1, 0.5, 1) 0.1s forwards;
}

.hero-card__title__lower {
  align-self: flex-end;
  opacity: 0;
  transform: translateX(-150%);
  animation: slideIn 0.5s cubic-bezier(0.25, 1, 0.5, 1) 0.1s forwards;
}

@keyframes slideIn {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@media (prefers-reduced-motion) {
  .hero-card__title__upper,
  .hero-card__title__lower {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

article > p {
  opacity: 0;
  transform: translateY(2em);
  animation: slideIn 0.5s cubic-bezier(0.25, 1, 0.5, 1) 0.4s forwards;
}

.discography-section {
  display: flex;
  justify-content: center;
  padding: 4em 0;
}

.discography {
  width: 10em;
  height: 10em;
  transform: rotate(-7deg);
  transition: transform 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
  transform-origin: bottom;
  text-decoration: none;
}

.discography__album {
  background-image: image-set(
      url("assets/img/discography.avif") type("image/avif"),
      url("assets/img/discography.jpg") type("image/jpeg")
    );
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 6px;
}

.discography__vinyl {
  background-image: image-set(
      url("assets/img/vinyl.avif") type("image/avif"),
      url("assets/img/vinyl.png") type("image/png")
    );
  position: absolute;
  display: block;
  top: 0.125em;
  left: 0.125em;
  background-size: cover;
  width: 9.75em;
  height: 9.75em;
  z-index: -1;
  transition: transform 0.3s cubic-bezier(0.215, 0.61, 0.355, 1) 0.1s;
}

.discography__album > h2 {
  font-family: "PP Monument Extended", sans-serif;
  text-transform: lowercase;
  text-align: right;
  color: #f3f3f3;
}

.discography:hover {
  transform: rotate(7deg) translateX(-1.25em) scale(1.1);
}

.discography:hover .discography__vinyl {
  transform: translateX(2.5em);
}

.form {
  display : flex;
  flex-direction: column;
  margin: 0 auto;
}

.form__input {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  gap: 0.4em;
}

.form__input input {
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 0.5em 0.6em 0.4em;
  font-size: 1.2em;
}

.form__input select {
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 0.5em 0.6em 0.4em;
  font-size: 1.2em;
}

.form__input button {
  background-color: rgba(46, 61, 79, 0.6);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.5em 0.8em 0.4em;
  font-size: 1.2em;
  cursor: pointer;
  transition: background-color 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.form__input button:hover {
  background-color: rgba(46, 61, 79, 0.85);
}

@media (max-width: 620px) {
  .form__input {
    flex-direction: column;
  }

  .form__input input {
    width: 100%;
  }
  .form__input button {
    width: 100%;
    /* text align left */
    text-align: left;
    padding-left: 0.7em;
  }
}

.form__disclaimer {
  font-size: 1em;
  color: rgba(46, 61, 79, 0.6);
  margin-top: 0.8em;
}

.form__disclaimer a {
  color: rgba(46, 61, 79, 0.6);
  text-decoration: underline;
}

.form__error {
  color: #FB2C36;
  font-size: 1em;
  margin-top: 0.8em;
  margin-bottom: 0.8em;
  border-left: 2px solid #FB2C36;
  padding-left: 0.7em;
  height: 2em;
  padding-top: 0.35em;
  display: none;
}

.form__error.active {
  display: inline-block;
}

.form__success {
  color: #00C950;
  font-size: 1em;
  margin-top: 0.8em;
  margin-bottom: 0.8em;
  border-left: 2px solid #00C950;
  padding-left: 0.7em;
  height: 2em;
  padding-top: 0.35em;
  display: none;
}

.form__success.active {
  display: inline-block;
}

.newsletter h2 {
  font-size: 1.8em;
  font-style: italic;
  font-weight: 900;
  margin-bottom: 0.4em;
}

.newsletter > p {
  margin-top: 0;
  font-size: 1.6em;
  line-height: 1.5;
}

footer p {
  display: flex;
  justify-content: center;
  padding: 0.4em 0;
  margin-top: 4em;
  font-size: 1em;
  font-style: italic;
  color: rgba(46, 61, 79, 0.6);
}

.albums {
  margin-top: 4em;
  display: flex;
  flex-direction: column;
  gap: 2.4em;
}

.album {
  display: flex;
  flex-direction: row;
  gap: 1em;
}

.album img {
  height: 12em;
  width: 12em;
  object-fit: cover;
  border-radius: 12px;
}

@media (min-width: 800px) {
  .album img {
    height: 16em;
    width: 16em;
  }
}

@media (max-width: 600px) {
  .albums {
    gap: 3em;
  }
  .album {
    flex-direction: column;
    gap: 1.2em;
  }
}

.album div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4em;
}

.album h2 {
  font-style: italic;
  font-size: 2em;
  margin: 0;
}

.album p {
  font-size: 1.2em;
  line-height: 1.5;
  margin: 0;
}

.album p.album__release-date {
  font-size: 1em;
  color: rgba(46, 61, 79, 0.6);
}

p.quote {
  margin-top: 0.8em;
  margin-bottom: 0.8em;
  border-left: 2px solid rgba(46, 61, 79, 0.6);
  padding-left: 0.7em;
}

.album ul {
  padding-left: 1.2em;
  margin: 0;
}

.album div {
  opacity: 0;
  transform: translateY(2em);
  animation: slideIn 0.5s cubic-bezier(0.25, 1, 0.5, 1) 0.4s forwards;
}

.album img {
  opacity: 0;
  transform: translateY(8em);
  animation: slideIn 0.5s cubic-bezier(0.25, 1, 0.5, 1) 0.4s forwards;
}