:root {
  --header-height: 70px;
  --header-side-padding: clamp(12px, 1.5vw, 24px);
  --page-padding: 20px;
  --accent: crimson;
  --accent-hover: darkred;
  --content-width: 900px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: white;
  font-family: Arial, sans-serif;
  text-align: center;
  background: #000 url('baggrund.png') center / cover fixed;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  height: var(--header-height);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.5));
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: var(--header-height);
  margin: 0 auto;
  padding: 0 var(--header-side-padding);
}

.logo {
  justify-self: start;
}

.logo img {
  height: 52px;
  width: auto;
}

.social-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 36px;
}

.social-link,
.merch-link {
  color: white;
  line-height: 1;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-link {
  font-size: 26px;
}

.social-link--spotify {
  font-size: 30px;
}

.social-link:hover,
.merch-link:hover {
  transform: scale(1.12);
  opacity: 0.85;
}

.header-actions {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: 24px;
}

.merch-link {
  font-size: 26px;
}

.book-button,
.contact-link {
  display: inline-block;
  border-radius: 6px;
  background-color: var(--accent);
  color: white;
  font-weight: bold;
  text-decoration: none;
}

.book-button {
  padding: 6px 10px;
  font-size: clamp(12px, 2vw, 14px);
}

.book-button:hover,
.contact-link:hover {
  background-color: var(--accent-hover);
}

.content {
  padding-top: 0;
}

.music-layout {
  width: min(100%, 1220px);
  margin: 0 auto;
  padding: calc(var(--header-height) + 80px) var(--page-padding) 60px;
}

.spotify-player {
  width: min(300px, calc(100% - (var(--page-padding) * 2)));
  height: 80px;
  margin: 0 auto 60px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 0 10px black;
}

.spotify-player iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.album-section {
  padding: 0;
}

.upcoming-release {
  display: block;
  width: min(100%, 480px);
  margin: 0 auto 48px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.upcoming-release img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.15s ease;
}

.upcoming-release:hover img {
  transform: scale(1.04);
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  width: min(100%, var(--content-width));
  margin: 0 auto;
}

.album-grid a {
  justify-self: center;
  width: 100%;
  max-width: 240px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.album-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.15s ease;
}

.album-grid a:hover img {
  transform: scale(1.04);
}

.contact {
  margin: 0;
  padding: 0 var(--page-padding) 60px;
}

.contact-link {
  max-width: 100%;
  padding: 10px 20px;
  font-size: clamp(1.2rem, 4vw, 1.6rem);
  overflow-wrap: anywhere;
}

@media (min-width: 768px) {
  .album-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
  }
}

@media (min-width: 1100px) {
  .music-layout {
    display: block;
  }

  .spotify-player {
    position: fixed;
    right: var(--header-side-padding);
    bottom: 32px;
    z-index: 5;
    width: 300px;
    height: 352px;
    margin: 0;
  }

  .album-section {
    width: min(100%, var(--content-width));
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  :root {
    --header-height: 120px;
  }

  body {
    background: #000;
  }

  body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    content: '';
    background: #000 url('baggrund.png') center / cover no-repeat;
  }

  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-areas:
      'logo merch booking'
      'social social social';
    row-gap: 10px;
    padding: 0 16px;
  }

  .logo {
    grid-area: logo;
  }

  .logo img {
    height: 40px;
  }

  .social-links {
    grid-area: social;
    justify-self: center;
    position: static;
    transform: none;
    gap: 30px;
  }

  .header-actions {
    display: contents;
  }

  .merch-link {
    grid-area: merch;
    justify-self: center;
  }

  .book-button {
    grid-area: booking;
    justify-self: end;
  }
}