/*
Theme Name: Hollow Theme
Author: Christine Ford
Description: The Hollow official website theme — green and gold edition.
Version: 2.3
*/

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

/* ── IMG RESET — prevents WordPress default styles squishing images ── */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── COLOR TOKENS ── */
:root {
  --forest:       #1a3320;
  --deep-green:   #1f3d28;
  --mid-green:    #2a5235;
  --leaf:         #3a7048;
  --sage:         #5a9e6a;
  --pale-sage:    #a8d4b0;
  --gold:         #c8a84b;
  --gold-light:   #e8c97a;
  --gold-pale:    #f5e6b8;
  --gold-deep:    #a07828;
  --cream:        #f8f4e8;
  --warm-white:   #fdfaf2;
  --bark:         #4a3520;
  --stone:        #d8cfc0;
  --mist:         #6a8870;
  --fog:          #4a6854;
  --serif-display: 'Playfair Display', Georgia, serif;
  --serif-body:    'EB Garamond', Georgia, serif;
  --serif-title:   'Cinzel', serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--warm-white);
  color: var(--forest);
  font-family: var(--serif-body);
  font-size: 18px;
  line-height: 1.7;
  overflow-x: hidden;
}

body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

/* ── PARTICLES ── */
#particles {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ── NAVIGATION ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(26,51,32,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(200,168,75,0.3);
  padding: 0 40px;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  font-family: var(--serif-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--gold-light);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav-logo span {
  display: block;
  font-size: 10px;
  font-family: var(--serif-title);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pale-sage);
  font-weight: 400;
  margin-top: -2px;
}

#site-navigation ul {
  list-style: none;
  display: flex;
  gap: 32px;
  align-items: center;
}

#site-navigation ul li a {
  font-family: var(--serif-title);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pale-sage);
  text-decoration: none;
  transition: color 0.2s;
}

#site-navigation ul li a:hover,
#site-navigation ul li.current-menu-item a {
  color: var(--gold-light);
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 60px;
  z-index: 1;
  background: linear-gradient(160deg, var(--forest) 0%, var(--deep-green) 50%, var(--mid-green) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 65% 40%, rgba(200,168,75,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 10% 80%, rgba(90,158,106,0.15) 0%, transparent 50%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--warm-white));
  pointer-events: none;
  z-index: 2;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1100px;
  width: 100%;
  align-items: center;
  position: relative;
  z-index: 3;
}

.book-wrap {
  position: relative;
  display: inline-block;
}

.book-wrap::before {
  content: '';
  position: absolute;
  inset: -24px;
  background: radial-gradient(ellipse, rgba(200,168,75,0.2) 0%, transparent 70%);
  border-radius: 4px;
  z-index: -1;
  animation: glow 4s ease-in-out infinite alternate;
}

@keyframes glow {
  from { opacity: 0.5; transform: scale(0.97); }
  to   { opacity: 1;   transform: scale(1.03); }
}

.book-img {
  width: 100%;
  max-width: 420px;
  height: auto;        /* natural proportions — never stretched */
  aspect-ratio: auto;
  object-fit: unset;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;  /* avoids blur during the glow animation */
  backface-visibility: hidden;
  transform: translateZ(0);
  border-radius: 4px;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.5),
    0 0 0 3px rgba(200,168,75,0.3),
    0 0 80px rgba(200,168,75,0.1);
  display: block;
}

.hero-text { padding: 20px 0; }

.series-label {
  font-family: var(--serif-title);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 16px;
  display: block;
}

.hero-title {
  font-family: var(--serif-display);
  font-size: clamp(56px, 6vw, 88px);
  font-weight: 900;
  line-height: 0.9;
  color: var(--warm-white);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-family: var(--serif-display);
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 400;
  font-style: italic;
  color: var(--gold-light);
  margin-bottom: 28px;
}

.hero-byline {
  font-family: var(--serif-title);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pale-sage);
  margin-bottom: 36px;
}

.hero-hook {
  font-family: var(--serif-display);
  font-size: 20px;
  font-style: italic;
  color: var(--gold-pale);
  line-height: 1.6;
  margin-bottom: 40px;
  padding-left: 20px;
  border-left: 3px solid var(--gold);
}

.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  font-family: var(--serif-title);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 3px;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
  display: inline-block;
}

.btn-primary {
  background: var(--gold);
  color: var(--forest);
  font-weight: 700;
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,168,75,0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--gold-light);
  border: 2px solid rgba(200,168,75,0.5);
}
.btn-ghost:hover {
  border-color: var(--gold-light);
  background: rgba(200,168,75,0.1);
  transform: translateY(-2px);
}

/* ── DIVIDER ── */
.divider {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 24px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(58,112,72,0.4), transparent);
}

.divider-mark { color: var(--gold); font-size: 20px; opacity: 0.7; }

/* ── SECTIONS ── */
section {
  position: relative;
  z-index: 1;
  padding: 96px 24px;
}

.section-inner { max-width: 860px; margin: 0 auto; }

.section-label {
  font-family: var(--serif-title);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 20px;
  display: block;
}

.section-title {
  font-family: var(--serif-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: var(--forest);
  line-height: 1.1;
  margin-bottom: 32px;
}

/* ── SYNOPSIS ── */
.synopsis { background: var(--warm-white); }

.synopsis-text {
  font-size: 19px;
  line-height: 1.85;
  color: var(--bark);
  margin-bottom: 24px;
}

.synopsis-text strong { color: var(--forest); font-weight: 600; }

.pull-quote {
  margin: 48px 0;
  padding: 32px 40px;
  border-left: 4px solid var(--gold);
  background: linear-gradient(to right, rgba(200,168,75,0.06), transparent);
  border-radius: 0 4px 4px 0;
}

.pull-quote p {
  font-family: var(--serif-display);
  font-size: 24px;
  font-style: italic;
  color: var(--forest);
  line-height: 1.5;
  margin-bottom: 12px;
}

.pull-quote cite {
  font-size: 12px;
  color: var(--mist);
  letter-spacing: 0.15em;
  font-style: normal;
  font-family: var(--serif-title);
  text-transform: uppercase;
}

/* ── WORLD ── */
.world { background: var(--cream); }

.world-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
}

.world-card {
  background: var(--warm-white);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(58,112,72,0.15);
  border-radius: 4px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.world-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 0;
  background: linear-gradient(to bottom, var(--gold), var(--sage));
  transition: height 0.4s ease;
}

.world-card:hover {
  border-color: rgba(58,112,72,0.35);
  box-shadow: 0 8px 32px rgba(26,51,32,0.08);
  transform: translateY(-3px);
}
.world-card:hover::before { height: 100%; }

.world-card-icon { font-size: 32px; margin-bottom: 16px; display: block; }

.world-card-title {
  font-family: var(--serif-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 12px;
}

.world-card-text { font-size: 16px; color: var(--fog); line-height: 1.75; }

/* ── CHARACTERS ── */
.characters { background: var(--deep-green); }

.characters .section-title { color: var(--gold-pale); }
.characters .section-label { color: var(--gold-light); }

.char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.char-card {
  padding: 28px;
  border: 1px solid rgba(200,168,75,0.15);
  background: rgba(255,255,255,0.04);
  border-radius: 4px;
  transition: border-color 0.3s, transform 0.3s, background 0.3s;
}

.char-card:hover {
  border-color: rgba(200,168,75,0.4);
  background: rgba(255,255,255,0.07);
  transform: translateY(-4px);
}

.char-name {
  font-family: var(--serif-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 4px;
}

.char-role {
  font-family: var(--serif-title);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pale-sage);
  margin-bottom: 14px;
  display: block;
}

.char-desc { font-size: 15px; color: rgba(168,212,176,0.85); line-height: 1.7; }

/* ── SERIES ── */
.series {
  background: linear-gradient(135deg, var(--forest) 0%, var(--mid-green) 100%);
  text-align: center;
}

.series .section-title { color: var(--gold-pale); }
.series .section-label { color: var(--gold-light); display: block; }

.series-books {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 56px;
  flex-wrap: wrap;
}

.series-book { width: 180px; text-align: center; }

.series-book-cover {
  width: 100%;
  aspect-ratio: 2/3;
  background: rgba(0,0,0,0.2);
  border: 2px solid rgba(200,168,75,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  overflow: hidden;
  border-radius: 4px;
  transition: border-color 0.3s;
}

.series-book-cover:hover { border-color: rgba(200,168,75,0.6); }
.series-book-cover img { width: 100%; height: 100%; object-fit: cover; }
.series-book-cover.coming-soon { flex-direction: column; gap: 10px; }

.coming-label {
  font-family: var(--serif-title);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(200,168,75,0.5);
}

.coming-title {
  font-family: var(--serif-display);
  font-size: 16px;
  font-style: italic;
  color: rgba(200,168,75,0.6);
  padding: 0 12px;
  text-align: center;
}

.series-book-title {
  font-family: var(--serif-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--gold-pale);
  margin-bottom: 4px;
}

.series-book-num {
  font-family: var(--serif-title);
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--pale-sage);
  text-transform: uppercase;
}

/* ── WHERE TO BUY ── */
.buy { background: var(--warm-white); }

.buy-intro { font-size: 18px; color: var(--fog); margin-bottom: 48px; max-width: 520px; }

.buy-formats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.buy-format {
  background: var(--cream);
  padding: 32px 28px;
  border: 1px solid rgba(58,112,72,0.15);
  border-radius: 4px;
  border-top: 4px solid transparent;
  transition: border-top-color 0.3s, box-shadow 0.3s;
}

.buy-format:hover {
  border-top-color: var(--gold);
  box-shadow: 0 8px 32px rgba(26,51,32,0.08);
}

.buy-format-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(58,112,72,0.12);
}

.buy-format-icon { font-size: 28px; flex-shrink: 0; }

.buy-format-title {
  font-family: var(--serif-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 3px;
}

.buy-format-subtitle {
  font-family: var(--serif-title);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist);
}

.buy-links { display: flex; flex-direction: column; gap: 4px; }

.buy-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 14px;
  background: var(--warm-white);
  color: var(--bark);
  text-decoration: none;
  font-size: 15px;
  font-family: var(--serif-body);
  border-radius: 2px;
  border: 1px solid rgba(58,112,72,0.1);
  transition: background 0.2s, color 0.2s, border-color 0.2s, padding-left 0.2s;
  gap: 12px;
}

.buy-link:hover {
  background: var(--mid-green);
  color: var(--warm-white);
  border-color: transparent;
  padding-left: 20px;
}

.buy-link:hover .buy-link-arrow { color: var(--gold-light); }

.buy-link-highlight { border-left: 3px solid var(--sage); }

.buy-link-name { display: flex; flex-direction: column; gap: 2px; }

.buy-link-note {
  font-size: 11px;
  color: var(--sage);
  font-style: italic;
  font-family: var(--serif-body);
}

.buy-link:hover .buy-link-note { color: var(--pale-sage); }

.buy-link-arrow {
  color: var(--gold-deep);
  font-size: 16px;
  flex-shrink: 0;
  transition: transform 0.2s, color 0.2s;
}

.buy-link:hover .buy-link-arrow { transform: translateX(4px); }

.buy-library {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: rgba(58,112,72,0.06);
  border: 1px solid rgba(58,112,72,0.2);
  border-left: 4px solid var(--sage);
  padding: 28px 32px;
  margin-top: 8px;
  border-radius: 0 4px 4px 0;
}

.buy-library-icon { font-size: 28px; flex-shrink: 0; margin-top: 2px; }

.buy-library-title {
  font-family: var(--serif-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 8px;
}

.buy-library-text { font-size: 15px; color: var(--fog); line-height: 1.65; }
.buy-library-text em { color: var(--gold-deep); font-style: italic; }
.buy-library-text strong { color: var(--forest); font-weight: 600; }

/* ── AUTHOR ── */
.author { background: var(--cream); }

.author-inner { max-width: 700px; margin: 0 auto; }

.author-text { font-size: 18px; color: var(--bark); line-height: 1.85; margin-bottom: 20px; }
.author-text em { color: var(--gold-deep); font-style: italic; }

/* ── WORDPRESS PAGE CONTENT ── */
.wp-content { position: relative; z-index: 1; padding: 100px 24px; background: var(--warm-white); }

.wp-content .entry-content {
  max-width: 700px;
  margin: 0 auto;
  font-size: 18px;
  color: var(--bark);
  line-height: 1.85;
}

.wp-content .entry-content h1,
.wp-content .entry-content h2,
.wp-content .entry-content h3 {
  font-family: var(--serif-display);
  color: var(--forest);
  margin-bottom: 16px;
  margin-top: 40px;
}

.wp-content .entry-content p { margin-bottom: 20px; }
.wp-content .entry-content a { color: var(--gold-deep); text-decoration: underline; }
.wp-content .entry-content a:hover { color: var(--forest); }

/* ── FOOTER ── */
.site-footer {
  background: var(--forest);
  border-top: 3px solid var(--gold);
  padding: 48px 24px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-title {
  font-family: var(--serif-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 8px;
}

.footer-sub {
  font-family: var(--serif-title);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pale-sage);
  margin-bottom: 24px;
}

.footer-nav { margin-bottom: 24px; }

.footer-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-nav ul li a {
  font-family: var(--serif-title);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pale-sage);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-copy { font-size: 13px; color: rgba(168,212,176,0.4); }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: none; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) { .buy-formats { grid-template-columns: 1fr; } }

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-book { display: flex; justify-content: center; }
  .hero-hook { text-align: left; }
  .btn-row { justify-content: center; }
  .world-grid { grid-template-columns: 1fr; }
  .char-grid { grid-template-columns: 1fr; }
  section { padding: 72px 24px; }
  .pull-quote { padding: 24px; }
  .buy-library { flex-direction: column; gap: 12px; }
  #site-navigation { display: none; }
  .site-header { padding: 0 20px; }
  .hero::after { height: 80px; }
}

@media (max-width: 480px) {
  .series-books { gap: 24px; }
  .series-book { width: 140px; }
}


/* ── INTRO VIDEO OVERLAY ── */
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #060d08;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.9s ease;
}

.intro-overlay.intro-fade { opacity: 0; pointer-events: none; }
.intro-overlay.intro-hidden { display: none; }

.intro-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.intro-skip {
  position: absolute;
  bottom: 32px;
  right: 32px;
  font-family: var(--serif-title);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-pale);
  background: rgba(6,13,8,0.55);
  border: 1px solid rgba(200,168,75,0.5);
  border-radius: 3px;
  padding: 12px 20px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.intro-skip:hover {
  background: rgba(200,168,75,0.18);
  color: #fff;
  border-color: var(--gold-light);
}

body.intro-active { overflow: hidden; }

/* ── COMING SOON BUY LINKS ── */
.buy-link-disabled {
  cursor: default;
  opacity: 0.55;
}

.buy-link-disabled:hover { transform: none; }

.buy-link-soon {
  font-family: var(--serif-title);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid rgba(200,168,75,0.4);
  border-radius: 3px;
  padding: 4px 10px;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  .book-wrap::before { animation: none; }
}


/* ── NAV FIT: keeps the longer menu on one line ── */
.nav-inner { max-width: 1280px; padding-left: 24px; padding-right: 24px; gap: 24px; }
.nav-logo { flex-shrink: 0; white-space: nowrap; }
#site-navigation ul { gap: 22px; flex-wrap: nowrap; }
#site-navigation ul li a { white-space: nowrap; letter-spacing: 0.15em; }
@media (max-width: 1240px) {
  #site-navigation ul { gap: 14px; }
  #site-navigation ul li a { letter-spacing: 0.08em; font-size: 9.5px; }
}


/* ── MOBILE MENU ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid rgba(200,168,75,0.35);
  border-radius: 4px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px; width: 100%;
  background: var(--gold-light);
  transition: transform 0.25s, opacity 0.2s;
}
.site-header.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1100px) {
  .nav-toggle { display: flex; }
  #site-navigation {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #1a3320;
    opacity: 1;
    box-shadow: 0 12px 24px rgba(0,0,0,0.35);
    border-bottom: 2px solid rgba(200,168,75,0.3);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }
  .site-header.menu-open #site-navigation { display: block; }
  .site-header.menu-open { background: #1a3320; }
  #site-navigation ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 16px; }
  #site-navigation ul li a {
    display: block;
    padding: 14px 28px;
    font-size: 12px;
    letter-spacing: 0.18em;
    border-top: 1px solid rgba(200,168,75,0.12);
  }
}
