/* DJ Kelly Kay — site styles, built from the "Night Shift" design canvas */

:root {
  --bg: #131110;
  --ink: #F2ECE2;
  --muted: #A89E8E;
  --muted-2: #6E6558;
  --accent: #FF5A1E;
  --accent-hover: #FF7A45;
  --accent-ink: #16130F;
  --line: #2A2620;
  --line-soft: #23201B;
  --btn-border: #4A443A;
  --display: 'Unbounded', 'Arial Black', sans-serif;
  --body: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: 1440px; margin: 0 auto; }

/* ---------- nav ---------- */

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 64px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.wordmark span {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.14em;
}
.wordmark:hover { color: var(--ink); }

.nav-links { display: flex; gap: 32px; align-items: center; font-size: 15px; font-weight: 500; }
.nav-links a { color: var(--ink); padding: 10px 0; }
.nav-links a:hover { color: var(--accent-hover); }
.nav-links a.accent { color: var(--accent); font-weight: 600; }

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
  padding: 88px 64px 96px 64px;
  align-items: center;
}

.hero-copy { display: flex; flex-direction: column; gap: 28px; }

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(42px, 6vw, 84px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.hero h1 em { font-style: normal; color: var(--accent); }

.hero-sub { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 470px; margin: 0; }

.hero-ctas { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 3px;
  border: 0;
  font-family: var(--body);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--btn-border);
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
}
.btn-ghost:hover { border-color: var(--muted); color: var(--ink); }
.btn-icon { min-width: 48px; padding: 12px; }
.btn-text {
  background: transparent;
  border: 0;
  color: var(--ink);
  font-weight: 500;
  padding: 12px 4px;
}
.btn-text:hover { color: var(--accent-hover); }

/* ---------- cassette covers ---------- */

.cover {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  overflow: hidden;
}
.cover-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.cover-window {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 55%;
}
.cover-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.cover-num { font-family: var(--display); font-weight: 900; font-size: clamp(44px, 5vw, 72px); line-height: 1; }
.cover-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: right;
}

/* Image cover art (real tapes) — same footprint as the drawn cassette covers */
.cover.cover-img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  padding: 0;
}

/* ---------- featured tape ---------- */

.featured { display: flex; flex-direction: column; gap: 20px; justify-self: end; width: min(440px, 100%); }
.featured-meta { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.featured-meta .stack { display: flex; flex-direction: column; gap: 6px; }

.eyebrow { font-size: 13px; letter-spacing: 0.18em; color: var(--accent); font-weight: 700; }
.tape-name { font-family: var(--display); font-weight: 700; font-size: 26px; }
.tape-name a { color: var(--ink); }
.tape-name a:hover { color: var(--accent-hover); }
.tape-facts { font-size: 14px; color: var(--muted); }

/* ---------- crate ---------- */

.crate {
  padding: 72px 64px 88px 64px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.crate-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.crate-head h2 { margin: 0; font-family: var(--display); font-weight: 900; font-size: clamp(28px, 3.5vw, 44px); }
.crate-head p { margin: 0; font-size: 15px; color: var(--muted); }

.crate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
}

.tape-card { display: flex; flex-direction: column; gap: 16px; }
.tape-card .cover-link { display: block; color: inherit; }
.tape-card .info { display: flex; flex-direction: column; gap: 4px; }
.tape-card .info .eyebrow { font-size: 12px; }
.tape-card .info .tape-name { font-size: 20px; }
.tape-card .actions { display: flex; gap: 12px; }
.tape-card .actions .btn-listen { flex-grow: 1; }

/* ---------- about ---------- */

.about {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
  padding: 72px 64px;
  border-top: 1px solid var(--line);
}
.about h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.15;
}
.about-copy { display: flex; flex-direction: column; gap: 16px; font-size: 17px; line-height: 1.65; color: var(--muted); }
.about-copy p { margin: 0; }

/* ---------- footer ---------- */

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 28px 64px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
  flex-wrap: wrap;
}
.footer .wordmark span { font-size: 12px; }
.footer-social { display: flex; gap: 6px; align-items: center; }
.footer-social a { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--muted); }
.footer-social a:hover { color: var(--accent); }
.footer-copy { color: var(--muted); }
.footer-copy a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.footer-copy a:hover { color: var(--accent-hover); }

/* ---------- mixtape page ---------- */

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 64px;
  border-bottom: 1px solid var(--line);
}
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: 15px; font-weight: 500; padding: 10px 0; }
.back-link:hover { color: var(--accent-hover); }

.tape-page {
  display: grid;
  grid-template-columns: 480px minmax(0, 1fr);
  gap: 72px;
  padding: 56px 64px 88px 64px;
  align-items: start;
}
.tape-page-left { display: flex; flex-direction: column; gap: 24px; }
.tape-page-left .buttons { display: flex; flex-direction: column; gap: 12px; }

.tape-page-right { display: flex; flex-direction: column; gap: 28px; }
.tape-page-right .headings { display: flex; flex-direction: column; gap: 10px; }
.tape-page-right h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.05;
  text-transform: uppercase;
}
.tape-blurb { font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 560px; margin: 0; }

.tracklist { display: flex; flex-direction: column; }
.tracklist-head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--muted);
  padding: 0 0 12px 0;
  border-bottom: 1px solid #3A342C;
}
.track {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 15px;
}
.track .num { width: 26px; color: var(--muted-2); flex-shrink: 0; }
.track .names { flex-grow: 1; min-width: 0; }
.track .artist { font-weight: 600; }
.track .song { color: var(--muted); }
.track .time { color: var(--muted); flex-shrink: 0; }
.track-placeholder { padding: 16px 0; color: var(--muted-2); font-size: 15px; }

/* ---------- player bar ---------- */

.player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #1B1815;
  border-top: 1px solid #3A342C;
  padding: 12px 24px;
  display: none;
  z-index: 50;
}
.player.active { display: block; }
.player-inner { max-width: 1440px; margin: 0 auto; display: flex; align-items: center; gap: 16px; }
.player-cover {
  width: 48px;
  height: 48px;
  border-radius: 3px;
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  padding: 5px;
  font-family: var(--display);
  font-weight: 900;
  font-size: 15px;
  line-height: 1;
}
.player-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; width: 200px; flex-shrink: 0; }
.player-title { font-family: var(--display); font-weight: 700; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-toggle {
  width: 48px;
  height: 48px;
  border-radius: 3px;
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.player-toggle:hover { background: var(--accent-hover); }
.player-time { font-size: 12px; color: var(--muted); flex-shrink: 0; min-width: 40px; text-align: center; font-variant-numeric: tabular-nums; }
.player-seek { flex-grow: 1; accent-color: var(--accent); height: 4px; cursor: pointer; }

body.has-player { padding-bottom: 84px; }

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 3px;
  z-index: 60;
  max-width: min(90vw, 480px);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.toast.show { opacity: 1; }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .nav, .topbar { padding: 16px 24px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 44px; padding: 56px 24px 64px 24px; }
  .featured { justify-self: start; }
  .crate { padding: 56px 24px 64px 24px; }
  .crate-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .about { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 56px 24px; }
  .footer { padding: 24px 24px; }
  .tape-page { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 36px 24px 64px 24px; }
  .tape-page-left { max-width: 480px; }
}

@media (max-width: 640px) {
  .nav-links { gap: 18px; font-size: 14px; }
  .nav-links a { white-space: nowrap; }
  .nav-links a.hide-mobile { display: none; }
  .wordmark span { font-size: 12px; white-space: nowrap; letter-spacing: 0.1em; }
  .nav .wordmark svg { width: 22px; height: 22px; }
  .hero-sub { font-size: 16px; }
  .hero-ctas .btn-accent { width: 100%; }
  .crate-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .tape-card {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .tape-card .cover { padding: 8px; border-radius: 3px; }
  .tape-card .cover.cover-img { padding: 0; }
  .tape-card .cover-top, .tape-card .cover-window, .tape-card .cover-title { display: none; }
  .tape-card .cover-num { font-size: 22px; }
  .tape-card .cover-bottom { align-items: flex-end; height: 100%; }
  .tape-card .info .eyebrow { display: none; }
  .tape-card .info .tape-name { font-size: 15px; }
  .tape-card .info .tape-facts { font-size: 13px; }
  .tape-card .actions { gap: 6px; }
  .tape-card .actions .btn { min-width: 44px; min-height: 44px; padding: 10px; font-size: 0; gap: 0; }
  .tape-card .actions .btn svg { width: 15px; height: 15px; }
  .player-info { width: auto; flex-grow: 1; }
  .player-seek, .player-time.duration { display: none; }
}
