/* ============================================================
   CHARLES WHITHAM — AUTHOR WEBSITE
   charleswritesbooks.quest
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Rajdhani:wght@400;500;600;700&family=Crimson+Pro:ital,wght@0,400;1,400&display=swap');

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

:root {
  --gold:          #c9a84c;
  --gold-light:    #e8c97a;
  --crimson:       #8b1a1a;
  --crimson-bright:#c0392b;
  --dark:          #0a0a0a;
  --dark-2:        #111111;
  --dark-3:        #1a1a1a;
  --dark-4:        #222222;
  --text:          #e8e0d0;
  --text-muted:    #9a9080;
  --border:        rgba(201,168,76,0.2);
  --border-solid:  rgba(201,168,76,0.35);
  --nav-height:    68px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--text);
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 18px;
  line-height: 1.75;
  overflow-x: hidden;
}

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

a { color: inherit; }

/* ---- UTILITY ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
}

.section-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 52px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 3rem;
}

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 15px 36px;
  background: var(--gold);
  color: #0a0a0a;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }

.btn-secondary {
  display: inline-block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 14px 36px;
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.btn-secondary:hover { background: rgba(201,168,76,0.1); transform: translateY(-1px); }

/* ---- NAVIGATION ---- */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  height: var(--nav-height);
  background: rgba(10,10,10,0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.3s;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
}

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

.nav-links a {
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }

.nav-links a.nav-cta {
  color: var(--gold);
  border: 1px solid var(--border-solid);
  padding: 8px 18px;
}
.nav-links a.nav-cta:hover { background: rgba(201,168,76,0.1); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 22px;
  cursor: pointer;
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: var(--nav-height);
}

.hero-left {
  background: var(--dark-2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 4rem 3rem 5rem;
  position: relative;
}

.hero-left::after {
  display: none;
}

.hero-eyebrow {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.75rem;
}

.hero-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 84px;
  font-weight: 700;
  line-height: 0.88;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.hero-name span {
  display: block;
  color: var(--gold);
}

.hero-subtitle {
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 1.25rem 0 2rem;
}

.hero-bio {
  font-size: 19px;
  line-height: 1.85;
  color: #b8b0a0;
  max-width: 480px;
  margin-bottom: 3rem;
  font-style: italic;
}

.hero-cta {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.hero-right {
  background: var(--dark-3);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 3rem;
}

.hero-books {
  display: flex;
  gap: 3rem;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.book-img-hero {
  width: 240px;
  height: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,0.85);
  transition: transform 0.35s ease;
  cursor: pointer;
  display: block;
}
.book-img-hero:hover { transform: translateY(-10px) rotate(-1deg); }
.book-img-hero.featured {
  width: 240px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.9);
}
.book-img-hero.featured:hover { transform: translateY(-12px) rotate(1deg); }

/* ---- BOOKS SECTION ---- */
.books-section {
  background: var(--dark-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 7rem 0;
}

.books-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}

.book-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.book-cover-wrap {
  width: 160px;
}

.book-cover-wrap img {
  width: 100%;
  display: block;
  box-shadow: 0 12px 40px rgba(0,0,0,0.7);
  transition: transform 0.3s;
}
.book-cover-wrap img:hover { transform: translateY(-6px); }

.book-genre {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--crimson-bright);
  margin-bottom: 0.6rem;
}

.book-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.book-edition {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.book-desc {
  font-size: 16px;
  color: #a09888;
  line-height: 1.8;
  margin-bottom: 1rem;
  font-style: italic;
}

.book-links { margin-top: 1.5rem; }

.book-buy {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--border-solid);
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s;
}
.book-buy:hover { color: var(--gold-light); border-color: var(--gold-light); }

/* ---- REVIEWS ---- */
.reviews-section {
  background: var(--dark-3);
  padding: 7rem 0;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.review-card {
  border: 1px solid var(--border);
  padding: 2rem 1.75rem;
  position: relative;
  transition: border-color 0.2s;
}
.review-card:hover { border-color: var(--border-solid); }

.review-card::before {
  content: '"';
  font-family: 'Cormorant Garamond', serif;
  font-size: 72px;
  color: var(--gold);
  opacity: 0.22;
  position: absolute;
  top: 0.5rem; left: 1.25rem;
  line-height: 1;
  pointer-events: none;
}

.review-stars {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.review-text {
  font-style: italic;
  font-size: 17px;
  color: #c0b8a8;
  line-height: 1.8;
  margin-bottom: 1.25rem;
  padding-top: 1.25rem;
}

.review-source {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---- ABOUT ---- */
.about-section {
  background: var(--dark-2);
  border-top: 1px solid var(--border);
  padding: 7rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 5rem;
  align-items: start;
}

.about-photo-wrap {
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
}

.about-photo {
  width: 100%;
  border: 1px solid var(--border);
  box-shadow: 0 16px 50px rgba(0,0,0,0.7);
}

.about-lead {
  font-size: 22px !important;
  color: #d8d0c0 !important;
  font-style: italic;
  line-height: 1.7 !important;
  margin-bottom: 1.75rem !important;
}

.about-text p {
  font-size: 18px;
  color: #b0a898;
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

.about-text em { font-style: italic; color: #c8c0b0; }

.about-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 2.5rem;
}

.fact-item {
  background: var(--dark-3);
  padding: 1.5rem;
}

.fact-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.fact-value {
  font-size: 16px;
  color: var(--text);
  font-family: 'Crimson Pro', serif;
}

/* ---- INTERVIEWS ---- */
.interviews-section {
  background: var(--dark-3);
  border-top: 1px solid var(--border);
  padding: 7rem 0;
}

.interviews-list { display: flex; flex-direction: column; gap: 1.5rem; }

.interview-card {
  border: 1px solid var(--border);
  padding: 2.5rem 3rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
  transition: border-color 0.2s;
}
.interview-card:hover { border-color: var(--border-solid); }

.interview-host {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.interview-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.6rem;
  line-height: 1.25;
}

.interview-desc {
  font-size: 16px;
  color: var(--text-muted);
  font-style: italic;
}

.watch-btn {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 14px 24px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.2s;
}
.watch-btn:hover { background: rgba(201,168,76,0.1); }

/* ---- BLOG ---- */
.blog-section {
  background: var(--dark-2);
  border-top: 1px solid var(--border);
  padding: 7rem 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.blog-card {
  border-top: 2px solid var(--gold);
  padding-top: 1.75rem;
}

.blog-date {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.blog-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.blog-excerpt {
  font-size: 16px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.75;
}

/* ---- GIVEAWAY ---- */
.giveaway-section {
  background: var(--dark-3);
  border-top: 1px solid var(--border);
  padding: 8rem 0;
  text-align: center;
}

.giveaway-inner {
  max-width: 680px;
  margin: 0 auto;
}

.giveaway-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 64px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.05;
  margin-bottom: 1.25rem;
}
.giveaway-title em {
  color: var(--gold);
  font-style: italic;
}

.giveaway-subtitle {
  font-size: 19px;
  color: #a09888;
  font-style: italic;
  margin-bottom: 3rem;
  line-height: 1.75;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- FOOTER ---- */
footer {
  background: #050505;
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.05em;
}

.social-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.social-links a {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.social-links a:hover { color: var(--gold); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: 5rem 3rem; }
  .hero-left::after { display: none; }
  .hero-right { padding: 4rem 3rem; border-top: 1px solid var(--border); }
  .hero-name { font-size: 64px; }
  .books-grid { grid-template-columns: 1fr; gap: 4rem; }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo-wrap { position: static; max-width: 380px; }
  .interview-card { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 768px) {
  .container { padding: 0 1.75rem; }
  .nav-inner { padding: 0 1.75rem; }
  .section-title { font-size: 38px; }
  .hero-name { font-size: 52px; }
  .hero-bio { font-size: 17px; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(10,10,10,0.98);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 1rem 2rem; border: none; }
  .nav-links a.nav-cta { border: none; }
  .books-grid { gap: 3rem; }
  .book-card { grid-template-columns: 1fr; }
  .book-cover-wrap { max-width: 220px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; gap: 2rem; }
  .giveaway-title { font-size: 44px; }
  .hero-books { gap: 1.5rem; }
  .book-img-hero { width: 130px; }
  .book-img-hero.featured { width: 160px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
}
