/* Molly Rejas — Editorial Modern Millennial Author Site */

:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --surface-alt: #f2ede6;
  --ink: #1b1a1e;
  --ink-muted: #58545e;
  --border: #e6dfd5;
  --accent: #6c273b;       /* Refined deep burgundy/plum */
  --accent-hover: #531d2d;
  --accent-soft: #f5e9ec;
  --gold: #9a7441;

  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius: 12px;
  --shadow-sm: 0 2px 10px rgba(27, 26, 30, 0.05);
  --shadow-md: 0 10px 30px rgba(27, 26, 30, 0.08);
  --shadow-cover: 0 12px 24px rgba(27, 26, 30, 0.16);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

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

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

/* Typography */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 0.75rem;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
}

h2 {
  font-size: clamp(1.65rem, 2.8vw, 2.2rem);
}

h3 {
  font-size: 1.4rem;
}

p {
  margin: 0 0 1rem;
  color: var(--ink-muted);
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
  background-color: var(--surface);
}

.btn-secondary:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-sm {
  padding: 0.62rem 1.15rem;
  font-size: 0.88rem;
}

.text-link {
  font-weight: 600;
  font-size: 0.92rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  gap: 1.6rem;
}

.nav a {
  color: var(--ink-muted);
  font-size: 0.92rem;
  font-weight: 500;
}

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

/* Hero */
.hero {
  padding: clamp(3rem, 6vw, 5.25rem) 0 clamp(2.5rem, 5vw, 4.5rem);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.hero-lead {
  font-size: 1.08rem;
  max-width: 56ch;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.feature-card {
  display: grid;
  grid-template-columns: 125px 1fr;
  gap: 1.25rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-md);
}

.feature-cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: var(--shadow-cover);
}

.feature-meta h2 {
  font-size: 1.45rem;
  margin: 0.45rem 0 0.4rem;
}

.feature-meta p {
  font-size: 0.92rem;
  margin-bottom: 0.75rem;
}

/* Badges */
.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--ink-muted);
}

.badge-new {
  background: var(--accent-soft);
  color: var(--accent);
}

/* Sections */
.section {
  padding: clamp(3rem, 6vw, 4.75rem) 0;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 2.25rem;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn {
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.48rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-btn:hover {
  border-color: var(--ink-muted);
  color: var(--ink);
}

.filter-btn.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

/* Books Grid */
.books-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

.book-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 2.5vw, 1.85rem);
  box-shadow: var(--shadow-sm);
}

.book-cover-wrap img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: var(--shadow-cover);
}

.book-top-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.meta-text {
  font-size: 0.84rem;
  color: var(--ink-muted);
}

.book-card h3 {
  margin-bottom: 0.2rem;
}

.book-subtitle {
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-muted);
  margin-bottom: 0.9rem;
}

.tropes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.tropes span {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.22rem 0.65rem;
  border-radius: 6px;
}

.book-hook {
  font-size: 0.96rem;
  color: var(--ink-muted);
  margin-bottom: 1.35rem;
  max-width: 68ch;
}

.book-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.store-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.store-link:hover {
  color: var(--accent);
}

/* Newsletter */
.newsletter-section {
  padding-top: 1rem;
}

.newsletter-box {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 3rem);
}

.newsletter-copy p:last-child {
  margin-bottom: 0;
}

.newsletter-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.newsletter-note {
  font-size: 0.84rem;
  margin: 0;
}

/* About & Contact */
.about-section {
  border-top: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.about-bio p {
  font-size: 1.02rem;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contact-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  font-size: 0.93rem;
}

.contact-label {
  font-weight: 600;
  color: var(--ink);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
  font-size: 0.86rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

.footer-inner p {
  margin: 0;
}

/* Responsive */
@media (max-width: 860px) {
  .hero-grid,
  .newsletter-box,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    max-width: 480px;
  }
}

@media (max-width: 640px) {
  .nav {
    gap: 1rem;
  }

  .book-card {
    grid-template-columns: 1fr;
  }

  .book-cover-wrap {
    max-width: 200px;
  }

  .feature-card {
    grid-template-columns: 95px 1fr;
  }
}
