/* Basis reset og typografi */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #ffffff;
  color: #111;
  text-align: center;
  padding: 2rem 1rem;
}

h1, h2 {
  margin-bottom: 1rem;
  font-family: "Young Serif", serif;
}

h1 {
  font-size: 2.5rem;
  color: #000000;
}

h2 {
  font-size: 1.5rem;
  color: #000000;
}

h3 {
  font-family: "Montserrat", sans-serif;
  font-style: italic, bold;
  font-size: 1rem;
  color: #444;
}

main {
  max-width: 1000px;
  margin: 0 auto;
}

/* Tile grid */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  justify-items: center;
}

@media (min-width: 600px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Tile styling */
.release {
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  padding: 1rem;
  max-width: 300px;
  width: 100%;
  transition: transform 0.2s ease;
}

.release:hover {
  transform: translateY(-4px);
  background-color:#c797de;
  transform: background 0.5s ease;
}

.cover-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;   /* makes this container a perfect square */
  overflow: hidden;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cover {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* ensures the image fits within the container */
  border-radius: 8px;
  margin-bottom: 1rem;
}

.release h2 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.release p {
  font-size: 0.95rem;
  color: #444;
}

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

.release a:hover {
  opacity: 0.9;
}


/* Header */
header {
  margin-bottom: 2rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 1rem;
}

.nav-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.site-title {
  font-size: 1.8rem;
  margin: 0;
}

.site-title a {
  text-decoration: none;
  color: #111;
}

.menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
}

.menu li a {
  text-decoration: none;
  color: #444;
  font-weight: 500;
  transition: color 0.2s ease;
}

.menu li a:hover {
  color: #000;
}

@media (min-width: 600px) {
  .nav-wrapper {
    flex-direction: row;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
  }
}

/* BIO */

.bio-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2rem 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.bio-image img {
  width: 300px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.bio-text {
  max-width: 500px;
}

.bio-text h2,
.bio-text h3 {
  margin-top: 0;
}

.bio-text a {
  color: inherit;
  text-decoration: underline;
}

/* Releases + Bands */

.release-page {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  padding: 2rem 1rem;
}

.release-image img {
  max-width: 300px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.release-text {
  flex: 1;
  max-width: 600px;
}

.release-text h2 {
  margin-top: 0;
}

@media (max-width: 768px) {
  .release-page {
    flex-direction: column;
    align-items: center;
  }

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

/* Image behavior */

img.lazy {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

img.lazy-loaded {
  opacity: 1;
}

.cover {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.cover.lazy-loaded {
  opacity: 1;
}

/* admin */

form {
  text-align: left;
  max-width: 600px;
  margin: 2rem auto;
}

form label {
  font-weight: bold;
  display: block;
  margin-bottom: 0.5rem;
}

form input,
form textarea {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

form button {
  background-color: #c797de;
  color: rgb(0, 0, 0);
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s ease;
}

form button:hover {
  background-color: #b184cc;
}

/* lytte knap */
.listen-button {
  display: inline-block;
  background-color: #c797de;
  color: #000;
  padding: 0.6rem 1.4rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.2s ease;
  margin-top: 1rem;
}

.listen-button:hover {
  background-color: #b184cc;
}
