:root {
  --bg: #1a1a2e;
  --bg-deep: #0f0f1a;
  --surface: rgba(30, 30, 50, 0.84);
  --surface-strong: rgba(35, 35, 55, 0.94);
  --surface-dark: rgba(20, 20, 35, 0.88);
  --accent: #5d7a46;
  --accent-deep: #7fa363;
  --accent-soft: #a89a68;
  --accent-warm: #c0844a;
  --text: #e0dcd4;
  --text-muted: #9a9488;
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --font-display: 'Pixelify Sans', 'Courier New', monospace;
  --font-body: 'Alegreya', Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: linear-gradient(180deg, #1a1a2e 0%, #16162a 28%, #1a1a2e 100%);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  overflow-x: hidden;
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background:
    radial-gradient(circle at 20% 20%, rgba(93, 122, 70, 0.06), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(93, 122, 70, 0.04), transparent 20%),
    radial-gradient(circle at 50% 100%, rgba(93, 122, 70, 0.04), transparent 24%);
  opacity: 0.9;
}

body::after {
  background-image: linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 100% 26px;
  opacity: 0.35;
}

img {
  max-width: 100%;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

section {
  padding: 3.5rem 0;
}

.section-title {
  margin-bottom: 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 2.15rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  color: var(--accent-deep);
}

.section-title span {
  color: var(--accent-warm);
}

nav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  background: rgba(15, 15, 26, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.5rem;
}

.nav-logo {
  color: #f7ead2;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.24em;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  color: rgba(247, 234, 210, 0.82);
  text-decoration: none;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a {
  padding: 0.25rem 0.1rem;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a:focus {
  color: #fff4df;
}

.nav-links a[aria-current='page'] {
  color: #fff4df;
  border-bottom-color: var(--accent-warm);
}

#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8rem 0 5rem;
}

#hero::before,
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
}

#hero::before {
  background:
    linear-gradient(180deg, rgba(35, 28, 21, 0.24), rgba(35, 28, 21, 0.58)),
    url('../assets/haze_hill_revisited_by_simonswerwer_d77xs8e.png') center 28% / cover;
  transform: scale(1.04);
}

#hero::after {
  background:
    linear-gradient(180deg, rgba(230, 219, 196, 0.05), rgba(230, 219, 196, 0.5) 72%, rgba(230, 219, 196, 0.98) 100%),
    radial-gradient(circle at 50% 120%, rgba(58, 86, 42, 0.28), transparent 32%);
}

#hero .container {
  position: relative;
  z-index: 1;
}

.hero-panel {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 2.25rem;
  border: 1px solid rgba(247, 234, 210, 0.22);
  border-radius: clamp(24px, 5vw, 42px);
  background: linear-gradient(160deg, rgba(20, 20, 35, 0.78), rgba(30, 30, 50, 0.72));
  box-shadow: 0 30px 80px rgba(25, 19, 14, 0.28);
  text-align: center;
}

.hero-sprite {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(112px, 18vw, 148px);
  aspect-ratio: 1;
  margin-bottom: 1.5rem;
  border-radius: 36px;
  background: linear-gradient(180deg, rgba(244, 232, 210, 0.16), rgba(126, 86, 55, 0.24));
  border: 1px solid rgba(255, 240, 216, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 248, 234, 0.18), 0 18px 40px rgba(17, 11, 8, 0.28);
  animation: float 4.6s ease-in-out infinite;
}

.hero-sprite-image {
  width: 72%;
  image-rendering: pixelated;
  filter: drop-shadow(0 10px 18px rgba(18, 10, 5, 0.36));
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-kicker {
  color: rgba(247, 234, 210, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-family: var(--font-display);
  font-size: 0.78rem;
  margin-bottom: 1rem;
}

.hero-title {
  color: #fff2db;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5.4rem);
  letter-spacing: 0.18em;
  line-height: 0.95;
}

.hero-subtitle {
  margin-top: 1rem;
  color: #dac9aa;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-tagline {
  max-width: 34rem;
  margin: 1.25rem auto 0;
  color: rgba(247, 234, 210, 0.84);
  font-size: clamp(1.1rem, 2.3vw, 1.35rem);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 2rem;
  padding: 0.9rem 1.5rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-soft) 100%);
  color: #fff8ee;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(63, 91, 44, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn:hover,
.btn:focus {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(63, 91, 44, 0.28);
  filter: saturate(1.08);
}

#music,
#mailing-list {
  background: rgba(20, 20, 35, 0.5);
}

.ml-desc,
.contact-intro {
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  color: var(--text-muted);
  text-align: center;
  font-size: 1.1rem;
}

.music-platforms {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  align-items: stretch;
}

.platform-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}

.track-label {
  color: var(--accent-warm);
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.platform-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--accent-deep);
}

.embed-stack {
  display: grid;
  gap: 1rem;
}

.embed-item {
  margin: 0;
}

.embed-meta {
  margin-bottom: 0.75rem;
  color: var(--accent-deep);
  font-family: var(--font-display);
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.embed-item iframe {
  display: block;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
}

.embed-item--soundcloud iframe {
  height: 166px;
}

.embed-item--spotify iframe {
  height: 166px;
}

.embed-item--video iframe {
  height: 166px;
}

.embed-attribution {
  margin-top: 0.75rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.embed-attribution a {
  color: var(--accent-warm);
  text-decoration: none;
}

.embed-attribution a:hover,
.embed-attribution a:focus,
footer a:hover,
footer a:focus,
.footer-social a:hover,
.footer-social a:focus {
  text-decoration: underline;
}

.section-note {
  max-width: 38rem;
  margin: 2rem auto 0;
  color: var(--text-muted);
  text-align: center;
}

#art,
#contact {
  position: relative;
}

.art-grid {
  display: grid;
  gap: 1.3rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
}

.art-tile {
  cursor: zoom-in;
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(30, 30, 50, 0.5);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.art-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.3);
}

.art-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  image-rendering: pixelated;
  transition: filter 0.2s ease;
}

.art-tile:hover .art-image,
.art-tile:focus-within .art-image {
  filter: brightness(0.4);
}

.art-tile .art-caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 0.8rem 0.95rem;
  background: rgba(10, 10, 18, 0.92);
  color: #f4e7cf;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.art-tile:hover .art-caption,
.art-tile:focus-within .art-caption {
  opacity: 1;
}

.ml-form {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 560px;
  margin-inline: auto;
}

.contact-wrapper {
  max-width: 720px;
  margin-inline: auto;
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(30, 30, 50, 0.78);
  box-shadow: var(--shadow);
}

.field {
  margin-bottom: 1.25rem;
}

.field label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--accent-deep);
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  background: rgba(20, 20, 35, 0.6);
  color: var(--text);
  font: inherit;
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  -webkit-appearance: none;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(93, 122, 70, 0.5);
  box-shadow: 0 0 0 4px rgba(93, 122, 70, 0.12);
  background: rgba(25, 25, 40, 0.8);
}

.field textarea {
  min-height: 160px;
  resize: vertical;
}

.field-inline {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.field-inline input {
  flex: 1;
  min-width: 200px;
}

.form-hint {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.form-status {
  display: none;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.form-status.success {
  display: block;
  background: rgba(93, 122, 70, 0.14);
  border: 1px solid rgba(63, 91, 44, 0.26);
  color: var(--accent-deep);
}

.form-status.error {
  display: block;
  background: rgba(143, 88, 52, 0.12);
  border: 1px solid rgba(143, 88, 52, 0.24);
  color: var(--accent-warm);
}

footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  color: rgba(224, 220, 212, 0.78);
  font-size: 0.9rem;
  line-height: 1.4;
  padding: 0.75rem 0;
}

footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}

footer p {
  margin: 0;
}

footer a,
.footer-social a {
  color: #c0b89e;
  text-decoration: none;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.pixel-divider {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin: 0 auto;
}

.pixel-divider span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent-soft);
}

.pixel-divider span:nth-child(2),
.pixel-divider span:nth-child(4) {
  background: var(--accent);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 820px) {
  .nav-inner {
    padding-inline: 1rem;
  }

  .hero-panel {
    padding: 2rem 1.5rem;
  }

  .contact-wrapper {
    padding: 1.25rem;
  }
}

@media (max-width: 620px) {
  section {
    padding: 2.5rem 0;
  }

  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    gap: 0.5rem 1.1rem;
  }

  .nav-links a {
    padding: 0.4rem 0.15rem;
    border-bottom-width: 3px;
  }

  .nav-links a[aria-current='page'] {
    color: #fff;
    border-bottom-color: var(--accent-warm);
    background: rgba(192, 132, 74, 0.18);
  }

  footer .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-title {
    letter-spacing: 0.12em;
  }

  .ml-form {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}

/* ── Art lightbox ── */
.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 3.5rem 1rem 1rem;
  border: 0;
  background: rgba(10, 10, 18, 0.94);
  color: var(--text);
}

.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  height: 100%;
}

.lightbox-image {
  flex: 1;
  min-height: 0;
  width: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}

.lightbox-caption {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-align: center;
}

.lightbox-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--border);
  background: rgba(20, 20, 35, 0.8);
  color: var(--text);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-btn:hover,
.lightbox-btn:focus-visible {
  border-color: var(--accent-warm);
  color: #fff;
}

.lightbox-close { top: 0.75rem; right: 0.75rem; }
.lightbox-prev  { left: 0.5rem;  top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 0.5rem; top: 50%; transform: translateY(-50%); }

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.8);
}

@media (max-width: 620px) {
  .art-grid {
    gap: 0.4rem;
    grid-template-columns: repeat(3, 1fr);
  }

  .art-tile {
    border-radius: 8px;
  }

  .art-tile:hover {
    transform: none;
  }

  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 0.75rem;
    transform: none;
  }
}

/* ── Click-to-load embeds ── */
.embed-load {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  height: 166px;
  padding: 0 1.25rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(20, 20, 35, 0.6);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
}

.embed-load:hover,
.embed-load:focus-visible {
  border-color: var(--accent-warm);
}

.embed-load-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff8ee;
  font-size: 0.9rem;
}

iframe[hidden] {
  display: none !important;
}
