/* =========================================
   --- 1. RESET & VARIABLES ---
========================================= */
:root {
  --bg-obsidian: #0a0a0c;
  --bg-charcoal: #161619;
  --text-silver: #e2e2e8;
  --text-ash: #8a8a93;
  --accent-gold: #c5a869;
  --accent-bronze: #8b733f;
  --accent-blood: #8b0000;

  --font-heading: "Cormorant Garamond", serif;
  --font-body: "IM Fell English", serif;
  --font-script: "Great Vibes", cursive;
  --font-lore: "Jim Nightshade", cursive;
}

[data-theme="hope"] {
  --bg-obsidian: #f4f4f6;
  --bg-charcoal: #ffffff;
  --text-silver: #1a1a1d;
  --text-ash: #4a4a52;
  --accent-gold: #b8860b;
  --accent-bronze: #8b733f;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-obsidian);
  color: var(--text-silver);
  font-family: var(--font-body);
  line-height: 1.7;
  font-weight: 300;
  transition:
    background-color 0.5s ease,
    color 0.5s ease;
}

.content-section,
.force-card,
.feature-card,
.site-header,
.site-footer {
  transition:
    background-color 0.5s ease,
    border-color 0.5s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Spam honeypot field — must never be visible to real users */
.hidden-honeypot {
  display: none !important;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  text-align: center;
  margin-bottom: 2rem;
  background: linear-gradient(to bottom, var(--accent-gold), var(--accent-bronze));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* =========================================
   --- 2. BUTTONS ---
========================================= */
/* --- Accessibility: Keyboard Focus --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 4px; /* Keeps the outline from hugging the buttons too tightly */
}

[data-theme="hope"] a:focus-visible,
[data-theme="hope"] button:focus-visible,
[data-theme="hope"] input:focus-visible,
[data-theme="hope"] select:focus-visible,
[data-theme="hope"] textarea:focus-visible {
  outline-color: var(--accent-bronze);
}

.cta-button {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 2px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  transition: all 0.3s ease;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-button.primary {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-bronze));
  color: #0a0a0c;
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

.cta-button.primary:hover {
  background: linear-gradient(135deg, #d8bd82, var(--accent-gold));
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(197, 168, 105, 0.3);
}

.cta-button.primary.small {
  padding: 8px 16px;
  font-size: 1rem;
}

.cta-button.secondary {
  background-color: transparent;
  color: var(--accent-gold);
  border: 1px solid var(--accent-bronze);
}

.cta-button.secondary:hover {
  border-color: var(--accent-gold);
  background-color: rgba(197, 168, 105, 0.05);
}

/* =========================================
   --- 3. HEADER & NAVIGATION ---
========================================= */
.site-header {
  background-color: rgba(10, 10, 12, 0.9);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(139, 0, 0, 0.3);
}

[data-theme="hope"] .site-header {
  background-color: rgba(244, 244, 246, 0.95);
  border-bottom: 1px solid rgba(139, 115, 63, 0.3);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  max-height: 45px;
  width: auto;
  display: block;
  filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.8));
}

[data-theme="hope"] .logo-img {
  filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.1));
}

/* Base style for mobile toggle - HIDES it on Desktop */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--accent-gold);
  font-size: 2rem;
  cursor: pointer;
  z-index: 200;
  transition: color 0.3s ease;
}

[data-theme="hope"] .mobile-menu-toggle {
  color: var(--accent-bronze);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-silver);
  text-decoration: none;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent-blood);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.social-link {
  color: var(--text-ash);
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-link:hover {
  color: var(--text-silver);
}

/* =========================================
   --- 4. HERO SECTION & FOG ---
========================================= */
.top-realm-wrapper {
  position: relative;
  overflow: hidden;
}

.top-realm-wrapper::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 250px;
  background: linear-gradient(to bottom, transparent, var(--bg-obsidian));
  z-index: 1;
  pointer-events: none;
}

.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("assets/Axis_Saga_Cover_Final_2_elqhwo-800w.webp");
  background-attachment: fixed;
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 0;
  transition: filter 0.5s ease;
}

[data-theme="hope"] .parallax-bg {
  filter: brightness(1.1) contrast(1.05);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 12, 0.65);
  z-index: 1;
  transition: background 0.5s ease;
}

[data-theme="hope"] .hero-overlay {
  background: rgba(244, 244, 246, 0.55);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.hero {
  padding: 160px 0;
  text-align: center;
  background-color: transparent;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 4.5rem;
  margin-bottom: 1rem;
  line-height: 1.1;
  text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.8);
}

[data-theme="hope"] .hero-title {
  text-shadow: 0 2px 15px rgba(255, 255, 255, 0.9);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-ash);
  max-width: 650px;
  margin: 0 auto 3rem;
}

[data-theme="hope"] .hero-subtitle {
  color: var(--text-silver);
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.button-group {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

[data-theme="hope"] .hero .cta-button.secondary {
  background-color: rgba(255, 255, 255, 0.9);
  border: 2px solid var(--accent-bronze);
  color: var(--accent-bronze);
  font-weight: 800;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

[data-theme="hope"] .hero .cta-button.secondary:hover {
  background-color: var(--accent-bronze);
  border-color: var(--accent-bronze);
  color: #ffffff;
  box-shadow: 0 8px 25px rgba(139, 115, 63, 0.4);
  transform: translateY(-3px);
}

/* Ambient Ground Fog */
.fog-container {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 38vh;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 60%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 60%);
}

.fog-layer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 300%;
  height: 100%;
  opacity: 0.25;
}

.fog-layer-1 {
  background: url("assets/fog1.webp")
    repeat-x;
  background-size: cover;
  background-position: bottom;
  animation: fog-drift 60s linear infinite;
}

.fog-layer-2 {
  background: url("assets/fog2.webp")
    repeat-x;
  background-size: cover;
  background-position: bottom;
  animation: fog-drift 40s linear infinite;
  opacity: 0.15;
}

@keyframes fog-drift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-33.33%, 0, 0);
  }
}

[data-theme="hope"] .fog-container {
  opacity: 0.6;
  filter: brightness(1.5) contrast(0.8);
}

/* =========================================
   --- 5. CONTENT SECTIONS (THE WORLD) ---
========================================= */
.content-section {
  padding: 100px 0;
  border-top: none;
}

#world .relative-z {
  position: relative;
  z-index: 2;
}

.book-spread {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 3rem;
}

.text-page {
  text-align: left;
}

.text-page p {
  font-family: var(--font-lore);
  font-size: 1.45rem;
  line-height: 1.5;
  color: var(--text-silver);
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

.drop-cap::first-letter {
  font-family: var(--font-lore);
  font-size: 6.5rem;
  line-height: 0.7;
  float: left;
  padding-right: 16px;
  padding-top: 14px;
  color: var(--accent-gold);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.image-page img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid rgba(139, 115, 63, 0.2);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

/* =========================================
   --- 6. THREE FORCES ---
========================================= */
.forces-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
  align-items: start;
}

.force-card {
  background-color: var(--bg-charcoal);
  border: 1px solid rgba(139, 115, 63, 0.2);
  border-radius: 4px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.force-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-gold);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.8),
    inset 0 -40px 40px -40px rgba(139, 0, 0, 0.3);
}

.force-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-size: cover;
  background-position: center top;
  transition: transform 0.6s ease;
}

.force-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 12, 0.7) 0%,
    rgba(10, 10, 12, 0.9) 100%
  );
  pointer-events: none;
  transition: background 0.4s ease;
}

.force-card:nth-child(1)::before {
  background-image: url("assets/The_Slayer_Final_fwjcce-800w.webp");
}
.force-card:nth-child(2)::before {
  background-image: url("assets/Spirit_Tamer_with_Background_yjumtc_ic13yl-800w.webp");
}
.force-card:nth-child(3)::before {
  background-image: url("assets/The_Cruel_Mouth_Final_apd3xg_kdd5fq-800w.webp");
}

.force-card:hover::before {
  transform: scale(1.08);
}

.card-content {
  margin-bottom: 2rem;
  min-height: 280px;
  position: relative;
  z-index: 2;
}

.toggle-lore-btn {
  position: relative;
  z-index: 2;
}

.force-card h3 {
  font-family: var(--font-heading);
  color: var(--accent-gold);
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: 1px;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.9);
}

.force-card p {
  color: var(--text-silver);
  font-size: 1.05rem;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.9);
}

.read-more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  color: var(--accent-bronze);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  text-align: left;
  outline: none;
}

.read-more .arrow {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.read-more:hover {
  color: var(--accent-gold);
}
.read-more:hover .arrow {
  transform: translateX(5px);
}

.full-lore-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s ease-out;
}

.full-lore-inner {
  overflow: hidden;
}
.force-card.is-expanded .full-lore-wrapper {
  grid-template-rows: 1fr;
}
.force-card.is-expanded .arrow {
  transform: rotate(90deg);
}

[data-theme="hope"] .force-card::after {
  background: linear-gradient(
    to bottom,
    rgba(244, 244, 246, 0.85) 0%,
    rgba(244, 244, 246, 0.98) 100%
  );
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

[data-theme="hope"] .force-card h3 {
  color: var(--text-silver);
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.9);
}

[data-theme="hope"] .force-card p {
  color: var(--text-ash);
  text-shadow: none;
  font-weight: 500;
}

/* =========================================
   --- 7. THE BOOK (FEATURE CARDS) ---
========================================= */
.book-section {
  background-color: var(--bg-obsidian);
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  position: relative;
  height: 400px;
  border: 1px solid rgba(139, 115, 63, 0.15);
  border-radius: 4px;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  cursor: pointer;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.8);
  border-color: var(--accent-gold);
}

.feature-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 0.6s ease;
}

.feature-card:hover img {
  transform: scale(1.08);
}

.feature-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(
    to top,
    rgba(10, 10, 12, 0.8) 0%,
    rgba(10, 10, 12, 0.1) 50%,
    rgba(10, 10, 12, 0.8) 100%
  );
  transition: background 0.4s ease;
}

.feature-card:hover .feature-content {
  background: rgba(10, 10, 12, 0.85);
}

.feature-card h3 {
  font-family: var(--font-heading);
  color: var(--accent-gold);
  font-size: 1.8rem;
  margin-bottom: 0;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.9);
  transition:
    transform 0.4s ease,
    margin-bottom 0.4s ease;
}

.feature-card:hover h3 {
  transform: translateY(-10px);
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-silver);
  font-size: 1.1rem;
  line-height: 1.5;
  margin: 0;
  opacity: 0;
  max-height: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.feature-card:hover p {
  opacity: 1;
  max-height: 200px;
  transform: translateY(0);
}

[data-theme="hope"] .feature-card {
  border-color: rgba(139, 115, 63, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

[data-theme="hope"] .feature-card:hover {
  border-color: var(--accent-bronze);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

[data-theme="hope"] .feature-content {
  background: linear-gradient(
    to top,
    rgba(244, 244, 246, 0.95) 0%,
    rgba(244, 244, 246, 0.2) 50%,
    rgba(244, 244, 246, 0.95) 100%
  );
}

[data-theme="hope"] .feature-card:hover .feature-content {
  background: rgba(244, 244, 246, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow:
    inset 0 -60px 60px -30px rgba(0, 0, 0, 0.25),
    inset 0 0 0 2px var(--accent-bronze);
}

[data-theme="hope"] .feature-card h3 {
  color: var(--text-silver);
  text-shadow: 0 4px 15px rgba(255, 255, 255, 1);
  font-weight: 800;
}

[data-theme="hope"] .feature-card p {
  color: var(--text-silver);
  font-weight: 500;
}

/* =========================================
   --- 8. PARTNERS MARQUEE (HOME) ---
========================================= */
.partners-section {
  background: linear-gradient(
    to bottom,
    var(--bg-obsidian) 0%,
    var(--bg-charcoal) 150px,
    var(--bg-charcoal) 100%
  );
  overflow: hidden;
  padding-bottom: 80px;
}

.partners-subtitle {
  font-family: var(--font-lore);
  font-size: 2rem;
  color: var(--text-ash);
  text-align: center;
  margin-top: -1.5rem;
  margin-bottom: 2.5rem;
  letter-spacing: 0.5px;
}

[data-theme="hope"] .partners-subtitle {
  color: var(--text-silver);
  font-weight: 500;
}

.marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 4rem 0;
}

.marquee-container::before,
.marquee-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.marquee-container::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-charcoal) 0%, transparent 100%);
}
.marquee-container::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-charcoal) 0%, transparent 100%);
}

[data-theme="hope"] .marquee-container::before {
  background: linear-gradient(to right, #ffffff 0%, transparent 100%);
}
[data-theme="hope"] .marquee-container::after {
  background: linear-gradient(to left, #ffffff 0%, transparent 100%);
}

.marquee-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: scroll 50s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 1rem));
  }
}

.partner-card {
  display: block;
  text-decoration: none;
  background-color: #242429;
  border: 1px solid rgba(139, 115, 63, 0.3);
  border-radius: 4px;
  width: 250px;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
  position: relative;
}

.partner-card:hover {
  transform: scale(1.05);
  border-color: var(--accent-gold);
  box-shadow: 0 0 20px rgba(197, 168, 105, 0.15);
  z-index: 10;
}

.partner-card img {
  max-width: 80%;
  max-height: 70%;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.9);
  transition: filter 0.3s ease;
}

.partner-card:hover img {
  filter: grayscale(0%) opacity(1);
}

.partner-card::before,
.partner-card::after {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 250px;
  text-align: center;
  font-family: var(--font-lore);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s ease;
  z-index: 20;
}

.partner-card::before {
  content: attr(data-title);
  top: 0px;
  color: var(--accent-gold);
  font-size: 1.6rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.partner-card::after {
  content: attr(data-desc);
  bottom: 0px;
  color: var(--text-silver);
  font-size: 1.25rem;
  line-height: 1.2;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.partner-card:hover::before {
  opacity: 1;
  top: -40px;
}
.partner-card:hover::after {
  opacity: 1;
  bottom: -45px;
}

[data-theme="hope"] .partner-card::before,
[data-theme="hope"] .partner-card::after {
  text-shadow: none;
}
[data-theme="hope"] .partner-card::after {
  color: var(--text-ash);
}

.partners-action {
  text-align: center;
  margin-top: 3rem;
}

/* =========================================
   --- 9. PARTNERS DIRECTORY PAGE ---
========================================= */
.partners-directory {
  background-color: var(--bg-obsidian);
  min-height: 80vh;
}

.full-partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
}

.full-partner-card {
  background-color: var(--bg-charcoal);
  border: 1px solid rgba(139, 115, 63, 0.2);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 10;
}

.full-partner-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-gold);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
}

.partner-logo-box {
  height: 160px;
  background-color: #242429;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  border-bottom: 1px solid rgba(139, 115, 63, 0.15);
}

.partner-logo-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.4));
}

.partner-details {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.partner-details h3 {
  font-family: var(--font-heading);
  color: var(--accent-gold);
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.partner-details p {
  color: var(--text-silver);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.mt-auto {
  margin-top: auto;
  align-self: flex-start;
}

[data-theme="hope"] .full-partner-card {
  background-color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
[data-theme="hope"] .partner-logo-box {
  background-color: #f4f4f6;
}
[data-theme="hope"] .partner-logo-box img {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}
[data-theme="hope"] .partner-details h3 {
  color: var(--text-silver);
}
[data-theme="hope"] .partner-details p {
  color: var(--text-ash);
}

/* =========================================
   --- 10. CONTACT PAGE ---
========================================= */
.contact-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.contact-form-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--bg-charcoal);
  border: 1px solid rgba(139, 115, 63, 0.2);
  border-radius: 4px;
  padding: 4rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 10;
}

.full-contact-form {
  margin-top: 2rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}
.form-group label {
  display: block;
  font-family: var(--font-heading);
  color: var(--text-silver);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.contact-input {
  width: 100%;
  background-color: var(--bg-obsidian);
  border: 1px solid var(--accent-bronze);
  color: var(--text-silver);
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  border-radius: 2px;
  outline: none;
  transition: all 0.3s ease;
}

select.contact-input {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b733f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
  cursor: pointer;
}

textarea.contact-input {
  resize: vertical;
}
.contact-input:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 12px rgba(197, 168, 105, 0.2);
}
.submit-btn {
  width: 100%;
  margin-top: 1rem;
}

.discord-note {
  font-family: var(--font-lore);
  font-size: 1.8rem;
  color: var(--text-ash);
  text-align: center;
  margin-top: 3rem;
  border-top: 1px solid rgba(139, 115, 63, 0.15);
  padding-top: 2.5rem;
  letter-spacing: 0.5px;
}

.discord-note a {
  color: var(--accent-gold);
  text-decoration: underline;
  text-decoration-color: rgba(197, 168, 105, 0.4);
  text-underline-offset: 4px;
  transition: all 0.3s ease;
}
.discord-note a:hover {
  color: #fff;
  text-decoration-color: var(--accent-gold);
}

[data-theme="hope"] .contact-form-wrapper {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}
[data-theme="hope"] .form-group label {
  color: var(--text-silver);
}
[data-theme="hope"] .contact-input {
  background-color: #f4f4f6;
  color: var(--text-silver);
  border-color: rgba(139, 115, 63, 0.4);
}
[data-theme="hope"] select.contact-input {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a1d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
}
[data-theme="hope"] .discord-note {
  color: var(--text-silver);
}
[data-theme="hope"] .discord-note a {
  color: var(--accent-bronze);
  font-weight: 600;
}

/* =========================================
   --- 11. SUBSCRIBE SECTION ---
========================================= */
.subscribe-section {
  background: radial-gradient(
    circle at center,
    var(--bg-charcoal) 0%,
    var(--bg-obsidian) 100%
  );
  padding: 100px 0;
}

.subscribe-box {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  background-color: rgba(22, 22, 25, 0.7);
  padding: 4rem 3rem;
  border: 1px solid rgba(139, 115, 63, 0.2);
  border-radius: 4px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.subscribe-text {
  color: var(--text-ash);
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}
.subscribe-form {
  display: flex;
  gap: 1rem;
  justify-content: center;
  max-width: 500px;
  margin: 0 auto;
}
.subscribe-input {
  flex-grow: 1;
  background-color: var(--bg-obsidian);
  border: 1px solid var(--accent-bronze);
  color: var(--text-silver);
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  border-radius: 2px;
  outline: none;
  transition: all 0.3s ease;
}
.subscribe-input:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 12px rgba(197, 168, 105, 0.2);
}
.subscribe-input::placeholder {
  color: rgba(138, 138, 147, 0.6);
}
.subscribe-form .cta-button {
  border: none;
  cursor: pointer;
  padding: 14px 28px;
}
.spam-notice {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(138, 138, 147, 0.5);
  font-style: italic;
}

[data-theme="hope"] .subscribe-section {
  background: radial-gradient(circle at center, #e6d5b8 0%, var(--bg-obsidian) 100%);
}
[data-theme="hope"] .subscribe-box {
  background-color: rgba(255, 255, 255, 0.85);
  border-color: rgba(139, 115, 63, 0.4);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}
[data-theme="hope"] .subscribe-input {
  background-color: #ffffff;
  border-color: var(--accent-bronze);
  color: var(--text-silver);
}
[data-theme="hope"] .subscribe-input:focus {
  box-shadow: 0 0 12px rgba(197, 168, 105, 0.4);
}
[data-theme="hope"] .subscribe-input::placeholder {
  color: rgba(74, 74, 82, 0.6);
}
[data-theme="hope"] .spam-notice {
  color: rgba(74, 74, 82, 0.8);
}

/* =========================================
   --- 12. FOOTER & PUBLISHER BANNER ---
========================================= */
.site-footer {
  background-color: var(--bg-charcoal);
  border-top: none;
  padding: 4rem 0 2rem;
  font-size: 0.95rem;
  position: relative;
  z-index: 50;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(139, 115, 63, 0.4),
    transparent
  );
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-logo {
  max-height: 45px;
  width: auto;
  margin-bottom: 1rem;
  filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.8));
  transition: transform 0.3s ease;
}
.footer-logo:hover {
  transform: scale(1.02);
}
.footer-tagline {
  color: var(--text-ash);
  font-style: italic;
  letter-spacing: 0.5px;
}
.site-footer h4 {
  color: var(--text-silver);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.site-footer ul {
  list-style: none;
}
.site-footer ul li {
  margin-bottom: 0.75rem;
}
.site-footer a {
  color: var(--text-ash);
  text-decoration: none;
  transition: color 0.3s ease;
}
.site-footer a:hover {
  color: var(--accent-gold);
}
.footer-legal {
  text-align: center;
  color: var(--text-ash);
  font-size: 0.85rem;
  line-height: 1.6;
}
.trademark-notice {
  margin-top: 0.5rem;
  color: rgba(138, 138, 147, 0.5);
}

.publisher-banner {
  position: relative;
  padding: 3rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--bg-obsidian);
  border-top: 1px solid rgba(139, 115, 63, 0.2);
  overflow: hidden;
  z-index: 50;
}
.footer-publisher-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("assets/Hero-Image-One-scaled_bl1ete-800w.webp");
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: 0;
}
@media (min-width: 769px) {
  .parallax-bg {
    background-image: url("assets/Axis_Saga_Cover_Final_2_elqhwo-1400w.webp");
  }
  .footer-publisher-bg {
    background-image: url("assets/Hero-Image-One-scaled_bl1ete-1400w.webp");
  }
}
.footer-publisher-link {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s ease;
}
.footer-publisher-link:hover {
  transform: scale(1.02);
}
.footer-publisher-logo {
  max-width: 250px;
  height: auto;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6));
  transition: filter 0.3s ease;
}
.footer-publisher-link:hover .footer-publisher-logo {
  filter: drop-shadow(0 4px 15px rgba(197, 168, 105, 0.4));
}
.footer-publisher-text {
  font-family: var(--font-heading);
  color: var(--text-ash);
  font-size: 1.1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.3s ease;
}
.footer-publisher-link:hover .footer-publisher-text {
  color: var(--accent-gold);
}

[data-theme="hope"] .publisher-banner {
  background-color: rgba(244, 244, 246, 0.95);
}
[data-theme="hope"] .footer-publisher-bg {
  opacity: 0.1;
  filter: grayscale(100%);
}
[data-theme="hope"] .footer-publisher-text {
  color: var(--text-silver);
  font-weight: 600;
}

/* =========================================
   --- 13. EFFECTS & SPECIFICS ---
========================================= */
.force-card,
.feature-card,
.partner-card,
.subscribe-box {
  position: relative;
  z-index: 10;
}

img[alt="Wizards Lab Logo"] {
  background-color: rgba(226, 226, 232, 0.95);
  padding: 12px;
  border-radius: 4px;
}
[data-theme="hope"] img[alt="Wizards Lab Logo"] {
  background-color: transparent;
  padding: 0;
}

.torchlight-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  background: radial-gradient(
    circle 350px at var(--cursor-x, 50%) var(--cursor-y, 50%),
    rgba(0, 0, 0, 0) 0%,
    rgba(197, 168, 105, 0.03) 30%,
    rgba(10, 10, 12, 0.85) 75%,
    rgba(10, 10, 12, 0.98) 100%
  );
  opacity: 0;
}
[data-theme="darkness"] .torchlight-overlay {
  opacity: 1;
}

.theme-toggle-fab {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 10000;
  background-color: rgba(22, 22, 25, 0.9);
  backdrop-filter: blur(8px);
  color: var(--text-silver);
  border: 1px solid var(--accent-bronze);
  padding: 12px 24px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  min-width: 200px;
}
.theme-toggle-fab:hover {
  background-color: var(--bg-obsidian);
  border-color: var(--accent-gold);
  box-shadow: 0 6px 20px rgba(197, 168, 105, 0.25);
  transform: translateY(-3px);
}
[data-theme="hope"] .theme-toggle-fab {
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--accent-gold);
  border-color: var(--accent-gold);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
[data-theme="hope"] .theme-toggle-fab:hover {
  background-color: #f4f4f6;
  border-color: var(--accent-bronze);
  color: var(--accent-bronze);
}

.scroll-tracker {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background-color: var(--accent-blood);
  z-index: 10001;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(139, 0, 0, 0.8);
  transition:
    background-color 0.5s ease,
    box-shadow 0.5s ease;
}
[data-theme="hope"] .scroll-tracker {
  background-color: var(--accent-gold);
  box-shadow: 0 0 12px rgba(184, 134, 11, 0.6);
}
.scroll-tracker::after {
  content: "";
  position: absolute;
  top: -2px;
  right: 0;
  width: 8px;
  height: 8px;
  background-color: #fff;
  border-radius: 50%;
  box-shadow: 0 0 10px 4px var(--accent-blood);
  transition: box-shadow 0.5s ease;
}
[data-theme="hope"] .scroll-tracker::after {
  box-shadow: 0 0 15px 5px var(--accent-gold);
}

.ash-particle {
  position: fixed;
  top: 4px;
  background-color: var(--accent-blood);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  opacity: 1;
  animation: fall-and-fade linear forwards;
}
[data-theme="hope"] .ash-particle {
  background-color: var(--accent-gold);
  box-shadow: 0 0 6px var(--accent-gold);
}
@keyframes fall-and-fade {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-30px, 120px) scale(0);
    opacity: 0;
  }
}
/* --- D20 Back to Top Button (Hidden by default on Desktop) --- */
.d20-to-top {
  display: flex;
  position: fixed;
  bottom: 15px;
  right: 15px; /* Mirrors your theme toggle on the left */
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: rgba(22, 22, 25, 0.9);
  border: 1px solid var(--accent-bronze);
  color: var(--accent-gold);
  z-index: 10000;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  /* Animation states for fading in and out */
  opacity: 0;
  transform: translateY(20px);
  transition:
    all 0.4s ease,
    opacity 0.4s ease,
    transform 0.4s ease;
  align-items: center;
  justify-content: center;
}

/* Sizing for the geometric SVG */
.d20-to-top svg {
  width: 24px;
  height: 24px;
}

/* Javascript trigger class */
.d20-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Tap animation */
.d20-to-top:active {
  transform: translateY(0) scale(0.9);
}

/* Hope Theme Override */
[data-theme="hope"] .d20-to-top {
  background-color: rgba(255, 255, 255, 0.9);
  border-color: var(--accent-bronze);
  color: var(--accent-bronze);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* =========================================
   --- 14. COMPREHENSIVE MOBILE RESPONSIVENESS ---
========================================= */
/* Tablet Landscape & Small Laptop Nav Fix */
@media (max-width: 1050px) {
  /* Reduce the spacing between the text links */
  .nav-links {
    gap: 1rem;
  }

  /* Make the text links slightly smaller */
  .nav-links a {
    font-size: 0.85rem;
  }

  /* Reduce the spacing between the Discord and Kickstarter buttons */
  .header-actions {
    gap: 1rem;
  }

  /* Shrink the Discord text */
  .social-link {
    font-size: 0.9rem;
  }

  /* Shrink the Kickstarter CTA button */
  .site-header .cta-button.small {
    padding: 6px 14px;
    font-size: 0.85rem;
  }

  /* Slightly shrink the logo to buy a few extra pixels of breathing room */
  .logo-img {
    max-height: 38px;
  }
}

@media (max-width: 900px) {
  /* Activate the base hamburger button we added at the top */
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    height: 80px;
    margin-right: 20px; /* Pushes it slightly off the exact edge */
  }

  .container.nav-container {
    position: relative; /* CRITICAL: This anchors the absolute button to the top right */
    flex-wrap: wrap;
    align-items: flex-start;
    height: auto;
    padding: 0;
  }

  /* Force the flex container into a column when open so elements stack perfectly downwards */
  .site-header.nav-open .container.nav-container {
    flex-direction: column;
  }

  .logo-link {
    height: 80px;
    padding-left: 20px;
  }

  /* Lock the hamburger button to the absolute top right so it NEVER moves */
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    right: 0;
    width: 80px; /* Provides a generous touch area for thumbs */
    height: 80px;
    margin: 0;
    z-index: 1000; /* Forces it to ALWAYS sit above the dropdown background */
  }

  /* Hide the links and actions by default */
  nav,
  .header-actions {
    display: none;
    width: 280px;
    margin-left: auto; /* Pushes the drawer to the right side of the screen */
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1.5rem;
    margin-bottom: 0;
    padding: 1.5rem 25px 1rem;
  }

  /* Show the Nav wrapper when JS applies the 'nav-open' class */
  .site-header.nav-open nav {
    display: block;
    background-color: rgba(10, 10, 12, 0.85); /* Deep translucent frosted black */
    border-left: 1px solid rgba(139, 115, 63, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .site-header.nav-open .header-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
    padding: 0 25px 2rem;
    background-color: rgba(10, 10, 12, 0.85); /* Deep translucent frosted black */
    border-left: 1px solid rgba(139, 115, 63, 0.3);
    border-bottom: 1px solid rgba(139, 115, 63, 0.3);
    border-bottom-left-radius: 8px;
    box-shadow: -10px 15px 30px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .site-header {
    background-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: none !important;
    height: 80px;
  }

  .site-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: rgba(10, 10, 12, 0.95);
    border-bottom: 1px solid rgba(139, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: -1;
  }

  [data-theme="hope"] .site-header::before {
    background-color: rgba(244, 244, 246, 0.95);
    border-bottom: 1px solid rgba(139, 115, 63, 0.3);
  }

  [data-theme="hope"] .site-header.nav-open nav,
  [data-theme="hope"] .site-header.nav-open .header-actions {
    background-color: rgba(244, 244, 246, 0.85);
    border-color: rgba(139, 115, 63, 0.4);
  }

  [data-theme="hope"] .site-header.nav-open .header-actions {
    box-shadow: -10px 15px 30px rgba(0, 0, 0, 0.15);
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .section-title {
    font-size: 2.2rem;
  }
  .hero-subtitle {
    font-size: 1.05rem;
    padding: 0 1rem;
  }
  .drop-cap::first-letter {
    font-size: 4.5rem;
  }
  .text-page p {
    font-size: 1.25rem;
  }

  .hero {
    padding: 120px 0 80px;
  }
  .content-section {
    padding: 60px 0;
  }
  .force-card,
  .partner-details {
    padding: 1.5rem;
  }

  .button-group {
    flex-direction: column;
    padding: 0 1.5rem;
  }

  .theme-toggle-fab {
    bottom: 15px;
    left: 15px;
    min-width: auto;
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  .form-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    text-align: center;
    gap: 2.5rem;
  }
  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .contact-form-wrapper {
    padding: 2.5rem 1.5rem;
  }

  .torchlight-overlay {
    display: none;
  }
}

@media (max-width: 600px) {
  .subscribe-form {
    flex-direction: column;
  }
  .subscribe-form .cta-button {
    width: 100%;
  }
  .subscribe-box {
    padding: 2.5rem 1.5rem;
  }
}
/* --- World Section Mobile Fix --- */
@media (max-width: 900px) {
  /* Forces the grid to collapse into a single full-width column */
  .book-spread {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Hides the artwork entirely on narrow screens to save space */
  .image-page {
    display: none;
  }
}
