:root {
  color-scheme: dark;
  --ink: #120b09;
  --paper: #f1e6d1;
  --rust: #d64a32;
  --acid: #c6b65d;
  --muted: #b5a99a;
  --rule: rgba(241, 230, 209, 0.3);
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  margin: 0;
  background-color: var(--ink);
  background-image: linear-gradient(rgba(11, 7, 6, 0.38), rgba(11, 7, 6, 0.72)), url("/xdementia/images/xd_website_bg_war.jpg");
  background-position: center top;
  background-attachment: fixed;
  background-size: clamp(2560px, 100vw, 3634px) clamp(1440px, 100vh, 1999px);
  background-repeat: no-repeat;
  color: var(--paper);
  font-family: "Special Elite", Georgia, serif;
  line-height: 1.65;
}

a {
  color: inherit;
}

.site-column {
  position: relative;
  isolation: isolate;
  width: min(100% - 32px, 960px);
  min-height: 100vh;
  margin-inline: auto;
  padding: 0 84px;
  background: rgba(14, 10, 9, 0.9);
  box-shadow: 0 0 70px rgba(0, 0, 0, 0.65);
}

.site-column::before,
.site-column::after {
  position: absolute;
  z-index: -1;
  inset-block: 0;
  width: 72px;
  background: url("/xdementia/images/xd_bandcamp_borders.png") repeat-y left top;
  content: "";
  pointer-events: none;
}

.site-column::before {
  left: -65px;
}

.site-column::after {
  right: -65px;
  transform: scaleX(-1);
}

.site-header {
  padding-top: 28px;
}

.brand {
  display: block;
  width: min(100%, 610px);
  margin: 0 auto 16px;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.8vw, 22px);
  padding: 6px 0;
  min-height: 54px;
  border-block: 1px solid var(--rust);
  font-family: Oswald, Impact, sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
}

.main-nav a {
  color: var(--paper);
  text-decoration: none;
  transition: color 160ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--acid);
}

.main-nav a[aria-current="page"] {
  color: var(--acid);
}

.hero {
  position: relative;
  margin: 28px 0 0;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: #080707;
}

.hero-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1000 / 730;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(0.86) contrast(1.08);
}

.hero-caption {
  position: absolute;
  inset: auto 0 0;
  padding: 55px 28px 22px;
  background: linear-gradient(transparent, rgba(9, 7, 7, 0.92));
}

.eyebrow,
.section-index {
  margin: 0;
  color: var(--acid);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.content-section h2 {
  margin: 6px 0 0;
  font-family: Oswald, Impact, sans-serif;
  font-weight: 700;
  line-height: 0.98;
  text-transform: uppercase;
}

.hero h1 {
  color: var(--paper);
  font-size: clamp(32px, 6vw, 60px);
}

.page-title {
  margin: 6px 0 20px;
  color: var(--rust);
  font-family: Oswald, Impact, sans-serif;
  font-size: 38px;
  font-weight: 700;
  line-height: 0.98;
  text-transform: uppercase;
}

.connect {
  padding: 26px 0 30px;
  border-bottom: 1px dashed var(--rule);
  text-align: center;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 15px;
}

.social-link {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--rule);
  background: rgba(0, 0, 0, 0.45);
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-3px) rotate(-2deg);
  border-color: var(--rust);
  background-color: rgba(214, 74, 50, 0.16);
}

.social-link img {
  display: block;
  width: 23px;
  height: 23px;
  object-fit: contain;
}

.social-link img.subvert-icon {
  filter: invert(1);
  mix-blend-mode: screen;
}

.mailing-list {
  max-width: 540px;
  margin: 26px auto 0;
}

.mailing-list + .eyebrow {
  margin-top: 28px;
}

.mailing-list-form {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.mailing-list-form input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: 0;
  background: rgba(0, 0, 0, 0.65);
  color: var(--paper);
  font: inherit;
}

.mailing-list-form input[type="email"]:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 2px;
}

.mailing-list-form button {
  padding: 10px 18px;
  border: 1px solid var(--rust);
  border-radius: 0;
  background: var(--rust);
  color: var(--paper);
  font: 600 15px Oswald, Impact, sans-serif;
  text-transform: uppercase;
  cursor: pointer;
}

.mailing-list-form button:hover,
.mailing-list-form button:focus-visible {
  background: #a93424;
}

.mailing-list-note {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.content-section {
  padding: 42px 0;
  border-bottom: 1px dashed var(--rule);
  scroll-margin-top: 20px;
}

.content-section h2 {
  margin: 5px 0 20px;
  color: var(--rust);
  font-size: 38px;
}

.news-list .news-item {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 112px;
  align-items: center;
  gap: 18px;
  max-width: 800px;
  padding: 17px 0;
  border-top: 1px solid var(--rule);
  color: var(--paper);
  text-decoration: none;
  transition: background-color 160ms ease;
}

.news-list .news-item:last-child {
  border-bottom: 1px solid var(--rule);
}

.news-list .news-item:hover,
.news-list .news-item:focus-visible {
  background: rgba(214, 74, 50, 0.1);
}

.news-date {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.news-month {
  color: var(--rust);
  font-family: Oswald, Impact, sans-serif;
  font-size: 13px;
  text-transform: uppercase;
}

.news-year {
  color: var(--acid);
  font-family: Oswald, Impact, sans-serif;
  font-size: 24px;
}

.news-details {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.news-details strong {
  color: var(--paper);
  font-size: 18px;
  font-weight: 400;
}

.news-details small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.news-thumb {
  display: block;
  width: 112px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--rule);
  background: #080707;
}

.news-thumb-empty {
  background: linear-gradient(135deg, rgba(214, 74, 50, 0.2), rgba(198, 182, 93, 0.08));
}

.news-status {
  margin: 18px 0;
  color: var(--muted);
}

.news-error { color: var(--paper); }

.news-story-date {
  margin: 0 0 8px;
  color: var(--acid);
  font-family: Oswald, Impact, sans-serif;
  font-size: 14px;
  text-transform: uppercase;
}

.news-story-image {
  display: block;
  width: min(100%, 680px);
  max-height: 560px;
  margin: 0 0 24px;
  object-fit: contain;
  object-position: left center;
}

.news-story-content {
  color: var(--paper);
  overflow-wrap: anywhere;
}

.news-story-content img,
.news-story-content video,
.news-story-content iframe {
  max-width: 100%;
}

.news-story-content img {
  height: auto;
}

.news-story-content table {
  max-width: 100%;
}

.news-story-content pre {
  max-width: 100%;
  overflow-x: auto;
}

.news-story-content a {
  color: var(--acid);
}

.news-story-content .xd-show-summary {
  width: 100%;
  margin-inline: 0;
}

.news-story-back {
  margin-top: 26px;
}

.news-item p,
.section-copy,
.about-copy {
  margin: 0;
  max-width: 680px;
  color: var(--paper);
  font-size: 16px;
}

.news-item strong {
  font-size: 18px;
}

.text-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-top: 20px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--rust);
  color: var(--acid);
  text-decoration: none;
}

.text-link span {
  color: var(--rust);
}

.release-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.release-list li {
  display: grid;
  grid-template-columns: 54px 88px minmax(0, 1fr);
  column-gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
}

.release-year {
  color: var(--acid);
  font-family: Oswald, Impact, sans-serif;
  font-size: 20px;
}

.release-cover {
  display: block;
  width: 88px;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--rule);
  background: #080707;
}

.release-cover-empty {
  background: linear-gradient(135deg, rgba(214, 74, 50, 0.24), rgba(198, 182, 93, 0.08));
}

.release-info {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.release-list strong {
  font-size: 16px;
  font-weight: 400;
}

.release-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  color: var(--muted);
  font-size: 12px;
}

.release-labels a {
  color: var(--acid);
  text-decoration-color: var(--rust);
  text-underline-offset: 3px;
}

.release-badge {
  justify-self: start;
  padding: 0;
  color: var(--muted);
  font: 12px/1.35 "Special Elite", Georgia, serif;
}

.release-status {
  display: block !important;
  color: var(--muted);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.video-grid iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--rule);
  background: #050505;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 28px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.site-footer a {
  color: var(--paper);
  text-decoration-color: var(--rust);
  text-underline-offset: 4px;
}

@media (max-width: 640px) {
  .site-column {
    width: 100%;
    padding-inline: 20px;
  }

  .site-column::before,
  .site-column::after {
    display: none;
  }

  .site-header {
    padding-top: 20px;
  }

  .brand {
    width: min(100%, 480px);
  }

  .main-nav {
    min-height: 48px;
    column-gap: 14px;
    row-gap: 0;
    justify-content: center;
    font-size: 13px;
  }

  .hero {
    margin-top: 20px;
  }

  .hero-photo {
    min-height: 280px;
    aspect-ratio: 4 / 3;
  }

  .hero-caption {
    padding: 45px 16px 16px;
  }

  .eyebrow,
  .section-index {
    font-size: 10px;
  }

  .content-section {
    padding: 34px 0;
  }

  .content-section h2 {
    font-size: 34px;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .news-list .news-item {
    grid-template-columns: 58px minmax(0, 1fr) 76px;
    gap: 11px;
  }

  .news-thumb {
    width: 76px;
  }

  .release-list li {
    grid-template-columns: 42px 68px minmax(0, 1fr);
    column-gap: 10px;
    padding: 12px 0;
  }

  .release-cover {
    width: 68px;
  }

  .release-year {
    font-size: 16px;
  }

  .release-list strong {
    font-size: 14px;
  }
}

@media (max-width: 380px) {
  .site-column {
    padding-inline: 14px;
  }

  .main-nav {
    column-gap: 10px;
    font-size: 11px;
  }

  .social-links {
    gap: 8px;
  }

  .social-link {
    width: 43px;
    height: 43px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}