/*
=====================================================================
THE RETURN OF LITHA — design tokens
=====================================================================
Color
  Deep Forest   #2F4A3A  ancient, protective        (base background)
  Hearth Char   #1B2A20  deeper layering tone        (gradients, depth)
  Sun Ember     #F4A259  warm, glowing, inviting     (accent / hover)
  Solstice Gold #FFD972  radiant, celebratory        (headlines, links)
  Mossleaf      #6A8F6B  grounded, herbal            (dividers, quiet accents)
  Smoke Stone   #D9D4C7  natural, soft               (light panels)
  Text          #e2f0d8

Type
  Display: "Macondo Swash Caps" — hero headline + section titles ONLY
  Body/labels: "Raleway" — everything else

Signature
  A slow-rotating sunburst behind the hero headline, with a few embers
  drifting upward — the sun's return at the height of the year, made
  literal instead of decorative. Everything else stays quiet around it.
=====================================================================
*/

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  scroll-padding: 10rem;
  overflow-x: clip;
}

body {
  display: flex;
  font-family: "Raleway", sans-serif;
  flex-direction: column;
  align-items: center;
  background: #2F4A3A url("./img/norseknotbg-lg-y.png") repeat-y center;
  background-size: cover;
  color: #e2f0d8;
  overflow-x: clip;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  pointer-events: none;
  z-index: -100;
}

body.nav-open {
  overflow: hidden;
}

h1, h2, h3 {
  font-family: "Macondo Swash Caps", cursive;
  font-weight: 400;
  color: #FFD972;
}

a {
  color: inherit;
}

.eyebrow {
  font-family: "Raleway", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: #F4A259;
  text-align: center;
}

/* =================================================================
   HEADER + NAV
   ================================================================= */

header {
  margin-top: 2rem;
  padding: 1.2rem 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(27, 42, 32, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 217, 114, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

#logo {
  display: inline-block;
  content: url('./img/litha-logo.png');
  margin: 0 3rem 0 4rem;
  width: 20%;
  min-width: 8rem;
  max-width: 14rem;
  filter: sepia(100%) saturate(300%) hue-rotate(5deg) brightness(105%);
}

#logo::before {
  content: url('./img/litha-logo.png');
  display: block;
  visibility: hidden;
}

#logo::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: inherit;
  -webkit-mask: url('./img/litha-logo.png') no-repeat center / 100% 100%;
  mask: url('./img/litha-logo.png') no-repeat center / 100% 100%;
}

nav {
  display: flex;
  width: 100%;
  justify-content: space-around;
}

.nav-links {
  display: flex;
  list-style: none;
  width: 100%;
  justify-content: space-around;
}

.nav_button {
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 217, 114, 0.2);
  border-radius: 0.4rem;
  backdrop-filter: blur(4px);
  color: #fff;
  transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.nav_button:hover,
.nav_button:focus-within {
  background-color: rgba(255, 217, 114, 0.12);
  border-color: rgba(255, 217, 114, 0.5);
  transform: translateY(-2px);
}

.nav_button_link {
  font-size: 1.8rem;
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  letter-spacing: 0.15em;
  font-style: normal;
  color: #FFD972;
  text-decoration: none;
  padding: 1rem 1.6rem;
  display: inline-block;
}

.nav_button_link:focus-visible,
#menu-toggle:focus-visible,
.submit-btn:focus-visible {
  outline: 2px solid #FFD972;
  outline-offset: 3px;
}

/* =================================================================
   HERO
   ================================================================= */

.hero {
  position: relative;
  width: 100%;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 8rem;
  overflow: hidden;
}

.hero #logo{
    width: 80%;
    min-width: 20rem;
    max-width: 50rem;
}

/* radiating sunburst — pure CSS, no image asset needed */
.sunburst {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90rem;
  height: 90rem;
  transform: translate(-50%, -55%);
  border-radius: 50%;
  background:
    repeating-conic-gradient(
      from 0deg,
      rgba(255, 217, 114, 0.14) 0deg 4deg,
      transparent 4deg 18deg
    );
  -webkit-mask-image: radial-gradient(circle, black 0%, black 35%, transparent 70%);
  mask-image: radial-gradient(circle, black 0%, black 35%, transparent 70%);
  animation: spin 140s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes spin {
  from { transform: translate(-50%, -55%) rotate(0deg); }
  to   { transform: translate(-50%, -55%) rotate(360deg); }
}

.embers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.embers span {
  position: absolute;
  bottom: -2rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #F4A259;
  box-shadow: 0 0 6px 2px rgba(244, 162, 89, 0.6);
  opacity: 0;
  animation: rise 9s linear infinite;
}

.embers span:nth-child(1) { left: 12%; animation-delay: 0s; }
.embers span:nth-child(2) { left: 24%; animation-delay: 1.3s; }
.embers span:nth-child(3) { left: 38%; animation-delay: 2.6s; }
.embers span:nth-child(4) { left: 52%; animation-delay: 0.7s; }
.embers span:nth-child(5) { left: 66%; animation-delay: 3.5s; }
.embers span:nth-child(6) { left: 80%; animation-delay: 1.9s; }
.embers span:nth-child(7) { left: 92%; animation-delay: 4.2s; }

@keyframes rise {
  0%   { opacity: 0; transform: translateY(0) scale(0.8); }
  10%  { opacity: 0.9; }
  90%  { opacity: 0.3; }
  100% { opacity: 0; transform: translateY(-46rem) scale(1.1); }
}

.hero .eyebrow {
  position: relative;
  z-index: 2;
  margin-bottom: 1.5rem;
}

.hero h1 {
  position: relative;
  z-index: 2;
  font-size: clamp(4.5rem, 9vw, 8.5rem);
  line-height: 1.05;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.hero-sub {
  position: relative;
  z-index: 2;
  font-size: clamp(1.8rem, 2vw, 2.2rem);
  max-width: 50rem;
  margin: 2rem 0 3rem;
  color: #e2f0d8;
}

.cta-btn {
  position: relative;
  z-index: 2;
  display: inline-block;
  font-family: "Macondo Swash Caps", cursive;
  font-size: 2.4rem;
  color: #2F4A3A;
  background-color: #FFD972;
  border-radius: 0.4rem;
  padding: 1.2rem 3.2rem;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.cta-btn:hover,
.cta-btn:focus-visible {
  background-color: #F4A259;
  transform: translateY(-2px);
}

/* =================================================================
   CONNECT (follow + listen)
   ================================================================= */

.connect {
  width: 90vw;
  max-width: 70rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  padding: 3rem 0 5rem;
  flex-wrap: wrap;
}

.connect-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}

.connect-divider {
  color: #6A8F6B;
  font-size: 2rem;
}

.icon-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.social-stream-links {
  color: #b8ff9e;
  height: 4rem;
  transition: 0.2s ease;
}

.social-stream-links:hover {
  color: #FFD972;
  transform: scale(1.12);
}

/* =================================================================
   RELEASE FEATURE
   ================================================================= */

.release {
  width: 90vw;
  max-width: 90rem;
  display: flex;
  align-items: center;
  gap: 5rem;
  padding: 4rem 0;
}

.release-art {
  flex: 0 0 min(38rem, 42%);
}

.release-art img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.6rem;
  transform: rotate(-2deg);
  box-shadow: 0 0 0 1px rgba(255, 217, 114, 0.25), 0 20px 50px rgba(0, 0, 0, 0.45);
}

.release-copy {
  flex: 1;
  text-align: left;
}

.release-copy .eyebrow {
  text-align: left;
  margin-bottom: 1rem;
}

.release-copy h2 {
  font-size: clamp(3rem, 4vw, 4.5rem);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.release-copy p {
  font-size: 1.9rem;
}

/* =================================================================
   GALLERY CAROUSEL
   ================================================================= */

.gallery {
  width: 90vw;
  max-width: 70rem;
  margin: 2rem 0 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery .eyebrow {
  margin-bottom: 2rem;
}

.carousel {
  width: 100%;
  overflow: hidden;
  border-radius: 0.8rem;
  border: 1px solid rgba(255, 217, 114, 0.25);
  box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.3);
}

.carousel-track {
  display: flex;
  list-style: none;
  transition: transform 0.6s ease;
}

.carousel-slide {
  flex: 0 0 100%;
  aspect-ratio: 1 / 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.carousel-dots {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.carousel-dot {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 217, 114, 0.5);
  background-color: transparent;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.2s ease;
}

.carousel-dot.is-active {
  background-color: #FFD972;
}

/* =================================================================
   EVENTS / APPEARANCES
   ================================================================= */

.events {
  width: 90vw;
  max-width: 60rem;
  text-align: center;
  padding: 3rem 0 5rem;
}

.event-card img{
  width: 75%;
}

.events-grid{
  display: flex;
  justify-content: center;
}

.events-grid, .event-details{
  margin: 3rem 0;
}

.event-details button{
  margin: 2rem 0;
}

.events .eyebrow {
  margin-bottom: 1.5rem;
}

.events h2 {
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  margin-bottom: 1.5rem;
}

.events p {
  font-size: 1.8rem;
}

.event-date, .event-venue, .event-desc{
  line-height: 1.5;
}

/* =================================================================
   ABOUT / BIO
   ================================================================= */

.bio {
  width: 90vw;
  max-width: 80rem;
  margin: 2rem 0;
  padding: 3rem 0;
  text-align: center;
}

.bio .eyebrow {
  margin-bottom: 1.5rem;
}

.bio h2 {
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  margin-bottom: 3rem;
}

.bio-p {
  font-size: 1.8rem;
  line-height: 1.7;
  text-align: left;
  margin-bottom: 2rem;
}

.bio-lead {
  font-size: 2.1rem;
}

.bio-quote {
  font-style: italic;
  color: #FFD972;
  border-left: 3px solid #6A8F6B;
  padding-left: 2rem;
}

.band-bio {
  margin-top: 0;
  padding-top: 1rem;
}

.members {
  margin: 3rem 0;
}

.members-intro {
  text-align: center;
  font-weight: 700;
}

.members-grid {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
}

.member-card {
  flex: 1 1 20rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 217, 114, 0.2);
  border-radius: 0.6rem;
  padding: 2.4rem;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.member-card h3 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.member-card p {
  font-size: 1.6rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.member_link{
  /* margin-top: 1rem; */
  margin-top: auto;
}

.bio-closing {
  text-align: center;
  font-family: "Macondo Swash Caps", cursive;
  font-size: 2.6rem;
  color: #FFD972;
  margin-top: 3rem;
  line-height: 1.6;
}

/* =================================================================
   CONTACT
   ================================================================= */

.contact {
  width: 90vw;
  max-width: 90rem;
  display: flex;
  gap: 6rem;
  padding: 4rem 0 6rem;
  align-items: flex-start;
}

.contact-intro {
  flex: 1;
  text-align: left;
  position: relative;
}

.contact-intro .eyebrow {
  text-align: left;
  margin-bottom: 1rem;
}

.contact-intro h2 {
  font-size: clamp(2.8rem, 3.6vw, 3.8rem);
  line-height: 1.2;
  margin-bottom: 2rem;
}

.solstice-arc {
  width: 100%;
  max-width: 24rem;
  height: auto;
  color: #6A8F6B;
}

.contact-form-wrap {
  flex: 1;
}

.contact-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
  text-align: left;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.form-row label {
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  color: #FFD972;
}

.form-row input,
.form-row textarea {
  font-family: "Raleway", sans-serif;
  font-size: 1.8rem;
  color: #e2f0d8;
  background-color: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 217, 114, 0.35);
  border-radius: 0;
  padding: 0.8rem 0.2rem;
  resize: vertical;
  transition: border-color 0.2s ease;
}

.form-row input:focus-visible,
.form-row textarea:focus-visible {
  outline: none;
  border-color: #FFD972;
}

.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  left: -9999px;
}

.submit-btn {
  align-self: flex-start;
  font-family: "Macondo Swash Caps", cursive;
  font-size: 2.2rem;
  color: #2F4A3A;
  background-color: #FFD972;
  border: none;
  border-radius: 0.4rem;
  padding: 1.2rem 3rem;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.submit-btn:hover,
.submit-btn:focus-visible {
  background-color: #F4A259;
  transform: translateY(-2px);
}

.form-status {
  width: 100%;
  font-size: 1.6rem;
  padding: 1.2rem 1.6rem;
  border-radius: 0.4rem;
  margin-bottom: 2rem;
}

.form-status.is-success {
  background-color: rgba(106, 143, 107, 0.35);
  border: 1px solid #6A8F6B;
}

.form-status.is-error {
  background-color: rgba(244, 162, 89, 0.2);
  border: 1px solid #F4A259;
}

/* =================================================================
   FOOTER
   ================================================================= */

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 3rem;
  text-align: center;
  padding: 0 2rem;
  gap: 1rem;
}

.footer-rule {
  color: #6A8F6B;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

footer h3 {
  font-size: 1.8rem;
  color: #e2f0d8;
  font-family: "Raleway", sans-serif;
  font-weight: 400;
}

/* =================================================================
   HAMBURGER MENU (hidden on desktop, shown on mobile)
   ================================================================= */

#menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  width: 5rem;
  height: 5rem;
  margin-right: 3rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 217, 114, 0.3);
  border-radius: 50%;
  cursor: pointer;
  z-index: 210;
  flex-shrink: 0;
}

#menu-toggle .bar {
  display: block;
  width: 2.6rem;
  height: 0.3rem;
  background-color: #FFD972;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

body.nav-open #menu-toggle .bar-top {
  transform: translateY(0.9rem) rotate(45deg);
}
body.nav-open #menu-toggle .bar-mid {
  opacity: 0;
}
body.nav-open #menu-toggle .bar-bot {
  transform: translateY(-0.9rem) rotate(-45deg);
}

#nav-scrim {
  position: fixed;
  inset: 0;
  background: rgba(15, 20, 15, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 190;
}

body.nav-open #nav-scrim {
  opacity: 1;
  pointer-events: auto;
}

#mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(30rem, 78vw);
  background: linear-gradient(180deg, #2F4A3A 0%, #1B2A20 100%);
  border-left: 1px solid rgba(255, 217, 114, 0.35);
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.4);
  transform: translateX(100%);
  transition: transform 0.35s ease;
  z-index: 200;
  padding: 12rem 0 4rem;
  overflow-y: auto;
}

body.nav-open #mobile-nav {
  transform: translateX(0);
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.mobile-nav-links li {
  width: 80%;
  text-align: center;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 217, 114, 0.2);
}

.mobile-nav-links li:last-child {
  border-bottom: none;
}

.mobile-nav-links a {
  font-family: "Macondo Swash Caps", cursive;
  font-size: 3.2rem;
  color: #FFD972;
  text-decoration: none;
  transition: color 0.2s ease;
}

.mobile-nav-links a:hover,
.mobile-nav-links a:focus-visible {
  color: #e2f0d8;
}

/* respect users who'd rather not see motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .sunburst {
    animation: none;
  }
  .embers span {
    animation: none;
    opacity: 0;
  }
  #menu-toggle .bar,
  #nav-scrim,
  #mobile-nav,
  .nav_button,
  .social-stream-links,
  .carousel-track,
  .carousel-dot,
  .cta-btn,
  .submit-btn {
    transition: none;
    scroll-behavior: auto;
  }
}

/* =================================================================
   MEDIA QUERIES
   ================================================================= */

@media screen and (max-width: 900px) {
  #nav-1,
  #nav-2 {
    display: none;
  }

  #menu-toggle {
    display: flex;
  }

  header {
    justify-content: space-between;
    padding: 0 1rem;
  }

  #logo {
    width: 30%;
    margin: 0 0 0 3rem;
  }

  .release {
    flex-direction: column;
    text-align: center;
  }

  .release-copy {
    text-align: center;
  }

  .release-copy .eyebrow {
    text-align: center;
  }

  .contact {
    flex-direction: column;
  }

  .contact-intro,
  .contact-intro .eyebrow,
  .contact-intro h2 {
    text-align: center;
  }

  .contact-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .solstice-arc {
    display: none;
  }
}

@media screen and (max-width: 600px) {
  .hero {
    padding: 5rem 1.5rem 6rem;
  }

  .sunburst {
    width: 60rem;
    height: 60rem;
  }

  #logo {
    width: 44%;
  }

  .icon-row {
    gap: 1.4rem;
  }

  .social-stream-links {
    height: 3.4rem;
  }

  .connect {
    gap: 3rem;
  }
}