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

:root {
  --bg:         #0c0a07;
  --bg-alt:     #221d13;
  --bg-mid:     #13110d;
  --bg-light:   #1c1812;
  --gold:       #c9a558;
  --gold-light: #e2c27d;
  --gold-dark:  #8a6d2f;
  --text:       #e5ddd0;
  --text-muted: #8a7e6e;
  --text-dim:   #5a5040;
  --border:     rgba(201,165,88,0.2);
  --ff-serif:   'Cormorant Garamond', Georgia, serif;
  --ff-sans:    'Lato', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

/* ===========================
   TYPOGRAPHY HELPERS
=========================== */
.section-label {
  font-family: var(--ff-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-label.centered { text-align: center; }

/* ===========================
   ORNAMENTS & DIVIDERS
=========================== */
.ornament-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.ornament-line.centered {
  justify-content: center;
}

.ornament-line.left {
  justify-content: flex-start;
}

.ornament-line .ornament {
  color: var(--gold);
  font-size: 0.5rem;
  flex-shrink: 0;
}

.ornament-line .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--gold-dark), transparent);
  max-width: 200px;
}

.ornament-line.centered .line {
  background: linear-gradient(to right, transparent, var(--gold-dark), transparent);
  max-width: 120px;
}

.ornament {
  color: var(--gold);
  font-size: 0.55rem;
}

/* ===========================
   BUTTONS
=========================== */
.btn-primary {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-family: var(--ff-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
  cursor: pointer;
  background: transparent;
}

.btn-primary:hover {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}

.btn-primary.wide {
  width: 100%;
  text-align: center;
}

/* ===========================
   ANIMATIONS
=========================== */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  animation: fadeUp 0.9s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.85s; }

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

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal.delay-1 { transition-delay: 0.15s; }
.reveal.delay-2 { transition-delay: 0.3s; }

/* ===========================
   NAVIGATION
=========================== */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.4s, border-bottom 0.4s;
  border-bottom: 1px solid transparent;
}

#site-header.scrolled {
  background: rgba(12,10,7,0.95);
  backdrop-filter: blur(8px);
  border-bottom-color: var(--border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.4rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--ff-serif);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text);
  transition: color 0.2s;
}

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

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

/* ===========================
   HERO
=========================== */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(100,60,10,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 20% 80%, rgba(80,40,5,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 20%, rgba(60,30,5,0.1) 0%, transparent 60%);
  background-color: var(--bg);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(201,165,88,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 20%, rgba(201,165,88,0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 50% 70%, rgba(201,165,88,0.15) 0%, transparent 100%),
    radial-gradient(1px 1px at 10% 60%, rgba(201,165,88,0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 80%, rgba(201,165,88,0.25) 0%, transparent 100%);
  opacity: 0.6;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 8rem 2rem 4rem;
  max-width: 800px;
}

.hero-tagline {
  font-family: var(--ff-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.hero-name {
  font-family: var(--ff-serif);
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem auto;
  max-width: 200px;
}

.hero-divider .line {
  flex: 1;
  height: 1px;
  background: var(--gold-dark);
}

.hero-sub {
  font-family: var(--ff-serif);
  font-size: 1.3rem;
  font-weight: 300;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  letter-spacing: 0.03em;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.4;
}

.hero-scroll-hint span {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.scroll-arrow {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* ===========================
   BOOKS SECTION
=========================== */
#books {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.books-inner {
  padding: 7rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.book-feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5rem;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

/* Book Cover */
.book-cover-wrapper {
  display: flex;
  justify-content: center;
}

.book-cover {
  position: relative;
  width: 240px;
  height: 360px;
  cursor: default;
  transition: transform 0.4s ease;
  transform-style: preserve-3d;
}

.book-cover:hover {
  transform: perspective(800px) rotateY(-8deg) translateX(6px);
}

.book-cover-inner {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #1e1508 0%, #0f0c05 50%, #1a1208 100%);
  border: 1px solid var(--gold-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.book-cover-inner::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(201,165,88,0.25);
  pointer-events: none;
}

.book-cover-inner::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 40%;
  background: radial-gradient(ellipse at 50% 0%, rgba(201,165,88,0.08), transparent 70%);
}

.cover-coming-soon {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.cover-title {
  font-family: var(--ff-serif);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: 0.05em;
  position: relative;
  z-index: 1;
  margin-bottom: 1.5rem;
}

.cover-author {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dark);
  position: relative;
  z-index: 1;
}

.book-spine {
  position: absolute;
  left: -12px;
  top: 0;
  width: 12px;
  height: 100%;
  background: linear-gradient(to right, #0a0800, #1a1208);
  border-left: 1px solid rgba(201,165,88,0.1);
  border-top: 1px solid var(--gold-dark);
  border-bottom: 1px solid var(--gold-dark);
}

/* Book Info */
.book-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.book-title {
  font-family: var(--ff-serif);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.15;
}

.book-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0 1.75rem;
}

.book-divider .line {
  width: 80px;
  height: 1px;
  background: linear-gradient(to right, var(--gold-dark), transparent);
}

.book-description {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.book-description em { color: var(--text); font-style: italic; }

.book-cta {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.book-status {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ===========================
   ABOUT SECTION
=========================== */
#about {
  position: relative;
  padding: 7rem 2rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.about-bg-texture {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 0% 50%, rgba(60,35,5,0.12), transparent 60%);
  pointer-events: none;
}

.about-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.about-image-wrapper {
  display: flex;
  justify-content: center;
}

.about-image-frame {
  position: relative;
  width: 280px;
  height: 360px;
}

.about-image-frame::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 14px;
  right: -14px;
  bottom: -14px;
  border: 1px solid var(--gold-dark);
  z-index: 0;
}

.about-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border: 1px solid var(--border);
}

.about-text h2 {
  font-family: var(--ff-serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.about-text p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 1.1rem;
}

.about-text p em { color: var(--text); }

.social-links {
  display: flex;
  gap: 1.25rem;
  margin-top: 2rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color 0.2s, border-color 0.2s;
}

.social-link svg {
  width: 16px;
  height: 16px;
}

.social-link:hover {
  color: var(--gold-light);
  border-color: var(--gold);
}

/* ===========================
   NEWSLETTER SECTION
=========================== */
#newsletter {
  padding: 7rem 2rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

#newsletter::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(100,60,10,0.1), transparent 70%);
  pointer-events: none;
}

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

.newsletter-inner h2 {
  font-family: var(--ff-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 1rem;
}

.newsletter-sub {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.newsletter-sub em { color: var(--text); font-style: italic; }

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
}

.form-group label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group input {
  background: var(--bg-light);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--ff-sans);
  font-size: 0.9rem;
  padding: 0.8rem 1rem;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.form-group input::placeholder {
  color: var(--text-dim);
}

.form-group input:focus {
  border-color: var(--gold);
}

.form-note {
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

.input-error {
  border-color: #c0504a !important;
}

.field-error {
  font-size: 0.7rem;
  color: #c0504a;
  margin-top: 0.3rem;
  letter-spacing: 0.03em;
}

.newsletter-success {
  text-align: center;
  padding: 2rem;
  border: 1px solid var(--border);
}

.newsletter-success .ornament {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 1rem;
}

.newsletter-success p {
  font-family: var(--ff-serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-muted);
}

/* ===========================
   CONTACT SECTION
=========================== */
#contact {
  padding: 5rem 2rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
  text-align: center;
}

.contact-inner {
  max-width: 600px;
  margin: 0 auto;
}

.contact-inner h2 {
  font-family: var(--ff-serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.contact-sub {
  color: var(--text-muted);
  margin: 1.5rem 0;
}

.contact-email {
  display: inline-block;
  font-family: var(--ff-serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--gold-light);
  border-bottom: 1px solid var(--gold-dark);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.contact-email:hover {
  color: var(--gold);
  border-color: var(--gold);
}

/* ===========================
   FOOTER
=========================== */
#site-footer {
  padding: 3rem 2rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer-name {
  font-family: var(--ff-serif);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text);
}

.footer-tagline {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.footer-links a {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.footer-copy {
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 900px) {
  .book-feature {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .book-divider { justify-content: center; }
  .book-cta { justify-content: center; }

  .about-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .about-image-wrapper { justify-content: center; }
  .ornament-line.left { justify-content: center; }
  .social-links { justify-content: center; }
}

@media (max-width: 640px) {
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 75%;
    height: 100vh;
    background: rgba(12,10,7,0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    transition: right 0.35s ease;
    border-left: 1px solid var(--border);
  }

  .nav-links.open { right: 0; }

  .nav-toggle {
    display: flex;
    z-index: 110;
    position: relative;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .book-cover {
    width: 180px;
    height: 270px;
  }

  .cover-title { font-size: 1.2rem; }

  .about-image-frame {
    width: 220px;
    height: 280px;
  }
}
