/* ─── Jamie's Brother — Desert Rock v2 ─── */

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

:root {
  --bg:      #0e0a06;
  --warm:    #1a1208;
  --amber:   #c8832a;
  --cream:   #f0e6d0;
  --rust:    #8b3a1a;
  --dim:     #6b5a42;
  --faint:   #251c10;
  --display: 'Barlow Condensed', sans-serif;
  --serif:   'Lora', serif;
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--dim); font-family: var(--serif); font-size: 16px; }
a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; opacity: 0.85; }
img { display: block; }

/* Grain overlay */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 1000;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.4;
}

/* ── Header ── */
header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 28px 48px;
  border-bottom: 1px solid var(--faint);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 10, 6, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.header-left {
  font-family: var(--display);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: #3a2e1e;
}
.site-title-center { text-align: center; }
.site-title-center .brand {
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cream);
  display: block;
}
.site-title-center .brand:hover { opacity: 0.85; text-decoration: none; }
.site-title-center .tagline {
  font-family: var(--serif);
  font-size: 0.65rem;
  font-style: italic;
  color: var(--amber);
  letter-spacing: 0.08em;
  display: block;
}
.header-nav {
  display: flex;
  justify-content: flex-end;
  gap: 28px;
}
.header-nav a {
  font-family: var(--display);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #3a2e1e;
  transition: color 0.2s;
}
.header-nav a:hover,
.header-nav a.active { color: var(--amber); text-decoration: none; opacity: 1; }

/* ── Ornament divider ── */
.ornament {
  text-align: center;
  padding: 32px;
  color: var(--faint);
  font-size: 1.2rem;
  letter-spacing: 0.5em;
}

/* ── Awards ribbon ── */
.ribbon {
  background: var(--amber);
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.ribbon-text {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #0e0a06;
}
.ribbon-star { color: #0e0a06; font-size: 1.2rem; }

/* ── Inner page intro ── */
.page-intro {
  padding: 80px 48px 64px;
  border-bottom: 1px solid var(--faint);
}
.page-intro-label {
  font-family: var(--display);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: var(--amber);
  margin-bottom: 16px;
}
.page-intro h1 {
  font-family: var(--display);
  font-size: clamp(4rem, 10vw, 9rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 0.9;
  color: var(--cream);
}
.page-intro p {
  margin-top: 20px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: #4a3820;
  max-width: 500px;
}

/* ── Content wrapper for inner pages ── */
.content-body {
  max-width: 860px;
  padding: 56px 48px;
}

/* ── Quote blocks ── */
.quote-block {
  border-left: 2px solid var(--amber);
  padding: 20px 28px;
  margin-bottom: 28px;
  background: #110d07;
}
.quote-block blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--cream);
  margin-bottom: 10px;
}
.quote-block cite {
  font-family: var(--display);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--amber);
  font-style: normal;
}

/* ── Press links ── */
.press-links {
  margin: 32px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.press-links a {
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.press-links a:hover { text-decoration: underline; }

/* ── Body text ── */
.content-body > p {
  font-size: 0.95rem;
  line-height: 1.85;
  color: #7a6545;
  margin-bottom: 1.2em;
}
.content-body h3 {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cream);
  margin: 40px 0 16px;
}

/* ── Track listings ── */
.content-body ul {
  list-style: none;
  margin-bottom: 1.6em;
}
.content-body ul li {
  font-size: 0.85rem;
  padding: 6px 0;
  border-bottom: 1px solid #160f07;
  color: #5a4830;
  letter-spacing: 0.02em;
}
.content-body ul li.jb-track {
  color: var(--amber);
  font-weight: 500;
}

/* ── Gallery intro ── */
.gallery-intro {
  padding: 28px 48px 0;
  font-family: var(--display);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: #3a2e1e;
}

/* ── Gallery grid ── */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 3px;
  padding: 20px 48px 48px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
  background: var(--warm);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6) saturate(0.5) sepia(0.3);
  transition: filter 0.3s, transform 0.4s;
}
.gallery-item:hover img {
  filter: brightness(0.8) saturate(0.7) sepia(0.1);
  transform: scale(1.05);
}
.gallery-item .caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(14,10,6,0.95), transparent);
  color: var(--cream);
  font-size: 0.6rem;
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 16px 8px 6px;
  opacity: 0;
  transition: opacity 0.3s;
  line-height: 1.3;
}
.gallery-item:hover .caption { opacity: 1; }

/* ── Lightbox ── */
.lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(10,7,3,0.96);
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-inner {
  position: relative;
  max-width: min(90vw, 1000px);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-inner img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border: 1px solid var(--faint);
}
.lightbox-caption {
  margin-top: 14px;
  font-family: var(--display);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--amber);
  text-align: center;
}
.lightbox-close {
  position: fixed; top: 24px; right: 32px;
  background: none; border: none; cursor: pointer;
  font-size: 2rem; color: var(--dim);
  transition: color 0.2s;
  z-index: 2001;
}
.lightbox-close:hover { color: var(--cream); }
.lightbox-nav {
  position: fixed; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  font-size: 3.5rem; color: var(--dim);
  transition: color 0.2s;
  z-index: 2001;
  padding: 0 20px;
  line-height: 1;
}
.lightbox-prev { left: 0; }
.lightbox-next { right: 0; }
.lightbox-nav:hover { color: var(--amber); }

/* ── Music embeds ── */
.music-section {
  padding: 48px 48px 0;
  border-bottom: 1px solid var(--faint);
}
.music-section:last-child { border-bottom: none; }
.music-section h2 {
  font-family: var(--display);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: var(--amber);
  margin-bottom: 24px;
}
.music-section .embeds-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 48px;
}
.music-section iframe {
  width: 100%;
  border: none;
  border-radius: 4px;
  background: var(--warm);
}
.music-section .embed-single {
  margin-bottom: 48px;
}

/* ── Explore nav (index page) ── */
.explore {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--faint);
}
.explore-item {
  padding: 64px 48px;
  border-right: 1px solid var(--faint);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.3s;
  text-decoration: none;
}
.explore-item:last-child { border-right: none; }
.explore-item:hover { background: #130e06; text-decoration: none; opacity: 1; }
.explore-num {
  font-family: var(--display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: #3a2e1e;
  text-transform: uppercase;
}
.explore-title {
  font-family: var(--display);
  font-size: 2.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cream);
  line-height: 1;
}
.explore-item:hover .explore-title { color: var(--amber); }
.explore-desc {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.8rem;
  color: #4a3820;
  line-height: 1.5;
}

/* ── Footer ── */
footer {
  padding: 28px 48px;
  border-top: 1px solid var(--faint);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
footer p {
  font-size: 0.7rem;
  color: #3a2e1e;
  font-family: var(--display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Responsive ── */
@media (max-width: 720px) {
  header {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 20px 24px;
    gap: 12px;
  }
  .header-left { display: none; }
  .header-nav { justify-content: center; }
  .page-intro { padding: 48px 24px 40px; }
  .content-body { padding: 40px 24px; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); padding: 16px 24px 32px; }
  .gallery-intro { padding: 20px 24px 0; }
  .music-section { padding: 32px 24px 0; }
  .music-section .embeds-row { grid-template-columns: 1fr; }
  .explore { grid-template-columns: 1fr; }
  .explore-item { border-right: none; border-bottom: 1px solid var(--faint); padding: 40px 24px; }
  footer { flex-direction: column; gap: 8px; padding: 24px; }
}
