/*
  styles.css for Hysterectomy: A Memoir
  Extracted from index.html
*/

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

:root {
  --cream: #FAF6EF;
  --warm-white: #FDF9F4;
  --rust: #C0533A;
  --deep-rust: #8B3A27;
  --blush: #E8B4A0;
  --soft-blush: #F5DDD4;
  --charcoal: #2C2420;
  --mid-brown: #6B4F42;
  --light-brown: #9E7B6E;
  --gold: #C8922A;
  --sage: #7A8C6E;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--cream);
  color: var(--charcoal);
  font-family: 'Lora', Georgia, serif;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.4;
}

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 3rem;
  background: rgba(250, 246, 239, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(160, 110, 90, 0.15);
}

.nav-title {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--mid-brown);
  letter-spacing: 0.02em;
}

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

.nav-links a {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mid-brown);
  text-decoration: none;
  transition: color 0.2s;
}

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

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(160, 110, 90, 0.25);
  border-radius: 6px;
  width: 38px;
  height: 34px;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle-line {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--mid-brown);
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 5rem;
  position: relative;
  overflow: hidden;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 4rem 6rem 6rem;
  position: relative;
}

.hero-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 1.8rem;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 5.5vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-style: italic;
  color: var(--light-brown);
  margin-bottom: 2.5rem;
}

.hero-tagline {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--mid-brown);
  max-width: 420px;
  margin-bottom: 3rem;
}

.hero-tagline em {
  color: var(--rust);
  font-style: italic;
}

.cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.retailer-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  width: 100%;
}

.retailer-heading {
  width: 100%;
  margin: 0.2rem 0 0;
  font-family: 'DM Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid-brown);
}

.retailer-btn {
  padding: 0.8rem 1.3rem;
  font-size: 0.72rem;
}

.btn-primary {
  background: var(--rust);
  color: white;
  border: none;
  padding: 0.9rem 2.2rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover {
  background: var(--deep-rust);
  transform: translateY(-1px);
}

.btn-secondary {
  border: 1.5px solid var(--rust);
  color: var(--rust);
  padding: 0.9rem 2.2rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
  background: transparent;
}

.btn-secondary:hover {
  background: var(--soft-blush);
}

.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 5rem 6rem 2rem;
  position: relative;
}

.book-wrap {
  position: relative;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(-2deg); }
  50% { transform: translateY(-12px) rotate(-1deg); }
}

.book-cover-img {
  width: 400px;
  height: auto;
  display: block;
  border-radius: 2px 6px 6px 2px;
  filter: drop-shadow(8px 16px 40px rgba(44,36,32,0.35));
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.blob-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(232,180,160,0.25) 0%, transparent 70%);
  top: -100px; right: -100px;
}

.blob-2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(192,83,58,0.1) 0%, transparent 70%);
  bottom: 0; left: 100px;
}

.pull-quote {
  background: var(--charcoal);
  color: var(--cream);
  padding: 5rem 6rem;
  position: relative;
  overflow: hidden;
}

.pull-quote::before {
  content: '"';
  font-family: 'Playfair Display', serif;
  font-size: 20rem;
  color: rgba(255,255,255,0.04);
  position: absolute;
  top: -3rem;
  left: 2rem;
  line-height: 1;
  pointer-events: none;
}

.pull-quote blockquote {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.pull-quote blockquote p {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.pull-quote blockquote .attr {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blush);
}

.pull-quote blockquote .attr .review-link {
  color: #fff4e9;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: none;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  font-weight: 500;
}

.pull-quote blockquote .attr .review-link:hover {
  color: #ffffff;
}

.pull-quote blockquote .more-reviews {
  margin-top: 1rem;
}

.pull-quote blockquote .more-reviews .more-reviews-link {
  font-family: 'DM Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff4e9;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.pull-quote blockquote .more-reviews .more-reviews-link:hover {
  color: #ffffff;
}

.about {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.about-text {
  padding: 7rem 5rem 7rem 6rem;
  background: var(--warm-white);
}

.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.section-label::after {
  content: '';
  height: 1px;
  width: 40px;
  background: var(--blush);
  display: inline-block;
}

.about-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--charcoal);
}

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

.about-text p em {
  color: var(--rust);
  font-style: italic;
}

.about-visual {
  background: var(--soft-blush);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  position: relative;
  overflow: hidden;
}

.about-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(192,83,58,0.04) 20px,
    rgba(192,83,58,0.04) 21px
  );
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  position: relative;
}

.stat-card {
  background: white;
  padding: 2rem 1.5rem;
  border-top: 3px solid var(--rust);
  box-shadow: 0 4px 20px rgba(44,36,32,0.08);
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--rust);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-family: 'Lora', serif;
  font-size: 0.85rem;
  color: var(--mid-brown);
  line-height: 1.4;
}

.review-cta {
  padding: 5rem 6rem;
  background: var(--warm-white);
  text-align: center;
}

.review-cta h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  color: var(--charcoal);
  max-width: 640px;
  margin: 0 auto 1rem;
}

.review-cta > p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--mid-brown);
  max-width: 560px;
  margin: 0 auto 2rem;
}

.review-cta .section-label {
  justify-content: center;
}

.review-cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .review-cta { padding: 4rem 2rem; }
}

.email-section {
  background: linear-gradient(135deg, var(--rust) 0%, var(--deep-rust) 100%);
  padding: 7rem 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.email-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.email-section > * {
  position: relative;
  z-index: 1;
}

.email-section .formkit-form,
.email-section .seva-form,
.email-section form,
.email-section iframe {
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 640px;
}

.email-section iframe {
  display: block;
  width: 100%;
}

.email-section .instagram-row {
  display: flex;
  justify-content: center;
  margin: 0 0 1.4rem;
}

.email-section .instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.2rem;
  border: 1px solid rgba(255, 244, 233, 0.55);
  border-radius: 999px;
  background: rgba(44, 36, 32, 0.2);
  box-shadow: 0 6px 20px rgba(0,0,0,0.16);
  font-family: 'DM Mono', monospace;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff4e9;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.email-section .instagram-link .instagram-icon {
  width: 1rem;
  height: 1rem;
  display: block;
  filter: brightness(0) invert(1);
}

.email-section .instagram-link:hover {
  background: rgba(44, 36, 32, 0.38);
  border-color: rgba(255, 255, 255, 0.85);
  color: #ffffff;
  transform: translateY(-1px);
}

.email-section .section-label {
  color: var(--blush);
  justify-content: center;
}

.email-section .section-label::after {
  background: rgba(255,255,255,0.2);
}

.email-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: white;
  margin-bottom: 1rem;
  position: relative;
}

.email-section p {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  max-width: 500px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  position: relative;
}

.email-form {
  display: flex;
  gap: 0;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.email-form input[type="email"] {
  flex: 1;
  padding: 1rem 1.4rem;
  border: none;
  background: white;
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  color: var(--charcoal);
  outline: none;
}

.email-form input[type="email"]::placeholder {
  color: var(--light-brown);
}

.email-form button {
  background: var(--charcoal);
  color: white;
  border: none;
  padding: 1rem 1.8rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.email-form button:hover {
  background: #1a1210;
}

.email-fine-print {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  color: rgba(255,255,255,0.4);
  margin-top: 1rem;
  position: relative;
  letter-spacing: 0.05em;
}

#email-success {
  display: none;
  color: white;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.1rem;
  margin-top: 1rem;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.chapters {
  padding: 7rem 6rem;
  background: var(--cream);
}

.chapters-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
}

.chapters-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3vw, 2.6rem);
  color: var(--charcoal);
}

.chapters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: rgba(160,110,90,0.15);
}

.chapter-card {
  background: var(--warm-white);
  padding: 2.5rem 2rem;
  transition: background 0.2s;
  cursor: default;
}

.chapter-card:hover {
  background: var(--soft-blush);
}

.chapter-num {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blush);
  margin-bottom: 0.8rem;
}

.chapter-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--charcoal);
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.chapter-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--light-brown);
}

.author-section {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 3rem;
  align-items: center;
  padding: 5rem 6rem;
  background: var(--warm-white);
}

.author-image-wrap {
  justify-self: center;
}

.author-image {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(44,36,32,0.18);
}

.author-content p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--mid-brown);
  margin: 0;
  max-width: 700px;
}

footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.5);
  padding: 3rem 6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-title {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
}

.footer-copy {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 1rem;
    right: 1rem;
    flex-direction: column;
    gap: 0.2rem;
    background: rgba(253, 249, 244, 0.98);
    border: 1px solid rgba(160, 110, 90, 0.18);
    border-radius: 10px;
    padding: 0.6rem;
    box-shadow: 0 10px 28px rgba(44,36,32,0.14);
  }
  nav.nav-open .nav-links { display: flex; }
  .nav-links a { display: block; padding: 0.6rem 0.65rem; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: 3rem 2rem 3rem; min-width: 0; }
  .hero-tagline { max-width: 100%; overflow-wrap: anywhere; }
  .cta-group { width: 100%; }
  .retailer-buttons { width: 100%; max-width: 100%; }
  .retailer-btn { flex: 1 1 calc(50% - 0.4rem); text-align: center; }
  .btn-primary,
  .btn-secondary { max-width: 100%; }
  .book-wrap { width: min(100%, 340px); }
  .book-cover-img { width: 100%; max-width: 100%; }
  .hero-right { padding: 2rem; }
  .pull-quote { padding: 4rem 2rem; }
  .about { grid-template-columns: 1fr; }
  .about-text { padding: 4rem 2rem; }
  .chapters { padding: 4rem 2rem; }
  .chapters-grid { grid-template-columns: 1fr; }
  .email-section { padding: 5rem 2rem; }
  .author-section { grid-template-columns: 1fr; gap: 2rem; padding: 4rem 2rem; }
  .author-content { text-align: left; }
  footer { flex-direction: column; gap: 1rem; text-align: center; padding: 2.5rem 2rem; }
}

@media (max-width: 520px) {
  .retailer-btn {
    flex: 1 1 100%;
  }
}
