html {
  scroll-behavior: smooth;
}

#content .author {
	padding-top: 0.5rem;
	font-size: 0.875rem;
	line-height: 1.25rem;
	font-weight: 600;
	--tw-text-opacity: 1;
}

.first-entry {
	min-height: auto;
}


/* === GLOBAL TYPOGRAPHY === */

html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3 {
  color: #428732; /* Forest green */
}

html[data-theme="light"] h4,
html[data-theme="light"] h5,
html[data-theme="light"] h6 {
  color: #8CC63E; /* Light green */
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3 {
  color: #98C6C5; /* Pale teal */
}

[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
  color: #8CC63E;
}


/* === POST ENTRIES === */

.post-entry {
  background: linear-gradient(135deg, #f7fcf5, #e7f0e6);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease;
}

.post-entry:hover {
  transform: translateY(-2px);
}

.post-entry .entry-header h2 {
  color: #428732;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.post-entry .entry-header h2 a {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(to right, #8CC63E, #3CA76E);
  background-size: 100% 0.15em;
  background-repeat: no-repeat;
  background-position: 0 90%;
  transition: background-size 0.3s ease;
}

.post-entry .entry-header h2 a:hover {
  background-size: 100% 100%;
  color: #2c6c30;
}

[data-theme="dark"] .post-entry {
  background: linear-gradient(135deg, #1e261e, #2e3b2e);
  color: #e7f0e6;
}


/* === BOOK PROMO SECTION === */

.book-promo {
  background: linear-gradient(135deg, #e7f0e6, #f4f9f2);
  border-radius: 1rem;
  padding: 2rem;
  margin-top: 2rem;
  margin-bottom: 3rem;
  box-shadow: 0 1px 4px rgba(60, 167, 110, 0.15);
}

.book-promo .promo-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}

.book-promo .promo-text {
  flex: 1 1 300px;
}

.book-promo .promo-text h2 {
  color: #428732;
  font-size: 1.8rem;
}

.book-promo .promo-text a {
  color: #3CA76E;
  text-decoration: none;
}

.book-promo .promo-text a:hover {
  text-decoration: underline;
  color: #2c6c30;
}

.book-promo .promo-img {
  flex: 0 0 200px;
  text-align: center;
}

.book-promo .promo-img img {
  width: 100%;
  max-width: 200px;
  border-radius: 0.5rem;
  box-shadow: 0 0 10px rgba(35, 31, 32, 0.08);
}

.book-promo .promo-img figcaption {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.5rem;
}

[data-theme="dark"] .book-promo {
  background: linear-gradient(135deg, #2f3c2f, #3b4d3a);
  color: #e7f0e6;
  box-shadow: 0 1px 4px rgba(140, 198, 62, 0.1);
}

[data-theme="dark"] .book-promo .promo-text h2 {
  color: #98C6C5;
}

[data-theme="dark"] .book-promo .promo-text a {
  color: #8CC63E;
}

[data-theme="dark"] .book-promo .promo-text a:hover {
  color: #3CA76E;
  text-decoration: underline;
}

[data-theme="dark"] .book-promo .promo-img figcaption {
  color: #bbb;
}

[data-theme="dark"] .book-promo .promo-img img {
  box-shadow: 0 0 10px rgba(140, 198, 62, 0.2);
}
.newsletter-hero {
  background: linear-gradient(135deg, #e7f0e6, #98C6C5);
  padding: 2rem 1rem;
  border-radius: 1rem;
  text-align: center;
  margin-bottom: 2rem;
}
.newsletter-hero h1 {
  font-size: 2rem;
  color: #428732;
  margin-bottom: 0.5rem;
}
.newsletter-hero p {
  font-size: 1.1rem;
  color: #231f20;
}
.newsletter-image {
  max-width: 100%;
  border-radius: 1rem;
  margin-top: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.intro-bio {
  margin: 2rem 0;
  background: #f9fdf8;
  padding: 1.5rem;
  border-left: 4px solid #3CA76E;
  border-radius: 0.5rem;
}
.intro-bio h2 {
  color: #3CA76E;
  margin-bottom: 0.5rem;
}

.signup-cta {
  background: #f0fff5;
  padding: 2rem 1.5rem;
  margin: 2rem 0;
  border-radius: 0.5rem;
  border-left: 4px solid #3CA76E;
}
.signup-cta h2 {
  color: #3CA76E;
}

.previous-issues {
  margin-top: 2rem;
}
.previous-issues h2 {
  color: #428732;
}
.previous-issues ul {
  padding-left: 1.5rem;
}
.previous-issues li {
  margin: 0.5rem 0;
}
.previous-issues a {
  color: #3CA76E;
  text-decoration: none;
}
.previous-issues a:hover {
  text-decoration: underline;
}

.hero-section {
  background: linear-gradient(135deg, #e7f0e6, #98C6C5);
  padding: 2rem 1rem;
  border-radius: 1rem;
  text-align: center;
  margin-bottom: 2rem;
}
.hero-section img.hero-image {
  max-width: 100%;
  border-radius: 1rem;
  margin: 1rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.hero-section h1.hero-title {
  color: #428732;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.hero-section p.hero-subtitle {
  color: #231f20;
  font-size: 1.1rem;
}

/* === Prev/Next Navigation Styling === */
.paginav {
  background: linear-gradient(135deg, #f7fcf5, #e7f0e6);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  flex-wrap: wrap;
}

[data-theme="dark"] .paginav {
  background: linear-gradient(135deg, #1e261e, #2e3b2e);
  color: #e7f0e6;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.paginav a {
  flex: 1 1 48%;
  text-decoration: none;
  color: #231f20;
  font-weight: 600;
  padding: 1rem;
  border-radius: 0.75rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.paginav a:hover {
  background-color: rgba(60, 167, 110, 0.1);
  color: #3CA76E;
}

[data-theme="dark"] .paginav a {
  color: #e7f0e6;
}

[data-theme="dark"] .paginav a:hover {
  background-color: rgba(140, 198, 62, 0.15);
  color: #8CC63E;
}

.paginav .title {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: #428732;
}

[data-theme="dark"] .paginav .title {
  color: #8CC63E;
}

/* === Share Buttons Styling === */
.share-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.5rem;
  margin-top: 2rem;
  background: linear-gradient(135deg, #f7fcf5, #e7f0e6);
  border-radius: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.share-buttons li {
  list-style: none;
}

.share-buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-decoration: none;
  color: #231f20;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.share-buttons a:hover {
  background-color: #8CC63E; /* light green hover */
  transform: scale(1.05);
  color: white;
}

/* === Dark Mode === */
[data-theme="dark"] .share-buttons {
  background: linear-gradient(135deg, #1e261e, #2e3b2e);
  color: #e7f0e6;
}

[data-theme="dark"] .share-buttons a {
  background-color: #2e2e33;
  color: #e7f0e6;
}

[data-theme="dark"] .share-buttons a:hover {
  background-color: #3CA76E;
  color: #fff;
}

/* === Header Mobile Styles === */
@media (max-width: 640px) {
  .header.wrapper {
    display: grid !important;
    grid-template-columns: 1fr !important;
    text-align: center;
    padding: 1rem;
  }

  .site-logo {
    justify-self: center;
    margin-bottom: 0.5rem;
  }

  .site-center {
    align-items: center !important;
  }

  .site-nav ul {
    flex-direction: column !important;
    gap: 1rem !important;
  }

  .theme-toggle {
    justify-self: center !important;
    margin-top: 1rem;
  }
}

/* === icon styles === */
svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
  vertical-align: middle;
}

/* === Prime Protocol Styles === */
.prime-badge-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

.prime-protocol-badge {
  font-size: 0.7rem;
  background-color: #3CA76E; // your vibrant green
  color: #fff;
  padding: 0.2em 0.5em;
  border-radius: 0.4em;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

body.prime-protocol-page {
  background-color: #e7f0e6;

  .prime-protocol-banner {
    text-align: center;
    margin-bottom: 1.5rem;

    img {
      max-height: 200px;
      width: auto;
      border-bottom: 3px solid #3CA76E;
    }
  }

  .prime-protocol-article {
    background: #fff;
    padding: 2rem;
    border-radius: 1rem;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  }

  .post-content {
    font-size: 1.1rem;
    line-height: 1.7;
  }

  h1, h2, h3 {
    color: #3CA76E;
  }
}

.prime-badge-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;

  .prime-protocol-badge {
    font-size: 0.7rem;
    background-color: #3CA76E;
    color: white;
    padding: 0.2em 0.6em;
    border-radius: 0.4em;
    font-weight: 600;
    letter-spacing: 0.03em;
    white-space: nowrap;
  }

  .prime-protocol-icon {
    display: inline-flex;
    align-items: center;

    svg {
      width: 1em;
      height: 1em;
      fill: currentColor;
      vertical-align: middle;
    }
  }
}

.inline-icon svg {
  width: 1em;
  height: 1em;
  vertical-align: middle;
  fill: currentColor;
}

/* ================== */
/* Forest Facts Pages */
.flex-grid-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.flex-grid-item {
  flex: 1 1 calc(33.333% - 1rem);
  max-width: calc(33.333% - 1rem);
  box-sizing: border-box;
  text-align: center;
  text-decoration: none;
  color: inherit;
}

@media (max-width: 900px) {
  .flex-grid-item {
    flex: 1 1 calc(50% - 1rem);
    max-width: calc(50% - 1rem);
  }
}

@media (max-width: 600px) {
  .flex-grid-item {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

.flex-grid-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.caption {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: #444;
}

.flex-grid h2,
.featured-facts h2,
.connect-links h2,
.social-cta h2,
section:not(:last-child) {
  margin-bottom: 1rem;
}

/* ----------------------------- */
/* forest fact image page styles */

.fact-image {
  text-align: center;
  margin: 2rem 0;
}

.fact-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.fact-image figcaption {
  margin-top: 1rem;
  font-style: italic;
  color: #444;
  font-size: 1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.fact-nav {
  display: flex;
  justify-content: space-between;
  margin: 3rem 0 1.5rem;
  font-size: 0.95rem;
  gap: 2rem;
}

.fact-nav a {
  color: #3CA76E;
  text-decoration: none;
  font-weight: 500;
}

.back-link {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.95rem;
}

.back-link a {
  color: #666;
  text-decoration: none;
  font-weight: 500;
}

/* ------------------------------- */
/* HERO */
/* ------------------------------- */
.hero-book {
  padding: 2rem 1rem;
  background-color: #e7f0e6;
  border-bottom: 1px solid #98C6C5;

  .hero-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    justify-content: center;
  }

  .hero-image img {
    max-width: 300px;
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }

  .hero-content {
    max-width: 600px;

    h1 {
      font-size: 2rem;
      margin-bottom: 0.5rem;
    }

    .tagline {
      font-weight: bold;
      color: #3CA76E;
      font-size: 1.25rem;
      margin-bottom: 1rem;
    }

    p {
      font-size: 1rem;
      margin-bottom: 1.5rem;
    }

    .hero-cta {
      display: inline-block;
      background-color: #3CA76E;
      color: white;
      padding: 0.75rem 1.5rem;
      border-radius: 999px;
      font-weight: bold;
      text-decoration: none;
      transition: background 0.2s ease-in-out;

      &:hover {
        background-color: #428732;
      }
    }
  }
}

