/* ============================================================
   GODLESS DESCENT – godlessdescent.com
   Design system based on the album «Hazy Path of Doom»
   Colors: black / off-white / grey / violet (CD print)
   ============================================================ */

/* ---------- Fonts (self-hosted, no Google Fonts request) ---------- */
/* Variable fonts: one file covers the whole weight range. */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/fraunces/fraunces-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/fraunces/fraunces-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/archivo/archivo-latin.woff2') format('woff2');
}

:root {
  --black: #0b0a0d;
  --panel: #141218;
  --panel-2: #1c1922;
  --white: #f2efe9;
  --grey: #93909b;
  --grey-dark: #4b4852;
  --violet: #7d6bce;
  --violet-deep: #4d4180;
  --frame: 3px solid var(--white);
  --radius: 22px;
  --max: 1060px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

body { overflow-x: hidden; }

a { color: var(--violet); text-decoration: none; }
a:hover { color: var(--white); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
}

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-family: "Fraunces", serif;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 1.2rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.5rem; color: var(--white); }

.eyebrow {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 0.9rem;
}

p { color: var(--grey); max-width: 62ch; }
p + p { margin-top: 1em; }

.lead { font-size: 1.15rem; color: var(--white); }

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0.9rem 1.4rem;
  background: linear-gradient(to bottom, rgba(11,10,13,0.94), rgba(11,10,13,0.75));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(242,239,233,0.08);
}

.nav-links { display: flex; gap: 1.6rem; list-style: none; }
.nav-links a {
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--white); }
.nav-links a[aria-current="page"] { border-bottom: 2px solid var(--violet); padding-bottom: 3px; }

/* Mobile Nav */
.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.6rem; cursor: pointer; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--black);
    border-bottom: 1px solid var(--grey-dark);
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-top: 1px solid rgba(242,239,233,0.08); }
  .nav-links a { display: block; padding: 1rem 1.4rem; }
}

/* ---------- Hero (home page) ---------- */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(to bottom, rgba(11,10,13,0.45), rgba(11,10,13,0.62) 55%, var(--black) 96%),
    url("../images/mountains.jpg") center 70% / cover no-repeat;
}

/* «Hazy» - fog slowly drifting across the mountain panorama */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: -30%;
  pointer-events: none;
  background:
    radial-gradient(ellipse 42% 30% at 28% 62%, rgba(242,239,233,0.10), transparent 70%),
    radial-gradient(ellipse 50% 26% at 74% 48%, rgba(125,107,206,0.10), transparent 70%);
  filter: blur(28px);
  animation: haze 26s ease-in-out infinite alternate;
}
.hero::after {
  background:
    radial-gradient(ellipse 38% 24% at 66% 72%, rgba(242,239,233,0.08), transparent 70%),
    radial-gradient(ellipse 44% 30% at 22% 38%, rgba(125,107,206,0.07), transparent 70%);
  animation-duration: 34s;
  animation-delay: -12s;
}
@keyframes haze {
  from { transform: translate3d(-3%, 1%, 0) scale(1); }
  to   { transform: translate3d(3%, -2%, 0) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after { animation: none; }
}

.hero > * { position: relative; z-index: 1; }

.hero-logo {
  width: min(480px, 78vw);
  margin-bottom: 1.6rem;
  filter: drop-shadow(0 6px 30px rgba(0,0,0,0.55));
}

.hero .tagline {
  font-size: 0.85rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(242,239,233,0.88);
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
.hero .tagline b { color: var(--violet); font-weight: 600; }

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  color: rgba(242,239,233,0.45);
  font-size: 1.4rem;
  animation: drift 2.6s ease-in-out infinite;
}
@keyframes drift { 50% { transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
  .scroll-hint { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Page header (subpages) ---------- */

.page-head {
  padding: 9.5rem 1.5rem 3rem;
  max-width: var(--max);
  margin: 0 auto;
}

/* ---------- Sections & grid ---------- */

.section { padding: 4.5rem 1.5rem; }
.section-inner { max-width: var(--max); margin: 0 auto; }
.section.alt { background: var(--panel); }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 820px) { .grid-2 { grid-template-columns: 1fr; } }

/* Signature element: the cover frame */
.framed {
  border: var(--frame);
  border-radius: var(--radius);
  overflow: hidden;
}
.framed img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Buttons ---------- */

.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }

.btn {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  border: 1.5px solid var(--grey-dark);
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  transition: border-color 0.2s, background 0.2s;
}
.btn:hover { border-color: var(--violet); background: rgba(125,107,206,0.12); color: var(--white); }
.btn.primary { background: var(--violet); border-color: var(--violet); color: #fff; }
.btn.primary:hover { background: var(--violet-deep); border-color: var(--violet-deep); }

/* ---------- Gig list ---------- */

.gig-list { list-style: none; border-top: 1px solid var(--grey-dark); }
.gig-list li {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 1.2rem;
  align-items: center;
  padding: 1.2rem 0.4rem;
  border-bottom: 1px solid var(--grey-dark);
}
.gig-date {
  font-family: "Fraunces", serif;
  font-size: 1.15rem;
  color: var(--violet);
  white-space: nowrap;
}
.gig-venue { color: var(--white); font-weight: 600; }
.gig-city { color: var(--grey); font-size: 0.95rem; }
.gig-list.past .gig-date { color: var(--grey-dark); }
.gig-list.past .gig-venue { color: var(--grey); font-weight: 400; }
@media (max-width: 620px) {
  .gig-list li { grid-template-columns: 1fr; gap: 0.2rem; }
}

/* ---------- Media / Embeds ---------- */

.embed-slot {
  border: 1.5px dashed var(--violet-deep);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--grey);
  font-size: 0.95rem;
  background: var(--panel);
}
.embed-slot code {
  color: var(--violet);
  font-family: monospace;
  font-size: 0.85rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
  margin-top: 2rem;
}

/* ---------- Members ---------- */

.member-list { list-style: none; margin-top: 1.5rem; }
.member-list li { padding: 0.65rem 0; border-bottom: 1px solid rgba(242,239,233,0.08); color: var(--grey); }
.member-list b { color: var(--white); font-weight: 600; margin-right: 0.5rem; }

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid rgba(242,239,233,0.1);
  padding: 3.5rem 1.5rem 2.5rem;
  text-align: center;
}
.footer .socials { display: flex; justify-content: center; gap: 1.6rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.footer .socials a {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
}
.footer .socials a:hover { color: var(--violet); }
.footer small { color: var(--grey-dark); font-size: 0.78rem; letter-spacing: 0.05em; display: block; }
.footer small a { color: var(--grey-dark); text-decoration: underline; }

/* ---------- Language switcher ---------- */
.nav-links .lang a {
  color: var(--violet);
  border: 1.5px solid var(--violet-deep);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
}
.nav-links .lang a:hover { color: var(--white); border-color: var(--violet); }
@media (max-width: 760px) {
  .nav-links .lang a { border: none; padding: 1rem 1.4rem; }
}

/* ---------- Equalizer (Hero) ---------- */
.eq {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 26px;
  margin: 1.5rem 0 0.4rem;
}
.eq span {
  width: 4px;
  border-radius: 2px;
  background: var(--violet);
  animation: eq 1.15s ease-in-out infinite;
}
.eq span:nth-child(1) { height: 40%; animation-delay: -0.9s; }
.eq span:nth-child(2) { height: 75%; animation-delay: -0.6s; }
.eq span:nth-child(3) { height: 100%; animation-delay: -0.3s; }
.eq span:nth-child(4) { height: 65%; animation-delay: -0.75s; }
.eq span:nth-child(5) { height: 45%; animation-delay: -0.15s; }
@keyframes eq {
  0%, 100% { transform: scaleY(0.45); }
  50%      { transform: scaleY(1); }
}
@media (prefers-reduced-motion: reduce) {
  .eq span { animation: none; }
}

.hero-cta { justify-content: center; margin-top: 1.6rem; }
.hero-cta .btn { backdrop-filter: blur(3px); background: rgba(11,10,13,0.35); }
.hero-cta .btn.primary { background: var(--violet); }
.hero-cta .btn.primary:hover { background: var(--violet-deep); }

.footer .socials { margin-top: 0.4rem; }

/* ============================================================
   RESPONSIVE – Tablet & Mobile
   ============================================================ */

/* ---------- Tablet (up to 1024px) ---------- */
@media (max-width: 1024px) {
  .grid-2 { gap: 2.2rem; }
  .section { padding: 3.8rem 1.5rem; }
}

/* ---------- Mobile (up to 760px) ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }

  .section { padding: 2.8rem 1.1rem; }
  .page-head { padding: 7.5rem 1.1rem 1.6rem; }

  /* Hero */
  .hero { padding: 5.5rem 1.2rem 4.5rem; }
  .hero-logo { width: min(340px, 86vw); }
  .hero .tagline { font-size: 0.72rem; letter-spacing: 0.3em; }
  .hero-cta { width: 100%; max-width: 340px; flex-direction: column; }
  .hero-cta .btn { width: 100%; text-align: center; padding: 0.9rem 1rem; }

  /* Grid & frames */
  .grid-2 { gap: 1.8rem; }
  .framed { border-width: 2px; border-radius: 16px; }
  .photo-grid { grid-template-columns: 1fr; gap: 1.1rem; }

  /* Buttons: comfortable tap targets */
  .btn { padding: 0.85rem 1.4rem; }
  .btn-row { gap: 0.6rem; }

  /* Gig list: date above event, button below */
  .gig-list li { padding: 1rem 0.2rem; }
  .gig-list li .btn { justify-self: start; margin-top: 0.4rem; }
  .gig-date { font-size: 1.05rem; }

  /* Footer */
  .footer { padding: 2.6rem 1.1rem 2rem; }
  .footer .socials { gap: 1.1rem; }
}

/* ---------- Small devices (up to 380px) ---------- */
@media (max-width: 380px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.65rem; }
  .nav-brand span { font-size: 0.92rem; }
}

/* ---------- Landscape phones: do not crop the hero ---------- */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: auto; padding: 6.5rem 1.5rem 3.5rem; }
  .hero-logo { width: min(240px, 40vw); }
  .hero-cta { flex-direction: row; max-width: none; width: auto; }
  .hero-cta .btn { width: auto; }
  .scroll-hint { display: none; }
}

/* ---------- Video embed ---------- */
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border: var(--frame);
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
@media (max-width: 760px) {
  .video-frame { border-width: 2px; border-radius: 16px; }
}

/* ---------- Lightbox gallery ---------- */
.photo-grid .framed, .framed.lb-zoom { cursor: zoom-in; transition: transform 0.2s; }
.photo-grid .framed:hover, .framed.lb-zoom:hover { transform: scale(1.015); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(11,10,13,0.96);
}
.lightbox img {
  max-width: 90vw;
  max-height: 84vh;
  width: auto;
  height: auto;
  border: 3px solid var(--white);
  border-radius: 16px;
  object-fit: contain;
}
.lightbox button {
  position: absolute;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  font-size: 2.2rem;
  line-height: 1;
  padding: 0.6rem 0.9rem;
  opacity: 0.8;
}
.lightbox button:hover { opacity: 1; color: var(--violet); }
.lightbox .lb-close { top: 0.8rem; right: 0.8rem; }
.lightbox .lb-prev { left: 0.4rem; top: 50%; transform: translateY(-50%); font-size: 3.2rem; }
.lightbox .lb-next { right: 0.4rem; top: 50%; transform: translateY(-50%); font-size: 3.2rem; }
@media (max-width: 760px) {
  .lightbox img { max-width: 96vw; max-height: 80vh; border-width: 2px; }
  .lightbox .lb-prev, .lightbox .lb-next { display: none; } /* on mobile: swipe gesture */
}
