:root {
  
  --page-background: #ffffff;
  --text-color: #111111;
  --muted-color: #666666;

  --page-width: 1080px;
  --content-width: 760px;

  --page-padding: clamp(24px, 5vw, 72px);
  --section-gap: clamp(64px, 10vw, 128px);
}

/* Base */
* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  color: var(--text-color);
  background-color: var(--page-background);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.7;
}

/* Cover image */
.cover {
  width: min(100%, var(--page-width));
  margin: 0 auto;
  height: clamp(160px, 20vw, 260px);
  overflow: hidden;
  background: #eeeeee;
}

.cover-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.body-image {
  display: block;
  width: min(100%, 812px);
  height: auto;
  margin-left: 62px;
  margin-right: 0;
}

/* Main page area */
.page {
  width: min(100%, var(--page-width));
  margin: 0 auto;
  padding: var(--page-padding);
}

/* Body area with optional independent background image */

.body-image {
  display: block;
  width: min(100%, 812px);
  height: auto;
}

/* About */
.about {
  min-height: 420px;
}

.about h1 {
  margin: 0 0 clamp(48px, 8vw, 96px);
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.05em;
}

.about-text {
  width: min(100%, var(--content-width));
}

.about-text h2 {
  margin: 0 0 2.5rem;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 400;
  line-height: 1.25;
}

.about-text p {
  margin: 0 0 1.75rem;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* Releases */
.releases {
  max-width: 860px;
  margin: 0 auto;
  padding: 56px 24px 40px;
}

.releases > h2 {
  margin: 0 0 32px;
  font-size: 22px;
  font-weight: 600;
}

/* Album covers */
.album-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2.5vw, 32px);
}

.album-link {
  display: block;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

.album-link img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: opacity 180ms ease;
}

.album-link:hover img,
.album-link:focus-visible img {
  opacity: 0.60;
}

.album-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 6px;
}

/* Responsive layout */
@media (max-width: 640px) {
  
  :root {
    --body-background-image: url("images/jemmedium-p.jpg");
  }
  
  .cover {
  width: 100%;
  height: 180px;
}

  .body-image {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}
  .releases {
  position: relative;
  z-index: 1;
  background: #ffffff;
  margin-left: 0;
  margin-right: 0;
  padding: 32px 20px 40px;
}
  
  .page {
    padding: 32px 20px 56px;
  }

  .about h1 {
    margin-bottom: 56px;
  }

  .about-text p {
    margin-bottom: 1.4rem;
  }

  .album-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .album-link img {
    aspect-ratio: 1 / 1;
  }
  
 }

/* Footer */
.site-footer {
  width: min(100%, var(--page-width));
  margin: clamp(80px, 12vw, 140px) auto 0;
  padding: 0 var(--page-padding) 48px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
}

.site-footer p {
  margin: 0 0 0.75rem;
}

.site-footer p:last-child {
  margin-bottom: 0;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .site-footer {
    margin-top: 0;
  }
}
@media (max-width: 1024px) {
  .body-image {
    margin-left: 0;
    margin-right: 0;
  }
}

@media (min-width: 1024px) and (max-width: 1180px) and (orientation: landscape) {
  .body-image {
    margin-left: 78px;
  }
}
@media (min-width: 641px) and (max-width: 1024px) and (orientation: portrait) {
  .body-image {
    width: calc(100% + 2 * (var(--page-padding) - 24px));
    margin-left: calc(-1 * (var(--page-padding) - 24px));
  }
}
