/*
Theme Name: AEVYR
Theme URI: https://aevyr.media
Author: AEVYR Team
Description: A cinematic, open-world fantasy epic theme. Fully customizable via Appearance → Customize. Each page (Home, Magazine, Prime, Support) has its own auto-applied template — just create pages with those slugs. All text, images, colors, and fonts are editable without touching code.
Version: 2.0.0
Requires at least: 5.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aevyr
Tags: dark, fantasy, custom-menu, custom-logo, full-width-template, theme-options, custom-colors, custom-background
*/

/* ======================================================
   DESIGN TOKENS
====================================================== */
:root {
  --bg:               hsl(222, 40%, 5%);
  --fg:               hsl(40, 30%, 90%);
  --card:             hsl(222, 34%, 8%);
  --gold:             hsl(40, 68%, 58%);
  --mineral:          hsl(204, 90%, 60%);
  --border:           hsl(210, 30%, 22%);
  --muted-fg:         hsl(40, 12%, 62%);
  --muted-bg:         hsl(222, 20%, 16%);
  --radius:           0.25rem;
  --font-display:     'Cinzel', serif;
  --font-body:        'EB Garamond', serif;
  --font-alt:         'Cormorant Garamond', serif;
  --max-w:            90rem;
  --max-w-lg:         80rem;
  --max-w-md:         72rem;
  --max-w-sm:         60rem;
  --px:               clamp(1.25rem, 4vw, 2rem);
}

/* ======================================================
   RESET & BASE
====================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  background-color: var(--bg);
  color: var(--fg);
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; }

button, input, textarea { font-family: inherit; }

/* ======================================================
   TYPOGRAPHY
====================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.05;
  font-weight: 600;
  color: var(--fg);
}

h1 { font-size: clamp(2.75rem, 8vw, 5.5rem); }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

p { font-size: 1.125rem; line-height: 1.75; }

/* ======================================================
   UTILITY CLASSES
====================================================== */
.text-gold    { color: var(--gold); }
.text-mineral { color: var(--mineral); }
.text-muted   { color: var(--muted-fg); }

.font-display { font-family: var(--font-display); }
.font-alt     { font-family: var(--font-alt); }

.gold-gradient {
  background: linear-gradient(180deg, #f6e6b0 0%, #d9b25a 45%, #a97e2f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mineral);
}
.eyebrow::before {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--mineral);
  opacity: 0.6;
}

.eyebrow-center {
  justify-content: center;
}

.hairline { border-top: 1px solid hsla(40, 40%, 70%, 0.18); }

.mineral-glow {
  box-shadow: 0 0 0 1px hsla(204,80%,58%,0.25), 0 0 30px -6px hsla(204,80%,58%,0.35);
}

/* ======================================================
   ANIMATIONS
====================================================== */
@keyframes driftx {
  0%   { transform: translateX(-3%) scale(1.05); }
  100% { transform: translateX(3%) scale(1.1); }
}
.drift {
  animation: driftx 26s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}
.pulse-glow { animation: pulseGlow 4s ease-in-out infinite; }

@keyframes revealUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  animation: revealUp 0.75s cubic-bezier(0.22,1,0.36,1) forwards;
}
.reveal-1 { animation-delay: 0.1s; }
.reveal-2 { animation-delay: 0.2s; }
.reveal-3 { animation-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .drift, .pulse-glow, .reveal { animation: none; opacity: 1; }
}

/* ======================================================
   FOG LAYER
====================================================== */
.fog-layer {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 50% 100%, var(--bg) 20%, transparent 70%),
    radial-gradient(90% 60% at 20% 30%, hsla(204,60%,40%,0.10), transparent 60%);
}

/* ======================================================
   BUTTONS
====================================================== */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background-color: var(--gold);
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: filter 0.2s ease;
  text-decoration: none;
}
.btn-gold:hover { filter: brightness(1.1); color: var(--bg); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border: 1px solid var(--border);
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  text-decoration: none;
}
.btn-outline:hover { border-color: var(--mineral); color: var(--mineral); }

.btn-mineral {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background-color: var(--mineral);
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: filter 0.2s;
  text-decoration: none;
}
.btn-mineral:hover { filter: brightness(1.1); color: var(--bg); }

/* ======================================================
   LAYOUT
====================================================== */
.site-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
.site-main    { flex: 1; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
}
.container-lg  { max-width: var(--max-w-lg); }
.container-md  { max-width: var(--max-w-md); }
.container-sm  { max-width: var(--max-w-sm); }

section { position: relative; }

/* ======================================================
   HEADER / NAV
====================================================== */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background-color 0.5s, border-color 0.5s, backdrop-filter 0.5s;
}

#site-header.scrolled {
  background-color: hsla(222, 40%, 5%, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid hsla(210, 30%, 22%, 0.6);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
}

.site-logo img { height: 2.25rem; width: auto; }

.site-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  position: relative;
  padding: 0.5rem 1rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted-fg);
  transition: color 0.2s;
}
.site-nav a:hover,
.site-nav a.current-menu-item { color: var(--gold); }

.nav-cta {
  margin-left: 1rem;
  padding: 0.625rem 1.25rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bg) !important;
  background-color: var(--gold);
  transition: filter 0.2s;
}
.nav-cta:hover { filter: brightness(1.1); }

/* WordPress menu compatibility */
.site-nav ul { display: flex; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.site-nav ul li a {
  position: relative;
  padding: 0.5rem 1rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted-fg);
  transition: color 0.2s;
}
.site-nav ul li a:hover,
.site-nav ul li.current-menu-item a { color: var(--gold); }
.site-nav ul li.menu-cta a {
  margin-left: 1rem;
  padding: 0.625rem 1.25rem;
  color: var(--bg);
  background-color: var(--gold);
}
.site-nav ul li.menu-cta a:hover { filter: brightness(1.1); }

.menu-toggle {
  display: flex;
  background: none;
  border: none;
  color: var(--fg);
  cursor: pointer;
  padding: 0.5rem;
}
.menu-toggle svg { width: 1.5rem; height: 1.5rem; }

.mobile-menu {
  display: none;
  background-color: hsla(222, 40%, 5%, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid hsla(210,30%,22%,0.6);
}
.mobile-menu.open { display: block; }
.mobile-menu-inner { padding: 1rem var(--px); display: flex; flex-direction: column; }
.mobile-menu-inner a {
  padding: 0.75rem 0;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted-fg);
  border-bottom: 1px solid hsla(210,30%,22%,0.3);
}
.mobile-menu-inner a:last-child { border-bottom: none; }
.mobile-menu-inner a:hover,
.mobile-menu-inner a.active { color: var(--gold); }

@media (min-width: 768px) {
  .site-nav    { display: flex; }
  .menu-toggle { display: none; }
}

/* ======================================================
   FOOTER
====================================================== */
#site-footer {
  border-top: 1px solid hsla(210,30%,22%,0.6);
  background-color: var(--card);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding: 3.5rem 0;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-brand p {
  max-width: 24rem;
  color: var(--muted-fg);
  font-size: 1.125rem;
  line-height: 1.75;
  font-family: var(--font-alt);
  margin-top: 1.25rem;
}
.footer-brand img { height: 2rem; width: auto; }

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a {
  color: var(--muted-fg);
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--fg); }
.footer-col ul li span { color: var(--muted-fg); }

.footer-bottom {
  border-top: 1px solid hsla(210,30%,22%,0.4);
}
.footer-bottom-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
  padding-block: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted-fg);
}
@media (min-width: 640px) {
  .footer-bottom-inner { flex-direction: row; }
}

/* ======================================================
   HOME PAGE
====================================================== */

/* Hero */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, hsla(222,40%,5%,0.30) 45%, hsla(222,40%,5%,0.40) 100%);
}
.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
  padding-bottom: clamp(5rem, 10vw, 7rem);
}
.hero-content .eyebrow { color: var(--mineral); }
.hero-title {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.01em;
}
.hero-desc {
  margin-top: 1.75rem;
  max-width: 36rem;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--muted-fg);
  font-family: var(--font-alt);
  line-height: 1.6;
}
.hero-buttons {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

/* Pillars */
.section-pillars {
  padding-block: clamp(5rem, 10vw, 8rem);
}
.pillars-intro { max-width: 40rem; }
.pillars-intro h2 { margin-top: 1.25rem; font-size: clamp(1.75rem, 4vw, 3rem); line-height: 1.25; }
.pillars-grid {
  margin-top: 4rem;
  display: grid;
  gap: 1px;
  background-color: hsla(210,30%,22%,0.5);
  overflow: hidden;
}
@media (min-width: 640px) { .pillars-grid { grid-template-columns: repeat(3, 1fr); } }
.pillar-card {
  background-color: var(--bg);
  padding: clamp(2rem, 4vw, 2.5rem);
  transition: background-color 0.2s;
}
.pillar-card:hover { background-color: var(--card); }
.pillar-icon {
  width: 2rem; height: 2rem;
  color: var(--mineral);
  stroke-width: 1.4;
}
.pillar-card h3 { margin-top: 1.5rem; font-size: 1.35rem; }
.pillar-card p  { margin-top: 0.75rem; font-size: 1.05rem; color: var(--muted-fg); font-family: var(--font-alt); }

/* World Split */
.section-world { position: relative; }
.world-grid {
  display: grid;
}
@media (min-width: 1024px) { .world-grid { grid-template-columns: 1fr 1fr; } }
.world-img {
  position: relative;
  min-height: 60vh;
  overflow: hidden;
}
@media (min-width: 1024px) { .world-img { min-height: 80vh; } }
.world-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.world-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent, hsla(222,40%,5%,0.8));
}
.world-text {
  display: flex;
  align-items: center;
  background-color: var(--card);
}
.world-text-inner {
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 5vw, 3.5rem);
  max-width: 36rem;
}
.world-text-inner h2 { margin-top: 1.25rem; font-size: clamp(1.75rem, 3.5vw, 3rem); line-height: 1.25; }
.world-text-inner p  { margin-top: 1.5rem; color: var(--muted-fg); font-family: var(--font-alt); font-size: 1.1rem; }
.world-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid hsla(40,40%,70%,0.18);
}
.stat-n  { font-family: var(--font-display); font-size: 1.75rem; color: var(--gold); }
.stat-l  { font-size: 0.8rem; color: var(--muted-fg); margin-top: 0.25rem; }

/* Media Universe */
.section-media {
  padding-block: clamp(5rem, 10vw, 8rem);
}
.media-intro { max-width: 40rem; }
.media-intro h2 { margin-top: 1.25rem; font-size: clamp(1.75rem, 4vw, 3rem); line-height: 1.25; }
.media-intro p  { margin-top: 1.25rem; color: var(--muted-fg); font-family: var(--font-alt); font-size: 1.1rem; }
.media-grid {
  margin-top: 4rem;
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) { .media-grid { grid-template-columns: repeat(2, 1fr); } }
.media-card {
  position: relative;
  overflow: hidden;
  border: 1px solid hsla(210,30%,22%,0.6);
  background-color: var(--card);
  display: block;
  transition: border-color 0.3s;
}
.media-card:hover { border-color: var(--mineral); }
.media-card-img {
  position: relative;
  height: 16rem;
  overflow: hidden;
}
.media-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.media-card:hover .media-card-img img { transform: scale(1.05); }
.media-card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--card), transparent);
}
.media-card-body { padding: 2rem; }
.media-card-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mineral);
}
.media-card-tag svg { width: 1rem; height: 1rem; }
.media-card-body h3 { margin-top: 1rem; font-size: 1.75rem; }
.media-card-body p  { margin-top: 0.75rem; color: var(--muted-fg); font-family: var(--font-alt); font-size: 1.05rem; }
.media-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.media-card-link svg { width: 1rem; height: 1rem; transition: transform 0.2s; }
.media-card:hover .media-card-link svg { transform: translateX(4px); }

/* CTA Banner */
.section-cta {
  position: relative;
  overflow: hidden;
}
.cta-bg {
  position: absolute;
  inset: 0;
}
.cta-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.4; }
.cta-bg-overlay {
  position: absolute;
  inset: 0;
  background-color: hsla(222,40%,5%,0.7);
}
.cta-inner {
  position: relative;
  max-width: var(--max-w-sm);
  margin-inline: auto;
  padding-inline: var(--px);
  padding-block: clamp(6rem, 12vw, 9rem);
  text-align: center;
}
.cta-inner h2 { margin-top: 1.5rem; font-size: clamp(2.25rem, 6vw, 4rem); line-height: 1.2; }
.cta-inner p  { margin-top: 1.5rem; max-width: 36rem; margin-inline: auto; font-size: 1.2rem; color: var(--muted-fg); font-family: var(--font-alt); }

/* ======================================================
   MAGAZINE PAGE
====================================================== */
.magazine-hero {
  position: relative;
  padding-top: clamp(8rem, 15vw, 12rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
  overflow: hidden;
}
.magazine-hero-bg {
  position: absolute;
  inset: 0;
}
.magazine-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}
.magazine-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, hsla(222,40%,5%,0.6), hsla(222,40%,5%,0.8), var(--bg));
}
.magazine-hero-grid {
  position: relative;
  display: grid;
  gap: 3.5rem;
  align-items: center;
}
@media (min-width: 1024px) { .magazine-hero-grid { grid-template-columns: 1fr 1fr; } }
.magazine-hero-text h1 { margin-top: 1.5rem; font-size: clamp(3rem, 8vw, 5rem); line-height: 0.95; }
.magazine-hero-text p  { margin-top: 1.75rem; font-size: 1.2rem; color: var(--muted-fg); font-family: var(--font-alt); max-width: 32rem; }
.magazine-cover-wrap { display: flex; justify-content: center; }
.magazine-cover-inner { position: relative; display: inline-block; }
.magazine-cover-inner img { width: clamp(220px, 40vw, 340px); }
.magazine-badge {
  position: absolute;
  top: -0.75rem;
  right: -0.75rem;
  background-color: var(--mineral);
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.375rem 0.75rem;
}

.magazine-features {
  padding-block: clamp(4rem, 8vw, 7rem);
}
.magazine-features h2 { margin-top: 1.25rem; font-size: clamp(1.75rem, 4vw, 3rem); line-height: 1.25; }
.features-list {
  margin-top: 3.5rem;
  border-top: 1px solid hsla(210,30%,22%,0.5);
  border-bottom: 1px solid hsla(210,30%,22%,0.5);
}
.feature-item {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid hsla(210,30%,22%,0.5);
  cursor: pointer;
  transition: background-color 0.2s;
}
.feature-item:last-child { border-bottom: none; }
.feature-item:hover .feature-title { color: var(--mineral); }
.feature-num  { font-family: var(--font-display); font-size: 2.25rem; color: hsla(40,68%,58%,0.7); }
.feature-title { font-size: 1.35rem; font-family: var(--font-display); }
.feature-desc  { margin-top: 0.5rem; font-size: 1rem; color: var(--muted-fg); font-family: var(--font-alt); }
.feature-arrow { color: var(--muted-fg); transition: color 0.2s, transform 0.2s; }
.feature-arrow svg { width: 1.25rem; height: 1.25rem; display: none; }
@media (min-width: 640px) { .feature-arrow svg { display: block; } }
.feature-item:hover .feature-arrow { color: var(--gold); transform: translateX(4px); }

.magazine-subscribe {
  padding-bottom: clamp(5rem, 10vw, 7rem);
}
.subscribe-box {
  border: 1px solid hsla(210,30%,22%,0.6);
  background-color: var(--card);
  padding: clamp(2.5rem, 6vw, 3.5rem);
  text-align: center;
}
.subscribe-box h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
.subscribe-box p  { margin-top: 1rem; color: var(--muted-fg); font-family: var(--font-alt); max-width: 32rem; margin-inline: auto; font-size: 1.05rem; }
.subscribe-form {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 28rem;
  margin-inline: auto;
}
@media (min-width: 640px) { .subscribe-form { flex-direction: row; } }
.subscribe-form input {
  flex: 1;
  background-color: var(--bg);
  border: 1px solid hsla(210,30%,22%,0.7);
  padding: 0.75rem 1rem;
  color: var(--fg);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}
.subscribe-form input::placeholder { color: hsla(40,12%,62%,0.7); }
.subscribe-form input:focus { border-color: var(--mineral); }

/* ======================================================
   PRIME PAGE
====================================================== */
.prime-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.prime-hero-bg {
  position: absolute;
  inset: 0;
}
.prime-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.prime-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, hsla(222,40%,5%,0.4) 45%, hsla(222,40%,5%,0.6) 100%);
}
.prime-hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
  padding-bottom: 5rem;
}
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mineral);
}
.live-badge svg { width: 1rem; height: 1rem; }
.prime-hero-content h1 { margin-top: 1.25rem; font-size: clamp(3rem, 9vw, 6rem); line-height: 0.95; }
.prime-hero-content p  { margin-top: 1.5rem; max-width: 36rem; font-size: 1.2rem; color: var(--muted-fg); font-family: var(--font-alt); }

.prime-strands { padding-block: 6rem; }
.prime-strands h2 { margin-top: 1.25rem; font-size: clamp(1.75rem, 4vw, 3rem); line-height: 1.25; max-width: 40rem; }
.strands-grid {
  margin-top: 3.5rem;
  display: grid;
  gap: 1px;
  background-color: hsla(210,30%,22%,0.5);
  overflow: hidden;
}
@media (min-width: 640px)  { .strands-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .strands-grid { grid-template-columns: repeat(4, 1fr); } }
.strand-card {
  background-color: var(--bg);
  padding: 2rem;
  height: 100%;
  transition: background-color 0.2s;
}
.strand-card:hover { background-color: var(--card); }
.strand-card svg { width: 2rem; height: 2rem; color: var(--mineral); stroke-width: 1.4; }
.strand-card h3 { margin-top: 1.25rem; font-size: 1.2rem; }
.strand-card p  { margin-top: 0.75rem; color: var(--muted-fg); font-family: var(--font-alt); font-size: 1rem; }

.prime-schedule { padding-bottom: clamp(5rem, 10vw, 7rem); }
.prime-schedule h2 { margin-top: 1.25rem; font-size: clamp(1.75rem, 3vw, 2.5rem); }
.schedule-table {
  margin-top: 2.5rem;
  border: 1px solid hsla(210,30%,22%,0.6);
}
.schedule-row {
  display: grid;
  grid-template-columns: 6.5rem 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem clamp(1rem, 3vw, 1.75rem);
  border-bottom: 1px solid hsla(210,30%,22%,0.5);
  transition: background-color 0.2s;
}
.schedule-row:last-child { border-bottom: none; }
.schedule-row:hover { background-color: var(--card); }
.schedule-time {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.schedule-time.now { color: var(--mineral); }
.schedule-time.later { color: var(--muted-fg); }
.schedule-title { font-size: 1.15rem; }
@media (min-width: 768px) { .schedule-title { font-size: 1.35rem; } }
.schedule-tag {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: hsla(40,68%,58%,0.8);
  display: none;
}
@media (min-width: 640px) { .schedule-tag { display: block; } }

/* ======================================================
   SUPPORT / PLEDGE PAGE
====================================================== */
.support-hero {
  position: relative;
  padding-top: clamp(8rem, 15vw, 12rem);
  padding-bottom: clamp(3rem, 6vw, 4rem);
  overflow: hidden;
  text-align: center;
}
.support-hero-bg {
  position: absolute;
  inset: 0;
}
.support-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.25; }
.support-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, hsla(222,40%,5%,0.6), var(--bg));
}
.support-hero-content { position: relative; }
.support-hero-content h1 {
  margin-top: 1.5rem;
  font-size: clamp(3rem, 8vw, 5rem);
  line-height: 0.95;
}
.support-hero-content p {
  margin-top: 1.5rem;
  max-width: 42rem;
  margin-inline: auto;
  font-size: 1.2rem;
  color: var(--muted-fg);
  font-family: var(--font-alt);
}

.pledge-tiers {
  padding-bottom: 6rem;
}
.tiers-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 1024px) { .tiers-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }

.tier-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(2rem, 4vw, 2.5rem);
  border: 1px solid hsla(210,30%,22%,0.6);
  background-color: hsla(222,34%,8%,0.6);
  height: 100%;
}
.tier-card.featured {
  border-color: hsla(40,68%,58%,0.6);
  background-color: var(--card);
  box-shadow: 0 0 0 1px hsla(204,80%,58%,0.25), 0 0 30px -6px hsla(204,80%,58%,0.35);
}
.tier-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--gold);
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.25rem 1rem;
  white-space: nowrap;
}
.tier-icon svg { width: 1.75rem; height: 1.75rem; stroke-width: 1.4; }
.tier-card:not(.featured) .tier-icon svg { color: var(--mineral); }
.tier-card.featured .tier-icon svg { color: var(--gold); }
.tier-card h3 { margin-top: 1.25rem; font-size: 1.75rem; }
.tier-tagline { color: var(--muted-fg); font-family: var(--font-alt); font-style: italic; margin-top: 0.25rem; }
.tier-price {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: 2.25rem;
  color: var(--gold);
}
.tier-price span { font-size: 0.9rem; color: var(--muted-fg); }
.tier-perks {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}
.tier-perk {
  display: flex;
  gap: 0.75rem;
  color: var(--muted-fg);
}
.tier-perk svg { width: 1.25rem; height: 1.25rem; flex-shrink: 0; color: var(--mineral); margin-top: 0.1rem; }
.tier-perk span { font-family: var(--font-alt); font-size: 1.05rem; line-height: 1.4; }
.tier-btn {
  margin-top: 2rem;
  width: 100%;
  padding: 0.875rem;
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: filter 0.2s, border-color 0.2s, color 0.2s;
}
.tier-btn.gold-btn { background-color: var(--gold); color: var(--bg); }
.tier-btn.gold-btn:hover { filter: brightness(1.1); }
.tier-btn.outline-btn {
  background: transparent;
  border: 1px solid hsla(210,30%,22%,0.7);
  color: var(--fg);
}
.tier-btn.outline-btn:hover { border-color: var(--mineral); color: var(--mineral); }

.merch-section { padding-bottom: clamp(5rem, 10vw, 7rem); }
.merch-section h2 { margin-top: 1.25rem; font-size: clamp(1.75rem, 4vw, 3rem); display: flex; align-items: center; gap: 1rem; }
.merch-section h2 svg { width: 2.25rem; height: 2.25rem; color: var(--mineral); stroke-width: 1.3; }
.merch-grid {
  margin-top: 3.5rem;
  display: grid;
  gap: 2rem;
}
@media (min-width: 640px) { .merch-grid { grid-template-columns: repeat(3, 1fr); } }
.merch-card {
  border: 1px solid hsla(210,30%,22%,0.6);
  background-color: var(--card);
  overflow: hidden;
  transition: border-color 0.3s;
}
.merch-card:hover { border-color: var(--mineral); }
.merch-card-img {
  height: 16rem;
  overflow: hidden;
}
.merch-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.merch-card:hover .merch-card-img img { transform: scale(1.05); }
.merch-card-body {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.merch-card-body h3 { font-size: 1.15rem; }
.merch-price { font-family: var(--font-display); color: var(--gold); margin-top: 0.25rem; }
.merch-add {
  padding: 0.5rem 1rem;
  border: 1px solid hsla(210,30%,22%,0.7);
  background: transparent;
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.merch-add:hover { border-color: var(--mineral); color: var(--mineral); }
.merch-note {
  margin-top: 2.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted-fg);
  font-family: var(--font-alt);
  font-style: italic;
}

/* ======================================================
   GENERIC PAGE
====================================================== */
.page-content {
  padding-top: 8rem;
  padding-bottom: 4rem;
}
.page-content .entry-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 2rem;
}
.page-content .entry-content {
  max-width: 60rem;
  color: var(--muted-fg);
  font-family: var(--font-alt);
  font-size: 1.125rem;
  line-height: 1.8;
}
.page-content .entry-content p { margin-bottom: 1.5rem; }
.page-content .entry-content h2, .page-content .entry-content h3 {
  color: var(--fg);
  margin-top: 2rem;
  margin-bottom: 1rem;
}
.page-content .entry-content a { color: var(--gold); text-decoration: underline; }

/* ======================================================
   SELECTION
====================================================== */
::selection { background: hsla(204,80%,58%,0.35); color: #fff; }

/* ======================================================
   SCROLLBAR
====================================================== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: hsla(204,60%,50%,0.4); border-radius: 99px; }
