/* ==========================================================================
   Wearg — the 2005 "ritual" layout (after archgoat.com, Feb 2006), rebuilt.
   Desktop (≥ 960px) keeps the fixed composition; narrower screens scale
   fluidly; under 600px the nav drops out of the photo into its own row.
   ========================================================================== */

:root {
  --bg: #000;
  --ink: #fff;
  --muted: #9a9a9a;
  --red: #c8141e;          /* large red: nav, headings */
  --red-text: #e42a32;     /* small red text: lifted so it stays readable */
  --red-hi: #ff2a2a;
  --frame-line: #bbb;

  --shell: 940px;          /* header photo width */
  --frame: 560px;          /* distance between the dotted rails */
  --column: 480px;         /* text column */
  --art-h: 330px;          /* masthead height; the logo and nav are placed within it */
  /* Backdrop art (1206 × 631), scaled so its dotted rails sit exactly --frame apart */
  --bd-w: 1419px;
  --bd-h: 742px;

  --serif: "Times New Roman", Times, "Liberation Serif", Georgia, serif;
  --black: "UnifrakturMaguntia", "Old English Text MT", "Cloister Black", serif;

  --step-0: 15px;
  --step-date: 14px;
  --step-nav: 25px;
}

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

html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  color: var(--ink);
  /* Backdrop: centered at the top, edges and bottom burned into the page black */
  background:
    linear-gradient(to right, var(--bg), transparent 7%, transparent 93%, var(--bg)) center top / var(--bd-w) var(--bd-h) no-repeat,
    linear-gradient(to bottom, transparent 72%, var(--bg)) center top / var(--bd-w) var(--bd-h) no-repeat,
    url("/img/backdrop.webp?v=2") center top / var(--bd-w) var(--bd-h) no-repeat,
    var(--bg);
  font: var(--step-0)/1.47 var(--serif);
  text-align: center;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover, a:focus-visible { color: var(--red-hi); }
:focus-visible { outline: 1px dotted var(--red-hi); outline-offset: 3px; }
.red { color: var(--red-text); text-decoration: none; }
.muted { color: var(--muted); }

.skip { position: absolute; left: -9999px; top: 0; z-index: 10; background: var(--ink); color: var(--bg); padding: .6em 1em; }
.skip:focus { left: 1rem; top: 1rem; }

/* --- Shell + rails --------------------------------------------------- */

.shell {
  position: relative;
  width: min(var(--shell), 100%);
  margin: 0 auto;
  padding: 24px 0 160px;
}

/* The two thin dotted rails flanking the column, fading out down the page */
.shell::before {
  display: none; /* rails now come from the backdrop art; set to block to bring these back */
  content: "";
  position: absolute;
  z-index: 0;
  top: 234px;
  left: 50%;
  width: var(--frame);
  height: 780px;
  transform: translateX(-50%);
  pointer-events: none;
  background:
    repeating-linear-gradient(to bottom, var(--frame-line) 0 3px, transparent 3px 7px) left / 1px 100% no-repeat,
    repeating-linear-gradient(to bottom, var(--frame-line) 0 3px, transparent 3px 7px) right / 1px 100% no-repeat;
  -webkit-mask-image: linear-gradient(#000 0 70%, transparent);
          mask-image: linear-gradient(#000 0 70%, transparent);
}

/* --- Masthead -------------------------------------------------------- */

.masthead {
  position: relative;
  z-index: 1;
  height: var(--art-h);
}

/* Logo centered over the photo */
.masthead__mark {
  position: absolute;
  inset: -3.2% 0 13%;   /* logo box: 10% taller than the original 5%/13%, bottom edge unchanged */
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 0;
}
.masthead__mark a { display: block; height: 100%; }
.masthead__logo {
  height: 100%;
  width: auto;
  max-width: none;
  filter: drop-shadow(0 0 14px rgb(0 0 0 / .85));
}

.masthead__nav {
  position: absolute;
  left: 0; right: 0;
  top: 87.5%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 .9em;
  font: var(--step-nav)/1 var(--black);
}
.masthead__nav a {
  color: var(--red);
  text-decoration: none;
  text-shadow: 0 0 6px rgba(200, 20, 30, .35);
  transition: color .12s, text-shadow .12s;
}
.masthead__nav a:hover,
.masthead__nav a:focus-visible {
  color: var(--red-hi);
  text-shadow: 0 0 10px rgba(255, 42, 42, .6);
}

/* --- Column ---------------------------------------------------------- */

.column {
  position: relative;
  z-index: 1;
  width: min(var(--column), 100% - 2rem);
  margin: 58px auto 0;
}

.column p { margin: 0 0 .1em; }

.tagline {
  color: var(--muted);
  font-variant: small-caps;
  letter-spacing: .3em;
  padding-left: .3em;
}
.runes {
  color: #6e6e6e;
  letter-spacing: 1.1em;
  padding-left: 1.1em;
  margin-top: .4em !important;
}

section { margin-top: 2.2em; scroll-margin-top: 1.5em; }
.column .section-divider { margin: 2.6em auto 0; }

.section-title {
  margin: 0 0 1em;
  font: 400 calc(var(--step-nav) + 3px)/1 var(--black);
  color: var(--red);
}

.entry { margin: 0 0 2.2em; }

.date {
  display: block;
  color: var(--red-text);
  font-size: var(--step-date);
  font-variant-numeric: oldstyle-nums;
  letter-spacing: .01em;
}

.release__title {
  margin: .15em 0 0;
  font: 400 34px/1.1 var(--black);
}

.flyer { margin: 1em auto 0; width: 370px; max-width: 100%; border: 1px solid #555; }
.flyer img { width: 100%; }

.release__body { margin-top: .9em; }

.player { width: 370px; max-width: 100%; margin: .9em auto 0; }
.player iframe { border: 0; width: 100%; height: 42px; display: block; }

.quote { margin: 1em 0 0; }
.quote blockquote { margin: 0; font-style: italic; font-size: 17px; line-height: 1.4; }
.quote figcaption { color: var(--muted); margin-top: .2em; }
.quote figcaption a { color: var(--muted); }
.quote figcaption a:hover, .quote figcaption a:focus-visible { color: var(--red-hi); }

.release__links { margin-top: .8em !important; }

.press { margin-top: .4em !important; }
.press .date { margin-bottom: .1em; }

.shows { list-style: none; margin: 0 0 1em; padding: 0; }
.shows li { margin: 0 0 .9em; }
.no-shows { color: var(--muted); }
.booking { margin-top: .8em !important; }

.button {
  display: inline-block;
  margin-top: .9em;
  padding: .55em 1.6em;
  border: 1px solid var(--ink);
  text-decoration: none;
  letter-spacing: .06em;
  transition: background-color .12s, color .12s;
}
.button:hover, .button:focus-visible { background: var(--ink); color: var(--bg); }

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

.colophon { position: relative; z-index: 1; margin-top: 46px; }
.divider { width: 360px; max-width: 80%; margin: 0 auto 26px; opacity: .8; }
.colophon p { margin: 0; }

.social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .1em 1.1em;
  margin: 1.4em auto 0;
  max-width: var(--column);
  padding: 0 1rem;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.social a { padding: .5em 0; text-decoration: none; color: var(--muted); }
.social a:hover, .social a:focus-visible { color: var(--red-hi); }

.copyright { margin-top: 1.2em !important; color: var(--muted); font-size: 13px; }
.credit { color: #6e6e6e; font-size: 12px; margin-top: .3em !important; }
.credit a { color: var(--muted); }
.credit a:hover, .credit a:focus-visible { color: var(--red-hi); }

/* --- Below desktop: scale, don't scroll ------------------------------ */


@media (max-width: 600px) {
  /* Phones: the backdrop shrinks with the logo and fades out just below its ledge, so the
     wolf heads don't run under the text; the nav drops into its own row so it stays tappable */
  :root {
    --m-art-h: 210px;
    --bd-w: calc(var(--m-art-h) * 1419 / 330);
    --bd-h: calc(var(--m-art-h) * 742 / 330);
  }
  body {
    background-image:
      linear-gradient(to right, var(--bg), transparent 7%, transparent 93%, var(--bg)),
      linear-gradient(to bottom, transparent 38%, var(--bg) 41%),
      url("/img/backdrop.webp?v=2");
  }
  .shell { padding-top: 12px; }
  .masthead {
    height: auto;
    padding-top: var(--m-art-h);
  }
  .masthead__mark { inset: 0 0 auto; height: var(--m-art-h); padding: 0 0 20px; }
  .masthead__nav {
    position: static;
    padding: 0 1rem;
    gap: .2em .6em;
    font-size: 20px;
  }
  .masthead__nav a { padding: 4px 0; }
  /* Very narrow phones: Home drops out (the logo already links home) so the nav stays on one line */
  @media (max-width: 359px) { .masthead__nav a[href="/"] { display: none; } }
  .column { margin-top: 34px; }
  .release__title { font-size: 30px; }
}

/* --- Release pages --------------------------------------------------- */

.release__title a { color: inherit; text-decoration: none; }
.release__title a:hover, .release__title a:focus-visible { color: var(--red-hi); }
.flyer a { display: block; }
.more { margin-top: .4em !important; font-size: 14px; }
.more a { color: var(--muted); }
.more a:hover, .more a:focus-visible { color: var(--red-hi); }

.page-title {
  margin: .1em 0 0;
  font: 400 44px/1.05 var(--black);
  color: var(--ink);
}
.flyer--large { width: 440px; }
.release-page .player { width: 440px; }

.tracklist {
  list-style: none;
  counter-reset: track;
  width: 440px;
  max-width: 100%;
  margin: 1.4em auto 0;
  padding: 0;
  text-align: left;
}
.tracklist li {
  counter-increment: track;
  display: flex;
  align-items: baseline;
  gap: .6em;
  padding: .45em 0;
  border-bottom: 1px dotted #444;
}
.tracklist li::before {
  content: counter(track) ".";
  color: var(--red-text);
  font-size: var(--step-date);
  min-width: 1.4em;
}
.tracklist .rune { color: var(--muted); }
.tracklist .track { flex: 1; }
.tracklist .length { color: var(--muted); font-size: var(--step-date); font-variant-numeric: oldstyle-nums; }

.released { margin-top: .9em !important; color: var(--muted); font-size: 14px; }
.release__body { margin-top: 1.2em; }
.release__body p { margin: 0 0 .9em !important; }
.release-page .quote { margin-top: 1.4em; }
.back { margin-top: 2.2em !important; }
.back a { color: var(--muted); }
.back a:hover, .back a:focus-visible { color: var(--red-hi); }

@media (max-width: 600px) {
  .page-title { font-size: 36px; }
}

/* --- Releases page --------------------------------------------------- */
.page-title--red { color: var(--red); margin-bottom: 1em; }
.more--all { margin-top: 0 !important; margin-bottom: 1.4em !important; }

/* --- Shows ----------------------------------------------------------- */
.list-heading {
  margin: 1.8em 0 .8em;
  font: 400 var(--step-date)/1.4 var(--serif);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .2em;
}
.shows a { text-decoration: none; border-bottom: 1px solid #555; }
.shows a:hover, .shows a:focus-visible { border-bottom-color: currentColor; }
.show__place { margin-top: .5em !important; font-size: 17px; }
.show__lineup { margin-top: .4em !important; color: var(--muted); }
.show-page .flyer { margin-top: 1.4em; }
.show-page .button { margin-top: 1em; }

/* "« Back to Home" on every page except the home page */
.home-link { position: relative; z-index: 1; margin: 2em 0 0; font-size: 14px; }
.home-link a { color: var(--muted); }
.home-link a:hover, .home-link a:focus-visible { color: var(--red-hi); }

/* --- News -------------------------------------------------------------- */
.news-item { margin-bottom: 2em; }
.news-item__title { margin: .15em 0 .3em; font: 400 30px/1.1 var(--black); }
.news-item__title a { color: var(--ink); text-decoration: none; }
.news-item__title a:hover, .news-item__title a:focus-visible { color: var(--red-hi); }
.news-item__summary { color: #d6d6d6; }
.pager { margin: 1.4em 0 .4em; font-size: 15px; }
.pager a { color: var(--muted); }
.pager a:hover, .pager a:focus-visible { color: var(--red-hi); }
.feed-link { margin-top: 1.2em !important; font-size: 13px; }
.feed-link a { color: #6e6e6e; }
.feed-link a:hover, .feed-link a:focus-visible { color: var(--red-hi); }

/* Post text is left-aligned for comfortable reading; headings and dates stay centered */
.post__body { margin-top: 1.4em; text-align: left; }
.post__body p { margin: 0 0 1em !important; line-height: 1.6; }
.post__body h2, .post__body h3 { margin: 1.6em 0 .5em; font-weight: 400; color: var(--red); text-align: center; }
.post__body h2 { font: 400 26px/1.1 var(--black); }
.post__body h3 { font-size: var(--step-date); text-transform: uppercase; letter-spacing: .2em; }
.post__body img { margin: 1.2em auto; border: 1px solid #333; }
.post__body blockquote { margin: 1.2em 0; padding: 0 1.2em; font-style: italic; border-left: 1px solid var(--red); }
.post__body ul, .post__body ol { padding-left: 1.4em; }
.post__body a { color: var(--ink); }

/* --- About ------------------------------------------------------------- */
.bio { text-align: left; }
.bio p { margin: 0 0 1em !important; line-height: 1.6; }
.bio__omen { margin-top: 2em !important; text-align: center; font-style: italic; color: var(--red-text); }
