/* =============================================
   CORE STYLES — Layout, Typography, Components
   Mobile-first, breakpoints at 768px and 1024px
   ============================================= */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--body-font);
  font-weight: var(--body-weight);
  color: var(--text);
  background-color: var(--bg);
  line-height: var(--line-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

ul {
  list-style: none;
}

/* =============================================
   HERO SECTION
   ============================================= */

.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__video-container {
  position: absolute;
  inset: 0;
  background: var(--bg-alt);
  background-image: url('../assets/video/hero-poster.jpg');
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero__video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
  z-index: 2;
}

/* ---- Hero Content ---- */
.hero__content {
  position: relative;
  z-index: 3;
  text-align: var(--hero-content-text-align);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: var(--hero-content-align);
  justify-content: var(--hero-content-justify);
  width: 100%;
  max-width: 1200px;
}

.hero__title {
  font-family: var(--heading-font);
  font-weight: var(--heading-weight);
  font-size: var(--hero-title-size);
  text-transform: var(--heading-transform);
  letter-spacing: var(--heading-tracking);
  color: #fff;
  line-height: 1.1;
  white-space: nowrap;
}

/* ---- Scroll Indicator ---- */
.hero__scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  color: rgba(255, 255, 255, 0.6);
}

.hero__scroll-text {
  display: var(--scroll-indicator-text);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-family: var(--body-font);
}

/* =============================================
   SECTIONS — General
   ============================================= */

.section {
  position: relative;
  padding: var(--section-padding);
  background-color: var(--bg);
}

.section:nth-child(even) {
  background-color: var(--bg-alt);
}

.section__inner {
  max-width: var(--section-max-width);
  margin: 0 auto;
  position: relative;
}

/* ---- Section Heading ---- */
.section__heading {
  font-family: var(--heading-font);
  font-weight: var(--heading-weight);
  font-size: clamp(2rem, 4vw, 3.5rem);
  text-transform: var(--heading-transform);
  letter-spacing: var(--heading-tracking);
  color: var(--text);
  margin-bottom: 2rem;
  text-align: center;
}

/* ---- Section Divider ---- */
.section__divider {
  display: var(--divider-display);
  width: 120px;
  height: 0.5px;
  margin: 0 auto 3rem;
  opacity: var(--divider-opacity);
}

/* ---- Section Body ---- */
.section__body {
  max-width: var(--section-max-width);
  margin: 0 auto;
}

.section__body p {
  margin-bottom: 1.5em;
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  color: var(--text);
}

.section__body p:last-child {
  margin-bottom: 0;
}

.section--about .section__inner {
  position: relative;
  z-index: 1;
}

/* ---- Topographic Contour Texture (About) ---- */
[data-theme="moss-stone"] .section--about::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.13;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'%3E%3Cg fill='none' stroke='%236B7C3F' stroke-width='0.6' stroke-linecap='round'%3E%3Cpath d='M0 55 Q50 45 100 58 Q150 70 200 52 Q250 35 300 48 Q350 60 400 50'/%3E%3Cpath d='M0 115 Q60 100 120 112 Q180 125 240 108 Q300 92 360 105 Q380 110 400 107'/%3E%3Cpath d='M0 170 Q45 180 90 168 Q140 155 190 172 Q240 188 290 175 Q340 162 400 170'/%3E%3Cpath d='M0 225 Q55 215 110 228 Q165 240 220 222 Q275 205 330 218 Q365 228 400 220'/%3E%3Cpath d='M0 280 Q70 290 130 275 Q190 260 250 278 Q310 295 370 282 Q385 278 400 280'/%3E%3Cpath d='M0 335 Q50 325 100 338 Q160 352 220 335 Q280 318 340 332 Q370 340 400 333'/%3E%3Cpath d='M0 385 Q65 395 130 382 Q195 368 260 385 Q325 400 400 390'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 400px 400px;
  background-repeat: repeat;
}

/* ---- Organic Spore / Lichen Scatter (Press) ---- */
[data-theme="moss-stone"] .section--press::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cg fill='%236B7C3F' stroke='none'%3E%3Ccircle cx='20' cy='30' r='2.5'/%3E%3Ccircle cx='65' cy='15' r='1.5'/%3E%3Ccircle cx='110' cy='25' r='3'/%3E%3Ccircle cx='160' cy='20' r='1.8'/%3E%3Ccircle cx='45' cy='70' r='2'/%3E%3Ccircle cx='90' cy='60' r='3.5'/%3E%3Ccircle cx='140' cy='75' r='2.2'/%3E%3Ccircle cx='185' cy='55' r='1.5'/%3E%3Ccircle cx='15' cy='110' r='1.8'/%3E%3Ccircle cx='70' cy='120' r='2.8'/%3E%3Ccircle cx='125' cy='105' r='1.5'/%3E%3Ccircle cx='170' cy='115' r='3.2'/%3E%3Ccircle cx='35' cy='160' r='2.5'/%3E%3Ccircle cx='80' cy='170' r='1.5'/%3E%3Ccircle cx='130' cy='155' r='2'/%3E%3Ccircle cx='175' cy='165' r='2.8'/%3E%3Ccircle cx='55' cy='185' r='1.8'/%3E%3Ccircle cx='105' cy='190' r='2.2'/%3E%3Ccircle cx='155' cy='180' r='1.5'/%3E%3C/g%3E%3Cg fill='none' stroke='%236B7C3F' stroke-width='0.4'%3E%3Cpath d='M90 60Q95 55 100 58'/%3E%3Cpath d='M90 60Q88 65 92 68'/%3E%3Cpath d='M70 120Q75 115 78 118'/%3E%3Cpath d='M170 115Q175 110 178 113'/%3E%3Cpath d='M170 115Q168 120 172 123'/%3E%3Cpath d='M110 25Q115 20 118 23'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 200px 200px;
  background-repeat: repeat;
}

[data-theme="moss-stone"] .section--press .section__inner {
  position: relative;
  z-index: 1;
}

/* =============================================
   MUSIC SECTION
   ============================================= */

.music-embeds {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.music-embed {
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.04);
}

.music-embed__iframe {
  display: block;
  border: none;
  border-radius: 12px;
}

.music-embed__iframe--spotify {
  height: 500px;
}

.music-embed__iframe--soundcloud {
  height: 450px;
}

@media (max-width: 767px) {
  .music-embed__iframe--spotify {
    height: 420px;
  }

  .music-embed__iframe--soundcloud {
    height: 380px;
  }
}

/* =============================================
   PRESS SECTION
   ============================================= */

.press-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.press-item {
  border-bottom: 1px solid rgba(128, 128, 128, 0.15);
}

.press-item:first-child {
  border-top: 1px solid rgba(128, 128, 128, 0.15);
}

.press-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  width: 100%;
  text-align: left;
  transition: color 0.2s ease;
  cursor: pointer;
}

.press-link:hover,
.press-link:focus-visible {
  color: var(--accent);
}

.press-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.press-item__source {
  font-family: var(--heading-font);
  font-weight: var(--heading-weight);
  font-size: clamp(0.75rem, 1vw, 0.85rem);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  flex-shrink: 0;
  min-width: 120px;
}

.press-item__title {
  flex: 1;
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
}

.press-item__icon {
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.press-link:hover .press-item__icon {
  opacity: 1;
  transform: translate(2px, -2px);
}

.press-link--lightbox:hover .press-item__icon {
  transform: scale(1.2);
}

/* ---- Press Overflow / Show All ---- */
.press-item--overflow {
  display: none;
}

.press-item--overflow.press-item--revealed {
  display: list-item;
  animation: pressItemReveal 0.4s ease both;
}

@keyframes pressItemReveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.press-show-all-wrap {
  text-align: center;
  margin-top: 2rem;
}

.press-show-all {
  font-family: var(--body-font);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: none;
  border: 1px solid var(--accent);
  padding: 0.85rem 2.25rem;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.press-show-all:hover,
.press-show-all:focus-visible {
  color: var(--accent);
  background: rgba(107, 124, 63, 0.08);
  border-color: var(--accent);
}

.press-show-all:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.press-show-all--hidden {
  display: none;
}

/* =============================================
   CONTACT SECTION
   ============================================= */

.section__body--contact {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.contact-email {
  font-family: var(--heading-font);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  letter-spacing: 0.05em;
  color: var(--text);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 0.2em;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-email:hover {
  color: var(--accent);
}

.social-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--text);
  transition: color 0.2s ease, transform 0.2s ease;
  border-radius: 50%;
}

.social-link:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.social-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.social-link svg {
  width: 24px;
  height: 24px;
}

/* =============================================
   LIGHTBOX
   ============================================= */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}

.lightbox__content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox__image {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 2px;
}

.lightbox__caption {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--body-font);
  font-size: 0.9rem;
  text-align: center;
}

.lightbox__close {
  position: absolute;
  top: -3rem;
  right: -1rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.2s ease;
  background: none;
  border: none;
}

.lightbox__close:hover {
  opacity: 0.7;
}

.lightbox__close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* =============================================
   RESPONSIVE
   ============================================= */

/* Mobile adjustments */
@media (max-width: 767px) {
  .press-link {
    flex-wrap: wrap;
    gap: 0.25rem 0.75rem;
    padding: 1rem 0;
  }

  .press-item__source {
    min-width: unset;
    width: 100%;
    font-size: 0.7rem;
  }

  .press-item__title {
    flex: 1;
  }

  .hero__content {
    padding: 1.5rem;
  }

  .section {
    padding: 4rem 1.5rem;
  }

  [data-theme="moss-stone"] .section {
    padding: 5rem 1.5rem;
  }
}

/* Tablet */
@media (min-width: 768px) {
  .press-item__source {
    min-width: 200px;
  }
}
