@font-face {
  font-family: "GF10 Slim";
  src: url("Generic-G10-FR-Slim.otf");
}

@font-face {
  font-family: "Calibre";
  src: url("https://www.anost.net/fonts/CalibreWeb-Light.woff");
  font-weight: 300;
}

@font-face {
  font-family: "Calibre";
  src: url("https://www.anost.net/fonts/CalibreWeb-Medium.woff");
  font-weight: 500;
}

:root {
  --page: #fff;
  --text: #000;
  --muted: #333;
  --content-width: 870px;
  --text-width: 580px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: "GF10 Slim", Arial, sans-serif;
}

main {
  width: min(calc(100% - 32px), var(--content-width));
  margin: 0 auto;
  padding: clamp(64px, 8vw, 96px) 0 72px;
}

.logo {
  display: block;
  width: 180px;
  margin: 0 auto 56px;
}

nav {
  display: flex;
  justify-content: center;
  gap: 36px;
  margin-bottom: 56px;
  font-size: clamp(22px, 2.7vw, 27px);
  font-weight: 900;
  line-height: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

.email:hover,
.email:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 4px;
  text-underline-offset: 4px;
}

nav a:hover,
nav a:focus-visible {
  -webkit-text-stroke: 1px currentColor;
}

#home-content,
#contact {
  position: relative;
  animation: reveal 180ms ease;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}

p,
h1,
h2 {
  margin: 0;
}

#about,
#contact,
h1,
.email {
  width: min(100%, var(--text-width));
  margin-right: auto;
  margin-left: auto;
}

#about,
#contact {
  font-size: 25px;
  font-weight: 800;
}

#about p {
  font: 300 17px/1.5 "Calibre", Arial, sans-serif;
  letter-spacing: 0.029rem;
}

.albums article p {
  font: 300 15px/1.35 "Calibre", Arial, sans-serif;
  margin-top: 6px;
  color: #777;
}

#discography {
  margin-top: 72px;
}

h1 {
  width: 100%;
  margin-bottom: 24px;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.albums {
  display: grid;
  grid-template-columns: repeat(3, 270px);
  justify-content: center;
  gap: 64px 30px;
}

iframe {
  display: block;
  width: 270px;
  height: 270px;
  aspect-ratio: 1;
  border: 0;
  background: #f4f4f4;
}

h2 {
  margin-top: 12px;
  font-family: "Calibre", Arial, sans-serif;
  font-weight: 300;
}

.release-title {
  display: block;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.25;
}

.release-title i {
  font-style: italic;
}

.release-artist {
  font: 16px/1 "GF10 Slim", Arial, sans-serif;
}

.release-meta {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  line-height: 1.35;
}

.email,
#contact {
  display: block;
  margin-top: 80px;
}

.email {
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 800;
  line-height: 1;
}

#contact-form {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

input,
textarea,
button {
  width: 100%;
  border: 0;
  border-radius: 0;
  color: var(--text);
  font: 18px/1.15 "GF10 Slim", Arial, sans-serif;
}

input,
textarea {
  padding: 12px 14px;
  background: var(--page);
  outline: 0;
}

textarea {
  resize: vertical;
}

button {
  padding: 10px 14px;
  background: var(--page);
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

@media (max-width: 820px) {
  .albums {
    grid-template-columns: repeat(2, minmax(0, 270px));
    justify-content: center;
    gap: 56px 30px;
  }

  article,
  iframe {
    width: 100%;
  }

  iframe {
    height: auto;
  }
}

@media (max-width: 599px) {
  main {
    width: calc(100% - 40px);
    padding: 48px 0 56px;
  }

  .logo {
    width: 150px;
    margin-bottom: 48px;
  }

  nav {
    gap: 28px;
    margin-bottom: 48px;
  }

  #discography {
    margin-top: 56px;
  }

  .albums {
    grid-template-columns: minmax(0, 360px);
    gap: 44px;
  }

  .email,
  #contact {
    margin-top: 64px;
  }

  .email {
    overflow-wrap: anywhere;
  }

  h2 {
    font-size: 16px;
  }

}

@media (prefers-reduced-motion: reduce) {
  #home-content,
  #contact {
    animation: none;
  }
}
