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

/* ── DESIGN SYSTEM & VARIABLE FALLBACKS ── */
:root {
  --teal: #14b8a6;
  --muted: #555555;
  --dim: #777777;
  --border: #e0e0e0;
  --white: #ffffff;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Arial", sans-serif;
  overflow-x: hidden;
  background-color: #eae9e6; /* Matches the textured neutral background in your references */
}

/* ── REUSABLE CORE ELEMENT STYLES ── */
.s-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: black;
  margin-bottom: 14px;
}

/* ── NAVIGATION BAR ── */
.logo {
  width: 300px;
  height: auto;
  margin-left: 50px;
  cursor: pointer;
}

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

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

.links {
  margin-right: 80px;
}
.links ul {
  display: flex;
  list-style-type: none;
  gap: 30px;
}
.links a {
  color: black;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.links ul > li:hover {
  text-decoration: underline tan solid 2px;
  text-underline-offset: 7px;
}

.button-div {
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.account-btn {
  background-color: #939393;
  color: rgb(255, 255, 255);
  border: 2px solid white;
  font-size: 18px;
  padding: 10px;
  border-radius: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}
.account-btn i {
  margin-right: 10px;
}
.account-btn a {
  text-decoration: none;
  color: white;
  transition: all 0.3s ease;
}
.account-btn:hover {
  background-color: white;
  color: #777777;
  border: 2px solid #777777;
}
.account-btn:hover a {
  color: #777777;
}

.theme-btn {
  background-color: #939393;
  color: rgb(255, 255, 255);
  border: 2px solid white;
  font-size: 18px;
  padding: 10px;
  border-radius: 40px;
  margin-right: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}
.theme-btn:hover {
  background-color: white;
  color: #777777;
  border: 2px solid #777777;
}

/* ── ARCHIVE PAGE HERO HEADER (MINIMALIST REDESIGN) ── */
.artists-archive-hero {
  padding: 180px 24px 60px; 
  text-align: center;       
  display: flex;
  flex-direction: column;
  align-items: center;
}

.artists-archive-hero .s-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.35em;   
  text-transform: uppercase;
  color: #777777;           
  margin-bottom: 16px;
}

.artists-archive-hero h1 {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: clamp(3rem, 7vw, 5.5rem); 
  text-transform: uppercase;
  letter-spacing: -0.02em;  
  line-height: 0.95;
  color: #000000;
  max-width: 900px;
}

.hero-divider {
  width: 40px;
  height: 3px;
  background-color: #000000;
  margin: 28px 0;
}

.artists-archive-hero .hero-text {
  max-width: 540px;         
  font-family: "DM Sans", sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.8;
  color: #555555;
  letter-spacing: 0.02em;
}

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

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

.asymmetric-roster-grid {
  column-count: 4;
  column-gap: 8px; /* Horizontal layout gap between columns */
  width: 100%;
}

/* ── UPDATE YOUR EXISTNG ARTIST-CARD RULE ── */
.artist-card {
  background: #000000; /* Force background to match the black info bar so gaps can't show white */
  position: relative;
  overflow: hidden;
  display: block;
  width: 100%;
  margin-bottom: 8px;
  break-inside: avoid;
  
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
  cursor: pointer;

  /* Hardware acceleration trick to smoothly clip changing image bounds */
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.artist-card:hover {
  transform: scale(1.015);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
  z-index: 10;
}

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

.artist-profile-img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
  
  /* Forces the browser to treat image edges with high-precision anti-aliasing */
  image-rendering: -webkit-optimize-contrast;
  transform: translateZ(0);
}

.artist-card:hover .artist-profile-img {
  transform: scale(1.03);
}

/* Triggers a uniform 3:4 portrait aspect ratio ONLY when a photo is missing */
.artist-avatar-wrap:has(.image-placeholder) {
  aspect-ratio: 3 / 4; 
  background-color: #000000;
}

/* ── HIGH-END TYPOGRAPHIC INITIALS PLACEHOLDER ── */
.image-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111111; /* Off-black tone block inside wrapper box */
  border-bottom: 1px solid #222222;
}

.placeholder-initials {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: -0.04em;
  color: #eae9e6; /* Matches the textured cream background element */
  opacity: 0.85;
  user-select: none;
}

/* ── SOLID HIGH-CONTRAST TEXT BANNER ── */
.artist-info-bar {
  background: #000000; /* Solid black base beneath the artwork layout boundary */
  padding: 24px 20px;
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.artist-name {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff; /* Crisp white for flawless contrast reading */
  line-height: 1.2;
}

.artist-genre {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #888888;
}

/* ── TRANSITION ENGINE ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ── GLOBAL FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 52px 56px 28px;
  background-color: #eae9e6;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.footer-brand .logo {
  display: block;
  margin-bottom: 12px;
  margin-left: 0;
}
.footer-brand p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 240px;
}
.footer-socials {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}
.socials {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.socials:hover {
  border-color: rgba(0, 0, 0, 0.4);
  color: black;
}

.footer-cols {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}
.footer-col h5 {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: black;
  margin-bottom: 18px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: black;
}

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

/* ── RESPONSIVE TRACKING MEDIA QUERIES ── */
@media (max-width: 1100px) {
  .asymmetric-roster-grid {
    column-count: 3;
  }
}

@media (max-width: 860px) {
  .logo {
    margin-left: 20px;
    width: 220px;
  }
  .links {
    display: none;
  }
  .artists-archive-hero,
  .roster-showcase,
  footer {
    padding-left: 24px;
    padding-right: 24px;
  }
  .asymmetric-roster-grid {
    column-count: 2;
  }
}

@media (max-width: 480px) {
  .asymmetric-roster-grid {
    column-count: 1; /* Pure vertical scrolling timeline on small mobile feeds */
  }
}