/* === WHAT THE FUCK, MENOPAUSE? === */
/* Design: pear-moss-fuchsia palette, Fraunces + Outfit fonts */

:root {
  --pear: #8fa65a;
  --pear-light: #b5cc7e;
  --pear-pale: #f0f4e4;
  --moss: #4a5e3a;
  --moss-dark: #2d3a24;
  --fuchsia: #d4366e;
  --fuchsia-light: #e8699a;
  --fuchsia-pale: #fdf0f4;
  --cream: #faf8f3;
  --warm-white: #fefdfb;
  --text: #2a2a2a;
  --text-soft: #5a5a5a;
  --text-light: #8a8a8a;
  --blush: #f5e6d8;
  --sidebar-width: 320px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.8;
  overflow-x: hidden;
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  position: relative;
  background: linear-gradient(160deg, var(--moss-dark) 0%, var(--moss) 40%, #3d5e3a 70%, var(--moss-dark) 100%);
  color: white;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(212, 54, 110, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(143, 166, 90, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
}

.hero::after {
  content: '🍐';
  position: absolute;
  font-size: 12rem;
  opacity: 0.06;
  top: 10%;
  right: 5%;
  animation: pearFloat 15s ease-in-out infinite;
}

@keyframes pearFloat {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-30px) rotate(5deg); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-pear {
  font-size: 4.5rem;
  margin-bottom: 1rem;
  display: inline-block;
  animation: pearPulse 4s ease-in-out infinite;
}

@keyframes pearPulse {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.05) rotate(3deg); }
  75% { transform: scale(0.98) rotate(-2deg); }
}

.hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
}

.hero h1 .wtf {
  background: linear-gradient(135deg, var(--fuchsia-light) 0%, var(--fuchsia) 50%, #c0285a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero h1 .menopause {
  display: block;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.7em;
}

.hero-subtitle {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--pear-light);
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.hero-tagline {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 480px;
  margin: 0 auto 2.5rem;
  line-height: 1.9;
  font-weight: 300;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: var(--fuchsia);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.hero-cta:hover {
  background: transparent;
  border-color: var(--fuchsia-light);
  color: var(--fuchsia-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 54, 110, 0.3);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.8rem;
  animation: scrollBounce 2s ease-in-out infinite;
  z-index: 1;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.25; }
  50% { transform: translateY(-5px); opacity: 0.5; }
}

/* === LAYOUT (SIDEBAR + CONTENT) === */
.site-layout {
  display: flex;
  min-height: 100vh;
}

/* === SIDEBAR (DESKTOP) === */
.sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  background: white;
  border-right: 1px solid rgba(143, 166, 90, 0.15);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  padding: 0 1.5rem 1.5rem;
  border-bottom: 1px solid var(--pear-pale);
  margin-bottom: 1rem;
}

.sidebar-logo {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--moss-dark);
  text-decoration: none;
  display: block;
  line-height: 1.3;
}

.sidebar-logo .wtf-small {
  color: var(--fuchsia);
}

.sidebar-logo:hover {
  color: var(--moss);
}

.sidebar-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-light);
  padding: 0 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.sidebar-entries {
  list-style: none;
  flex: 1;
}

.sidebar-entry {
  display: block;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  color: var(--text-soft);
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}

.sidebar-entry:hover {
  background: var(--pear-pale);
  color: var(--moss-dark);
  border-left-color: var(--pear-light);
}

.sidebar-entry.active {
  background: var(--pear-pale);
  color: var(--moss-dark);
  border-left-color: var(--fuchsia);
  font-weight: 500;
}

.sidebar-entry-number {
  font-family: 'Fraunces', serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fuchsia);
  display: block;
  font-weight: 600;
}

.sidebar-entry-title {
  font-family: 'Fraunces', serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: inherit;
  display: block;
  margin: 0.1rem 0;
}

.sidebar-entry-date {
  font-size: 0.75rem;
  color: var(--text-light);
}

.sidebar-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--pear-pale);
  margin-top: auto;
  text-align: center;
}

.sidebar-footer-pear {
  font-size: 1.2rem;
  opacity: 0.4;
}

/* === MAIN CONTENT === */
.main-content {
  flex: 1;
  min-width: 0;
}

/* === MOBILE NAV === */
.mobile-nav {
  display: none;
  position: sticky;
  top: 0;
  z-index: 100;
  background: white;
  border-bottom: 1px solid rgba(143, 166, 90, 0.15);
  padding: 0.75rem 1.25rem;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav-title {
  font-family: 'Fraunces', serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--moss-dark);
  text-decoration: none;
}

.mobile-nav-title .wtf-small {
  color: var(--fuchsia);
}

.mobile-menu-btn {
  background: none;
  border: 1px solid rgba(143, 166, 90, 0.3);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--moss);
  font-weight: 500;
  font-family: 'Outfit', sans-serif;
  transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
  background: var(--pear-pale);
  border-color: var(--pear);
}

.mobile-menu-panel {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  z-index: 200;
  overflow-y: auto;
  padding: 2rem;
  animation: slideDown 0.3s ease;
}

.mobile-menu-panel.open {
  display: block;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-menu-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.mobile-menu-close:hover {
  background: var(--pear-pale);
  color: var(--moss);
}

.mobile-menu-header {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--moss-dark);
  margin-bottom: 0.5rem;
}

.mobile-menu-sub {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  font-style: italic;
}

.mobile-menu-entries {
  list-style: none;
}

.mobile-menu-entry {
  display: block;
  padding: 1rem 0;
  border-bottom: 1px solid var(--pear-pale);
  text-decoration: none;
  color: var(--text);
}

.mobile-menu-entry:last-child {
  border-bottom: none;
}

.mobile-menu-entry-number {
  font-family: 'Fraunces', serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fuchsia);
  font-weight: 600;
}

.mobile-menu-entry-title {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--moss-dark);
  display: block;
  margin: 0.15rem 0;
}

.mobile-menu-entry-sub {
  font-size: 0.85rem;
  color: var(--text-light);
  font-style: italic;
}

/* === INTRO === */
.intro {
  max-width: 680px;
  margin: 0 auto;
  padding: 5rem 2rem;
  text-align: center;
}

.intro-quote {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-style: italic;
  font-weight: 300;
  color: var(--moss);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.intro-text {
  font-size: 1rem;
  color: var(--text-soft);
  line-height: 2;
}

/* === ARTICLE === */
.article-section {
  background: white;
  max-width: 100%;
  padding: 0;
}

.article-header {
  background: linear-gradient(135deg, var(--pear-pale) 0%, var(--fuchsia-pale) 100%);
  padding: 4rem 2rem;
  text-align: center;
  border-bottom: 3px solid var(--pear-light);
}

.article-number {
  font-family: 'Fraunces', serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--fuchsia);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.article-date {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.75rem;
}

.article-header h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--moss-dark);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.article-header .article-sub {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-soft);
  font-weight: 300;
}

.article-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 2rem 2rem;
}

.article-body .opener {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--moss);
  line-height: 1.9;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--pear-pale);
}

.article-body h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--moss-dark);
  margin: 3rem 0 1.25rem;
  letter-spacing: -0.01em;
}

.article-body p {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 2;
  margin-bottom: 1.25rem;
}

.article-body ul, .article-body ol {
  margin: 1.25rem 0;
  padding-left: 1.5rem;
}

.article-body li {
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.article-body em {
  font-style: italic;
  color: var(--moss);
}

.article-body strong {
  font-weight: 600;
  color: var(--moss-dark);
}

/* Pull quote */
.pull-quote {
  margin: 2.5rem -1rem;
  padding: 2rem 2.5rem;
  background: linear-gradient(135deg, var(--pear-pale) 0%, rgba(143, 166, 90, 0.08) 100%);
  border-left: 4px solid var(--fuchsia);
  border-radius: 0 12px 12px 0;
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--moss-dark);
  line-height: 1.8;
}

/* Tips section */
.tips-section {
  margin: 3rem 0;
  padding: 2.5rem;
  background: var(--cream);
  border-radius: 16px;
  border: 1px solid rgba(143, 166, 90, 0.2);
}

.tips-section h3 {
  margin-top: 0;
  color: var(--fuchsia);
}

.tips-section h4 {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  color: var(--moss);
  margin: 1.5rem 0 0.75rem;
  font-weight: 600;
}

.tips-section h4:first-of-type {
  margin-top: 1rem;
}

/* Separator pear */
.pear-divider {
  text-align: center;
  font-size: 1.5rem;
  margin: 2.5rem 0;
  opacity: 0.4;
}

/* === SAME PEAR BUTTON === */
.same-pear-section {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 2rem 3rem;
  text-align: center;
}

.same-pear-container {
  padding: 2.5rem;
  background: linear-gradient(135deg, var(--pear-pale) 0%, var(--fuchsia-pale) 100%);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.same-pear-label {
  font-family: 'Fraunces', serif;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.same-pear-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2.2rem;
  background: white;
  border: 2px solid var(--pear-light);
  border-radius: 50px;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--moss-dark);
  transition: all 0.3s ease;
  position: relative;
  overflow: visible;
}

.same-pear-btn:hover:not(.clicked) {
  border-color: var(--fuchsia);
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(212, 54, 110, 0.15);
}

.same-pear-btn:active:not(.clicked) {
  transform: translateY(0);
}

.same-pear-btn .pear-icon {
  font-size: 1.3rem;
  display: inline-block;
  transition: transform 0.3s ease;
}

.same-pear-btn:hover:not(.clicked) .pear-icon {
  animation: pearWiggle 0.6s ease;
}

@keyframes pearWiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-10deg); }
  50% { transform: rotate(10deg); }
  75% { transform: rotate(-5deg); }
}

.same-pear-btn.clicked {
  border-color: var(--fuchsia);
  background: linear-gradient(135deg, var(--fuchsia-pale), white);
  cursor: default;
  color: var(--fuchsia);
}

.same-pear-btn.clicked .pear-icon {
  animation: pearBounce 0.6s ease;
}

@keyframes pearBounce {
  0% { transform: scale(1); }
  30% { transform: scale(1.4) rotate(15deg); }
  50% { transform: scale(0.9) rotate(-5deg); }
  70% { transform: scale(1.15) rotate(5deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.same-pear-count {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.75rem;
  font-style: italic;
  transition: all 0.3s ease;
}

.same-pear-count.highlight {
  color: var(--fuchsia);
}

/* Floating pear particles */
.pear-particle {
  position: fixed;
  font-size: 1.2rem;
  pointer-events: none;
  z-index: 1000;
  animation: pearRise 1.5s ease-out forwards;
}

@keyframes pearRise {
  0% { opacity: 1; transform: translateY(0) scale(1) rotate(0deg); }
  50% { opacity: 0.8; transform: translateY(-60px) scale(1.1) rotate(20deg); }
  100% { opacity: 0; transform: translateY(-120px) scale(0.6) rotate(-10deg); }
}

/* === ENTRY NAV (PREV/NEXT) === */
.entry-nav {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 2rem 2rem;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.entry-nav-link {
  display: block;
  padding: 1rem 1.5rem;
  background: var(--pear-pale);
  border-radius: 12px;
  text-decoration: none;
  color: var(--moss-dark);
  transition: all 0.2s ease;
  flex: 1;
}

.entry-nav-link:hover {
  background: var(--fuchsia-pale);
  transform: translateY(-2px);
}

.entry-nav-link.prev {
  text-align: left;
}

.entry-nav-link.next {
  text-align: right;
}

.entry-nav-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fuchsia);
  font-weight: 600;
}

.entry-nav-title {
  font-family: 'Fraunces', serif;
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 0.2rem;
}

/* === NEXT ENTRY TEASER === */
.next-teaser {
  background: var(--moss-dark);
  color: white;
  text-align: center;
  padding: 4rem 2rem;
}

.next-teaser .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--pear-light);
  margin-bottom: 0.75rem;
}

.next-teaser h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: white;
}

.next-teaser p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  font-style: italic;
}

/* === FOOTER === */
footer {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--moss-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-tagline {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--pear-light);
  margin-bottom: 0.5rem;
}

.footer-credit {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
}

.footer-credit a {
  color: var(--fuchsia-light);
  text-decoration: none;
}

.footer-pear {
  font-size: 1.5rem;
  margin-top: 1rem;
  opacity: 0.4;
}

/* === ALL ENTRIES PAGE === */
.all-entries-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.all-entries-page h2 {
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--moss-dark);
  margin-bottom: 0.5rem;
}

.all-entries-page .all-entries-sub {
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 3rem;
}

.all-entries-list {
  list-style: none;
}

.all-entries-item {
  display: block;
  padding: 1.5rem;
  margin-bottom: 1rem;
  background: white;
  border-radius: 16px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid rgba(143, 166, 90, 0.12);
  transition: all 0.2s ease;
}

.all-entries-item:hover {
  border-color: var(--fuchsia-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

.all-entries-item-number {
  font-family: 'Fraunces', serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fuchsia);
  font-weight: 600;
}

.all-entries-item-title {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--moss-dark);
  margin: 0.2rem 0;
}

.all-entries-item-sub {
  font-size: 0.9rem;
  color: var(--text-soft);
  font-style: italic;
}

.all-entries-item-date {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .sidebar {
    display: none;
  }

  .mobile-nav {
    display: flex;
  }

  .hero::after {
    font-size: 6rem;
  }

  .article-body {
    padding: 2rem 1.5rem 2rem;
  }

  .same-pear-section {
    padding: 0 1.5rem 2rem;
  }

  .pull-quote {
    margin: 2rem 0;
    padding: 1.5rem;
  }

  .tips-section {
    padding: 1.5rem;
  }

  .entry-nav {
    flex-direction: column;
    padding: 0 1.5rem 2rem;
  }

  .entry-nav-link.next {
    text-align: left;
  }

  .same-pear-container {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .article-header {
    padding: 3rem 1.5rem;
  }

  .same-pear-btn {
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
  }
}
