*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Verdana", "Tahoma", "Geneva", system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.4;
  background: #000;
  color: #1f1b17; /* slightly brownish instead of pure gray */
}


.frame {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: #000;
}

/* MAIN SCENE */

.scene {
  position: relative;
  width: min(1100px, 100%);
  aspect-ratio: 4 / 2.4;
  background: #000 url("images/landscape.jpg") center/cover no-repeat;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.9);
}

/* grungy edges */
.scene::before {
  content: "";
  position: absolute;
  inset: -40px;
  pointer-events: none;
  background:
    radial-gradient(circle at top left, transparent 50%, #000 100%),
    radial-gradient(circle at top right, transparent 50%, #000 100%),
    radial-gradient(circle at bottom left, transparent 50%, #000 100%),
    radial-gradient(circle at bottom right, transparent 50%, #000 100%);
  mix-blend-mode: multiply;
  opacity: 0.95;
}

/* subtle grain */
.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: soft-light;
  background-image: url("https://i.imgur.com/8Tq3SUL.png");
  background-size: 200px 200px;
}

/* make sure cards sit above overlays */
.scene {
  position: relative;
  z-index: 0;
}

.scene::before,
.scene::after {
  z-index: 0;
}

.card {
  position: relative;
  z-index: 1;
}


.logo {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  letter-spacing: 0.4em;
  font-size: 28px;
  color: #f5f5f5;
  text-shadow: 0 2px 6px #000;
}

.logo {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  letter-spacing: 0.45em;
  font-size: 24px;
  color: #f3f1ea;
  text-shadow: 0 1px 0 #000, 0 0 3px rgba(0, 0, 0, 0.7);
}

/* nav text looks a bit crunchy + tiny */
.side-nav a {
  text-decoration: none;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: #f2efe6;
  text-align: right;
  padding: 3px 0;
  opacity: 0.75;
  transition: opacity 0.2s, transform 0.2s;
  text-shadow: 0 1px 0 #000;
}


/* SIDE NAV */

.side-nav {
  position: absolute;
  top: 50%;
  right: 26px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

.side-nav a {
  text-decoration: none;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: #f7f7f7;
  text-align: right;
  padding: 3px 0;
  opacity: 0.75;
  transition: opacity 0.2s, transform 0.2s;
}

.side-nav a:hover,
.side-nav a.active {
  opacity: 1;
  transform: translateX(-2px);
}

/* CARDS */

.card {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  max-width: 720px;
  margin: 20px auto;
  box-sizing: border-box;

  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
  transform: translateZ(0);
}

/* faint paper imperfections */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background-image:
    repeating-linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.03) 0px,
      rgba(0, 0, 0, 0.03) 1px,
      transparent 1px,
      transparent 3px
    );
  opacity: 0.5;
  mix-blend-mode: multiply;
}
.card {
  position: absolute;
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #f7f7f7 55%,
    #f2f2f2 100%
  );
  border-radius: 4px;
  padding: 16px 18px 18px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.55);
  font-size: 12px;
  max-width: 360px;
  z-index: 1;

  /* floaty feel */
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
  transform: translateZ(0);
}

/* no paper texture anymore – just clean */
.card::before {
  content: none;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 34px rgba(0, 0, 0, 0.65);
}

.card h2 {
  margin: 0 0 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: #555555;
}

.card p {
  margin: 0 0 5px;
  color: #222222;
  line-height: 1.4;
}


.card .close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.06);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.card .close:hover {
  opacity: 1;
  color: #333;
}
.helper-text,
.guestbook-meta,
.card-guestbook .field label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #777;
}

/* positions & little tilts */

.card-about {
  top: 80px;
  left: 70px;
  display: flex;
  gap: 12px;
  padding-right: 28px;
  transform: rotate(-1deg);
}

.card-guestbook {
  bottom: 60px;
  left: 90px;
  width: 380px;
  transform: rotate(-0.5deg);
}

.card-music {
  top: 90px;
  right: 160px;
  width: 340px;
  transform: rotate(1deg);
}

.card-about:hover,
.card-guestbook:hover,
.card-music:hover {
  transform: rotate(0deg) translateY(-4px);
}

/* ABOUT CARD */

.card-about .card-image {
  width: 80px;
  height: 100px;
  border-radius: 3px;
  overflow: hidden;
  background: url("images/locket.png") center/cover no-repeat;
}


.card-about .about-name {
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
}

.card-about .signature {
  margin-top: 8px;
  text-align: right;
}
/* main Music page card */
.card-music-page {
  top: 90px;
  left: 90px;
  right: 180px;
  max-width: none;        /* let it breathe */
  width: auto;
}

/* list of projects */
.music-projects {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}

.music-projects li {
  padding: 8px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.music-projects li:first-child {
  border-top: none;
}

.music-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  margin-bottom: 2px;
}

/* project link (band name) */
.music-header a {
  font-size: 13px;
  text-decoration: none;
  color: #111;
  font-weight: 600;
}

.music-header a:hover {
  text-decoration: underline;
}

/* genre tag */
.music-genre {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #777;
}

/* little description line */
.music-notes {
  font-size: 12px;
  margin: 2px 0 0;
  color: #222;
}
/* main About page card */
.card-about-page {
  top: 80px;
  left: 80px;
  right: 180px;
  max-width: none;
  width: auto;
}

/* layout inside the about card */
.about-layout {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 16px;
  margin-top: 8px;
}

/* photo block */
.about-photo {
  width: 120px;
  height: 150px;
  border-radius: 3px;
  background: url("images/digitalheart.png") center/cover no-repeat;
}

/* if you want to set a picture via CSS:
   .about-photo { background-image: url("images/you.jpg"); } */

/* main text */
.about-intro {
  font-weight: 600;
  margin-bottom: 6px;
}

.about-main p {
  margin-bottom: 8px;
}

/* "at a glance" list */
.about-glance {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 8px;
}

.about-glance li {
  font-size: 12px;
  margin-bottom: 4px;
}

.about-glance li span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #777;
  margin-right: 6px;
}

/* GUESTBOOK */

.helper-text {
  font-size: 11px;
  opacity: 0.75;
  margin-bottom: 8px;
}

.guestbook-form {
  margin-bottom: 10px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 6px;
}

.field label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.field input,
.field textarea {
  font: inherit;
  padding: 5px 6px;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: #fafaf7;
}

.field textarea {
  resize: vertical;
}

.btn {
  margin-top: 4px;
  padding: 5px 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: #111;
  color: #f7f7f3;
}

.btn:hover {
  background: #333;
}

.guestbook-entries {
  max-height: 130px;
  overflow-y: auto;
  margin-top: 6px;
  padding-right: 6px;
  border-top: 1px solid rgba(0, 0, 0, 0.15);
}

.guestbook-entry {
  margin-top: 6px;
  padding-top: 4px;
  border-top: 1px dashed rgba(0, 0, 0, 0.1);
}

.guestbook-message {
  margin-bottom: 2px;
}

.guestbook-meta {
  font-size: 10px;
  opacity: 0.6;
}

/* MUSIC PLAYER */

#audio-player {
  width: 100%;
  margin: 6px 0 4px;
}

.track-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  max-height: 140px;
  overflow-y: auto;
}

.track-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  font-size: 12px;
  cursor: pointer;
  border-radius: 3px;
}

.track-list li:hover {
  background: rgba(0, 0, 0, 0.04);
}

.track-list li.active {
  background: rgba(0, 0, 0, 0.08);
  font-weight: 600;
}

.track-meta {
  font-size: 11px;
  opacity: 0.7;
}

/* HIDDEN STATE (for nav switching & closes) */

.card.hidden {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

/* RESPONSIVE: mobile layout */

@media (max-width: 768px) {
  html,
  body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .frame {
    padding: 0;
    min-height: 100vh;
    display: block; /* stop centering the whole scene on mobile */
  }

  .scene {
    width: 100%;
    max-width: 100%;
    aspect-ratio: auto;      /* height based on content */
    min-height: 100vh;
    height: auto;
    box-shadow: none;
    padding: 64px 12px 24px; /* space for logo/nav */
    overflow: visible;       /* don't clip cards */
    position: relative;
  }

  /* turn OFF dark edges + grain overlay on mobile */
  .scene::before,
  .scene::after {
    content: none;
  }

  /* logo fixed in top-left */
  .logo {
    position: fixed;
    top: 12px;
    left: 12px;
    transform: none;
    font-size: 18px;
    letter-spacing: 0.3em;
    z-index: 1001;
  }

  /* nav fixed in top-right */
  .side-nav {
    position: fixed;
    top: 12px;
    right: 12px;
    transform: none;
    flex-direction: row;
    gap: 6px;
    z-index: 1002;
    background: rgba(0, 0, 0, 0.85);
    padding: 4px 6px;
    border-radius: 999px;
  }

  .side-nav a {
    font-size: 9px;
    letter-spacing: 0.15em;
    text-align: left;
    color: #f7f7f7;
    padding: 4px 6px;
    text-decoration: none;
    white-space: nowrap;
  }

  .side-nav a.active {
    text-decoration: underline;
  }

  /* cards just stack and scroll */
  .scene .card {
    position: static;
    width: 100%;
    max-width: 100%;
    margin: 8px 0;
    transform: none !important;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.45);
  }

  .scene .card.hidden {
    display: none;
  }

  /* home about image above text */
  .card-about {
    display: block;
  }

  .card-about .card-image {
    margin-bottom: 8px;
  }

  /* about page: vertical layout */
  .about-layout {
    display: block;
  }

  .about-photo {
    margin: 0 0 10px 0;
  }

  /* slightly smaller text for lists */
  .music-projects li,
  .about-glance li,
  .social-links li {
    font-size: 11px;
  }

  .music-header a,
  .social-row a {
    font-size: 12px;
  }
}
