/* ============================================================
   WECOMEFROMTHEFUTURE — Main Stylesheet
   Redesign: Human Series first, warm/golden, hopeful
   ============================================================ */

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

:root {
  --bg:           #0A0A0A;
  --gold:         #C9A84C;
  --gold-bright:  #e8c46a;
  --gold-dim:     #9a7a35;
  --gold-glow:    rgba(201, 168, 76, 0.12);
  --cream:        #F0EAD6;
  --warm-white:   #faf6ed;
  --secondary:    #a89a82;
  --muted:        #5a5040;
  --border:       rgba(201, 168, 76, 0.18);
  --border-soft:  rgba(201, 168, 76, 0.08);

  --time-accent:     #c4782a;
  --goodlife-accent: #4a8c43;
  --sophy-accent:    #7070c0;

  --font-head:  'Cinzel', serif;
  --font-body:  'Cormorant Garamond', serif;

  --max-width: 1200px;
  --section-pad: 110px 24px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

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

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

/* ============================================================
   SCROLL ANIMATION
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.delay-1 { transition-delay: 0.12s; }
.fade-in.delay-2 { transition-delay: 0.24s; }
.fade-in.delay-3 { transition-delay: 0.36s; }
.fade-in.delay-4 { transition-delay: 0.50s; }

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

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  background: linear-gradient(to bottom, rgba(10,10,10,0.98) 0%, rgba(10,10,10,0) 100%);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header.scrolled {
  background: rgba(10,10,10,0.97);
  border-bottom-color: var(--border);
}

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

.brand {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--gold);
  text-transform: lowercase;
  transition: color 0.2s;
}
.brand:hover { color: var(--warm-white); }

.header-nav {
  display: flex;
  gap: 36px;
  align-items: center;
}
.header-nav a {
  font-family: var(--font-head);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--secondary);
  transition: color 0.2s;
}
.header-nav a:hover { color: var(--gold); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 90px;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

/* Warm radial glow behind the hero text */
.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at center,
    rgba(201,168,76,0.09) 0%,
    rgba(201,168,76,0.04) 40%,
    transparent 70%
  );
  pointer-events: none;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 50% 100%, rgba(201,168,76,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 920px;
}

.hero-eyebrow {
  font-family: var(--font-head);
  font-size: 0.7rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 40px;
  opacity: 0.85;
}

.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 6.5vw, 5.2rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--warm-white);
  margin-bottom: 36px;
  letter-spacing: -0.01em;
  /* warm gold gradient on the headline */
  background: linear-gradient(165deg, #faf6ed 0%, #e8c46a 55%, #faf6ed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  font-weight: 300;
  font-style: italic;
  color: var(--secondary);
  margin-bottom: 56px;
  line-height: 1.65;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.hero-ctas {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 38px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold-dim);
  font-size: 1.3rem;
  animation: float 2.8s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(9px); }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 15px 34px;
  border-radius: 2px;
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--gold);
  color: #08080a;
  font-weight: 700;
  border: 1px solid var(--gold);
}
.btn-primary:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  box-shadow: 0 0 32px rgba(201,168,76,0.25);
}

.btn-secondary {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(240,234,214,0.3);
}
.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 20px rgba(201,168,76,0.08);
}

.btn-large {
  font-size: 0.8rem;
  padding: 18px 46px;
}

/* ============================================================
   SECTION DIVIDER
   ============================================================ */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    var(--border-soft) 25%,
    var(--border) 50%,
    var(--border-soft) 75%,
    transparent 100%
  );
  margin: 0;
}

/* ============================================================
   COMMON SECTION STRUCTURE
   ============================================================ */
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.trilogy-label {
  font-family: var(--font-head);
  font-size: 0.62rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 14px;
}

/* ============================================================
   THE HUMAN SERIES — PRIMARY
   ============================================================ */
.human-series-section {
  padding: var(--section-pad);
  background:
    radial-gradient(ellipse 100% 60% at 50% 0%, rgba(201,168,76,0.055) 0%, transparent 70%),
    var(--bg);
}

.human-series-header {
  text-align: center;
  margin-bottom: 72px;
}

.series-eyebrow {
  font-family: var(--font-head);
  font-size: 0.65rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.series-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--warm-white);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #faf6ed 0%, #e8c46a 60%, #faf6ed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.series-intro {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-style: italic;
  font-weight: 300;
  color: var(--secondary);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
}

/* 5-column grid on desktop, 2 on tablet, 1 on mobile */
.human-books-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

.human-book-card {
  transition: transform 0.3s ease;
}
.human-book-card:hover {
  transform: translateY(-5px);
}

.human-book-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}

.human-book-cover {
  aspect-ratio: 3 / 4;
  background: linear-gradient(145deg, #141210 0%, #1a1610 60%, #0e0c08 100%);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 16px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.human-book-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(201,168,76,0.06) 0%,
    transparent 50%,
    rgba(201,168,76,0.03) 100%
  );
  pointer-events: none;
}

.human-book-card:hover .human-book-cover {
  border-color: rgba(201,168,76,0.5);
  box-shadow:
    0 20px 50px rgba(0,0,0,0.6),
    0 0 30px rgba(201,168,76,0.08),
    inset 0 0 30px rgba(201,168,76,0.03);
}

.hbc-number {
  font-family: var(--font-head);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--gold-dim);
  margin-bottom: 16px;
  opacity: 0.8;
}

.hbc-title {
  font-family: var(--font-head);
  font-size: clamp(0.75rem, 1.2vw, 0.92rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.03em;
  color: var(--cream);
  margin-bottom: 20px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hbc-cta {
  font-family: var(--font-head);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.human-book-card:hover .hbc-cta {
  opacity: 1;
}

.human-book-info {
  padding: 14px 4px 0;
}

.human-book-blurb {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-style: italic;
  color: var(--secondary);
  line-height: 1.55;
}

.series-cta-block {
  text-align: center;
  padding-top: 16px;
}

/* ============================================================
   GO DEEPER — THREE TRILOGIES
   ============================================================ */
.deeper-section {
  padding: var(--section-pad);
  background: linear-gradient(
    180deg,
    var(--bg) 0%,
    rgba(201,168,76,0.025) 50%,
    var(--bg) 100%
  );
}

.deeper-header {
  text-align: center;
  margin-bottom: 72px;
}

.deeper-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--cream);
  margin-bottom: 16px;
}

.deeper-sub {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 300;
  color: var(--secondary);
}

/* Individual trilogy block */
.trilogy-block {
  margin-bottom: 72px;
  padding-bottom: 72px;
  border-bottom: 1px solid var(--border-soft);
}
.trilogy-block:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.trilogy-block-header {
  text-align: center;
  margin-bottom: 40px;
}

.trilogy-block-label {
  font-family: var(--font-head);
  font-size: 0.6rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 10px;
}

.trilogy-block-title {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 2.8vw, 1.9rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--cream);
  margin-bottom: 8px;
}

.trilogy-block-sub {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--secondary);
}

.trilogy-books-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 780px;
  margin: 0 auto;
}

.trilogy-book {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: transform 0.3s ease;
  color: inherit;
}
.trilogy-book:hover {
  transform: translateY(-4px);
}

.trilogy-cover {
  width: 100%;
  aspect-ratio: 2/3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 16px;
  border: 1px solid;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

/* Time covers */
.tc-time {
  background: linear-gradient(145deg, #0d0805, #120e06);
  border-color: rgba(196, 120, 42, 0.3);
}
.tc-time .tc-number { color: var(--time-accent); }
.tc-time .tc-title  { color: #e8c880; }
.trilogy-book:hover .tc-time {
  box-shadow: 0 16px 40px rgba(0,0,0,0.5), 0 0 20px rgba(196,120,42,0.1);
}

/* Good Life covers */
.tc-goodlife {
  background: linear-gradient(145deg, #070d06, #0a120a);
  border-color: rgba(74, 140, 67, 0.3);
}
.tc-goodlife .tc-number { color: var(--goodlife-accent); }
.tc-goodlife .tc-title  { color: var(--gold); }
.trilogy-book:hover .tc-goodlife {
  box-shadow: 0 16px 40px rgba(0,0,0,0.5), 0 0 20px rgba(74,140,67,0.1);
}

/* Sophy covers */
.tc-sophy {
  background: linear-gradient(145deg, #07070f, #0a0a18);
  border-color: rgba(112, 112, 192, 0.3);
}
.tc-sophy .tc-number { color: var(--sophy-accent); }
.tc-sophy .tc-title  { color: #c0c0e8; }
.trilogy-book:hover .tc-sophy {
  box-shadow: 0 16px 40px rgba(0,0,0,0.5), 0 0 20px rgba(112,112,192,0.1);
}

.tc-number {
  font-family: var(--font-head);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  margin-bottom: 16px;
  opacity: 0.8;
}

.tc-title {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.04em;
}

.trilogy-book-link {
  font-family: var(--font-head);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dim);
  transition: color 0.2s;
}
.trilogy-book:hover .trilogy-book-link {
  color: var(--gold);
}

/* ============================================================
   NEWSLETTER SECTION
   ============================================================ */
.newsletter-section {
  padding: var(--section-pad);
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(201,168,76,0.06) 0%, transparent 70%),
    var(--bg);
}
.newsletter-inner {
  display: flex;
  justify-content: center;
}
.newsletter-content {
  text-align: center;
  max-width: 580px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--warm-white);
  margin-bottom: 18px;
}
.newsletter-sub {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 300;
  color: var(--secondary);
  margin-bottom: 48px;
  line-height: 1.7;
}
.newsletter-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.privacy-note {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--muted);
}
.privacy-note a {
  color: var(--gold-dim);
  transition: color 0.2s;
}
.privacy-note a:hover { color: var(--gold); }

/* ============================================================
   SOCIAL SECTION
   ============================================================ */
.social-section {
  padding: var(--section-pad);
}
.social-section .section-title {
  text-align: center;
  margin-bottom: 56px;
}
.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 680px;
  margin: 0 auto;
}
.social-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border: 1px solid var(--border-soft);
  border-radius: 2px;
  color: var(--secondary);
  transition: all 0.25s ease;
  background: rgba(255,255,255,0.01);
}
.social-link:hover {
  border-color: rgba(201,168,76,0.4);
  color: var(--gold);
  background: rgba(201,168,76,0.04);
  transform: translateY(-2px);
}
.social-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.social-icon svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}
.social-name {
  font-family: var(--font-head);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding: 56px 24px;
  border-top: 1px solid var(--border-soft);
  text-align: center;
  background: linear-gradient(to top, rgba(201,168,76,0.03) 0%, transparent 100%);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.footer-brand {
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: lowercase;
  margin-bottom: 4px;
}
.footer-tagline {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--gold-dim);
  margin-bottom: 8px;
  opacity: 0.8;
}
.footer-copy {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--muted);
}
.footer-copy a {
  color: var(--muted);
  transition: color 0.2s;
}
.footer-copy a:hover { color: var(--gold); }
.footer-links {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  color: var(--muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }
.footer-sep { color: var(--border); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .human-books-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 900px) {
  :root { --section-pad: 80px 20px; }

  .human-books-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .trilogy-books-row {
    gap: 16px;
  }

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

  .header-nav { display: none; }
}

@media (max-width: 680px) {
  :root { --section-pad: 60px 18px; }

  .human-books-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .hero-ctas { flex-direction: column; align-items: center; }

  .trilogy-books-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .tc-title { font-size: 0.7rem; }
}

@media (max-width: 480px) {
  .human-books-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .hbc-title { font-size: 0.75rem; }

  .social-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .social-link { padding: 12px 12px; }

  .trilogy-books-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
}

@media (max-width: 380px) {
  .human-books-grid {
    grid-template-columns: 1fr 1fr;
  }
  .social-grid { grid-template-columns: 1fr; }
}
