:root {
  color-scheme: dark;
  --ink: #0d0e0d;
  --panel: #1b1d1a;
  --panel-strong: #272922;
  --metal: #3d3f38;
  --line: #6d705f;
  --paper: #eef1e7;
  --muted: #b7bca8;
  --vault-yellow: #f5c542;
  --signal-green: #7cff9d;
  --warning-red: #d94b3d;
  --shadow: rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--ink);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--paper);
  font-family: "Arial Narrow", "Franklin Gothic Medium", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: 0;
  background:
    linear-gradient(90deg, rgba(245, 197, 66, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(124, 255, 157, 0.035) 1px, transparent 1px),
    var(--ink);
  background-size: 56px 56px, 56px 56px, auto;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.025),
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px,
      transparent 4px
    );
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 20;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--vault-yellow);
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--paper);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 900;
}

.brand img {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  border: 2px solid var(--vault-yellow);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 20px var(--shadow);
}

.brand span {
  overflow-wrap: anywhere;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-links a,
.site-footer a {
  min-height: 40px;
  padding: 8px 12px;
  color: var(--paper);
  text-decoration: none;
  border: 1px solid rgba(238, 241, 231, 0.2);
  border-radius: 8px;
  background: rgba(27, 29, 26, 0.78);
}

.nav-links a:hover,
.nav-links a:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--ink);
  background: var(--vault-yellow);
  border-color: var(--vault-yellow);
}

.nav-links [aria-current="page"] {
  color: var(--signal-green);
  border-color: rgba(124, 255, 157, 0.5);
}

.hero-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(210px, 260px) minmax(0, 1fr);
  align-items: center;
  gap: 30px;
  width: min(1180px, calc(100% - 32px));
  min-height: 360px;
  margin: 8px auto 0;
  padding: 32px;
  overflow: hidden;
  border: 1px solid rgba(245, 197, 66, 0.42);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(13, 14, 13, 0.94), rgba(13, 14, 13, 0.74) 46%, rgba(13, 14, 13, 0.96)),
    linear-gradient(180deg, rgba(217, 75, 61, 0.12), rgba(13, 14, 13, 0.2)),
    url("assets/appalachian-mountains-wv-banner.jpg") center / cover no-repeat,
    var(--panel);
  box-shadow: 0 24px 60px var(--shadow);
}

.hero-band::after {
  position: absolute;
  right: 0;
  bottom: 26px;
  left: 0;
  height: 7px;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(217, 75, 61, 0.86), rgba(245, 197, 66, 0.72), transparent);
}

.hero-band::before,
.content-band::before,
.page-intro::before,
.guide-card::before {
  position: absolute;
  inset: 10px;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(238, 241, 231, 0.16);
  border-radius: 6px;
}

.hero-sidebar,
.hero-art {
  position: relative;
  z-index: 1;
}

.hero-sidebar {
  display: grid;
  gap: 16px;
  align-self: stretch;
  align-content: start;
}

.hero-art img {
  width: min(100%, 160px);
  border-radius: 8px;
  border: 3px solid var(--vault-yellow);
  box-shadow: 0 18px 36px var(--shadow);
}

.admin-note {
  padding: 16px;
  border: 1px solid rgba(245, 197, 66, 0.58);
  border-radius: 8px;
  background: rgba(13, 14, 13, 0.82);
  box-shadow: 0 14px 28px var(--shadow);
}

.admin-note ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-note li {
  color: var(--paper);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.eyebrow,
.channel-kicker {
  margin: 0 0 10px;
  color: var(--signal-green);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  color: var(--vault-yellow);
  font-size: 3.8rem;
  text-shadow: 4px 4px 0 rgba(0, 0, 0, 0.55);
}

h2 {
  color: var(--vault-yellow);
  font-size: 2.6rem;
}

h3 {
  color: var(--paper);
  font-size: 1.35rem;
}

p {
  margin: 16px 0 0;
}

.hero-copy p:not(.eyebrow),
.section-heading p,
.page-intro p,
.guide-copy p,
.feature-link span,
.discord-join span,
.voice-link span,
.discord-channel-list span {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.hero-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-badges span {
  min-height: 34px;
  padding: 7px 12px;
  color: var(--paper);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
  border: 1px solid rgba(238, 241, 231, 0.22);
  border-radius: 8px;
  background: rgba(13, 14, 13, 0.76);
}

.hero-badges .nuka-cap {
  color: var(--paper);
  background: var(--warning-red);
  border-color: rgba(238, 241, 231, 0.62);
  box-shadow: inset 0 0 0 2px rgba(245, 197, 66, 0.32);
}

.button,
.discord-join,
.voice-link,
.discord-channel-list a,
.feature-link,
.guide-image-button {
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  border-radius: 8px;
}

.button.primary {
  color: var(--ink);
  background: var(--vault-yellow);
  border: 2px solid var(--vault-yellow);
}

.button.secondary {
  color: var(--paper);
  background: rgba(27, 29, 26, 0.62);
  border: 2px solid rgba(238, 241, 231, 0.35);
}

.button:hover,
.button:focus-visible,
.discord-join:hover,
.discord-join:focus-visible,
.voice-link:hover,
.voice-link:focus-visible,
.discord-channel-list a:hover,
.discord-channel-list a:focus-visible,
.feature-link:hover,
.feature-link:focus-visible {
  transform: translateY(-2px);
}

.content-band,
.page-intro,
.guide-card {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  padding: 42px;
  border: 1px solid rgba(109, 112, 95, 0.7);
  border-radius: 8px;
  background: rgba(27, 29, 26, 0.92);
  box-shadow: 0 18px 44px var(--shadow);
}

.section-heading,
.discord-layout,
.page-intro > *,
.guide-card > *,
.compact-band > * {
  position: relative;
  z-index: 1;
}

.section-heading {
  max-width: 760px;
}

.discord-layout {
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
  gap: 22px;
  margin-top: 28px;
}

.discord-join,
.voice-link,
.discord-channel-list a,
.feature-link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  color: var(--paper);
  text-decoration: none;
  border-radius: 8px;
}

.discord-join {
  min-height: 280px;
  justify-content: flex-end;
  padding: 26px;
  color: var(--ink);
  background:
    linear-gradient(145deg, rgba(245, 197, 66, 0.92), rgba(124, 255, 157, 0.78)),
    var(--vault-yellow);
  border: 2px solid var(--vault-yellow);
}

.discord-join span,
.discord-join .channel-kicker {
  color: rgba(13, 14, 13, 0.82);
}

.discord-join strong,
.voice-link strong,
.feature-link strong {
  font-size: 1.5rem;
  line-height: 1.1;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.discord-destinations {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.voice-link {
  padding: 22px;
  background: rgba(39, 41, 34, 0.96);
  border: 1px solid rgba(124, 255, 157, 0.45);
}

.text-channel-panel {
  display: grid;
  gap: 18px;
}

.discord-channel-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.discord-channel-list a {
  min-height: 112px;
  padding: 18px;
  background: rgba(13, 14, 13, 0.64);
  border: 1px solid rgba(238, 241, 231, 0.16);
}

.discord-channel-list strong {
  color: var(--vault-yellow);
  text-transform: uppercase;
}

.split-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 420px);
  align-items: center;
  gap: 28px;
}

.feature-link {
  min-height: 180px;
  justify-content: center;
  padding: 24px;
  border: 1px solid rgba(245, 197, 66, 0.42);
  background: rgba(13, 14, 13, 0.7);
}

.page-intro {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.guide-grid {
  display: grid;
  gap: 28px;
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
}

.guide-card {
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
  gap: 26px;
  align-items: center;
}

.guide-copy {
  align-self: start;
}

.guide-image-button {
  position: relative;
  min-width: 0;
  min-height: 280px;
  padding: 0;
  overflow: hidden;
  color: var(--paper);
  cursor: zoom-in;
  border: 2px solid rgba(245, 197, 66, 0.44);
  border-radius: 8px;
  background: rgba(13, 14, 13, 0.76);
}

.guide-image-button:hover,
.guide-image-button:focus-visible {
  border-color: var(--vault-yellow);
  transform: translateY(-2px);
}

.guide-image {
  width: 100%;
  max-height: 780px;
  object-fit: contain;
  background: #050505;
}

.guide-missing {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 24px;
  color: var(--muted);
  font: inherit;
}

.guide-image-button.is-missing {
  cursor: default;
}

.guide-image-button.is-missing .guide-image {
  display: none;
}

.guide-image-button.is-missing .guide-missing {
  display: flex;
}

.compact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer {
  padding: 32px 0 40px;
  color: var(--muted);
}

.site-footer span {
  font-weight: 900;
  text-transform: uppercase;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 72px 18px 24px;
  background: rgba(0, 0, 0, 0.9);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(100%, 1200px);
  max-height: calc(100vh - 120px);
  object-fit: contain;
  border: 2px solid var(--vault-yellow);
  border-radius: 8px;
  background: #050505;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  min-height: 44px;
  padding: 10px 14px;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  background: var(--vault-yellow);
  border: 0;
  border-radius: 8px;
}

@media (max-width: 860px) {
  .site-header,
  .site-footer,
  .compact-band {
    align-items: stretch;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero-band,
  .discord-layout,
  .split-band,
  .guide-card {
    grid-template-columns: 1fr;
  }

  .hero-band {
    min-height: auto;
    padding: 34px;
  }

  .hero-art img {
    width: 140px;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2rem;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .site-header,
  .site-footer,
  .hero-band,
  .content-band,
  .page-intro,
  .guide-grid {
    width: min(100% - 20px, 1180px);
  }

  .brand {
    align-items: flex-start;
  }

  .nav-links a,
  .site-footer a {
    width: 100%;
  }

  .hero-band,
  .content-band,
  .page-intro,
  .guide-card {
    padding: 24px;
  }

  h1 {
    font-size: 2.35rem;
  }

  h2 {
    font-size: 1.65rem;
  }

  .hero-actions,
  .discord-channel-list {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .discord-channel-list {
    display: grid;
  }
}
