:root {
  --embed-size: 21.875em;
}

body {
  font-family: "Open Sans", sans-serif;
  background-image: url("images/background.jpg");
  background-position: center;
  background-attachment: fixed;
  background-size: 750em;
  color: #000;
  margin: 0;
  padding: 0;
}

.header-container {
  margin-top: 3.5em;
  margin-bottom: 3em;
  text-align: center;
}

.section-header-container {
  margin-top: 5.5em;
  margin-bottom: 3em;
  text-align: center;
}

.bio-container {
  margin: 3.5em auto;
  max-width: 600px;
  padding: 0 1em;
}

#about {
  inline-size: 26em;
  max-width: 600px;
  margin: 0 auto;
  text-align: justify;
  letter-spacing: 0.1875em;
  line-height: 1.6em;
  font-size: 0.9em;
}

.embed-grid {
  display: grid;
  grid-template-columns: repeat(2, var(--embed-size));
  justify-content: center;
  column-gap: 0.5em;
  row-gap: 3.75em;
  max-width: 45em;
  margin: 0 auto;
}

.embed-item {
  width: var(--embed-size);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
  box-sizing: border-box;
}

.embed-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  margin-bottom: 0.6em;
}

.embed-info p {
  text-align: center;
  inline-size: 100%;
  max-width: var(--embed-size);
  margin: 0.15em auto;
  font-size: 0.84em;
  letter-spacing: 0.125em;
  line-height: 1.5em;
  color: #38434a;
  overflow-wrap: break-word;
}

.embed-info p.subtitle {
  color: #6b7e87;
}

.embed-item iframe,
iframe.bandcamp-embed {
  border: 0;
  width: var(--embed-size);
  height: var(--embed-size);
  border-radius: 0.25em;
  display: block;
  flex-shrink: 0;
}

.footer {
  font-family: "Source Code Pro", monospace;
  margin-top: 5.5em;
  margin-bottom: 3.5em;
  text-align: center;
  font-size: 0.82em;
  letter-spacing: 0.125em;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  :root {
    --embed-size: 100%;
  }

  .header-container {
    margin-top: 2.5em;
    margin-bottom: 2em;
  }

  .section-header-container {
    margin-top: 4em;
    margin-bottom: 2em;
  }

  .bio-container {
    margin: 2.5em auto;
  }
  
  .embed-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90%;
    gap: 3em;
  }

  .embed-item {
    width: 95%;
    max-width: 350px;
    margin: 0 auto;
  }
  
  .embed-item iframe,
  iframe.bandcamp-embed {
    width: 100% !important;
    height: 350px !important;
    max-width: 100%;
  }
  
  #about {
    inline-size: 90%;
    letter-spacing: 0.125em;
    font-size: 0.85em;
  }

  .embed-info p {
    font-size: 0.78em;
  }
}

@media screen and (max-width: 480px) {
  .embed-item iframe,
  iframe.bandcamp-embed {
    height: 300px !important;
  }

  .embed-info p {
    font-size: 0.74em;
  }
}
