/* =============================================
   DAKOTA MARS — Global Stylesheet
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Montserrat:wght@300;400;500;600&family=Lato:wght@300;400&display=swap');

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:      #080808;
  --dark:       #111111;
  --card:       #161616;
  --border:     #242424;
  --cream:      #e8dfc8;
  --muted:      #9a9080;
  --gold:       #c5983a;
  --gold-dim:   #8a6820;
  --white:      #f2ede4;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Montserrat', 'Helvetica Neue', sans-serif;
  --font-body:  'Lato', 'Helvetica Neue', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--black);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---- Utility ---- */
.label {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.gold-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin: 0.6rem auto 0;
  color: var(--gold);
  font-size: 0.8rem;
}
.gold-rule::before,
.gold-rule::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.2;
  text-align: center;
  margin-top: 0.8rem;
}

/* ---- NAV ---- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 4rem;
  transition: background 0.3s, backdrop-filter 0.3s;
}

.site-nav.scrolled {
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 2.8rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--cream);
  transition: transform 0.3s, opacity 0.3s;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('authorphoto.jpg');
  background-size: 62% auto;
  background-position: right 28%;
  background-repeat: no-repeat;
  filter: grayscale(100%) brightness(0.6);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(8,8,8,1.00) 0%,
    rgba(8,8,8,1.00) 36%,
    rgba(8,8,8,0.98) 41%,
    rgba(8,8,8,0.92) 46%,
    rgba(8,8,8,0.80) 51%,
    rgba(8,8,8,0.62) 57%,
    rgba(8,8,8,0.40) 63%,
    rgba(8,8,8,0.18) 69%,
    rgba(8,8,8,0.05) 75%,
    rgba(8,8,8,0.00) 80%
  );
}

.hero-content {
  position: relative;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 4rem;
  padding-top: 8rem;
  padding-bottom: 5rem;
}

.hero-label {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 400;
  line-height: 1;
  color: var(--white);
  max-width: 560px;
}

.hero-divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1.4rem 0;
}
.hero-divider::before,
.hero-divider::after {
  content: '';
  display: block;
  height: 1px;
  width: 36px;
  background: var(--gold);
}
.hero-divider-diamond {
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
}

.hero-desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--muted);
  max-width: 360px;
  line-height: 1.7;
  margin-bottom: 1.8rem;
}

.hero-quote {
  border-left: 2px solid var(--gold-dim);
  padding-left: 1.2rem;
  margin-bottom: 2.4rem;
  max-width: 340px;
}
.hero-quote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border: 1px solid var(--gold);
  color: var(--white);
  transition: background 0.25s, color 0.25s;
  cursor: pointer;
  background: transparent;
}
.btn:hover {
  background: var(--gold);
  color: var(--black);
}
.btn-arrow { font-size: 0.85rem; }

/* ---- FEATURED BOOKS ---- */
.featured-books {
  background: var(--dark);
  padding: 7rem 4rem;
  border-top: 1px solid var(--border);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.book-card {
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, border-color 0.25s;
}
.book-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-dim);
}

.book-cover {
  width: 100%;
  aspect-ratio: 2/3;
  overflow: hidden;
}
.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.book-card:hover .book-cover img {
  transform: scale(1.04);
}

.book-info {
  padding: 1.4rem 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.book-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 0.8rem;
  line-height: 1.25;
}
.book-learn-more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
  padding-top: 0.8rem;
}
.book-learn-more:hover { border-bottom-color: var(--gold); }

/* ---- ABOUT STRIP ---- */
.about-strip {
  position: relative;
  min-height: 480px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border-top: 1px solid var(--border);
}

.about-strip-bg {
  position: absolute;
  inset: 0;
  background-image: url('authorphoto.jpg');
  background-size: 50% auto;
  background-position: 90% 28%;
  background-repeat: no-repeat;
  filter: grayscale(100%) brightness(0.55);
}

.about-strip-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(8,8,8,1.0)  0%,
    rgba(8,8,8,0.97) 18%,
    rgba(8,8,8,0.82) 34%,
    rgba(8,8,8,0.5)  50%,
    rgba(8,8,8,0.12) 68%,
    rgba(8,8,8,0.0)  80%
  );
}

.about-strip-left {
  position: relative;
  padding: 5rem 4rem;
}
.about-strip-left .label { margin-bottom: 1.4rem; }
.about-strip-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--white);
  max-width: 400px;
  margin-bottom: 1.4rem;
}
.about-strip-body {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 400px;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.about-strip-right {
  position: relative;
  padding: 5rem 4rem;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about-strip-right .label { margin-bottom: 1.2rem; }
.about-strip-right p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.4rem;
  line-height: 1.75;
}

/* ---- EMAIL FORM ---- */
.email-form {
  display: flex;
  gap: 0;
  max-width: 380px;
}
.email-input {
  flex: 1;
  background: var(--dark);
  border: 1px solid var(--border);
  border-right: none;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--cream);
  outline: none;
  transition: border-color 0.2s;
}
.email-input::placeholder { color: var(--muted); }
.email-input:focus { border-color: var(--gold-dim); }
.btn-subscribe {
  background: var(--gold);
  border: 1px solid var(--gold);
  color: var(--black);
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.75rem 1.4rem;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.btn-subscribe:hover { background: #d4a84a; }

/* ---- FOOTER ---- */
.site-footer {
  background: var(--black);
  border-top: 1px solid var(--border);
  padding: 2.4rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer-social {
  display: flex;
  gap: 1.4rem;
}
.footer-social a {
  color: var(--muted);
  font-size: 1.1rem;
  transition: color 0.2s;
}
.footer-social a:hover { color: var(--gold); }
.footer-copy {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: right;
}

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  padding: 12rem 4rem 5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 400;
  color: var(--white);
  margin-top: 0.6rem;
}

/* ---- BOOKS PAGE ---- */
.books-section {
  padding: 6rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.book-full {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3.5rem;
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border);
}
.book-full:last-child { border-bottom: none; }

.book-full-cover {
  flex-shrink: 0;
}
.book-full-cover img {
  width: 100%;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
}

.book-full-meta .genre {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}
.book-full-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 0.4rem;
}
.book-full-author {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 1.6rem;
}
.book-full-synopsis {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.85;
  max-width: 600px;
  margin-bottom: 2rem;
}
.book-buy-links {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.btn-buy {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.65rem 1.4rem;
  border: 1px solid var(--border);
  color: var(--muted);
  transition: border-color 0.2s, color 0.2s;
}
.btn-buy:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ---- ABOUT PAGE ---- */
.about-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 4rem;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 5rem;
  align-items: start;
}
.about-photo-wrap {
  position: sticky;
  top: 100px;
}
.about-photo-wrap img {
  width: 100%;
  filter: grayscale(100%) brightness(0.85);
  box-shadow: 0 16px 50px rgba(0,0,0,0.7);
}
.about-text .section-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 2rem;
}
.about-text p {
  font-size: 0.96rem;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 1.4rem;
}
.about-text p:last-of-type { margin-bottom: 0; }
.about-pull-quote {
  border-left: 2px solid var(--gold);
  padding: 1rem 0 1rem 2rem;
  margin: 2.5rem 0;
}
.about-pull-quote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--cream);
  line-height: 1.5;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .books-grid { grid-template-columns: repeat(2, 1fr); }
  .about-strip { grid-template-columns: 1fr; }
  .about-strip-right { border-left: none; border-top: 1px solid var(--border); }
  .book-full { grid-template-columns: 180px 1fr; gap: 2.5rem; }
  .about-section { grid-template-columns: 1fr; }
  .about-photo-wrap { position: static; max-width: 380px; }
}

@media (max-width: 768px) {
  /* --- Nav --- */
  .site-nav { padding: 1.2rem 1.4rem; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(8,8,8,0.98);
    border-bottom: 1px solid var(--border);
    padding: 1.6rem;
    gap: 1.4rem;
  }
  .nav-toggle { display: flex; }

  /* --- Hero: switch to full-cover atmospheric layout --- */
  .hero-bg {
    background-size: cover;
    background-position: 68% 22%;
    filter: grayscale(100%) brightness(0.45);
  }
  .hero-gradient {
    background: linear-gradient(
      to bottom,
      rgba(8,8,8,0.55) 0%,
      rgba(8,8,8,0.35) 30%,
      rgba(8,8,8,0.45) 60%,
      rgba(8,8,8,0.92) 88%,
      rgba(8,8,8,1.00) 100%
    ),
    linear-gradient(
      to right,
      rgba(8,8,8,0.85) 0%,
      rgba(8,8,8,0.5)  40%,
      rgba(8,8,8,0.0)  70%
    );
  }
  .hero-content {
    padding: 0 1.4rem;
    padding-top: 7rem;
    padding-bottom: 4rem;
    max-width: 100%;
  }
  .hero-desc { max-width: 100%; }
  .hero-quote { max-width: 100%; }

  /* --- About strip: full-cover when stacked --- */
  .about-strip-bg {
    background-size: cover;
    background-position: 68% 18%;
    filter: grayscale(100%) brightness(0.4);
  }
  .about-strip-overlay {
    background: linear-gradient(
      to bottom,
      rgba(8,8,8,0.15) 0%,
      rgba(8,8,8,0.55) 40%,
      rgba(8,8,8,0.95) 65%,
      rgba(8,8,8,1.00) 100%
    );
  }
  .about-strip-left,
  .about-strip-right { padding: 2.8rem 1.4rem; }

  /* --- Sections --- */
  .featured-books { padding: 4rem 1.4rem; }
  .books-section { padding: 4rem 1.4rem; }
  .about-section { padding: 4rem 1.4rem; }
  .site-footer { padding: 2rem 1.4rem; flex-direction: column; align-items: flex-start; }
  .footer-copy { text-align: left; }

  /* --- Books grid --- */
  .books-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .book-full { grid-template-columns: 1fr; }
  .book-full-cover { max-width: 180px; }
  .page-hero { padding: 8rem 1.4rem 3rem; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.8rem; }
  .books-grid { grid-template-columns: 1fr 1fr; gap: 0.7rem; }
  .book-info { padding: 1rem 0.8rem; }
  .book-title { font-size: 1rem; }
  .email-form { flex-direction: column; }
  .email-input { border-right: 1px solid var(--border); border-bottom: none; }
  .about-strip-right { padding-top: 2rem; }
  .about-section { padding: 3rem 1.2rem; }
  .books-section { padding: 3rem 1.2rem; }
  .about-pull-quote { padding-left: 1.2rem; }
  .about-pull-quote p { font-size: 1.1rem; }
}
