:root {
  --bg: #ffffff;
  --bg-elevated: #ffffff;
  --text: #141412;
  --text-muted: #8f8f89;
  --accent: #4a4a45;
  --border: #ececE6;
  --max-width: 960px;
  --font-display: "Khula", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Khula", -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: rgba(20, 20, 18, 0.82);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

header.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  z-index: 10;
}

header.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 22px;
  flex-wrap: wrap;
  gap: 12px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.16em;
  text-decoration: none;
  color: var(--text);
  text-transform: uppercase;
}

nav.main-nav {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}

nav.main-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.15s ease;
}

nav.main-nav a:hover,
nav.main-nav a[aria-current="page"] {
  color: var(--text);
}

main {
  padding: 64px 0 100px;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.6vw, 2.4rem);
  line-height: 1.35;
  margin: 0 0 20px;
  font-weight: 400;
  letter-spacing: 0.01em;
}

h1.intro {
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  font-weight: 400;
  font-variant: small-caps;
  letter-spacing: 0.04em;
  line-height: 1.8;
  max-width: 54ch;
  margin: 0 0 20px;
  color: rgba(20, 20, 18, 0.75);
}

h2 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  margin: 0 0 28px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

section {
  margin-bottom: 72px;
}

.intro-section {
  margin-bottom: 32px;
}

p.lead {
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 58ch;
  margin: 0 0 44px;
}

.accent { color: var(--accent); }

.featured-release {
  display: flex;
  align-items: center;
  gap: 40px;
  text-decoration: none;
  color: inherit;
  margin-bottom: 56px;
  transition: opacity 0.2s ease;
}

.featured-release:hover { opacity: 0.72; }

.featured-release img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  flex-shrink: 0;
}

.featured-release .featured-meta {
  padding: 0;
}

.featured-release .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0 0 10px;
}

.featured-release h2 {
  margin: 0 0 6px;
  text-align: left;
  font-size: 1.3rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.01em;
  color: var(--text);
}

.featured-release .featured-meta .sub {
  color: var(--text-muted);
  margin: 0 0 20px;
  font-size: 0.9rem;
}

.featured-release .buy-link {
  font-size: 0.82rem;
  color: var(--text);
  margin: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  letter-spacing: 0.03em;
}

@media (max-width: 620px) {
  .featured-release {
    flex-direction: column;
    align-items: stretch;
  }
  .featured-release img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }
  .featured-release h2 { text-align: center; }
}

.releases-highlight {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 36px 28px;
  margin-bottom: 48px;
}

#music-page .releases-highlight {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 620px) {
  #music-page .releases-highlight {
    grid-template-columns: repeat(2, 1fr);
  }
}

.release-card {
  position: relative;
  background: none;
  border: none;
  border-radius: 0;
  overflow: visible;
  text-decoration: none;
  display: block;
  box-shadow: none;
}

.release-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.video-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(20, 20, 18, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.15s ease;
}

.video-badge svg { margin-left: 1px; }

.video-badge:hover { background: rgba(20, 20, 18, 0.8); }

.release-card:hover img { opacity: 0.8; }

.release-card .cover {
  position: relative;
  overflow: hidden;
}

.release-card img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
  transition: opacity 0.2s ease;
}

.release-card .role-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  font-size: 0.74rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(20, 20, 18, 0.4);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.release-card:hover .role-overlay {
  opacity: 1;
}

.release-card:hover .role-overlay ~ img,
.release-card .cover:hover img {
  opacity: 1;
}

.release-card .meta {
  padding: 14px 0 0;
}

.release-card .title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.92rem;
  margin: 0 0 3px;
  letter-spacing: 0.01em;
}

.release-card .sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
}

.event-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.event-list li {
  display: flex;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
  flex-wrap: wrap;
}

.event-date {
  min-width: 130px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

.event-details { flex: 1; min-width: 200px; }

.event-title { font-weight: 600; }

.event-venue {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.event-tag {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 3px 10px;
  white-space: nowrap;
}

.discography-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.discography-list li {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.discography-list .year {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.discography-list .track { font-weight: 600; }

.discography-list .credit {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.year-group h3 {
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  margin: 34px 0 4px;
  text-transform: uppercase;
  font-weight: 600;
}

.year-group:first-of-type h3 { margin-top: 0; }

.credit-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.credit-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.credit-list .title {
  font-weight: 500;
  font-size: 0.92rem;
  margin: 0;
}

.credit-list .role,
.credit-list .venue {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 2px 0 0;
}

#cv-page section { margin-bottom: 56px; }
#cv-page h2 { font-size: 0.78rem; margin-bottom: 18px; }

.contact-box {
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  max-width: 480px;
}

.contact-box a {
  display: block;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 300;
  margin: 10px 0;
}

.contact-box a:hover { color: var(--text-muted); }

.social-links {
  display: flex;
  gap: 24px;
  margin-top: 36px;
}

.social-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  padding: 0;
}

.social-links a:hover { color: var(--text); }

.production {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

.production:first-of-type { padding-top: 0; }

.production h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  margin: 0 0 4px;
  text-align: left;
}

.production .venue {
  color: var(--text-muted);
  margin: 0 0 2px;
}

.production .role {
  margin: 0 0 16px;
}

.production .award {
  color: var(--text);
  font-weight: 600;
  margin: 0 0 16px;
}

.production .credits {
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.75;
  margin: 0 0 20px;
}

.production .credits strong {
  color: var(--text);
  font-weight: 600;
}

.gallery {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 6px;
  margin: 0 -32px 24px;
  padding-left: 32px;
  padding-right: 32px;
}

.gallery img {
  height: 220px;
  width: auto;
  flex: 0 0 auto;
  border-radius: 0;
  scroll-snap-align: start;
  object-fit: cover;
}

.production .photo-credit {
  color: var(--text-muted);
  font-size: 0.76rem;
  margin: 10px 0 0;
}

@media (max-width: 560px) {
  .gallery img { height: 160px; }
}

#studio-page .lead {
  margin: 0 0 14px;
  max-width: 60ch;
}

#studio-page .gallery {
  margin-bottom: 0;
}

#studio-page .gallery img {
  height: 480px;
}

@media (max-width: 900px) {
  #studio-page .gallery img { height: 320px; }
}

@media (max-width: 560px) {
  #studio-page .gallery img { height: 220px; }
}

footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

@media (max-width: 560px) {
  .discography-list li { grid-template-columns: 44px 1fr; }
  .event-date { min-width: 100%; }
}

.spotify-embed {
  max-width: 560px;
  margin: 0 auto;
}

.spotify-embed iframe {
  display: block;
  width: 100%;
}
