@import url("https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

:root {
  --primary: #111111;
  --bg-light: #eae9e6; /* Premium structured off-white palette */
  --bg-dark: #000000;
  --muted: #555555;
  --dim: #777777;
  --border: #d5d4d0;
  --border-light: rgba(255, 255, 255, 0.15);
  --tan: #d2b48c;
}

/* ── BASE RESET ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  overflow-x: hidden;
  background-color: var(--bg-light);
  color: var(--primary);
  -webkit-font-smoothing: antialiased;
}

/* ── REUSABLE CORE ELEMENT STYLES ── */
.s-label {
  font-family: "Montserrat", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}

/* ── NAVIGATION BAR ── */
.logo {
  width: 240px;
  height: auto;
  margin-left: 50px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.logo:hover {
  opacity: 0.85;
}

.navbar {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 90px;
  position: fixed;
  z-index: 1000;
  width: 100%;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s, border-color 0.4s ease;
}

body:not(:has(#hero)) .navbar { 
  background: rgba(234, 233, 230, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--primary);
}

.links {
  margin-right: 80px;
}
.links ul {
  display: flex;
  list-style-type: none;
  gap: 32px;
}
.links a {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}
.links a:hover {
  color: var(--dim);
}
.links ul > li:hover {
  text-decoration: underline solid var(--tan) 2px;
  text-underline-offset: 8px;
}

.button-div {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
}

.account-btn, .theme-btn {
  background-color: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  font-family: "Montserrat", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: 100px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.25s ease;
}
.account-btn i {
  margin-right: 8px;
  font-size: 0.85rem;
}
.account-btn a {
  text-decoration: none;
  color: currentColor;
}
.account-btn:hover, .theme-btn:hover {
  background-color: var(--primary);
  color: var(--bg-light);
}
.theme-btn {
  margin-right: 50px;
}

/* ── RELEASES ARCHIVE HERO HEADER ── */
.releases-archive-hero {
  padding: 160px 40px 48px; 
  text-align: center;       
  display: flex;
  flex-direction: column;
  align-items: center;
}

.releases-archive-hero .s-label {
  color: var(--dim);           
  margin-bottom: 16px;
}

.releases-archive-hero h1 {
  font-family: "DM Serif Display", serif;
  font-weight: 400;
  font-size: clamp(3.5rem, 8vw, 6rem); 
  line-height: 1.05;
  color: var(--primary);
  max-width: 900px;
}

.hero-divider {
  width: 40px;
  height: 1px;
  background-color: var(--primary);
  margin: 32px 0;
}

.releases-archive-hero .hero-text {
  max-width: 580px;         
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--muted);
}

/* ── INTERACTIVE FILTER CONTROLS ── */
.filter-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 48px;
  flex-wrap: wrap;
  width: 100%;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--primary);
  padding: 10px 24px;
  border-radius: 100px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-btn:hover {
  border-color: var(--primary);
  background-color: rgba(0, 0, 0, 0.02);
}

.filter-btn.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--bg-light);
}

/* ── MASONRY COLUMN LAYOUT ENGINE ── */
.catalog-showcase {
  padding: 10px 40px 120px;
}

#archive-releases-section {
  max-height: none !important;
  overflow: visible !important;
}

.asymmetric-releases-grid {
  column-count: 4;
  column-gap: 16px; 
  width: 100%;
}

/* ── STAGGERED MUSIC PACKAGING CARDS ── */
.release-archive-card {
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
  display: block;
  width: 100%;
  margin-bottom: 16px; 
  break-inside: avoid; 
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  cursor: pointer;
}

.release-archive-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.14);
}

.release-cover-wrap {
  width: 100%;
  height: auto; 
  position: relative;
  overflow: hidden;
  display: block;
}

.release-cover-img {
  width: 100%;
  height: auto;
  max-height: 540px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.release-archive-card:hover .release-cover-img {
  transform: scale(1.03);
}

.release-cover-wrap:has(.release-glyph-placeholder) {
  aspect-ratio: 1 / 1;
  background-color: #111111;
}

.release-glyph-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111111;
}

.fallback-glyph {
  font-size: 3.5rem;
  color: var(--bg-light);
  opacity: 0.15;
  user-select: none;
}

/* ── FLOATING BADGE ── */
.release-type-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 6px 12px;
  border-radius: 100px;
  text-transform: uppercase;
}

/* ── SUB-TEXT CONTENT BLOCK ── */
.release-meta-bar {
  background: var(--bg-dark);
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.release-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.release-title-text {
  font-family: "DM Serif Display", serif;
  font-size: 1.3rem;
  color: #ffffff;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.release-catalog-id {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--dim);
  margin-top: 4px;
  white-space: nowrap;
}

.release-artist-text {
  font-size: 0.85rem;
  font-weight: 500;
  color: #a1a1aa;
  letter-spacing: 0.02em;
}

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ── GLOBAL FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 80px 56px 40px;
  background-color: var(--bg-light);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}
.footer-brand .logo {
  display: block;
  margin-bottom: 16px;
  margin-left: 0;
}
.footer-brand p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 250px;
}
.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.socials {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.2s ease;
}
.socials:hover {
  border-color: var(--primary);
  color: var(--primary);
  background-color: rgba(0, 0, 0, 0.03);
}

.footer-cols {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}
.footer-col h5 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 20px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col a {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p {
  font-size: 0.75rem;
  color: var(--dim);
}
.footer-logo {
  width: 180px;
}

/* ── RESPONSIVE BREAKPOINTS ── */
@media (max-width: 1100px) {
  .asymmetric-releases-grid {
    column-count: 3;
  }
}

@media (max-width: 900px) {
  .logo {
    margin-left: 24px;
    width: 200px;
  }
  .links {
    display: none;
  }
  .releases-archive-hero,
  .catalog-showcase,
  footer {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 860px) {
  .asymmetric-releases-grid {
    column-count: 2;
    column-gap: 12px;
  }
  .release-archive-card {
    margin-bottom: 12px;
  }
}

@media (max-width: 480px) {
  .asymmetric-releases-grid {
    column-count: 1; 
  }
  .filter-controls {
    gap: 8px;
  }
  .filter-btn {
    padding: 8px 16px;
    font-size: 0.68rem;
  }
}