/* ffsh.life — shared sanctuary stylesheet, matched to the live homepage
   Near-black ground, warm gold accent, cream serif display, tracked sans labels. */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;1,500&family=Jost:wght@300;400;500&display=swap');

:root {
  --bg: #0B0A08;
  --bg-raised: #151310;
  --text: #F0EAD9;
  --text-dim: #948C7C;
  --line: #2B2620;
  --gold: #C9A344;
  --radius: 0px;
}

* { box-sizing: border-box; }

body.sanctuary {
  background: var(--bg);
  color: var(--text-dim);
  font-family: 'Jost', -apple-system, sans-serif;
  font-weight: 300;
  line-height: 1.7;
  margin: 0;
}

.sanctuary-wrap { max-width: 760px; margin: 0 auto; padding: 3.5rem 1.5rem 5rem; }

.mark {
  font-family: 'Jost', sans-serif;
  letter-spacing: 0.35em;
  color: var(--gold);
  font-size: 0.85rem;
  text-transform: uppercase;
}

.eyebrow {
  font-family: 'Jost', sans-serif;
  letter-spacing: 0.25em;
  color: var(--gold);
  font-size: 0.78rem;
  text-transform: uppercase;
  font-weight: 400;
}

.sanctuary h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  color: var(--text);
  font-size: 2.6rem;
  line-height: 1.2;
  margin: 0.6rem 0 0.4rem;
}
.sanctuary h1 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}

.sanctuary h2 {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--gold);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.7rem;
  margin: 3.5rem 0 1.5rem;
}

.sanctuary p { color: var(--text-dim); font-weight: 300; }
.sanctuary .lede { color: var(--text-dim); font-size: 1.05rem; max-width: 34rem; }

.sanctuary a { color: var(--gold); text-decoration: none; border-bottom: 1px solid transparent; }
.sanctuary a:hover, .sanctuary a:focus-visible { border-bottom-color: var(--gold); }
.sanctuary a:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }

.btn-outline {
  display: inline-block;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 0.9rem 2rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-top: 1rem;
}
.btn-outline:hover { background: var(--gold); color: var(--bg); border-bottom: 1px solid var(--gold); }

/* --- entries: videos, tracks, posts --- */
.entry { border-bottom: 1px solid var(--line); padding: 1.3rem 0; }
.entry:last-child { border-bottom: none; }
.entry-title { font-family: 'Playfair Display', serif; color: var(--text); font-size: 1.15rem; margin: 0 0 0.3rem; font-weight: 500; }
.entry-meta { font-size: 0.78rem; letter-spacing: 0.1em; color: var(--text-dim); text-transform: uppercase; }
.entry-note { color: var(--text-dim); font-size: 0.95rem; margin-top: 0.4rem; }

.entry-actions { margin-top: 0.6rem; display: flex; gap: 1.5rem; flex-wrap: wrap; }
.entry-actions a { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; }

audio { width: 100%; margin-top: 0.7rem; filter: invert(0.9) sepia(0.2) saturate(0.6); }

.video-embed { position: relative; width: 100%; padding-top: 56.25%; margin-top: 0.7rem; background: var(--bg-raised); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.empty-state { color: var(--text-dim); font-style: italic; padding: 1rem 0; }

.sanctuary-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: center;
}

/* --- gallery ---
   NOTE: .gallery-item no longer clips content — only the inner image box
   is square with overflow hidden. Title/artist text sits below, unclipped. */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 0.5rem;
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
.gallery-item {
  cursor: pointer;
}
.gallery-item .gallery-item-image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-raised);
  border: 1px solid var(--line);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s ease;
}
.gallery-item:hover img { opacity: 0.85; }
.gallery-item .entry-title { font-size: 0.95rem; margin-top: 0.5rem; }
.gallery-item .entry-meta { display: block; margin-top: 0.15rem; }

.lightbox {
  position: fixed; inset: 0;
  background: rgba(11,10,8,0.96);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 100;
  padding: 2rem 1.2rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 75vh; object-fit: contain; }
.lightbox-caption { color: var(--text-dim); font-size: 0.85rem; letter-spacing: 0.05em; margin-top: 1rem; text-align: center; }
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  color: var(--gold); border: 1px solid var(--gold);
  width: 2.2rem; height: 2.2rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; cursor: pointer; background: none;
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
