/* Royal Mafia Studio — static site styles */

:root {
  --bg: #0a0a0a;
  --bg-elev: #111111;
  --bg-card: #151515;
  --ivory: #f4f0e6;
  --white: #ffffff;
  --muted: #9ca3af;
  --muted-2: #7c7c7c;
  --gold: #d0a840;
  --gold-deep: #a88838;
  --gold-soft: #b59858;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  --radius: 16px;
  --font: "Outfit", -apple-system, BlinkMacSystemFont, sans-serif;
  --max: 1160px;
  --header-h: 72px;
  --focus: 0 0 0 2px var(--bg), 0 0 0 4px var(--gold);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ivory);
  line-height: 1.6;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

button,
input {
  font-family: inherit;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  background: var(--gold);
  color: #111;
  padding: 10px 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
  flex-shrink: 0;
}

.brand img {
  width: 36px;
  height: 40px;
  object-fit: contain;
}

.brand-name {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ivory);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle-bars {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.nav {
  display: none;
}

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

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav a {
  text-decoration: none;
  color: var(--ivory);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  background: var(--gold);
  color: #1a1408 !important;
  border-radius: 999px;
  font-weight: 600 !important;
  text-decoration: none;
  white-space: nowrap;
}

.nav-cta:hover {
  background: #e0b94c;
}

@media (max-width: 879px) {
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #0d0d0d;
    border-bottom: 1px solid var(--line);
    padding: 16px 20px 24px;
    flex-direction: column;
    gap: 16px;
  }

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

  .nav-list a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 4px;
  }
}

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

  .nav {
    display: flex;
    align-items: center;
    gap: 28px;
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 24px;
  }

  .nav-list a {
    position: relative;
    padding: 8px 0;
    color: var(--muted);
  }

  .nav-list a:hover,
  .nav-list a:focus-visible {
    color: var(--ivory);
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--gold);
  color: #1a1408;
}

.btn-gold:hover {
  background: #e0b94c;
}

.btn-ghost {
  background: transparent;
  color: var(--ivory);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--white);
}

/* Hero */

.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: #0a0a0a url("images/hero.jpg") center 40% / cover no-repeat;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(10, 10, 10, 0.55) 0%, rgba(10, 10, 10, 0.72) 45%, rgba(10, 10, 10, 0.94) 100%),
    radial-gradient(ellipse at center, rgba(10, 10, 10, 0.15) 0%, rgba(10, 10, 10, 0.7) 75%);
}

.hero-logo {
  width: min(320px, 72vw);
  margin: 0 auto 18px;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.7));
}

.hero-kicker {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.hero-tagline {
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 500;
  color: var(--ivory);
  max-width: 28ch;
  margin: 0 auto 8px;
  line-height: 1.4;
}

.hero-prod {
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 12px;
}

.hero-sub {
  color: var(--muted);
  font-size: 1rem;
  max-width: 36ch;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* Sections */

.section,
#top,
#list {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.section {
  padding: 80px 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 640px;
  margin-bottom: 36px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 10px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
}

/* Beats */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.filter {
  appearance: none;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  min-height: 40px;
}

.filter:hover {
  color: var(--ivory);
  border-color: rgba(208, 168, 64, 0.5);
}

.filter.is-active,
.filter[aria-pressed="true"] {
  background: var(--gold);
  border-color: var(--gold);
  color: #1a1408;
}

.filter-status {
  color: var(--muted-2);
  font-size: 0.85rem;
  margin: -12px 0 20px;
}

.beat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .beat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .beat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.beat {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.beat:hover,
.beat:focus-visible {
  border-color: rgba(208, 168, 64, 0.55);
  transform: translateY(-3px);
}

.beat-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.beat-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-mark {
  position: absolute;
  inset: auto 12px 12px auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: grid;
  place-items: center;
}

.play-mark svg {
  width: 12px;
  height: 12px;
  margin-left: 2px;
  fill: var(--ivory);
}

.beat-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.beat-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
}

.beat-genre {
  font-size: 0.82rem;
  color: var(--muted);
}

.beat-mood {
  margin-top: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.lease-note {
  margin-top: 36px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  color: var(--muted);
  font-size: 1rem;
}

.lease-note a {
  color: var(--ivory);
  font-weight: 600;
  text-underline-offset: 3px;
}

.lease-note a:hover {
  color: var(--gold);
}

/* Studio */

.studio-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 32px;
}

@media (min-width: 720px) {
  .studio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.studio-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
}

.studio-card h3 {
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 6px;
}

.studio-card p {
  color: var(--muted);
  font-size: 0.98rem;
}

.studio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Artists */

.artist-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .artist-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.artist-card {
  min-height: 180px;
  border: 1px dashed rgba(208, 168, 64, 0.35);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 30%, rgba(208, 168, 64, 0.07), transparent 55%),
    var(--bg-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 20px;
  gap: 8px;
}

.artist-card img {
  width: 56px;
  height: 61px;
  object-fit: contain;
  opacity: 0.7;
  margin-bottom: 8px;
}

.artist-card h3 {
  color: var(--ivory);
  font-size: 1.05rem;
  font-weight: 600;
}

.artist-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Listen */

.listen-grid {
  display: grid;
  gap: 10px;
}

@media (min-width: 640px) {
  .listen-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .listen-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.listen-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  text-decoration: none;
  color: var(--ivory);
  font-weight: 500;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.listen-link:hover,
.listen-link:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(208, 168, 64, 0.55);
  transform: translateY(-2px);
}

.listen-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(208, 168, 64, 0.12);
  color: var(--gold);
}

.listen-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.listen-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.listen-text strong {
  font-weight: 600;
  color: var(--white);
}

.listen-text span {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 400;
}

/* Signup */

.signup {
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.signup-box {
  max-width: 560px;
}

.signup form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.field {
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}

.field input[type="email"] {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: #0c0c0c;
  color: var(--ivory);
  font-size: 1rem;
}

.field input[type="email"]::placeholder {
  color: #666;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

form .btn {
  align-self: flex-end;
  border: 0;
}

/* Footer */

.site-footer {
  padding: 36px 0 48px;
  text-align: center;
  color: var(--muted-2);
  font-size: 0.9rem;
}

.site-footer .domain {
  color: var(--ivory);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.site-footer p + p {
  margin-top: 2px;
}
