/* ============================================
   A WRITER'S THOUGHTS - MASTER STYLESHEET
   Fantasy Author Website - Premium Design
   ============================================ */

/* ==================== CSS VARIABLES ==================== */
:root {
  /* Color Palette - Eerie Nordic Dark Fantasy */
  --color-void: #030305;
  --color-abyss: #070810;
  --color-shadow: #0b0d14;
  --color-dusk: #10131c;
  --color-twilight: #171b28;
  --color-mist: #2a3245;
  --color-silver: #6b7a96;
  --color-moonlight: #a8b8d4;
  --color-starlight: #d0ddef;

  /* Accent Colors - Nordic */
  --color-gold: #b8a060;
  --color-gold-bright: #d4c080;
  --color-arcane: #5a6eb8;
  --color-blood: #8b3040;
  --color-ethereal: #4a7080;
  --color-frost: #7aa8c0;
  --color-crimson: #ff4d6d;

  /* Gradients */
  --gradient-mystic: linear-gradient(135deg, var(--color-arcane) 0%, var(--color-gold) 100%);
  --gradient-ember: linear-gradient(135deg, var(--color-ember) 0%, var(--color-gold) 100%);
  --gradient-night: linear-gradient(180deg, var(--color-void) 0%, var(--color-abyss) 50%, var(--color-shadow) 100%);
  --gradient-fog: linear-gradient(180deg, transparent 0%, rgba(10, 11, 15, 0.8) 100%);

  /* Typography */
  --font-display: 'Cinzel', 'Times New Roman', serif;
  --font-heading: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Raleway', 'Helvetica Neue', sans-serif;
  --font-accent: 'Spectral', serif;

  /* Font Sizes - Fluid Typography */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
  --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
  --text-3xl: clamp(2rem, 1.5rem + 2.5vw, 3rem);
  --text-4xl: clamp(2.5rem, 1.75rem + 3.75vw, 4rem);
  --text-5xl: clamp(3rem, 2rem + 5vw, 5rem);
  --text-hero: clamp(3.5rem, 2.5rem + 6vw, 7rem);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-glow: 0 0 20px rgba(212, 175, 55, 0.3);
  --shadow-glow-strong: 0 0 40px rgba(212, 175, 55, 0.5);
  --shadow-arcane: 0 0 30px rgba(123, 92, 255, 0.4);
  --shadow-ethereal: 0 0 25px rgba(100, 255, 218, 0.3);
  --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.4);
  --shadow-card-hover: 0 20px 60px rgba(0, 0, 0, 0.6);
  --shadow-text: 0 2px 10px rgba(0, 0, 0, 0.5);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
  --transition-slower: 800ms ease;

  /* Z-Index Scale */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--color-gold) var(--color-abyss);
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-moonlight);
  background: var(--color-void);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-abyss);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--color-gold), var(--color-ember));
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold);
}

/* Selection */
::selection {
  background: var(--color-arcane);
  color: var(--color-starlight);
}

/* ==================== TYPOGRAPHY ==================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-starlight);
  letter-spacing: 0.02em;
}

h1 {
  font-size: var(--text-hero);
}

h2 {
  font-size: var(--text-4xl);
}

h3 {
  font-size: var(--text-3xl);
}

h4 {
  font-size: var(--text-2xl);
}

h5 {
  font-size: var(--text-xl);
}

h6 {
  font-size: var(--text-lg);
}

p {
  margin-bottom: var(--space-md);
  color: var(--color-silver);
}

a {
  color: var(--color-gold);
  text-decoration: none;
  transition: var(--transition-base);
}

a:hover {
  color: var(--color-starlight);
  text-shadow: var(--shadow-glow);
}

/* ==================== UTILITY CLASSES ==================== */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.text-center {
  text-align: center;
}

.text-gradient {
  background: var(--gradient-mystic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--gradient-mystic);
  color: var(--color-void);
  box-shadow: var(--shadow-arcane);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow-strong);
}

.btn-secondary {
  background: transparent;
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
}

.btn-secondary:hover {
  background: var(--color-gold);
  color: var(--color-void);
  box-shadow: var(--shadow-glow);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-moonlight);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-gold);
  color: var(--color-gold);
}

/* ==================== NAVIGATION ==================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  padding: var(--space-lg) 0;
  transition: all var(--transition-base);
}

.nav.scrolled {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px);
  padding: var(--space-md) 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-logo-icon {
  width: 50px;
  height: 50px;
  fill: var(--color-gold);
  transition: var(--transition-base);
}

.nav-logo:hover .nav-logo-icon {
  filter: drop-shadow(0 0 10px var(--color-gold));
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-starlight);
  letter-spacing: 0.05em;
}

.nav-logo-text span {
  color: var(--color-gold);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
}

.nav-link {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--color-moonlight);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  padding: var(--space-sm) 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-mystic);
  transition: width var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--color-gold);
}

/* Hamburger Menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: var(--z-modal);
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--color-gold);
  transition: var(--transition-base);
  margin: 3px 0;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ==================== HERO SECTION ==================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
  overflow: hidden;
  background:
    linear-gradient(rgba(3, 3, 5, 0.7), rgba(3, 3, 5, 0.85)),
    url('../assets/images/mistywoods.jpg') center center / cover no-repeat;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/images/hero-forest.jpg') center/cover no-repeat;
  filter: brightness(0.3) saturate(0.8);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-fog);
}

/* Parallax Fog Layers */
.fog-layer {
  position: absolute;
  width: 200%;
  height: 100%;
  background: url('../assets/images/fog.png') repeat-x;
  background-size: auto 100%;
  opacity: 0.4;
  animation: fogMove 60s linear infinite;
}

.fog-layer-1 {
  bottom: 0;
  animation-duration: 80s;
}

.fog-layer-2 {
  bottom: 10%;
  opacity: 0.3;
  animation-duration: 60s;
  animation-direction: reverse;
}

.fog-layer-3 {
  bottom: 20%;
  opacity: 0.2;
  animation-duration: 100s;
}

@keyframes fogMove {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Particles */
.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--color-gold);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 8s ease-in-out infinite;
}

@keyframes particleFloat {

  0%,
  100% {
    opacity: 0;
    transform: translateY(100vh) scale(0);
  }

  10% {
    opacity: 1;
    transform: scale(1);
  }

  90% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(-100vh) scale(0);
  }
}

.hero-content {
  text-align: center;
  padding: var(--space-xl);
  position: relative;
  z-index: var(--z-base);
}

.hero-subtitle {
  font-family: var(--font-accent);
  font-size: var(--text-lg);
  color: var(--color-gold);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.3s;
}

.hero-title {
  font-size: var(--text-hero);
  margin-bottom: var(--space-lg);
  text-shadow: var(--shadow-text);
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.5s;
}

.hero-title .highlight {
  display: block;
  background: var(--gradient-mystic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-author {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--color-silver);
  font-style: italic;
  margin-bottom: var(--space-2xl);
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.7s;
}

.hero-quote {
  font-family: var(--font-accent);
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-moonlight);
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.8;
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.9s;
}

.hero-cta {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 1.1s;
}

.scroll-indicator {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-silver);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  animation: bounce 2s infinite;
}

.scroll-indicator svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-gold);
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  40% {
    transform: translateX(-50%) translateY(-10px);
  }

  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================== SECTION STYLES ==================== */
.section {
  padding: var(--space-5xl) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-4xl);
}

.section-eyebrow {
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  color: var(--color-gold);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.section-title {
  margin-bottom: var(--space-lg);
}

.section-description {
  max-width: 700px;
  margin: 0 auto;
  color: var(--color-silver);
  font-size: var(--text-lg);
}

/* ==================== ABOUT SECTION ==================== */
.about {
  background:
    linear-gradient(rgba(3, 3, 5, 0.92), rgba(3, 3, 5, 0.95)),
    url('../assets/images/mistywoods.jpg') center center / cover no-repeat fixed;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.about-image::before {
  content: '';
  position: absolute;
  inset: -10px;
  border: 2px solid var(--color-gold);
  border-radius: var(--radius-lg);
  opacity: 0.3;
  transform: translate(20px, 20px);
  z-index: -1;
}

.about-content h2 {
  margin-bottom: var(--space-lg);
}

.about-content p {
  margin-bottom: var(--space-lg);
  font-size: var(--text-lg);
}

.about-signature {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--color-gold);
  font-style: italic;
  margin-top: var(--space-xl);
}

/* ==================== BOOKS SECTION ==================== */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-2xl);
}

.book-card {
  position: relative;
  perspective: 1000px;
  height: 550px;
}

.book-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
}

.book-card:hover .book-card-inner {
  transform: rotateY(180deg);
}

.book-card-front,
.book-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.book-card-front {
  background: var(--color-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
}

.book-card-front img {
  width: 280px;
  height: auto;
  box-shadow: var(--shadow-card);
  transition: var(--transition-base);
}

.book-card:hover .book-card-front img {
  transform: scale(1.05);
}

.book-card-back {
  background: linear-gradient(135deg, var(--color-shadow), var(--color-dusk));
  transform: rotateY(180deg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.book-card-back h4 {
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

.book-card-back .book-series {
  font-size: var(--text-sm);
  color: var(--color-silver);
  margin-bottom: var(--space-lg);
}

.book-card-back p {
  font-size: var(--text-sm);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

/* ==================== WORLD SECTION ==================== */
.world {
  background:
    linear-gradient(rgba(3, 3, 5, 0.9), rgba(3, 3, 5, 0.95)),
    url('../assets/images/mistywoods.jpg') top center / cover no-repeat fixed;
  position: relative;
  overflow: hidden;
}

.world::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(180deg, var(--color-void), transparent);
}

.world-map-container {
  position: relative;
  margin-bottom: var(--space-4xl);
}

.world-map {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.lore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-xl);
}

.lore-card {
  background: linear-gradient(135deg, rgba(26, 29, 40, 0.9), rgba(37, 41, 54, 0.9));
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.lore-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-mystic);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.lore-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(212, 175, 55, 0.4);
}

.lore-card:hover::before {
  transform: scaleX(1);
}

.lore-card-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-mystic);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.lore-card-icon svg {
  width: 30px;
  height: 30px;
  fill: var(--color-void);
}

.lore-card h4 {
  margin-bottom: var(--space-sm);
}

.lore-card p {
  font-size: var(--text-sm);
  margin-bottom: var(--space-lg);
}

/* ==================== SHOP SECTION ==================== */
.shop {
  background: var(--gradient-night);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.product-card {
  background: linear-gradient(135deg, var(--color-shadow), var(--color-dusk));
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  position: relative;
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/images/parchment-texture.png') center/cover;
  opacity: 0.05;
  pointer-events: none;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-card-hover);
}

.product-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.product-info {
  padding: var(--space-xl);
}

.product-info h4 {
  margin-bottom: var(--space-sm);
}

.product-price {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-gold);
  margin-bottom: var(--space-lg);
}

.product-price::before {
  content: '⚜ ';
}

/* ==================== MEMBERSHIP SECTION ==================== */
.membership {
  background:
    linear-gradient(rgba(3, 3, 5, 0.92), rgba(3, 3, 5, 0.95)),
    url('../assets/images/mistywoods.jpg') bottom center / cover no-repeat fixed;
}

.membership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-xl);
}

.tier-card {
  background: linear-gradient(135deg, var(--color-shadow), var(--color-dusk));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  text-align: center;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.tier-card.featured {
  border-color: var(--color-gold);
  transform: scale(1.05);
}

.tier-card.featured::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: 20px;
  right: -30px;
  background: var(--gradient-mystic);
  color: var(--color-void);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: var(--space-xs) var(--space-2xl);
  transform: rotate(45deg);
}

.tier-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-glow);
}

.tier-card.featured:hover {
  transform: scale(1.05) translateY(-10px);
}

.tier-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-lg);
  background: var(--gradient-mystic);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tier-icon svg {
  width: 40px;
  height: 40px;
  fill: var(--color-void);
}

.tier-name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-sm);
}

.tier-price {
  font-size: var(--text-4xl);
  color: var(--color-gold);
  margin-bottom: var(--space-lg);
}

.tier-price span {
  font-size: var(--text-base);
  color: var(--color-silver);
}

.tier-features {
  list-style: none;
  margin-bottom: var(--space-xl);
  text-align: left;
}

.tier-features li {
  padding: var(--space-sm) 0;
  color: var(--color-silver);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.tier-features li::before {
  content: '✦';
  color: var(--color-gold);
}

/* ==================== JOURNAL SECTION ==================== */
.journal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-xl);
}

.post-card {
  background: var(--color-shadow);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

.post-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-card-hover);
}

.post-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.post-content {
  padding: var(--space-xl);
}

.post-meta {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  font-size: var(--text-xs);
  color: var(--color-silver);
}

.post-category {
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.post-content h4 {
  margin-bottom: var(--space-sm);
  transition: color var(--transition-base);
}

.post-card:hover .post-content h4 {
  color: var(--color-gold);
}

.post-excerpt {
  font-size: var(--text-sm);
  color: var(--color-silver);
  margin-bottom: var(--space-lg);
}

.read-more {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--color-gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.read-more svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  transition: transform var(--transition-base);
}

.read-more:hover svg {
  transform: translateX(5px);
}

/* ==================== NEWSLETTER SECTION ==================== */
.newsletter {
  background:
    linear-gradient(rgba(3, 3, 5, 0.88), rgba(3, 3, 5, 0.92)),
    url('../assets/images/mistywoods.jpg') center center / cover no-repeat fixed;
  position: relative;
  overflow: hidden;
}

.newsletter::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/images/parchment-texture.png') center/cover;
  opacity: 0.03;
}

.newsletter-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.newsletter-form {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.newsletter-form input {
  flex: 1;
  padding: var(--space-md) var(--space-lg);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-starlight);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  transition: var(--transition-base);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.7);
  opacity: 1; /* Ensure opacity works */
}

/* ==================== FOOTER ==================== */
.footer {
  background: var(--color-void);
  padding: var(--space-4xl) 0 var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand p {
  margin-top: var(--space-md);
  color: var(--color-silver);
  max-width: 300px;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: var(--text-base);
  color: var(--color-gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: var(--color-silver);
  font-size: var(--text-sm);
}

.footer-links a:hover {
  color: var(--color-gold);
}

.social-links {
  display: flex;
  gap: var(--space-md);
}

.social-link {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-base);
}

.social-link:hover {
  background: var(--color-gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: var(--color-moonlight);
}

.social-link:hover svg {
  fill: var(--color-void);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: var(--text-sm);
  color: var(--color-silver);
}

/* ==================== ANIMATIONS ==================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Staggered animations */
.stagger>* {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.stagger.visible>*:nth-child(1) {
  transition-delay: 0.1s;
}

.stagger.visible>*:nth-child(2) {
  transition-delay: 0.2s;
}

.stagger.visible>*:nth-child(3) {
  transition-delay: 0.3s;
}

.stagger.visible>*:nth-child(4) {
  transition-delay: 0.4s;
}

.stagger.visible>*:nth-child(5) {
  transition-delay: 0.5s;
}

.stagger.visible>*:nth-child(6) {
  transition-delay: 0.6s;
}

.stagger.visible>* {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== PAGE LOADER ==================== */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--color-void);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
}

.loader-icon {
  width: 80px;
  height: 80px;
  margin-bottom: var(--space-lg);
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.7;
  }
}

.loader-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-gold);
  letter-spacing: 0.3em;
}