/* The Bleak Midwinter: dark, cold, worn.
   ✏️ To change colours, edit the variables below. */

@font-face {
  font-family: "IM Fell English";
  src: url("/fonts/im-fell-english.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IM Fell English";
  src: url("/fonts/im-fell-english-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}

:root {
  --bg: #070708;          /* almost black */
  --bg-alt: #0c0c0e;      /* barely lighter, for alternating sections */
  --surface: #121214;
  --text: #d9d8d3;        /* cold bone white */
  --muted: #85837e;       /* ash */
  --accent: #c9ccce;      /* frost grey (links, highlights) */
  --accent-strong: #ffffff;
  --line: #222225;        /* hairlines */
  --error: #d98c8c;
  --ok: #b5c4b5;

  --font-display: "IM Fell English", "Iowan Old Style", Georgia, serif;
  --font-body: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --max: 70rem;
  --narrow: 42rem;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.75 var(--font-body);
}
/* Film grain over everything. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-color: rgba(201, 204, 206, 0.35); text-underline-offset: 0.2em; }
a:hover { color: var(--accent-strong); text-decoration-color: currentColor; }
:focus-visible { outline: 1px solid var(--accent-strong); outline-offset: 4px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; }
h2 {
  font-size: clamp(2rem, 6vw, 2.75rem);
  margin: 0 0 2.5rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}
/* Thin thorn-like divider under section titles. */
h2::after {
  content: "";
  display: block;
  width: 9rem; height: 1px;
  margin: 1.1rem auto 0;
  background: linear-gradient(90deg, transparent, var(--muted) 30%, var(--muted) 70%, transparent);
}

.visually-hidden, .hp {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link { position: absolute; left: 1rem; top: -3rem; z-index: 200; background: var(--text); color: var(--bg); padding: 0.5rem 1rem; }
.skip-link:focus { top: 1rem; }

.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.container.narrow { max-width: var(--narrow); }
.section { padding: clamp(4.5rem, 11vw, 8rem) 0; }
.section-alt { background: var(--bg-alt); }

/* ── Buttons: thin outlines, sharp corners ── */
.button {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border: 1px solid rgba(217, 216, 211, 0.55);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font: 400 1rem/1 var(--font-display);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.button:hover { background: var(--text); border-color: var(--text); color: var(--bg); }
.button-ghost { border-color: var(--line); color: var(--muted); }
.button-ghost:hover { background: transparent; border-color: var(--text); color: var(--text); }
.button-small { padding: 0.55rem 0.9rem; font-size: 0.85rem; }
.button:disabled { opacity: 0.5; cursor: wait; }

/* ── Social icons ── */
.icon { width: 1.25rem; height: 1.25rem; fill: currentColor; flex: none; }
.social-link { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none; }
.social-link:hover { color: var(--accent-strong); }

/* ── Header / nav ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 7, 8, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { width: min(100% - 2rem, var(--max)); margin-inline: auto; display: flex; align-items: center; gap: 1rem; min-height: 3.75rem; }
.nav-brand { font-family: var(--font-display); font-size: clamp(0.75rem, 3.6vw, 1.15rem); color: var(--text); text-decoration: none; letter-spacing: 0.12em; text-transform: uppercase; margin-right: auto; white-space: nowrap; }
.nav-social { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; order: 2; }
.nav-social a { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; color: var(--text); }
.nav-social a:hover { color: var(--accent-strong); }
.nav-toggle { background: none; border: 0; padding: 0.75rem; cursor: pointer; color: var(--text); order: 3; }
@media (max-width: 22.5rem) {
  .nav { gap: 0.25rem; }
  .nav-brand { letter-spacing: 0.05em; }
  .nav-social a { width: 2.25rem; }
  .nav-toggle { padding: 0.75rem 0.5rem; }
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  display: block; width: 1.4rem; height: 1px; background: currentColor; position: relative; transition: transform 0.2s;
}
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }
.nav-links {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  list-style: none; margin: 0; padding: 0.5rem 1rem 1rem;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.nav-links.open { display: block; }
.nav-links a { display: block; padding: 0.7rem 0; color: var(--muted); text-decoration: none; text-transform: uppercase; letter-spacing: 0.2em; font: 0.95rem var(--font-display); }
.nav-links a:hover { color: var(--text); }

@media (min-width: 52rem) {
  .nav-toggle { display: none; }
  .nav-links { display: flex; gap: 1.6rem; position: static; padding: 0; background: none; border: 0; order: 1; }
  .nav-links a { padding: 0.25rem 0; }
  .nav-social { margin-left: 1rem; padding-left: 1rem; border-left: 1px solid var(--line); }
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: min(94vh, 54rem);
  display: grid; place-items: center;
  text-align: center;
  overflow: hidden;
  /* ✏️ To use a band photo as background, add it here, e.g.:
     url("/images/hero.jpg") center / cover no-repeat, */
  background: radial-gradient(ellipse at 50% 45%, #141416 0%, #070708 65%);
}
/* No z-index here: it would isolate the logo and break its blend with the background. */
.hero-inner { position: relative; padding: 2rem 1rem 4rem; }
.hero-title { margin: 0; line-height: 0; }
.hero-logo {
  width: min(88vw, 34rem);
  margin-inline: auto;
  /* "screen" makes the logo's black background melt into the page, leaving only the frost. */
  mix-blend-mode: screen;
  /* Fade the edges so the grain in the logo's black background leaves no visible square. */
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
}
/* "DUTCH METALCORE" between two thin frost lines. */
.hero-tagline {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  color: var(--text); font: clamp(0.95rem, 3.2vw, 1.2rem)/1.2 var(--font-display);
  text-transform: uppercase; letter-spacing: 0.55em; margin: 0.25rem 0 2.25rem;
  padding-left: 0.55em; /* balances the trailing letter-spacing */
  animation: flicker 7s infinite;
}
.hero-tagline::before, .hero-tagline::after { content: ""; width: clamp(1.5rem, 8vw, 4rem); height: 1px; background: linear-gradient(90deg, transparent, var(--muted)); }
.hero-tagline::after { transform: scaleX(-1); }
/* A cold neon sign that stutters now and then. */
@keyframes flicker {
  0%, 91%, 93%, 96%, 100% { opacity: 1; }
  92%, 95% { opacity: 0.35; }
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.hero-social { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; justify-content: center; list-style: none; padding: 0; margin: 2.25rem 0 0; }
.hero-social .social-link { font: 1rem var(--font-display); letter-spacing: 0.08em; color: var(--muted); }
.hero-social .social-link:hover { color: var(--text); }

/* Interactive blizzard canvas. When it runs (html.has-blizzard) the CSS snow below is switched off. */
.blizzard { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.has-blizzard .snow { display: none; }

/* ── Glitch: every now and then the logo splits into blood-red and ice-blue slices (js/main.js). ── */
.hero-title { position: relative; }  /* no z-index: keeps the logo blend working */
.hero-title::before, .hero-title::after {
  content: ""; position: absolute; top: 0; left: 50%;
  width: min(88vw, 34rem); aspect-ratio: 1; translate: -50% 0;
  background: url("/images/logo.jpg") center / contain no-repeat;
  background-blend-mode: multiply;   /* tints the white frost, keeps the black black */
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
  opacity: 0; pointer-events: none;
}
.hero-title::before { background-color: #c4102a; }  /* blood */
.hero-title::after { background-color: #8fd3ff; }   /* ice */
.glitching .hero-title::before { animation: glitch-a 0.42s steps(1) infinite; }
.glitching .hero-title::after { animation: glitch-b 0.36s steps(1) infinite; }
@keyframes glitch-a {
  0%   { opacity: 0.9; transform: translate(-10px, 0); clip-path: inset(10% 0 62% 0); }
  25%  { opacity: 0.9; transform: translate(8px, 2px);  clip-path: inset(48% 0 30% 0); }
  50%  { opacity: 0.0; }
  75%  { opacity: 0.9; transform: translate(-6px, -2px); clip-path: inset(72% 0 8% 0); }
}
@keyframes glitch-b {
  0%   { opacity: 0.8; transform: translate(9px, 0);  clip-path: inset(30% 0 45% 0); }
  33%  { opacity: 0.0; }
  66%  { opacity: 0.8; transform: translate(-9px, 1px); clip-path: inset(5% 0 80% 0); }
}

/* Gentle snowfall, pure CSS. Disabled for people who prefer reduced motion. */
.snow, .snow::before, .snow::after {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.5), transparent 60%),
    radial-gradient(1.5px 1.5px at 120px 80px, rgba(255,255,255,0.4), transparent 60%),
    radial-gradient(2.5px 2.5px at 200px 160px, rgba(255,255,255,0.35), transparent 60%),
    radial-gradient(1px 1px at 80px 200px, rgba(255,255,255,0.45), transparent 60%),
    radial-gradient(2px 2px at 260px 240px, rgba(255,255,255,0.3), transparent 60%);
  background-size: 300px 300px;
  animation: snow-300 30s linear infinite;
  pointer-events: none;
}
.snow::before { content: ""; background-size: 220px 220px; animation-name: snow-220; animation-duration: 40s; opacity: 0.6; }
.snow::after { content: ""; background-size: 400px 400px; animation-name: snow-400; animation-duration: 24s; opacity: 0.8; }
/* Each layer moves exactly one tile, so the loop is seamless. */
@keyframes snow-300 { to { background-position: 0 300px; } }
@keyframes snow-220 { to { background-position: 0 220px; } }
@keyframes snow-400 { to { background-position: 0 400px; } }
@media (prefers-reduced-motion: reduce) {
  .snow, .snow::before, .snow::after, .hero-tagline { animation: none; }
  html { scroll-behavior: auto; }
}

/* ── Jagged ice edges on the alternating sections ── */
.section-alt { position: relative; }
.section-alt::before, .section-alt::after {
  content: ""; position: absolute; left: 0; right: 0; height: 22px;
  background: var(--bg-alt);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='22'%3E%3Cpath d='M0 22L7 9l5 7 9-16 6 12 8-6 5 9 10-13 6 15 7-8 6 6 9-12 7 10 5-5 6 14z'/%3E%3C/svg%3E") 0 0 / 96px 22px repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='22'%3E%3Cpath d='M0 22L7 9l5 7 9-16 6 12 8-6 5 9 10-13 6 15 7-8 6 6 9-12 7 10 5-5 6 14z'/%3E%3C/svg%3E") 0 0 / 96px 22px repeat-x;
  pointer-events: none;
}
.section-alt::before { bottom: calc(100% - 1px); }
.section-alt::after { top: calc(100% - 1px); transform: scaleY(-1); z-index: 1; }

/* ── Scroll reveal (only when js/main.js adds .reveal) ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.revealed { opacity: 1; transform: none; }
/* Section titles "thaw" from runes into letters (js/main.js).
   The real text stays in the HTML (for search engines and screen readers); the runes are drawn over it. */
h2.decoding { position: relative; color: transparent; }
h2.decoding::before { content: attr(data-runes); position: absolute; inset: 0 0 auto; color: var(--muted); }

/* ── About ── */
#about p { font-size: 1.1rem; }

/* ── Members ── */
.members { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 3rem 1.5rem; }
.member { text-align: center; flex: 0 1 12rem; }
.member { perspective: 700px; }
.member img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; max-width: 14rem; margin-inline: auto;
  filter: grayscale(1) contrast(1.15) brightness(0.8);
  /* Chipped corners, like a cracked slab of ice. */
  clip-path: polygon(0 5%, 7% 0, 62% 0, 66% 2%, 70% 0, 100% 0, 100% 91%, 91% 100%, 30% 100%, 26% 98%, 0 100%);
  transform: rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg));
  transition: filter 0.5s, transform 0.25s ease-out;
}
.member:hover img { filter: grayscale(0.85) contrast(1.25) brightness(1); }
.member h3 { font-size: 1.35rem; margin: 1rem 0 0.15rem; letter-spacing: 0.04em; }
.member p { margin: 0; color: var(--muted); font-family: var(--font-display); font-style: italic; }
@media (max-width: 30rem) { .member { flex-basis: calc(50% - 0.75rem); } .member h3 { font-size: 1.15rem; } }

/* ── Shows ── */
.shows { list-style: none; margin: 0; padding: 0; }
.show {
  display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1.25rem; align-items: center;
  padding: 1.25rem 0; border-bottom: 1px solid var(--line);
}
.show .button { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 36rem) {
  .show { grid-template-columns: 5rem 1fr auto; }
  .show .button { grid-column: auto; }
}
.show-date { display: flex; flex-direction: column; align-items: center; min-width: 4rem; font-family: var(--font-display); line-height: 1.1; }
.show-day { font-size: 2rem; color: var(--text); }
.show-month { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--muted); }
.show-info { display: flex; flex-direction: column; }
.show-info strong { font-family: var(--font-display); font-weight: 400; font-size: 1.2rem; }
.show-info span { color: var(--muted); font-size: 0.95rem; }
.shows-empty { color: var(--muted); text-align: center; padding: 1rem 0; font-style: italic; }
.past-shows { margin-top: 2rem; color: var(--muted); }
.past-shows summary { cursor: pointer; text-align: center; }
.shows-past .show { opacity: 0.6; }

/* ── Music ── */
.demo-callout { max-width: var(--narrow); margin: 0 auto 2.5rem; text-align: center; }
.demo-lead { font-family: var(--font-display); font-size: clamp(1.4rem, 4vw, 1.8rem); font-style: italic; margin-top: 0; color: var(--text); }
.demo-callout p { color: var(--muted); }
.demo-callout .button { margin-top: 1rem; }
.platforms { list-style: none; padding: 0; margin: 0 0 2.5rem; display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.embeds { display: grid; gap: 1.5rem; }
@media (min-width: 56rem) { .embeds { grid-template-columns: 1fr 1fr; } .embed-video { grid-column: 1 / -1; } }
.embed iframe { width: 100%; border: 0; display: block; }
.embed iframe.embed-video, .embed-video iframe { aspect-ratio: 16 / 9; height: auto; }

/* ── Photos ── */
.gallery { display: grid; gap: 0.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.gallery figure { margin: 0; overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: grayscale(1) contrast(1.1) brightness(0.8); transition: transform 0.6s, filter 0.6s; }
.gallery a:hover img, .gallery a:focus-visible img { transform: scale(1.03); filter: grayscale(0.4) brightness(1); }
.credit { color: var(--muted); font-size: 0.9rem; text-align: center; margin-top: 1.5rem; font-style: italic; }

/* ── Contact ── */
.contact-form { display: grid; gap: 1.5rem; margin-top: 2rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font: 0.95rem var(--font-display); text-transform: uppercase; letter-spacing: 0.18em; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; padding: 0.8rem 0.9rem;
  background: rgba(255, 255, 255, 0.02); color: var(--text);
  border: 1px solid var(--line); border-radius: 0;
  font: inherit;
}
.field select {
  appearance: none; padding-right: 2.5rem; cursor: pointer;
  background: rgba(255, 255, 255, 0.02) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2385837e' stroke-width='1.2' fill='none'/%3E%3C/svg%3E") no-repeat right 1rem center;
}
.field select option { background: var(--bg); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--muted); outline: none; }
.contact-form .button { justify-self: start; }
.form-status { margin: 0; min-height: 1.75em; }
.form-status-ok { color: var(--ok); }
.form-status-error { color: var(--error); }

/* ── Footer ── */
.site-footer { padding: 4rem 0 3rem; text-align: center; color: var(--muted); font-size: 0.9rem; border-top: 1px solid var(--line); }
.footer-follow { font: 1.1rem var(--font-display); text-transform: uppercase; letter-spacing: 0.22em; color: var(--text); margin: 0 0 1.25rem; }
.socials { list-style: none; padding: 0; margin: 0 0 2.5rem; display: flex; gap: 1rem 2.5rem; justify-content: center; flex-wrap: wrap; }
.socials .social-link { font: 1.15rem var(--font-display); letter-spacing: 0.06em; }
.socials .icon { width: 1.6rem; height: 1.6rem; }

/* ── Simple pages (thanks / 404 / errors) ── */
.simple-page { min-height: 100vh; display: grid; place-content: center; text-align: center; padding: 2rem 1rem; }
.simple-page h1 { font-size: clamp(2.5rem, 8vw, 4rem); margin: 0 0 1rem; }
