/*
Theme Name: AJ Dawson Books
Theme URI: https://ajdawsonbooks.com
Author: A.J. Dawson
Description: Official author theme for A.J. Dawson Books
Version: 1.0
*/

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

/* ── Variables ─────────────────────────────────────── */
:root {
  --midnight:   #0e1628;
  --deep-blue:  #1a2744;
  --amber:      #c8793a;
  --amber-soft: #e8a96a;
  --cream:      #f5efe6;
  --cream-dark: #e8ddd0;
  --white:      #ffffff;
  --text-dark:  #1a1a2e;
  --text-mid:   #4a4a6a;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  background: var(--cream);
  color: var(--text-dark);
  overflow-x: hidden;
}

/* ── Navigation ────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 4rem;
  background: rgba(14, 22, 40, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200, 121, 58, 0.2);
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.nav-logo span {
  color: var(--amber-soft);
}

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

.nav-links a {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-dark);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--amber-soft); }

/* ── Hero ───────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  background: linear-gradient(135deg, var(--midnight) 0%, var(--deep-blue) 60%, #2a3a5c 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 60%, rgba(200, 121, 58, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.hero-text {
  padding: 8rem 4rem 4rem 6rem;
  position: relative;
  z-index: 2;
  animation: fadeUp 0.9s ease both;
}

.hero-eyebrow {
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--amber-soft);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--cream);
  margin-bottom: 1.5rem;
}

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

.hero-tagline {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(245, 239, 230, 0.75);
  max-width: 420px;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  background: var(--amber);
  color: var(--white);
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.hero-cta:hover {
  background: var(--amber-soft);
  transform: translateY(-2px);
}

.hero-cover {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 7rem 5rem 4rem 2rem;
  position: relative;
  z-index: 2;
  animation: fadeUp 0.9s 0.2s ease both;
}

.hero-cover img {
  max-height: 72vh;
  width: auto;
  max-width: 100%;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 40px rgba(200, 121, 58, 0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-cover img:hover {
  transform: translateY(-6px) rotate(0.5deg);
  box-shadow: 0 40px 100px rgba(0,0,0,0.7), 0 0 60px rgba(200, 121, 58, 0.2);
}

/* ── Book Section ───────────────────────────────────── */
.book-section {
  background: var(--cream);
  padding: 7rem 6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.book-section-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
}

.book-section h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.book-section p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-mid);
  margin-bottom: 1.2rem;
}

.book-meta {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--cream-dark);
}

.book-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.book-meta-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
}

.book-meta-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: var(--text-dark);
}

.book-cover-small {
  display: flex;
  justify-content: center;
}

.book-cover-small img {
  max-width: 280px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

/* ── About Preview ──────────────────────────────────── */
.about-preview {
  background: var(--deep-blue);
  padding: 7rem 6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-preview-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--amber-soft);
  margin-bottom: 1rem;
}

.about-preview h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.about-preview p {
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(245, 239, 230, 0.75);
  margin-bottom: 1.5rem;
}

.about-preview-link {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 169, 106, 0.4);
  padding-bottom: 2px;
  transition: border-color 0.2s, color 0.2s;
}

.about-preview-link:hover {
  color: var(--cream);
  border-color: var(--cream);
}

.about-decorative {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-style: italic;
  font-weight: 300;
  color: var(--cream);
  line-height: 1.5;
  text-align: center;
  padding: 3rem;
  border: 1px solid rgba(200, 121, 58, 0.3);
  position: relative;
}

.about-quote::before {
  content: '\201C';
  font-size: 6rem;
  line-height: 0;
  color: var(--amber);
  opacity: 0.4;
  position: absolute;
  top: 2.5rem;
  left: 1.5rem;
}

/* ── Newsletter ─────────────────────────────────────── */
.newsletter {
  background: var(--cream-dark);
  padding: 6rem;
  text-align: center;
}

.newsletter-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
}

.newsletter h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 300;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.newsletter p {
  font-size: 0.95rem;
  color: var(--text-mid);
  margin-bottom: 2.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.newsletter-form {
  display: flex;
  gap: 0;
  max-width: 460px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 0.9rem 1.4rem;
  border: 1px solid var(--cream-dark);
  border-right: none;
  background: var(--white);
  font-family: 'Jost', sans-serif;
  font-size: 0.9rem;
  color: var(--text-dark);
  outline: none;
}

.newsletter-form input::placeholder { color: #aaa; }

.newsletter-form button {
  padding: 0.9rem 1.8rem;
  background: var(--amber);
  color: var(--white);
  border: none;
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}

.newsletter-form button:hover { background: var(--deep-blue); }

/* ── Footer ─────────────────────────────────────────── */
.site-footer {
  background: var(--midnight);
  padding: 3rem 6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(200, 121, 58, 0.15);
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  color: var(--cream);
  letter-spacing: 0.05em;
}

.footer-logo span { color: var(--amber-soft); }

.footer-copy {
  font-size: 0.75rem;
  color: rgba(245, 239, 230, 0.4);
  letter-spacing: 0.05em;
}

/* ── About Page ─────────────────────────────────────── */
.page-hero {
  min-height: 38vh;
  background: linear-gradient(135deg, var(--midnight) 0%, var(--deep-blue) 100%);
  display: flex;
  align-items: flex-end;
  padding: 8rem 6rem 4rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(200, 121, 58, 0.1) 0%, transparent 65%);
}

.page-hero-inner { position: relative; z-index: 2; }

.page-hero-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--amber-soft);
  margin-bottom: 1rem;
}

.page-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--cream);
  line-height: 1.1;
}

.about-body {
  padding: 6rem;
  max-width: 780px;
}

.about-body p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-mid);
  margin-bottom: 1.5rem;
}

.about-body p:first-child {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--text-dark);
  line-height: 1.6;
}

/* ── Animations ─────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 900px) {
  .site-nav { padding: 1.25rem 2rem; }
  .hero { grid-template-columns: 1fr; }
  .hero-text { padding: 7rem 2rem 2rem; }
  .hero-cover { padding: 2rem; }
  .book-section,
  .about-preview { grid-template-columns: 1fr; padding: 4rem 2rem; gap: 2.5rem; }
  .newsletter { padding: 4rem 2rem; }
  .site-footer { flex-direction: column; gap: 1rem; padding: 2rem; text-align: center; }
  .page-hero { padding: 7rem 2rem 3rem; }
  .about-body { padding: 3rem 2rem; }
}
