:root {
  /* how much horizontal space to keep “safe” on the left for the lady */
  --safe-left: min(38vw, 420px);

  --header-bg: #b30022;
  --footer-bg: #b30022;
}

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

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #05050a;
  color: #f5f5f7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* Full-screen background image */
  background:
    #05050a
    url("media/bg.png") no-repeat left center;
  background-size: cover; /* scales to fill screen */
}


/* ---------- Layout helpers ---------- */

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
}

/* Content should not overlap the left side where the lady is */
.content-safe-zone {
  /* mobile first: normal centered layout */
}

/* Desktop / larger screens */
@media (min-width: 900px) {
  .content-safe-zone {
    /* Start content after the safe-left zone */
    margin-left: calc(var(--safe-left) + 2rem);
    margin-right: 2rem;

    /* Limit width so it fits comfortably on the right */
    max-width: min(1080px, calc(100vw - var(--safe-left) - 4rem));
  }
}

/* You can tweak these numbers later if you want more/less spacing */


/* ---------- Header & Navigation ---------- */

.site-header {
  background: var(--header-bg);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
}

/* Mobile nav toggle (hamburger) */

.nav-toggle {
  border: none;
  background: none;
  padding: 0.25rem;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.5rem;
  height: 2px;
  border-radius: 1px;
  background: #ffffff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Nav menu */

.main-nav {
  display: none; /* mobile-first: hidden until toggled */
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav li {
  margin: 0.5rem 0;
}

.nav-link {
  text-decoration: none;
  color: #d0d0e6;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link.active {
  color: #ffffff;
  position: relative;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, #ff6bcb, #ffd93d);
}

/* Show nav when menu open on mobile */

body.nav-open .main-nav {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  padding: 0.75rem 1.25rem 1rem;
  background: #05050f;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* ---------- Main & footer ---------- */

.site-main {
  flex: 1;
}

.site-footer {
  background: var(--footer-bg);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
  justify-content: space-between;
  font-size: 0.875rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.social-links a {
  text-decoration: none;
  color: #d0d0e6;
}

.social-links a:hover {
  color: #ffffff;
}

/* ---------- Home: hero & player ---------- */

.hero {
  padding: 2rem 0 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.hero-text h1 {
  font-size: 2rem;
  margin: 0 0 0.5rem;
}

.hero-text p {
  margin: 0.25rem 0;
  max-width: 30rem;
  color: #d0d0e6;
}

.hero-meta {
  margin-top: 1rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #9a9ad1;
}

.hero-player h2 {
  font-size: 1.125rem;
  margin: 0 0 0.75rem;
}

.audio-wrapper {
  border-radius: 0.75rem;
  background: radial-gradient(circle at top, rgba(255, 107, 203, 0.25), rgba(5, 5, 10, 0.9));
  padding: 1rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
}

audio,
.hero-player iframe {
  width: 100%;
  border-radius: 0.5rem;
  outline: none;
  border: none;
}

/* ---------- Generic page titles ---------- */

.page-heading {
  padding: 2rem 0 1rem;
}

.page-heading h1 {
  margin: 0 0 0.5rem;
  font-size: 1.6rem;
}

.page-heading p {
  margin: 0;
  max-width: 28rem;
  color: #d0d0e6;
  font-size: 0.95rem;
}

/* ---------- Gallery (Exhibition / Artbook) ---------- */

.gallery {
  margin: 1rem 0 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.gallery-item {
  flex: 1 1 calc(50% - 0.75rem);
  min-width: 9rem;
}

.gallery-link {
  display: block;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 0.75rem;
  overflow: hidden;
  position: relative;
}

.gallery-link img,
.gallery-link video {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 12rem;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.25s ease;
}

.gallery-link::after {
  content: attr(data-title);
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.5rem 0.6rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
  font-size: 0.8rem;
  color: #f5f5f7;
}

.gallery-link:hover img {
  transform: scale(1.05);
}

/* Artbook: show a little text under thumbnails */

.gallery-caption {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: #b4b4d8;
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}

.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 960px;
  width: 100%;
  margin: 0 1rem;
  background: #05050a;
  border-radius: 0.75rem;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.9);
}

.lightbox-media {
  max-height: 70vh;
  display: flex;
  justify-content: center;
}

.lightbox-media img,
.lightbox-media video,
.lightbox-media iframe {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 0.5rem;
}

.lightbox-caption {
  font-size: 0.9rem;
}

.lightbox-title {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.lightbox-description {
  margin: 0;
  color: #b4b4d8;
}

.lightbox-close {
  position: absolute;
  top: 0.25rem;
  right: 0.35rem;
  border: none;
  background: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
}

.lightbox-controls {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.lightbox-controls button {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.02);
  color: #ffffff;
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  cursor: pointer;
}

/* ---------- About page ---------- */

.about-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-bottom: 2.5rem;
}

.about-photo {
  width: 11rem;
  height: 11rem;
  border-radius: 999px;
  background: radial-gradient(circle, #34345b, #05050a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #d0d0e6;
}

.about-text p {
  margin: 0 0 0.9rem;
  line-height: 1.6;
  color: #d0d0e6;
}

/* ---------- Medium screens & up ---------- */

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .main-nav {
    display: block !important; /* override mobile body.nav-open rule */
    position: static;
    padding: 0;
    background: none;
    border: none;
  }

  .main-nav ul {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }

  .main-nav li {
    margin: 0;
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
  }

  .hero {
    flex-direction: row;
    align-items: center;
  }

  .hero-player {
    flex: 1;
  }

  .hero-text {
    flex: 1;
  }

  .gallery-item {
    flex: 1 1 calc(33.333% - 0.75rem);
  }

  .about-layout {
    flex-direction: row;
    align-items: center;
  }
}

/* ---------- Large screens ---------- */

@media (min-width: 1024px) {
  .gallery-item {
    flex: 1 1 calc(25% - 0.75rem);
  }

  .hero-text h1 {
    font-size: 2.4rem;
  }
}
