@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --ink: #0D0D0D;
  --ivory: #F7F3ED;
  --gold: #C9973A;
  --gold-light: #E8C97A;
  --crimson: #8B1A1A;
  --slate: #2C3347;
  --muted: #7A7565;
  --border: rgba(201,151,58,0.25);
  --serif: 'Playfair Display', Georgia, serif;
  --serif-light: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--ivory);
  color: var(--ink);
  overflow-x: hidden;
}

/* ─── NAV ─────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  height: 72px;
  background: rgba(13,13,13,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,151,58,0.15);
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.nav-logo .wordmark {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
}

.nav-logo .tagline-nav {
  font-family: var(--serif-light);
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-style: italic;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}

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

.nav-cta {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink) !important;
  background: var(--gold);
  padding: 9px 22px;
  border-radius: 2px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, color 0.2s !important;
}

.nav-cta:hover { background: var(--gold-light) !important; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: #fff;
  transition: all 0.3s;
}

/* ─── HERO ─────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: var(--ink);
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}

.hero-texture {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 60% 80% at 70% 50%, rgba(201,151,58,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(139,26,26,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grain {
  position: absolute;
  inset: 0;
  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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 60px 80px 80px;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(48px, 5.5vw, 80px);
  font-weight: 900;
  line-height: 1.0;
  color: #fff;
  margin-bottom: 12px;
}

.hero-title em {
  font-style: italic;
  color: var(--gold);
}

.hero-subtitle {
  font-family: var(--serif-light);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  font-style: italic;
  margin-bottom: 36px;
  line-height: 1.5;
}

.hero-desc {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255,255,255,0.5);
  max-width: 440px;
  margin-bottom: 52px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px 36px;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.2s, transform 0.2s;
}

.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.6);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
}
.btn-secondary:hover { color: var(--gold); }
.btn-secondary::after { content: '→'; transition: transform 0.2s; }
.btn-secondary:hover::after { transform: translateX(4px); }

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 64px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.hero-stat-num {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  display: block;
}

.hero-stat-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-top: 6px;
  display: block;
}

/* Hero right - book stack */
.hero-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 60px 80px 20px;
  z-index: 2;
}

.book-stack {
  position: relative;
  width: 260px;
  height: 480px;
}

.book-cover {
  position: absolute;
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7), 0 8px 20px rgba(0,0,0,0.5);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  overflow: hidden;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.book-cover:nth-child(1) { width: 220px; height: 330px; top: 80px; left: 20px; transform: rotate(-6deg); z-index: 1; }
.book-cover:nth-child(2) { width: 220px; height: 330px; top: 60px; left: 50px; transform: rotate(-2deg); z-index: 2; }
.book-cover:nth-child(3) { width: 220px; height: 330px; top: 50px; left: 15px; transform: rotate(3deg); z-index: 3; }
.book-cover:nth-child(4) { width: 220px; height: 330px; top: 40px; left: 45px; transform: rotate(7deg); z-index: 4; }
.book-cover:nth-child(1):hover { transform: rotate(-6deg) translateY(-12px); z-index: 10; }
.book-cover:nth-child(2):hover { transform: rotate(-2deg) translateY(-12px); z-index: 10; }
.book-cover:nth-child(3):hover { transform: rotate(3deg) translateY(-12px); z-index: 10; }
.book-cover:nth-child(4):hover { transform: rotate(7deg) translateY(-12px); z-index: 10; }

.book-glow {
  position: absolute;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(201,151,58,0.18) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* ─── SECTION COMMONS ────────────────────────────── */
section { padding: 110px 80px; }

.section-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-eyebrow::before {
  content: '';
  display: block;
  width: 30px;
  height: 1px;
  background: var(--gold);
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(32px, 3.5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
}

.section-title em { font-style: italic; color: var(--gold); }

.section-lead {
  font-family: var(--serif-light);
  font-size: 19px;
  font-weight: 300;
  font-style: italic;
  color: var(--muted);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 60px;
}

/* ─── MISSION STRIP ─────────────────────────────── */
.mission-strip {
  background: var(--ink);
  padding: 80px;
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr;
  gap: 0;
  align-items: start;
}

.mission-divider {
  background: rgba(201,151,58,0.2);
  align-self: stretch;
}

.mission-pillar {
  padding: 0 60px;
  text-align: center;
}

.mission-pillar:first-child { padding-left: 0; }
.mission-pillar:last-child { padding-right: 0; }

.mission-icon {
  font-size: 32px;
  margin-bottom: 20px;
  display: block;
}

.mission-pillar h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.mission-pillar p {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255,255,255,0.45);
}

/* ─── BOOKS SECTION ─────────────────────────────── */
#books {
  background: var(--ivory);
  padding: 110px 80px;
}

.books-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 60px;
}

.books-header-left { flex: 1; }

.series-badge {
  display: inline-block;
  background: var(--ink);
  color: var(--gold);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 2px;
  margin-bottom: 60px;
}

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

.book-card {
  position: relative;
  cursor: pointer;
  group: true;
}

.book-card-cover {
  position: relative;
  aspect-ratio: 2/3;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.18), 0 4px 12px rgba(0,0,0,0.1);
  transition: box-shadow 0.4s, transform 0.4s;
}

.book-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.book-card:hover .book-card-cover {
  box-shadow: 0 32px 70px rgba(0,0,0,0.28);
  transform: translateY(-6px);
}

.book-card:hover .book-card-cover img { transform: scale(1.03); }

.book-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,13,13,0.9) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.35s;
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

.book-card:hover .book-card-overlay { opacity: 1; }

.book-card-overlay-text {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.book-series-tag {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  display: block;
}

.book-card-title {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 6px;
}

.book-card-subtitle {
  font-family: var(--serif-light);
  font-size: 13px;
  font-style: italic;
  color: var(--muted);
  line-height: 1.5;
}

/* coming soon card */
.book-card-coming {
  opacity: 0.5;
  pointer-events: none;
}

.coming-soon-cover {
  aspect-ratio: 2/3;
  background: var(--ink);
  border-radius: 6px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(201,151,58,0.3);
}

.coming-soon-cover span {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--gold);
  opacity: 0.6;
  letter-spacing: 0.1em;
}

/* ─── ABOUT ──────────────────────────────────────── */
#about {
  background: var(--ink);
  color: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
  padding: 110px 80px;
}

.about-visual {
  position: relative;
}

.about-quote-block {
  background: rgba(201,151,58,0.06);
  border-left: 3px solid var(--gold);
  padding: 40px 44px;
  border-radius: 0 4px 4px 0;
}

.about-quote-text {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.55;
  color: rgba(255,255,255,0.9);
  margin-bottom: 24px;
}

.about-quote-attr {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

.about-mission-list {
  margin-top: 44px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-mission-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.about-mission-dot {
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
}

.about-mission-item p {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
}

.about-content .section-eyebrow { justify-content: flex-start; }

.about-content .section-title { color: #fff; }

.about-body {
  font-size: 15px;
  line-height: 1.9;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}

/* ─── AUTHOR ─────────────────────────────────────── */
.author-strip {
  background: var(--ivory);
  padding: 80px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 60px;
}

.author-avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--crimson));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.author-info h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}

.author-info .author-role {
  font-family: var(--serif-light);
  font-style: italic;
  color: var(--gold);
  font-size: 15px;
  margin-bottom: 12px;
  display: block;
}

.author-info p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 680px;
}

.author-books-count {
  margin-left: auto;
  text-align: center;
  flex-shrink: 0;
}

.author-books-count .big-num {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  display: block;
}

.author-books-count .big-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-top: 4px;
}

/* ─── CONTACT ────────────────────────────────────── */
#contact {
  background: var(--ink);
  padding: 110px 80px;
  text-align: center;
}

#contact .section-eyebrow {
  justify-content: center;
}

#contact .section-eyebrow::before { display: none; }

#contact .section-title { color: #fff; }

#contact .section-lead {
  margin: 0 auto 60px;
  text-align: center;
}

.contact-form {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row { display: flex; gap: 18px; }
.form-row .form-field { flex: 1; }

.form-field {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.form-field label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 8px;
}

.form-field input,
.form-field select,
.form-field textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 3px;
  padding: 14px 18px;
  font-family: var(--sans);
  font-size: 14px;
  color: #fff;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.form-field select option { background: var(--ink); }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--gold);
}

.form-field textarea { min-height: 120px; resize: vertical; }

.form-submit {
  background: var(--gold);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 17px 44px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  align-self: center;
  margin-top: 8px;
}

.form-submit:hover { background: var(--gold-light); transform: translateY(-1px); }

.contact-alt {
  margin-top: 56px;
  display: flex;
  justify-content: center;
  gap: 60px;
}

.contact-alt-item {
  text-align: center;
}

.contact-alt-item .c-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  display: block;
  margin-bottom: 6px;
}

.contact-alt-item .c-val {
  font-family: var(--serif-light);
  font-size: 17px;
  font-style: italic;
  color: var(--gold);
}

/* ─── FOOTER ─────────────────────────────────────── */
footer {
  background: #080808;
  padding: 48px 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(201,151,58,0.12);
}

.footer-brand {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
}

.footer-brand em { color: var(--gold); font-style: normal; }

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.footer-links a {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}

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

/* ─── PAGE TRANSITIONS ──────────────────────────── */
.page { display: none; }
.page.active { display: block; }

/* ─── ANIMATE ON SCROLL ─────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .hero-left { padding: 140px 40px 80px; }
  #about { grid-template-columns: 1fr; padding: 80px 40px; }
  .books-grid { grid-template-columns: repeat(2, 1fr); }
  .mission-strip { grid-template-columns: 1fr; padding: 60px 40px; }
  .mission-divider { display: none; }
  .mission-pillar { padding: 28px 0; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .mission-pillar:last-child { border-bottom: none; }
  nav { padding: 0 30px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  section { padding: 80px 40px; }
  footer { flex-direction: column; gap: 20px; text-align: center; padding: 40px; }
  .author-strip { flex-direction: column; padding: 60px 40px; text-align: center; }
  .author-books-count { margin: 0 auto; }
  .contact-alt { flex-direction: column; gap: 28px; }
}

@media (max-width: 640px) {
  .books-grid { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; }
  .hero-stats { flex-direction: column; gap: 24px; }
  #books, #contact, #about { padding: 60px 24px; }
  .mission-strip { padding: 60px 24px; }
  .author-strip { padding: 60px 24px; }
  footer { padding: 32px 24px; }
}

/* Mobile nav open state */
.mobile-nav-open .nav-links {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: rgba(13,13,13,0.98);
  padding: 30px;
  gap: 24px;
  border-bottom: 1px solid rgba(201,151,58,0.15);
}
