/* ============================================
   PaganVillage.com — Design System & Styles
   ============================================ */

/* === CSS Custom Properties === */
:root {
  /* Forest depths */
  --color-forest-deep: #1a2e1a;
  --color-forest-mid: #2d4a2d;
  --color-forest-light: #3d5c3d;

  /* Warm earth */
  --color-earth-dark: #8B6914;
  --color-earth-mid: #C4A265;
  --color-earth-light: #D4B97A;

  /* Moonlight and parchment */
  --color-moonlight: #F5F0E8;
  --color-parchment: #E8DFD0;
  --color-parchment-dark: #D4C9B8;

  /* Mystical accents */
  --color-plum-deep: #2D1B3D;
  --color-plum-mid: #4A2D5E;
  --color-midnight: #1B2340;

  /* Warm highlights */
  --color-amber: #D4A440;
  --color-gold: #C9961A;
  --color-gold-light: #E8C55A;

  /* Functional colors */
  --color-text-primary: #E8DFD0;
  --color-text-secondary: #C4A265;
  --color-text-heading: #F5F0E8;
  --color-link: #D4A440;
  --color-link-hover: #E8C55A;

  /* Backgrounds */
  --bg-primary: #1a2e1a;
  --bg-card: rgba(29, 20, 15, 0.6);
  --bg-card-hover: rgba(29, 20, 15, 0.8);

  /* Typography */
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Lora', 'Georgia', serif;
  --font-accent: 'MedievalSharp', 'Cormorant Garamond', cursive;

  /* Type scale (perfect fourth 1.333) */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.333rem;
  --text-2xl: 1.777rem;
  --text-3xl: 2.369rem;
  --text-4xl: 3.157rem;
  --text-5xl: 4.209rem;

  /* Line heights */
  --leading-tight: 1.2;
  --leading-normal: 1.7;
  --leading-relaxed: 1.9;

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

  /* Layout */
  --content-width: 900px;
  --wide-width: 1200px;
  --gutter: 1.5rem;

  /* Borders */
  --border-subtle: 1px solid rgba(196, 162, 101, 0.2);
  --border-accent: 1px solid rgba(212, 164, 64, 0.4);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 600ms ease;
  --transition-glacial: 1200ms ease;
}


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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
  background-color: var(--bg-primary);
  background-image:
    radial-gradient(ellipse at 50% 30%, rgba(45, 74, 45, 0.4) 0%, transparent 70%),
    radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(10, 15, 10, 0.6) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}


/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-text-heading);
  line-height: var(--leading-tight);
  font-weight: 300;
}

h1 { font-size: var(--text-5xl); letter-spacing: 0.02em; }
h2 { font-size: var(--text-3xl); font-weight: 400; }
h3 { font-size: var(--text-2xl); font-weight: 600; }
h4 { font-size: var(--text-xl); font-weight: 600; }

p {
  margin-bottom: var(--space-md);
  max-width: 65ch;
}

a {
  color: var(--color-link);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

a:hover {
  color: var(--color-link-hover);
  border-bottom-color: var(--color-link-hover);
}

blockquote {
  border-left: 3px solid var(--color-gold);
  padding-left: var(--space-lg);
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-xl);
  color: var(--color-text-secondary);
  margin: var(--space-lg) 0;
}

strong { font-weight: 600; }
em { font-style: italic; }

.glow-text {
  text-shadow:
    0 0 20px rgba(212, 164, 64, 0.15),
    0 0 40px rgba(212, 164, 64, 0.08);
}


/* === Layout === */
.container {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container--narrow {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}


/* === Particle Canvas === */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}


/* ============================================
   Header & Navigation
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-md) 0;
  transition: background var(--transition-base), padding var(--transition-base), box-shadow var(--transition-base);
}

.site-header.scrolled {
  background: rgba(26, 46, 26, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: var(--space-sm) 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.site-header.header-hidden {
  transform: translateY(-100%);
}

.header-inner {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  border-bottom: none;
  text-decoration: none;
}

.site-logo:hover {
  border-bottom: none;
}

.logo-icon {
  width: 36px;
  height: 36px;
  color: var(--color-gold);
}

.site-name {
  font-family: var(--font-accent);
  font-size: var(--text-xl);
  color: var(--color-text-heading);
  letter-spacing: 0.03em;
}

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

.nav-link {
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-parchment);
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-gold);
  border-bottom-color: var(--color-gold);
}

/* Hamburger toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  align-items: center;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-parchment);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.nav-toggle.open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ============================================
   Footer
   ============================================ */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: var(--space-3xl);
  padding: var(--space-2xl) 0 var(--space-lg);
  background: rgba(15, 25, 15, 0.6);
  border-top: var(--border-subtle);
}

.celtic-divider {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.celtic-divider img {
  max-width: 400px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  opacity: 0.7;
}

.footer-content {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.footer-brand {
  flex: 1;
  min-width: 250px;
}

.footer-site-name {
  font-family: var(--font-accent);
  font-size: var(--text-2xl);
  color: var(--color-text-heading);
  display: block;
  margin-bottom: var(--space-sm);
}

.footer-tagline {
  color: var(--color-text-secondary);
  font-style: italic;
  font-size: var(--text-sm);
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-nav a {
  font-size: var(--text-sm);
  color: var(--color-parchment-dark);
}

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

.footer-note {
  max-width: var(--wide-width);
  margin: var(--space-xl) auto 0;
  padding: var(--space-md) var(--gutter) 0;
  border-top: var(--border-subtle);
  text-align: center;
  font-size: var(--text-xs);
  color: var(--color-parchment-dark);
  opacity: 0.6;
}

.footer-credits {
  max-width: var(--wide-width);
  margin: var(--space-md) auto 0;
  padding: 0 var(--gutter);
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-parchment);
  opacity: 0.8;
}

.footer-credits a {
  color: var(--color-gold-muted);
  border-bottom: 1px dotted rgba(196, 162, 101, 0.3);
}

.footer-credits a:hover {
  color: var(--color-gold);
  border-bottom-color: var(--color-gold);
}

/* Hero photo credit overlay */
.hero-photo-credit {
  position: absolute;
  bottom: 10px;
  right: 16px;
  font-size: 0.6875rem;
  color: rgba(245, 240, 232, 0.55);
  z-index: 2;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
}

.hero-photo-credit a {
  color: rgba(245, 240, 232, 0.7);
  text-decoration: none;
  border-bottom: 1px dotted rgba(245, 240, 232, 0.3);
}

.hero-photo-credit a:hover {
  color: var(--color-gold);
  border-bottom-color: var(--color-gold);
}


/* ============================================
   Shared Components
   ============================================ */

/* Content Card */
.content-card {
  background: var(--bg-card);
  border: var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition:
    background var(--transition-base),
    border-color var(--transition-base),
    transform var(--transition-base),
    box-shadow var(--transition-base);
}

.content-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(212, 164, 64, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 16px rgba(212, 164, 64, 0.05);
}

/* Section Divider */
.section-divider {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: var(--space-2xl) auto;
  max-width: 300px;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-earth-mid), transparent);
}

.divider-icon {
  color: var(--color-gold);
  font-size: var(--text-lg);
}

/* Celtic Image Divider */
.celtic-image-divider {
  text-align: center;
  margin: var(--space-2xl) auto;
  max-width: 500px;
  opacity: 0.6;
}

.celtic-image-divider img {
  width: 100%;
  height: auto;
}

/* Page Section */
.page-section {
  position: relative;
  z-index: 1;
  padding: var(--space-2xl) 0;
}

/* Text Link */
.text-link {
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-link);
  border-bottom: 1px solid rgba(212, 164, 64, 0.3);
}

.text-link:hover {
  color: var(--color-link-hover);
  border-bottom-color: var(--color-link-hover);
}


/* ============================================
   Hero Sections
   ============================================ */

/* Homepage Hero */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-3xl) var(--gutter) calc(var(--space-3xl) + 60px);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(to bottom, rgba(26, 46, 26, 0.6) 0%, rgba(26, 46, 26, 0.5) 50%, rgba(26, 46, 26, 0.85) 100%),
    radial-gradient(ellipse at center, transparent 20%, rgba(26, 46, 26, 0.5) 100%);
}

.hero-content {
  position: relative;
  max-width: 800px;
}

.hero-preheading {
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-earth-mid);
  margin-bottom: var(--space-md);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7);
}

.hero-title {
  font-size: var(--text-5xl);
  font-weight: 300;
  margin-bottom: var(--space-lg);
  color: var(--color-text-heading);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero-illustration {
  max-width: 280px;
  margin: 0 auto var(--space-lg);
  opacity: 0.85;
}

.hero-illustration img {
  width: 100%;
  height: auto;
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 550px;
  margin: 0 auto var(--space-xl);
  line-height: var(--leading-relaxed);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}

.hero-cta {
  display: inline-block;
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  padding: 0.75em 2em;
  font-family: var(--font-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: var(--text-sm);
  border-radius: var(--radius-sm);
  transition: background var(--transition-base), color var(--transition-base);
}

.hero-cta:hover {
  background: var(--color-gold);
  color: var(--color-forest-deep);
  border-bottom-color: var(--color-gold);
}

.scroll-indicator {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-earth-mid);
  font-size: var(--text-sm);
  font-family: var(--font-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  opacity: 0.6;
}

.scroll-indicator svg {
  width: 20px;
  height: 20px;
}

/* Page Hero (inner pages) */
.page-hero {
  position: relative;
  z-index: 1;
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--space-3xl) + 60px) var(--gutter) var(--space-2xl);
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(to bottom, rgba(26, 46, 26, 0.65) 0%, rgba(26, 46, 26, 0.55) 40%, rgba(26, 46, 26, 0.9) 100%),
    radial-gradient(ellipse at center, transparent 15%, rgba(26, 46, 26, 0.45) 100%);
}

.page-hero-content {
  position: relative;
  max-width: 700px;
}

.page-hero-label {
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-earth-mid);
  margin-bottom: var(--space-sm);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7);
}

.page-hero-title {
  font-size: var(--text-4xl);
  font-weight: 300;
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.page-hero-intro {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 550px;
  margin: 0 auto;
  line-height: var(--leading-relaxed);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}


/* ============================================
   Homepage Sections
   ============================================ */

/* Intro Section */
.intro-section {
  position: relative;
  z-index: 1;
  padding: var(--space-2xl) 0;
}

.intro-columns {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-xl);
  align-items: start;
  margin-top: var(--space-lg);
}

.intro-text p {
  color: var(--color-text-primary);
  line-height: var(--leading-relaxed);
}

.decorated-quote {
  padding: var(--space-lg);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-gold);
}

.decorated-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-xl);
  color: var(--color-text-secondary);
  margin-bottom: 0;
  max-width: none;
}

/* Explore Grid */
.explore-section {
  position: relative;
  z-index: 1;
  padding: var(--space-2xl) 0;
}

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

.explore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.explore-card {
  display: block;
  text-align: center;
  text-decoration: none;
  border-bottom: none;
  padding: var(--space-xl) var(--space-lg);
}

.explore-card:hover {
  border-bottom: none;
}

.explore-card .card-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-md);
  color: var(--color-gold);
}

.explore-card .card-icon svg {
  width: 100%;
  height: 100%;
}

.explore-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
  color: var(--color-text-heading);
  transition: color var(--transition-fast);
}

.explore-card:hover h3 {
  color: var(--color-gold);
}

.explore-card p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  max-width: none;
  margin-bottom: 0;
}

/* Moon Widget */
.moon-widget-section {
  position: relative;
  z-index: 1;
  padding: var(--space-2xl) 0;
}

.moon-widget {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  max-width: 500px;
  margin: 0 auto;
}

.moon-visual {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--color-parchment);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(245, 240, 232, 0.15), 0 0 40px rgba(245, 240, 232, 0.05);
}

.moon-shadow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-primary);
  transition: transform var(--transition-slow);
}

.moon-info h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-xs);
}

.moon-phase-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text-heading);
  margin-bottom: var(--space-xs);
}

.moon-illumination {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
}


/* ============================================
   Wheel of the Year Page
   ============================================ */
.wheel-diagram-section {
  position: relative;
  z-index: 1;
  padding: var(--space-2xl) 0;
  text-align: center;
}

.wheel-illustration {
  max-width: 500px;
  margin: 0 auto var(--space-xl);
}

.wheel-illustration img {
  width: 100%;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(212, 164, 64, 0.1);
}

/* Sabbat Detail */
.sabbat-detail {
  position: relative;
  z-index: 1;
  padding: var(--space-xl) 0;
}

.sabbat-header {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.sabbat-icon {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  color: var(--color-gold);
}

.sabbat-icon svg {
  width: 100%;
  height: 100%;
}

.sabbat-pronunciation {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xs);
}

.sabbat-date {
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  color: var(--color-earth-mid);
  letter-spacing: 0.05em;
}

.sabbat-body {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.sabbat-description p {
  line-height: var(--leading-relaxed);
}

.sabbat-sidebar h4 {
  margin-bottom: var(--space-md);
  color: var(--color-gold);
  font-size: var(--text-base);
}

.sabbat-details-list {
  display: grid;
  gap: var(--space-sm);
}

.sabbat-details-list dt {
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-earth-mid);
  margin-bottom: 2px;
}

.sabbat-details-list dd {
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}


/* ============================================
   Moon Phases Page
   ============================================ */
.current-moon-section {
  position: relative;
  z-index: 1;
  padding: var(--space-2xl) 0;
}

.current-moon-display {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  justify-content: center;
  flex-wrap: wrap;
}

.moon-sphere {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--color-parchment);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(245, 240, 232, 0.2), 0 0 60px rgba(245, 240, 232, 0.08);
  flex-shrink: 0;
}

.moon-sphere .moon-shadow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--color-forest-deep);
}

.moon-details h2 {
  margin-bottom: var(--space-sm);
}

.moon-details p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xs);
}

/* Moon Phase Detail */
.moon-phase-detail {
  position: relative;
  z-index: 1;
  padding: var(--space-xl) 0;
}

.phase-header {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.phase-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.phase-body {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.phase-description p {
  line-height: var(--leading-relaxed);
}

.phase-sidebar {
  font-size: var(--text-sm);
}

.phase-sidebar h4 {
  color: var(--color-gold);
  margin-bottom: var(--space-md);
  font-size: var(--text-base);
}

.phase-sidebar ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.phase-sidebar li {
  padding-left: var(--space-md);
  position: relative;
  color: var(--color-text-primary);
}

.phase-sidebar li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--color-gold);
  font-size: var(--text-xs);
}


/* ============================================
   Altar Page
   ============================================ */
.altar-diagram-section {
  position: relative;
  z-index: 1;
  padding: var(--space-2xl) 0;
  text-align: center;
}

.altar-diagram-section .section-intro {
  max-width: 600px;
  margin: 0 auto var(--space-xl);
  color: var(--color-text-secondary);
}

.altar-illustration {
  max-width: 700px;
  margin: 0 auto var(--space-xl);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.altar-illustration img {
  width: 100%;
  height: auto;
}

.altar-items-section {
  position: relative;
  z-index: 1;
  padding: var(--space-xl) 0;
}

.altar-items-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.altar-item-card .item-element {
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
}

.altar-item-card h3 {
  margin-bottom: var(--space-xs);
}

.altar-item-card p {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.item-tips {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: var(--border-subtle);
}

.item-tips h4 {
  font-size: var(--text-sm);
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

.item-tips ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.item-tips li {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  padding-left: var(--space-md);
  position: relative;
}

.item-tips li::before {
  content: '·';
  position: absolute;
  left: 4px;
  color: var(--color-gold);
}


/* ============================================
   Sacred Symbols Page
   ============================================ */
.symbols-section {
  position: relative;
  z-index: 1;
  padding: var(--space-2xl) 0;
}

.symbols-intro {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.symbols-intro-illustration {
  max-width: 600px;
  margin: 0 auto var(--space-xl);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.symbols-intro-illustration img {
  width: 100%;
  height: auto;
}

.symbols-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

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

.symbol-visual {
  width: 120px;
  height: 120px;
  margin: 0 auto var(--space-md);
}

.symbol-visual svg {
  width: 100%;
  height: 100%;
}

.symbol-card h3 {
  margin-bottom: var(--space-xs);
}

.symbol-aka {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  font-style: italic;
  margin-bottom: var(--space-md);
}

.symbol-card > p {
  font-size: var(--text-sm);
  text-align: left;
  line-height: var(--leading-relaxed);
  max-width: none;
}

.symbol-uses {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: var(--border-subtle);
  text-align: left;
}

.symbol-uses h4 {
  font-size: var(--text-sm);
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

.symbol-uses ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.symbol-uses li {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  padding-left: var(--space-md);
  position: relative;
}

.symbol-uses li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--color-gold);
  font-size: var(--text-xs);
}


/* ============================================
   Herbs Page
   ============================================ */
.herbs-section {
  position: relative;
  z-index: 1;
  padding: var(--space-2xl) 0;
}

.herb-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  margin-bottom: var(--space-xl);
}

.filter-btn {
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.5em 1.2em;
  border: 1px solid rgba(196, 162, 101, 0.3);
  border-radius: var(--radius-sm);
  color: var(--color-parchment-dark);
  transition: all var(--transition-base);
}

.filter-btn:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.filter-btn.active {
  background: var(--color-gold);
  color: var(--color-forest-deep);
  border-color: var(--color-gold);
}

.herbs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.herb-card h3 {
  margin-bottom: var(--space-xs);
}

.herb-latin {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  font-style: italic;
  margin-bottom: var(--space-sm);
}

.herb-correspondences {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.herb-tag {
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border: 1px solid rgba(196, 162, 101, 0.3);
  border-radius: var(--radius-sm);
  color: var(--color-earth-mid);
}

.herb-card > p {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  max-width: none;
}

.herb-details {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: var(--border-subtle);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px var(--space-md);
}

.herb-details dt {
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-earth-mid);
}

.herb-details dd {
  font-size: var(--text-sm);
  color: var(--color-text-primary);
}

/* Herb card filter animation */
.herb-card {
  transition:
    opacity var(--transition-slow),
    transform var(--transition-slow),
    background var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base);
}

.herb-card.hiding {
  opacity: 0;
  transform: scale(0.95);
}


/* ============================================
   Tarot App Page
   ============================================ */

/* Tighter vertical rhythm for app page */
[data-page="tarot"] .page-section {
  padding: var(--space-lg) 0;
}

[data-page="tarot"] .section-divider {
  margin: var(--space-md) auto;
}

.app-features-section {
  text-align: center;
}

.app-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.app-feature-item {
  background: var(--bg-card);
  border: var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  text-align: left;
  transition: background var(--transition-base), border-color var(--transition-base);
}

.app-feature-item:hover {
  background: var(--bg-card-hover);
  border-color: rgba(212, 164, 64, 0.3);
}

.app-feature-icon {
  display: block;
  font-size: 1.5rem;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
  opacity: 0.8;
}

.app-feature-item h3 {
  font-size: var(--text-base);
  margin-bottom: var(--space-xs);
}

.app-feature-item p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  max-width: none;
  line-height: var(--leading-relaxed);
}

.app-overview-section {
  text-align: center;
}

.app-overview-section .section-intro {
  max-width: 600px;
  margin: 0 auto;
  color: var(--color-text-secondary);
}

/* Privacy Policy & Support two-column layout */
.app-policy-support-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-2xl);
  text-align: left;
}

.app-policy-column h2,
.app-support-column h2 {
  margin-bottom: var(--space-md);
}

.app-policy-column p,
.app-support-column p {
  color: var(--color-text-primary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-md);
}

.app-policy-column ul {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-lg) 0;
}

.app-policy-column li {
  position: relative;
  padding-left: var(--space-lg);
  margin-bottom: var(--space-sm);
  color: var(--color-text-primary);
  line-height: var(--leading-relaxed);
  font-size: var(--text-sm);
}

.app-policy-column li::before {
  content: '\2726';
  position: absolute;
  left: 0;
  color: var(--color-gold);
  opacity: 0.6;
}

/* Tarot Card Gallery */
.app-gallery-section {
  text-align: center;
}

.app-gallery-section .section-intro {
  max-width: 600px;
  margin: 0 auto var(--space-xl);
  color: var(--color-text-secondary);
}

.tarot-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  max-width: 900px;
  margin: 0 auto;
}

.tarot-card-item {
  text-align: center;
}

.tarot-card-item img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), 0 0 12px rgba(212, 164, 64, 0.06);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.tarot-card-item img:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 164, 64, 0.12);
}

.tarot-card-label {
  display: block;
  margin-top: var(--space-sm);
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-earth-mid);
  opacity: 0.8;
}


/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
  :root {
    --text-5xl: 3.2rem;
    --text-4xl: 2.5rem;
    --text-3xl: 2rem;
  }

  .explore-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .herbs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .app-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tarot-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --text-5xl: 2.5rem;
    --text-4xl: 2rem;
    --text-3xl: 1.75rem;
    --text-2xl: 1.5rem;
    --space-2xl: 3rem;
    --space-3xl: 5rem;
  }

  /* Mobile Nav */
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 46, 26, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    z-index: 999;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    gap: var(--space-lg);
    text-align: center;
  }

  .nav-link {
    font-size: var(--text-xl);
  }

  /* Layouts go single column */
  .explore-grid,
  .symbols-grid,
  .herbs-grid,
  .altar-items-grid,
  .app-features-grid {
    grid-template-columns: 1fr;
  }

  .intro-columns,
  .sabbat-body,
  .phase-body {
    grid-template-columns: 1fr;
  }

  .tarot-gallery {
    grid-template-columns: repeat(2, 1fr);
    max-width: 500px;
  }

  .app-policy-support-grid {
    grid-template-columns: 1fr;
  }

  .moon-widget {
    flex-direction: column;
    text-align: center;
  }

  .current-moon-display {
    flex-direction: column;
    text-align: center;
  }

  .hero {
    min-height: 90vh;
  }

  .page-hero {
    min-height: 40vh;
  }
}

@media (max-width: 480px) {
  :root {
    --text-5xl: 2rem;
    --gutter: 1rem;
  }

  .hero {
    min-height: 85vh;
  }

  .page-hero {
    min-height: 35vh;
  }
}

/* Touch device adjustments */
@media (hover: hover) {
  .content-card:hover {
    transform: translateY(-2px);
  }
}

@media (hover: none) {
  .content-card:hover {
    transform: none;
  }
}
