/*
Theme Name: Alisha Rai
Theme URI: https://alisharai.com
Author: Alisha Rai
Description: Custom author theme for Alisha Rai — fully editable via WordPress dashboard
Version: 2.0
License: GNU General Public License v2 or later
Text Domain: alisha-rai
*/

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

:root {
  --cream: #faf6f0;
  --blush: #e8c5b0;
  --rose: #c2735a;
  --deep: #2a1f1a;
  --muted: #8a7060;
  --border: #e2d4c8;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--cream);
  color: var(--deep);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(194,115,90,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 10% 80%, rgba(232,197,176,0.10) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

/* ── HEADER ── */
header {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 4rem 2rem 2.5rem;
  border-bottom: 1px solid var(--border);
}

.site-name-link { text-decoration: none; }

.site-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(3rem, 10vw, 7rem);
  letter-spacing: 0.25em;
  line-height: 1;
  color: var(--deep);
  text-transform: uppercase;
  display: inline-block;
}

.site-name::after {
  content: '';
  display: block;
  width: 40%;
  height: 1px;
  background: var(--rose);
  margin: 1.2rem auto 0;
  opacity: 0.6;
}

/* ── NAV ── */
nav {
  position: relative;
  z-index: 100;
  display: flex;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  padding: 1.8rem 2rem;
  border-bottom: 1px solid var(--border);
}

.nav-item { position: relative; }

nav a {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--deep);
  text-decoration: none;
  position: relative;
  padding-bottom: 3px;
  transition: color 0.25s ease;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--rose);
  transition: width 0.3s ease;
}

nav a:hover { color: var(--rose); }
nav a:hover::after { width: 100%; }

/* ── HOME: BOOK FEATURE ── */
.book-feature {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5rem 2rem 4rem;
}

.book-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.book-eyebrow::before,
.book-eyebrow::after {
  content: '';
  display: inline-block;
  width: 2rem;
  height: 1px;
  background: var(--rose);
  opacity: 0.6;
}

.book-cover-wrap { position: relative; }

.book-cover-wrap::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 75%;
  height: 20px;
  background: radial-gradient(ellipse, rgba(42,31,26,0.20) 0%, transparent 70%);
  filter: blur(7px);
}

.book-cover {
  display: block;
  width: 280px;
  max-width: 80vw;
  box-shadow: 6px 12px 40px rgba(42,31,26,0.22);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.book-cover:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 8px 20px 50px rgba(42,31,26,0.28);
}

.book-info {
  margin-top: 2.8rem;
  text-align: center;
}

.book-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--deep);
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.book-sub {
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.8rem;
}

.buy-links {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}

.buy-link {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--deep);
  text-decoration: none;
  border: 1px solid var(--deep);
  padding: 0.7rem 1.4rem;
  transition: all 0.22s ease;
}

.buy-link:hover { background: var(--deep); color: var(--cream); }

.buy-link.primary {
  background: var(--rose);
  border-color: var(--rose);
  color: #fff;
}

.buy-link.primary:hover { background: #a85f48; border-color: #a85f48; }

/* ── DIVIDER ── */
.divider {
  position: relative; z-index: 1;
  display: flex; align-items: center;
  justify-content: center; gap: 1.5rem;
  padding: 0 4rem;
  max-width: 900px;
  margin: 1rem auto 0;
}

.divider-line { flex: 1; height: 1px; background: var(--border); }
.divider-ornament { color: var(--rose); font-size: 1.1rem; opacity: 0.65; }

/* ── NEWSLETTER BAND ── */
.newsletter-band {
  position: relative; z-index: 1;
  background: var(--deep);
  padding: 4rem 2rem;
  text-align: center;
  margin-top: 5rem;
}

.nl-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--blush);
  margin-bottom: 1rem;
}

.newsletter-band h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--cream);
  margin-bottom: 0.8rem;
}

.newsletter-band p {
  font-size: 0.88rem;
  color: var(--blush);
  margin-bottom: 2rem;
  max-width: 40ch;
  margin-left: auto; margin-right: auto;
  line-height: 1.7;
}

.nl-substack-btn {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--deep);
  background: var(--cream);
  text-decoration: none;
  padding: 0.9rem 2.2rem;
  transition: background 0.22s ease;
  font-family: 'Jost', sans-serif;
  font-weight: 400;
}

.nl-substack-btn:hover { background: var(--blush); }

/* ── FOOTER ── */
footer {
  position: relative; z-index: 1;
  text-align: center;
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--border);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  margin-bottom: 1.2rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.22s ease;
}

.social-links a:hover {
  border-color: var(--rose);
  color: var(--rose);
  background: rgba(194,115,90,0.06);
}

.social-links svg { width: 15px; height: 15px; fill: currentColor; }

footer p {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ── INNER PAGE LAYOUT ── */
.inner-page {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  padding: 5rem 2rem 6rem;
}

.page-header {
  text-align: center;
  margin-bottom: 4rem;
}

.page-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 1rem;
}

.page-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2.2rem, 6vw, 4rem);
  letter-spacing: 0.1em;
  color: var(--deep);
}

.page-title::after {
  content: '';
  display: block;
  width: 3rem;
  height: 1px;
  background: var(--rose);
  margin: 1.2rem auto 0;
  opacity: 0.6;
}

/* ── BIO PAGE ── */
.bio-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 4rem;
  align-items: start;
}

.bio-photo {
  width: 100%;
  box-shadow: 4px 8px 30px rgba(42,31,26,0.15);
}

.bio-text p {
  font-size: 0.95rem;
  line-height: 1.9;
  color: #4a3a32;
  margin-bottom: 1.4rem;
}

.bio-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

.bio-section-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--deep);
  margin-bottom: 1rem;
}

.bio-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bio-links li { font-size: 0.88rem; line-height: 1.5; }

.bio-links a {
  color: var(--rose);
  text-decoration: none;
  transition: color 0.2s;
}

.bio-links a:hover { color: var(--deep); text-decoration: underline; }

/* ── BOOKS PAGE ── */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 2.5rem 2rem;
}

.book-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.book-card-img-wrap {
  position: relative;
  overflow: hidden;
  margin-bottom: 0.9rem;
}

.book-card-img {
  width: 100%;
  display: block;
  box-shadow: 3px 6px 20px rgba(42,31,26,0.18);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.book-card:hover .book-card-img {
  transform: translateY(-4px);
  box-shadow: 5px 12px 30px rgba(42,31,26,0.24);
}

.book-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--deep);
  line-height: 1.3;
  margin-bottom: 0.2rem;
}

.book-card-meta {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.books-section-heading {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 1.5rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--deep);
  margin-bottom: 2.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
}

.books-series-label {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 1.5rem;
  margin-top: 2.5rem;
}

/* ── CONTACT PAGE ── */
.contact-body {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.contact-body > p {
  font-size: 0.92rem;
  line-height: 1.8;
  color: #4a3a32;
  margin-bottom: 2.5rem;
}

.contact-email {
  display: inline-block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--rose);
  text-decoration: none;
  letter-spacing: 0.03em;
  margin-bottom: 3rem;
  transition: color 0.2s;
}

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

.contact-rep {
  border-top: 1px solid var(--border);
  padding-top: 2.5rem;
  text-align: center;
}

.contact-rep-label {
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 1.2rem;
}

.contact-rep-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--deep);
  line-height: 1.5;
}

.contact-rep-agency {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.3rem;
}

/* ── BOOK DETAIL PAGE ── */
.back-link {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 3rem;
  transition: color 0.2s;
}
.back-link:hover { color: var(--rose); }

.book-detail {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 4rem;
  align-items: start;
}

.book-detail-cover-wrap { position: relative; }

.book-detail-cover {
  width: 100%;
  display: block;
  box-shadow: 6px 12px 40px rgba(42,31,26,0.22);
}

.book-detail-series {
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 0.8rem;
}

.book-detail-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--deep);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.book-detail-divider {
  width: 3rem;
  height: 1px;
  background: var(--rose);
  opacity: 0.6;
  margin-bottom: 1.5rem;
}

.book-detail-desc p {
  font-size: 0.95rem;
  line-height: 1.9;
  color: #4a3a32;
  margin-bottom: 1rem;
}

.book-detail-buy-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.book-detail-buy-label {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

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

header         { animation: fadeUp 0.6s ease both; }
nav            { animation: fadeUp 0.6s ease 0.1s both; }
.book-feature,
.inner-page    { animation: fadeUp 0.6s ease 0.2s both; }
.newsletter-band { animation: fadeUp 0.6s ease 0.3s both; }

/* ── MOBILE ── */
@media (max-width: 700px) {
  header { padding: 2.5rem 1.5rem 2rem; }
  .site-name { letter-spacing: 0.12em; }
  nav { gap: 1rem; flex-wrap: wrap; padding: 1.2rem 1rem; }
  nav a { font-size: 0.66rem; letter-spacing: 0.18em; }
  .book-cover { width: 220px; }
  .bio-grid { grid-template-columns: 1fr; }
  .bio-photo { max-width: 200px; margin: 0 auto; display: block; }
  .books-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 2rem 1.2rem; }
  .inner-page { padding: 3rem 1.5rem 5rem; }
  .contact-email { font-size: 1.2rem; }
  .book-detail { grid-template-columns: 1fr; gap: 2rem; }
  .book-detail-cover { max-width: 200px; }
}
