/* Chornitsa — dark & gritty theme */

:root {
  --bg: #0b0a0a;
  --bg-raised: #151313;
  --bg-sunken: #070606;
  --fg: #ece6dc;
  --fg-muted: #9c948a;
  --line: #2a2625;
  /* Blueberry purple from the logo */
  --accent: #8a3aa3;
  --accent-hot: #c27ad9;
  --accent-glow: rgba(138, 58, 163, .3);
  --font-brand: "Rubik Dirt", "Oswald", Impact, sans-serif;
  --font-display: "Oswald", Impact, "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 2px;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Film grain over everything */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  pointer-events: none;
  z-index: 100;
  opacity: .09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

img { max-width: 100%; display: block; }
a { color: inherit; }
a:hover { color: var(--accent-hot); }

:focus-visible {
  outline: 2px solid var(--accent-hot);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 200;
  background: var(--accent);
  color: #fff;
  padding: 8px 14px;
}
.skip-link:focus { left: 8px; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
/* Background lives on a pseudo-element: backdrop-filter on the header itself
   would become the containing block for the fixed mobile nav */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: rgba(11, 10, 10, .92);
  backdrop-filter: blur(6px);
  transition: opacity .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header.is-scrolled::before,
.nav-open .site-header::before { opacity: 1; }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.brand {
  font-family: var(--font-brand);
  font-size: 26px;
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav a {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
}

.lang-switch {
  display: flex;
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .1em;
}
.lang-switch a, .lang-switch span {
  padding: 4px 10px;
  text-decoration: none;
}
.lang-switch [aria-current] { background: var(--fg); color: var(--bg); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--fg);
  width: 44px;
  height: 44px;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: currentColor;
  margin: 6px 0;
  transition: transform .25s, opacity .25s;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: 64px 0 0 0;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    background: var(--bg);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .3s, visibility 0s .3s;
  }
  .nav-open .nav { transform: none; visibility: visible; transition: transform .3s; }
  .nav ul { flex-direction: column; align-items: center; gap: 22px; }
  .nav a { font-size: 26px; }
  .nav-open { overflow: hidden; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 120px 0 72px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 60% at 30% 45%, var(--accent-glow), transparent 70%),
    linear-gradient(180deg, rgba(11, 10, 10, .2) 0%, var(--bg) 92%),
    var(--hero-image, none) center / cover no-repeat,
    var(--bg-sunken);
}
.hero-bg::after {
  /* scratched / scanline texture */
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}

.hero-kicker {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .35em;
  font-size: 14px;
  color: var(--accent-hot);
  margin: 0 0 12px;
}
@media (max-width: 520px) {
  .hero-kicker { letter-spacing: .16em; font-size: 13px; }
}
.hero-title {
  font-family: var(--font-brand);
  font-weight: 400;
  /* "CHORNITSA" in Rubik Dirt is ~6.1em wide: fill the row without wrapping */
  font-size: clamp(36px, calc(16vw - 8px), 200px);
  line-height: .85;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: -.01em;
  white-space: nowrap;
  text-shadow: 4px 4px 0 var(--accent);
}
/* Logo + text side by side; stacked on phones */
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
}
.hero-logo { margin: 0; justify-self: center; }
.hero-logo img {
  width: auto;
  max-width: 100%;
  max-height: min(80svh, 760px);
  /* The logo is drawn on white: invert to light ink while keeping the purple,
     then screen-blend so the (now black) background disappears */
  filter: invert(1) hue-rotate(180deg) contrast(1.25) saturate(1.2);
  mix-blend-mode: screen;
}
@media (max-width: 820px) {
  .hero { align-items: center; padding: 88px 0 56px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 8px; }
  .hero-logo img { max-height: 56svh; }
  .hero-sub { margin-inline: auto; }
  .hero-actions { justify-content: center; }
}

.hero-sub {
  max-width: 34ch;
  font-size: clamp(17px, 2vw, 20px);
  color: var(--fg-muted);
  margin: 22px 0 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 26px;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--fg);
  border-radius: var(--radius);
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { background: var(--fg); color: var(--bg); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hot); border-color: var(--accent-hot); color: #fff; }
.btn-sm { min-height: 38px; padding: 7px 14px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: wait; }

/* ---------- Sections ---------- */

.section { padding: clamp(72px, 11vw, 140px) 0; border-top: 1px solid var(--line); }
.section-alt { background: var(--bg-raised); }

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(42px, 8vw, 88px);
  line-height: 1;
  text-transform: uppercase;
  margin: 0 0 clamp(36px, 6vw, 64px);
}

.empty {
  color: var(--fg-muted);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .14em;
  border: 1px dashed var(--line);
  padding: 32px;
  text-align: center;
}

/* ---------- Music ---------- */

.releases {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 32px;
}
.release-cover {
  aspect-ratio: 1;
  background: var(--bg-sunken);
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}
.release-cover img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.25) contrast(1.1); transition: filter .3s, transform .4s; }
.release:hover .release-cover img { filter: none; transform: scale(1.03); }
.release-cover.is-placeholder {
  display: grid;
  place-items: center;
  font-family: var(--font-brand);
  font-size: 64px;
  color: var(--line);
  background:
    radial-gradient(circle at 30% 30%, var(--accent-glow), transparent 60%),
    var(--bg-sunken);
}
.release h3 {
  font-family: var(--font-display);
  font-size: 26px;
  text-transform: uppercase;
  margin: 18px 0 2px;
  line-height: 1.15;
}
.release-meta { color: var(--fg-muted); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 14px; }
.stream-links { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Videos ---------- */

.videos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr));
  gap: 28px;
}
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000 center / cover no-repeat;
  border: 1px solid var(--line);
  cursor: pointer;
  overflow: hidden;
}
.video button {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.75), rgba(0,0,0,.1) 60%);
  color: var(--fg);
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 18px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.video .play {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
  transition: transform .2s, background .2s;
}
.video:hover .play { transform: scale(1.08); background: var(--accent-hot); }
.video .play::before {
  content: "";
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #fff;
  margin-left: 4px;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Shows ---------- */

.shows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.show {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  transition: background .15s;
}
.show:hover { background: rgba(255,255,255,.02); }
.show-date {
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 1;
}
.show-date .day { display: block; font-size: 44px; font-weight: 700; color: var(--accent-hot); }
.show-date .mon { font-size: 14px; letter-spacing: .18em; color: var(--fg-muted); }
.show-city { font-family: var(--font-display); font-size: 26px; text-transform: uppercase; line-height: 1.15; margin: 0; }
.show-venue { color: var(--fg-muted); margin: 2px 0 0; }

@media (max-width: 600px) {
  .show { grid-template-columns: 76px 1fr; gap: 6px 16px; }
  .show-date .day { font-size: 34px; }
  .show-city { font-size: 21px; }
  .show .btn { grid-column: 2; justify-self: start; margin-top: 8px; }
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.bio p { margin: 0 0 1.1em; }
.bio p:first-child { font-size: clamp(20px, 2.4vw, 25px); line-height: 1.45; color: var(--fg); }
.bio { color: var(--fg-muted); }

.band-photo {
  position: relative;
  margin: 0 0 clamp(40px, 6vw, 72px);
  border: 1px solid var(--line);
  overflow: hidden;
}
.band-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 50% 0%;  /* crop from the bottom so no heads get cut */
  filter: contrast(1.05);
}
@media (max-width: 600px) {
  .band-photo img { aspect-ratio: 4 / 3; }
}
.band-photo::after {
  /* fade the bottom edge into the section */
  content: "";
  position: absolute;
  inset: 55% 0 0 0;
  background: linear-gradient(transparent, var(--bg-raised));
  pointer-events: none;
}

.members-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent-hot);
  margin: 0 0 8px;
}
.members { list-style: none; margin: 0; padding: 0; }
.member {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.member-name { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(20px, 2.4vw, 26px); line-height: 1.2; }
.member-role { flex: none; color: var(--fg-muted); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.members-former {
  margin: 20px 0 0;
  color: var(--fg-muted);
  font-size: 15px;
}
.members-former strong { color: var(--fg); font-weight: 500; }

@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(32px, 6vw, 80px);
}
.contact-info p { color: var(--fg-muted); margin: 0 0 24px; }
.contact-email {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 28px);
  letter-spacing: .02em;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  margin-bottom: 36px;
  overflow-wrap: anywhere;
}
.socials { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.socials a {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  transition: border-color .15s, background .15s;
}
.socials a:hover { border-color: var(--accent); background: var(--accent); color: #fff; }
.socials svg { width: 22px; height: 22px; fill: currentColor; }

.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label {
  display: block;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  color: var(--fg);
  background: var(--bg-sunken);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  transition: border-color .15s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 0; min-height: 1.6em; font-size: 15px; }
.form-status.ok { color: #7fd18b; }
.form-status.err { color: var(--accent-hot); }

@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .form-row { grid-template-columns: 1fr; }
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  color: var(--fg-muted);
  font-size: 14px;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer .brand { font-size: 20px; color: var(--fg); }

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::after { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; }
}
