:root {
  --bg-main: #edf2f5;
  --bg-light: #f7fafc;
  --bg-dark: #3b4a57;
  --accent: #b98b5f;
  --accent-soft: #e9d3b6;
  --text-main: #23313e;
  --text-muted: #617384;
  --white: #ffffff;
  --max-width: 1120px;
  --radius-lg: 18px;
  --shadow-soft: 0 18px 45px rgba(15, 27, 40, 0.18);
}

/* RESET-ish */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Lato", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-main);
  background: var(--bg-main);
  line-height: 1.6;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 6vw;
  background: rgba(237, 242, 245, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(35, 49, 62, 0.06);
}

.logo {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
}

.nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.nav a {
  text-decoration: none;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  font-size: 0.75rem;
}

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

/* HERO */
.hero {
  position: relative;
  padding: 4.5rem 6vw 4rem;
  overflow: hidden;
  background: var(--bg-main);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, #ffffff 0, #edf2f5 40%, #dbe4ec 100%);
  z-index: -2;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(260px, 2fr);
  gap: 3rem;
  align-items: center;
}

.hero-text {
  max-width: 540px;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.hero-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 6vw, 3rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 32rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0 0.75rem;
}

.hero-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: 30rem;
}

.hero-cover {
  display: flex;
  justify-content: flex-end;
}

/* Book cover + badge */
.cover-wrap {
  position: relative;
  display: inline-block;
}

/* Book cover — styled normally */
.cover-wrap img.book-cover {
  width: 260px;
  max-width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  background: #c7d1da;
}

/* Badge — clean PNG, no shadow, no radius, no background */
.best-seller-badge {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 85px;
  height: auto;
  z-index: 10;
  pointer-events: none;
  background: transparent;
  border-radius: 0; /* ensure no rounding */
  box-shadow: none; /* ensure no shadow */
}


/*.best-seller-badge {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 80px;
  height: auto;
  z-index: 5;
  pointer-events: none;
}*/

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease,
    color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.btn-outline {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent-soft);
}

.btn-ghost {
  background: transparent;
  color: var(--text-main);
  border-color: rgba(35, 49, 62, 0.18);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.7);
}

.btn-full {
  width: 100%;
}

/* GENERIC SECTIONS */
.section {
  padding: 4rem 6vw;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  margin-top: 0;
}

.section-intro {
  max-width: 480px;
  color: var(--text-muted);
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.highlight {
  color: var(--accent);
}

/* BOOK SECTION */
.book-section {
  background: var(--bg-light);
}

.book-section .section-text {
  max-width: 650px;
}

.book-bullets {
  list-style: none;
  padding: 0;
  margin: 1.3rem 0 1.8rem;
}

.book-bullets li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.book-bullets li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
}

/* EDITIONS */
.editions-section {
  background: #dde5ed;
}

.editions-section h2,
.editions-section .section-intro {
  text-align: center;
}

.edition-grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.8rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.edition-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.6rem 1.9rem;
  box-shadow: 0 12px 30px rgba(20, 33, 44, 0.08);
}

.edition-card h3 {
  margin-top: 0;
  font-size: 1.1rem;
}

.edition-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* AUTHOR */
.author-section {
  background: var(--white);
}

.author-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1.4fr);
  gap: 2.8rem;
  align-items: center;
}

.author-photo img {
  width: 100%;
  border-radius: 30px;
  box-shadow: var(--shadow-soft);
  object-fit: cover;
}

.author-text .author-name {
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.author-text p {
  color: var(--text-muted);
}

.author-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.author-links a {
  text-decoration: none;
  color: var(--accent);
}

.author-links a:hover {
  text-decoration: underline;
}

/* QUOTE */
.quote-section {
  background: var(--bg-dark);
  color: #fff;
  text-align: center;
}

.quote-text {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  max-width: 640px;
  margin: 0 auto 1rem;
}

.quote-attrib {
  font-size: 0.95rem;
  opacity: 0.8;
}

/* CONTACT */
.contact-section {
  background: var(--bg-light);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 1.1fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.contact-text p {
  color: var(--text-muted);
}

.contact-ctas {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.contact-form {
  background: #fff;
  border-radius: 20px;
  padding: 1.8rem 1.7rem 2rem;
  box-shadow: 0 15px 40px rgba(16, 32, 48, 0.16);
}

.contact-form h3 {
  margin-top: 0;
}

.contact-note {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.contact-form label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(35, 49, 62, 0.18);
  font: inherit;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(185, 139, 95, 0.3);
}

.contact-small {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* FOOTER */
.site-footer {
  padding: 1.5rem 6vw 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* RESPONSIVE */
@media (max-width: 840px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr); /* stack text then cover */
    gap: 2rem;
  }

  .hero-cover {
    justify-content: flex-start;
    margin-top: 1.5rem;
  }

  .author-layout,
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .nav {
    flex-wrap: wrap;
    gap: 1rem;
  }
}

@media (max-width: 520px) {
  .hero {
    padding-top: 3.5rem;
  }

  .hero-title {
    font-size: 1.8rem;
    letter-spacing: 0.08em; /* tighter on mobile so it fits */
  }

  .hero-ctas {
    flex-direction: column;
    align-items: flex-start;
  }

  .section {
    padding-inline: 5vw;
  }

  .contact-form {
    padding-inline: 1.2rem;
  }

  .best-seller-badge {
    width: 80px;
    top: -18px;
    right: -18px;
  }
}