@font-face {
  font-family: "Bebas Neue";
  src: url("/assets/bebas-neue.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --home-ink: #f7f1e4;
  --home-dark: #090b12;
  --home-panel: #111521;
  --home-muted: #9ca3b5;
  --home-blue: #3d6cff;
  --home-gold: #d7aa52;
  --home-line: rgba(255, 255, 255, .14);
  --home-display: "Bebas Neue", "Arial Narrow", sans-serif;
  --home-body: Inter, Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
button, input { font: inherit; }
a { color: inherit; }

.home-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 82% 8%, rgba(61, 108, 255, .16), transparent 31rem),
    radial-gradient(circle at 10% 36%, rgba(215, 170, 82, .08), transparent 30rem),
    var(--home-dark);
  color: var(--home-ink);
  font-family: var(--home-body);
}

.home-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .14;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  z-index: 20;
  mix-blend-mode: soft-light;
}

.home-header {
  width: min(1500px, 100%);
  height: 82px;
  margin: 0 auto;
  padding: 0 clamp(22px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--home-line);
  position: relative;
  z-index: 30;
}

.home-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--home-ink);
  text-decoration: none;
  font: 400 clamp(1.55rem, 2.2vw, 2.1rem)/1 var(--home-display);
  letter-spacing: .045em;
}

.home-brand span { color: var(--home-blue); font-family: Georgia, serif; }
.home-brand strong { font-weight: 400; }
.home-header nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 46px); }
.home-header nav a {
  color: var(--home-ink);
  text-decoration: none;
  text-transform: uppercase;
  font-size: .74rem;
  font-weight: 850;
  letter-spacing: .14em;
}
.home-header nav a:hover { color: var(--home-gold); }
.home-header .header-listen {
  padding: 12px 18px;
  border: 1px solid var(--home-gold);
  color: var(--home-gold);
}

.home-hero {
  width: min(1500px, 100%);
  min-height: 720px;
  margin: 0 auto;
  padding: clamp(54px, 6vw, 92px) clamp(22px, 4vw, 64px) clamp(70px, 8vw, 116px);
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(380px, .72fr);
  gap: clamp(45px, 8vw, 130px);
  align-items: center;
  position: relative;
}

.hero-glow {
  position: absolute;
  width: min(54vw, 760px);
  aspect-ratio: 1;
  right: -12%;
  top: -12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 108, 255, .18), transparent 66%);
  filter: blur(14px);
  pointer-events: none;
}

.home-hero-copy { position: relative; z-index: 2; }
.home-kicker {
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--home-muted);
  text-transform: uppercase;
  font: 800 .75rem/1.2 "Courier New", monospace;
  letter-spacing: .16em;
}
.home-kicker span { color: var(--home-gold); }
.home-kicker i { display: inline-block; width: 28px; height: 1px; background: var(--home-line); }

.home-hero h1 {
  max-width: 850px;
  margin: 0;
  font: 400 clamp(5.4rem, 9.2vw, 10rem)/.82 var(--home-display);
  letter-spacing: -.015em;
  text-transform: uppercase;
  text-wrap: balance;
}

.featured-artist {
  margin: 18px 0 -10px;
  color: var(--home-gold);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.featured-tagline {
  max-width: 650px;
  margin: 26px 0 0;
  padding-top: 17px;
  border-top: 1px solid var(--home-line);
  color: #d7dbe6;
  font: 500 clamp(1.05rem, 1.55vw, 1.35rem)/1.55 Georgia, serif;
}

.home-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 13px; }
.home-button {
  min-height: 54px;
  padding: 0 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--home-line);
  color: var(--home-ink);
  text-decoration: none;
  text-transform: uppercase;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .1em;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.home-button:hover { transform: translateY(-2px); border-color: var(--home-ink); }
.home-button-primary { background: var(--home-blue); border-color: var(--home-blue); color: white; }
.home-button-primary:hover { background: #2e5af0; border-color: #2e5af0; }
.home-play {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid white;
}

.featured-meta {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  color: var(--home-muted);
  text-transform: uppercase;
  font: 700 .65rem/1.3 "Courier New", monospace;
  letter-spacing: .1em;
}
.featured-meta span::before { content: "●"; margin-right: 8px; color: var(--home-gold); }

.featured-cover-link {
  width: min(100%, 570px);
  justify-self: end;
  display: block;
  position: relative;
  z-index: 2;
  color: var(--home-ink);
  text-decoration: none;
}
.featured-cover-frame {
  display: block;
  padding: clamp(8px, 1vw, 14px);
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.055);
  box-shadow: 0 34px 90px rgba(0,0,0,.48);
  transform: rotate(.45deg);
  transition: transform .28s ease;
}
.featured-cover-link:hover .featured-cover-frame { transform: rotate(0) scale(1.012); }
.featured-cover-frame img { width: 100%; aspect-ratio: 1; display: block; object-fit: cover; }
.featured-label {
  position: absolute;
  z-index: 4;
  top: -14px;
  right: -12px;
  padding: 12px 17px;
  background: var(--home-gold);
  color: #111;
  text-transform: uppercase;
  font: 900 .67rem/1 "Courier New", monospace;
  letter-spacing: .12em;
  transform: rotate(3deg);
}
.cover-caption {
  padding: 17px 4px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: baseline;
}
.cover-caption strong { font: 400 1.55rem/1 var(--home-display); text-transform: uppercase; letter-spacing: .03em; }
.cover-caption small { color: var(--home-muted); text-transform: uppercase; font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-align: right; }

.library-section {
  padding: clamp(72px, 8vw, 120px) clamp(22px, 5vw, 76px);
  border-top: 1px solid var(--home-line);
  background: #f1eadb;
  color: #11131a;
}
.library-heading {
  width: min(1360px, 100%);
  margin: 0 auto 36px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
}
.library-heading .home-kicker { margin-bottom: 11px; color: #696a70; }
.library-heading .home-kicker span { color: #224fc4; }
.library-heading h2 {
  margin: 0;
  font: 400 clamp(4.2rem, 7vw, 7rem)/.85 var(--home-display);
  text-transform: uppercase;
}
.library-heading > p { max-width: 430px; margin: 0; color: #62636a; line-height: 1.65; }

.genre-filters {
  width: min(1360px, 100%);
  margin: 0 auto 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.genre-filters button {
  border: 1px solid #b4ae9f;
  background: transparent;
  padding: 10px 15px;
  color: #34343a;
  cursor: pointer;
  text-transform: uppercase;
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .09em;
}
.genre-filters button:hover, .genre-filters button.is-active {
  background: #11131a;
  border-color: #11131a;
  color: white;
}

.home-song-grid {
  width: min(1360px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 38px);
}
.home-song-card { min-width: 0; }
.home-song-card[hidden] { display: none; }
.card-cover {
  display: block;
  position: relative;
  overflow: hidden;
  background: #d8d0c1;
  box-shadow: 0 18px 40px rgba(37, 30, 22, .14);
}
.card-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform .45s ease, filter .45s ease;
}
.card-cover:hover img { transform: scale(1.025); filter: brightness(.8); }
.card-play {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--home-blue);
  box-shadow: 0 9px 24px rgba(0,0,0,.28);
  transform: translateY(8px);
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
}
.card-cover:hover .card-play, .card-cover:focus-visible .card-play { opacity: 1; transform: translateY(0); }
.card-play i {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid white;
}
.card-copy { padding: 20px 2px 8px; }
.card-copy > p { margin: 0 0 8px; color: #3158b9; text-transform: uppercase; font: 800 .69rem/1.2 "Courier New", monospace; letter-spacing: .11em; }
.card-copy h3 { margin: 0; font: 400 clamp(2.1rem, 3.3vw, 3.45rem)/.92 var(--home-display); text-transform: uppercase; }
.card-copy h3 a { text-decoration: none; }
.card-copy h3 a:hover { color: #244db4; }
.card-copy > span { min-height: 48px; margin-top: 11px; display: block; color: #68676d; line-height: 1.5; }
.card-listen {
  margin-top: 17px;
  display: inline-flex;
  gap: 10px;
  color: #11131a;
  text-decoration: none;
  text-transform: uppercase;
  font-size: .69rem;
  font-weight: 900;
  letter-spacing: .08em;
}
.card-listen b { color: #3158b9; transition: transform .2s ease; }
.card-listen:hover b { transform: translateX(4px); }
.filter-empty { text-align: center; color: #62636a; padding: 50px 20px; }

.empty-library {
  min-height: 68vh;
  padding: 10vw 6vw;
  display: grid;
  place-content: center;
  text-align: center;
}
.empty-library .home-kicker { justify-content: center; }
.empty-library h1 { margin: 0; font: 400 clamp(5rem, 10vw, 10rem)/.85 var(--home-display); text-transform: uppercase; }
.empty-library > p:last-child { color: var(--home-muted); }

.home-footer {
  min-height: 190px;
  padding: 42px clamp(22px, 5vw, 76px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 30px;
  align-items: center;
  border-top: 1px solid var(--home-line);
}
.home-footer p { text-align: center; color: #d3d7e2; font-family: Georgia, serif; }
.home-footer > span { text-align: right; color: var(--home-muted); font-size: .72rem; }

@media (max-width: 1040px) {
  .home-hero { grid-template-columns: 1fr 1fr; min-height: 620px; gap: 45px; }
  .home-hero h1 { font-size: clamp(4.8rem, 9vw, 7.2rem); }
  .home-song-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .home-header { height: 70px; }
  .home-header nav > a:not(.header-listen) { display: none; }
  .home-header .header-listen { padding: 10px 12px; }
  .home-hero { min-height: auto; grid-template-columns: 1fr; padding-top: 45px; gap: 50px; }
  .home-hero h1 { font-size: clamp(4.4rem, 20vw, 7rem); }
  .featured-cover-link { width: min(100%, 540px); justify-self: center; }
  .featured-meta { display: none; }
  .library-heading { align-items: flex-start; flex-direction: column; }
  .library-heading > p { max-width: 100%; }
  .home-song-grid { grid-template-columns: 1fr; }
  .home-song-card { max-width: 580px; }
  .card-play { opacity: 1; transform: none; }
  .home-footer { grid-template-columns: 1fr; text-align: center; }
  .home-footer > span { text-align: center; }
}

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