/* Additive forest / mascot atmosphere. Loaded after site.css. */

.hero-photo {
  position: relative;
  overflow: hidden;
  background: #140c0e;
  min-height: 22rem;
}

.hero-photo img,
.hero-photo video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center 28%;
  display: block;
  background: transparent;
}

.hero-photo img { z-index: 1; }
.hero-photo video {
  z-index: 2;
  opacity: 0;
  pointer-events: none;
}
.hero-photo video.is-ready { opacity: 1; }

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(12, 10, 11, 0.88) 0%, rgba(12, 10, 11, 0.45) 42%, rgba(12, 10, 11, 0.16) 100%),
    linear-gradient(0deg, rgba(12, 10, 11, 0.55) 0%, transparent 42%);
}

@media (max-width: 720px) {
  .hero-photo { min-height: 26rem; }
}

.hero-copy {
  position: relative;
  z-index: 4;
  color: #f6efe6;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
}

.mascot-band,
[data-mascot-reel],
[data-theme-atmosphere],
.theme-atmosphere { display: none !important; }

.title-with-mascot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.title-with-mascot h1 { margin: 0; }
.blog-title-mascot {
  display: block;
  height: 13rem;
  width: auto;
  max-width: 16rem;
  object-fit: contain;
  background: transparent !important;
  flex: 0 0 auto;
}

img[src$=".png"],
img[src$=".PNG"],
img[src$=".webp"] {
  background-color: transparent !important;
  background-image: none !important;
}

html.is-blog-post .hero-photo,
html.is-blog-post .blog-title-mascot,
html.is-blog-post [data-theme-atmosphere] {
  display: none !important;
}

.blog-list img,
.post-card img,
article img,
.post-body img,
.blog-body img {
  display: block;
  max-width: 100%;
  height: auto;
  background: transparent;
}

.release-grid,
.journal-grid,
.video-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .release-grid,
  .journal-grid { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
}
.release-card a,
.journal-teaser a,
.post-card a { color: inherit; text-decoration: none; }
.release-card img,
.journal-teaser img,
.post-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.35rem;
}

.video-card h2 { margin: 0.75rem 0 0.35rem; font-size: 1.35rem; }
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #140c0e;
  border-radius: 0.35rem;
  overflow: hidden;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.about-photo {
  margin: 0 0 1.5rem;
}
.about-page .hero,
.about-page .hero-photo {
  display: none !important;
}
.about-photo img,
.about-body img {
  position: static;
  inset: auto;
  z-index: auto;
  display: block;
  width: auto;
  height: auto;
  max-width: min(18rem, 100%);
  object-fit: contain;
  border-radius: 0.35rem;
}
.about-body {
  max-width: 42rem;
}
.about-body h2,
.about-body h3 {
  font-family: var(--serif, Georgia, serif);
  margin: 1.6rem 0 0.4rem;
}
.about-body p,
.about-body ul,
.about-body ol,
.about-body blockquote {
  margin: 0 0 1rem;
}
.about-body ul,
.about-body ol {
  padding-left: 1.25rem;
}
.about-body blockquote {
  border-left: 3px solid var(--accent, #c45c4a);
  padding-left: 1rem;
  color: var(--muted, #c9b8a8);
}
.about-body img {
  max-width: min(22rem, 100%);
}

@media (prefers-reduced-motion: reduce) {
  .hero-photo video { display: none; }
}
