/* KYNGSUN — Artist Theme
   Warm light emerging from darkness.
   Pulled from Carl's photography and studio aesthetic. */

:root {
  --bg: #080808;
  --bg-card: #111;
  --bg-hover: #1a1a1a;
  --text: #ede8df;
  --text-muted: #7a756d;
  --accent: #c9943a;
  --accent-hover: #daa84e;
  --accent-dim: rgba(201, 148, 58, 0.15);
  --warm: #2a1f10;
  --radius: 6px;
  --font-display: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* NAV */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.3s;
}

.nav.scrolled {
  background: rgba(8, 8, 8, 0.95);
  backdrop-filter: blur(10px);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text);
}

.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(237, 232, 223, 0.6);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* MAIN */
.main { flex: 1; }

/* HERO — Full viewport with background image */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8, 8, 8, 0.3) 0%,
    rgba(8, 8, 8, 0.1) 40%,
    rgba(8, 8, 8, 0.6) 80%,
    rgba(8, 8, 8, 1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1;
  margin-bottom: 1rem;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.5);
}

.hero-tagline {
  font-size: 1.3rem;
  color: var(--accent);
  margin-bottom: 2rem;
  font-weight: 300;
  letter-spacing: 0.03em;
}

.hero-cta {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid rgba(237, 232, 223, 0.4);
  padding: 0.9rem 2.5rem;
  border-radius: var(--radius);
  transition: all 0.3s;
}

.hero-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

/* SECTION TITLES */
.section-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 1rem;
}

/* LISTEN SECTION */
.listen-section {
  padding: 5rem 3rem;
  background: linear-gradient(135deg, var(--warm) 0%, var(--bg) 100%);
}

.listen-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 500px 1fr;
  gap: 3rem;
  align-items: center;
}

.listen-artwork {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.listen-artwork img {
  width: 100%;
  display: block;
}

.listen-label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.listen-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.1;
  margin-bottom: 0.3rem;
}

.listen-artist {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.listen-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1.5rem;
  line-height: 1.7;
}

/* FULL AUDIO PLAYER */
.audio-player-full {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.player-play {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.15s;
}

.player-play:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

.player-track { flex: 1; }

.player-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  font-variant-numeric: tabular-nums;
}

.player-progress {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  cursor: pointer;
  overflow: hidden;
}

.player-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.1s linear;
}

/* STORY SECTION */
.story-section {
  padding: 5rem 3rem;
  text-align: center;
}

.story-inner {
  max-width: 700px;
  margin: 0 auto;
}

.story-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 1.2rem;
}

/* STUDIO SECTION */
.studio-section {
  padding: 3rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.studio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  align-items: start;
}

.studio-img {
  overflow: hidden;
  border-radius: var(--radius);
}

.studio-img img {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0.85);
  transition: filter 0.3s, transform 0.5s;
}

.studio-img:hover img {
  filter: brightness(1);
  transform: scale(1.02);
}

.studio-caption {
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 1.5rem;
}

/* GALLERY SECTION */
.gallery-section {
  padding: 5rem 3rem;
}

.gallery-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

.gallery-img {
  overflow: hidden;
  border-radius: var(--radius);
}

.gallery-img img {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0.9);
  transition: filter 0.4s, transform 0.5s;
}

.gallery-img:hover img {
  filter: brightness(1);
  transform: scale(1.02);
}

/* RELEASES GRID */
.releases-section {
  padding: 5rem 3rem;
}

.releases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.release-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s, background 0.3s;
  color: var(--text);
}

.release-card:hover {
  transform: translateY(-4px);
  background: var(--bg-hover);
}

.release-artwork {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

.release-artwork img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge-limited {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  padding: 4px 10px;
  border-radius: 2px;
}

.release-info { padding: 1.2rem; }

.release-info h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}

.release-price {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* COMING SOON */
.coming-soon-section {
  padding: 6rem 2rem;
  text-align: center;
}

.coming-soon-text {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.coming-soon-text.subtle {
  font-style: italic;
  color: var(--accent);
  font-size: 1rem;
}

/* RELEASE PAGE */
.release-page { padding: 2rem 3rem 4rem; margin-top: 80px; }

.release-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

.release-artwork-large {
  border-radius: var(--radius);
  overflow: hidden;
  position: sticky;
  top: 100px;
}

.release-artwork-large img { width: 100%; display: block; }

.release-artist {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.release-title {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.release-desc {
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.8;
}

/* OLD AUDIO PLAYER (release page) */
.audio-player {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--bg-card);
  border-radius: var(--radius);
}

.play-btn {
  background: var(--accent);
  color: var(--bg);
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.play-btn:hover { background: var(--accent-hover); }

.progress-bar {
  flex: 1;
  height: 4px;
  background: #333;
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.1s linear;
}

/* PURCHASE BOX */
.purchase-box {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2rem;
}

.purchase-price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.purchase-includes {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.purchase-limited {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.size-select { margin-bottom: 1.5rem; }
.size-select label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.size-options { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.size-btn {
  background: transparent;
  border: 1px solid #333;
  color: var(--text);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.2s;
}

.size-btn:hover { border-color: var(--accent); }
.size-btn.active {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.buy-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--accent);
  color: var(--bg);
  padding: 1rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
}

.buy-btn:hover { background: var(--accent-hover); color: var(--bg); }

/* CHECKOUT */
.checkout-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  margin-top: 80px;
}

.checkout-title {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
}

.checkout-item {
  display: flex;
  gap: 1rem;
  background: var(--bg-card);
  padding: 1rem;
  border-radius: var(--radius);
}

.checkout-thumb {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius);
}

.checkout-item h3 { font-family: var(--font-display); font-weight: 500; }
.checkout-item p { font-size: 0.85rem; color: var(--text-muted); }

.checkout-price {
  color: var(--accent) !important;
  font-weight: 500;
  margin-top: 0.3rem;
}

.checkout-form { display: flex; flex-direction: column; gap: 1.5rem; }

.form-section h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
}

.checkout-form input[type="text"],
.checkout-form input[type="email"] {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid #222;
  color: var(--text);
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  outline: none;
  transition: border-color 0.2s;
}

.checkout-form input:focus { border-color: var(--accent); }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.checkout-submit { margin-top: 0.5rem; }

.checkout-error {
  color: #c44;
  font-size: 0.9rem;
  text-align: center;
  margin-top: 0.5rem;
}

/* SUCCESS PAGE */
.success-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  text-align: center;
  padding: 2rem;
  margin-top: 80px;
}

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-size: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.success-content h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.success-content p { color: var(--text-muted); margin-bottom: 1rem; }

.download-box {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius);
  margin: 2rem 0;
}

.download-box h3 { font-family: var(--font-display); margin-bottom: 1rem; }

.download-btn {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  padding: 0.8rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.download-btn:hover { background: var(--accent-hover); color: var(--bg); }
.download-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.8rem; }

.back-link {
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

/* ABOUT */
.about-page {
  max-width: 700px;
  margin: 0 auto;
  padding: 4rem 2rem;
  margin-top: 80px;
}

.about-page h1 {
  font-family: var(--font-display);
  font-size: 3rem;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}

.about-role {
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.about-bio p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.8;
}

/* ERROR PAGES */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 2rem;
  margin-top: 80px;
}

.error-page h1 {
  font-family: var(--font-display);
  font-size: 4rem;
  margin-bottom: 0.5rem;
}

.error-page p { color: var(--text-muted); margin-bottom: 1rem; }

/* FOOTER */
.footer {
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid #151515;
  margin-top: 4rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.15em;
  margin-bottom: 0.3rem;
}

.footer-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-links { margin-bottom: 1rem; }
.footer-links a { color: var(--text-muted); margin: 0 0.5rem; font-size: 0.85rem; }
.footer-copy { font-size: 0.75rem; color: #333; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav { padding: 1rem 1.5rem; }

  .listen-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .listen-artwork {
    max-width: 300px;
    margin: 0 auto;
  }

  .studio-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .release-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .release-artwork-large { position: static; }

  .checkout-grid { grid-template-columns: 1fr; }

  .releases-section { padding: 3rem 1.5rem; }
  .hero-title { letter-spacing: 0.1em; }
}
