* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --autumn-umber: #b5651e;
  --golden-hay: #e0a458;
  --driftwood: #c9aa7b;
  --stone-mist: #e9e1d2;
  --shadow-bark: #4a3729;
  --paper-cream: #fffaf2;
  --charcoal-warm: #2f2e2b;
  --border-sand: #ede3d4;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;
}
body {
  background: var(--paper-cream);
  font-family: var(--font-sans);
  color: #2c2c28;
  line-height: 1.65;
  font-size: 18px;
}

@keyframes gentleFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

/* ===== UNIVERSAL HEADER STYLES ===== */
.site-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e0d6cc;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.8rem;
  font-weight: 500;
  color: #3a2e28;
  text-decoration: none;
  border-bottom: none;
}

.logo span {
  color: #c17b5e;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: #5f4e44;
  font-weight: 500;
  transition: color 0.2s ease;
  border-bottom: none;
  font-size: 1rem;
}

.nav-links a:hover {
  color: #c17b5e;
}

/* Mobile responsive */
@media (max-width: 640px) {
  .nav-bar {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }
  .nav-links {
    gap: 1.5rem;
  }
  .logo {
    font-size: 1.5rem;
  }
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
/* header + nav */
.site-header {
  background: rgba(255, 250, 242, 0.96);
  border-bottom: 1px solid var(--border-sand);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(4px);
}
.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  flex-wrap: wrap;
}
.logo {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--autumn-umber);
  text-decoration: none;
}
.logo span {
  color: var(--golden-hay);
}
.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.nav-links a {
  text-decoration: none;
  color: #4a3a2e;
  font-weight: 500;
  transition: 0.2s;
}
.nav-links a:hover {
  color: var(--autumn-umber);
}
.article-grid {
  display: flex;
  gap: 3rem;
  margin: 2rem 0 3rem;
  flex-wrap: wrap;
}
.main-content {
  flex: 2;
  min-width: 0;
}
.sidebar {
  flex: 1;
  min-width: 280px;
}
h1 {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--shadow-bark);
  letter-spacing: -0.02em;
  margin: 1rem 0 0.5rem;
}
.subhead {
  font-size: 1.4rem;
  color: #7c5f48;
  font-style: italic;
  margin-bottom: 1.2rem;
  border-left: 4px solid var(--autumn-umber);
  padding-left: 1.2rem;
}
.meta {
  display: flex;
  gap: 1.8rem;
  font-size: 0.9rem;
  color: #a7866a;
  border-top: 1px solid var(--border-sand);
  border-bottom: 1px solid var(--border-sand);
  padding: 0.8rem 0;
  margin: 1rem 0 1.5rem;
  flex-wrap: wrap;
}
h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin: 2rem 0 1rem;
  color: var(--autumn-umber);
  font-weight: 600;
}
h3 {
  font-weight: 600;
  font-size: 1.4rem;
  margin: 1.5rem 0 0.8rem;
  color: var(--driftwood);
}
p {
  margin-bottom: 1.3rem;
  color: #2f2e2a;
}
.interactive-pause {
  background: #fcf6ed;
  border-radius: 32px;
  padding: 1.8rem 2rem;
  margin: 2rem 0;
  border-left: 8px solid var(--autumn-umber);
  transition: all 0.2s;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.02);
}
.pause-question {
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--autumn-umber);
}
.reflection-box {
  background: #ffffffdb;
  border-radius: 28px;
  padding: 1.8rem;
  margin: 2rem 0;
  box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-sand);
}
.btn-subtle {
  background: transparent;
  border: 1px solid var(--autumn-umber);
  padding: 0.5rem 1.2rem;
  border-radius: 40px;
  cursor: pointer;
  font-weight: 500;
  transition: 0.2s;
  margin-top: 0.8rem;
}
.btn-subtle:hover {
  background: var(--autumn-umber);
  color: white;
}
.expert-quote {
  background: #fbf3ea;
  border-radius: 32px;
  padding: 2rem;
  margin: 2rem 0;
  font-style: italic;
}
.expert-quote p {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  line-height: 1.4;
}
/* author card */
.soulspace-author-card {
  display: flex;
  gap: 1.8rem;
  background: white;
  border-radius: 32px;
  padding: 2rem;
  margin: 2.5rem 0;
  box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-sand);
  flex-wrap: wrap;
}
.author-initials {
  width: 80px;
  height: 80px;
  background: linear-gradient(145deg, var(--autumn-umber), #cd7a32);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 600;
  color: white;
  font-family: var(--font-serif);
}
.author-details {
  flex: 1;
}
.eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--autumn-umber);
}
.author-name {
  font-size: 1.5rem;
  margin: 0.2rem 0;
}
.internal-link {
  background: #f0e7dd;
  border-radius: 40px;
  padding: 0.2rem 1rem;
  text-decoration: none;
  color: var(--autumn-umber);
  font-weight: 500;
  transition: 0.2s;
  display: inline-block;
  margin: 0.2rem 0;
}
.internal-link i {
  margin-right: 0.3rem;
}
.internal-link:hover {
  background: var(--autumn-umber);
  color: white;
}
.related-articles-section,
.recommendations-section {
  margin: 3rem 0 2rem;
  background: #fdf6ef;
  border-radius: 28px;
  padding: 2rem;
}
.section-title-sm {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--autumn-umber);
}
.related-grid,
.rec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-top: 1rem;
}
.related-card,
.rec-card {
  background: white;
  border-radius: 20px;
  padding: 1rem;
  transition: all 0.2s;
  border: 1px solid var(--border-sand);
  cursor: pointer;
}
.related-card a,
.rec-card a {
  text-decoration: none;
  font-weight: 600;
  color: var(--shadow-bark);
  display: block;
}
.related-card p,
.rec-card p {
  font-size: 0.8rem;
  color: #8f735b;
  margin-top: 0.4rem;
  margin-bottom: 0;
}
.related-card:hover,
.rec-card:hover {
  transform: translateY(-4px);
  border-color: var(--autumn-umber);
}

/* ===== RECOMMENDATION ENGINE ===== */
.recommendations-section {
  margin: 3rem 0;
  padding: 2rem 0;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
  background: #fafafa;
  border-radius: 24px;
  padding: 2rem;
}

.recommendations-section h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #2c3e50;
  text-align: center;
  position: relative;
}

.recommendations-section h3:after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #6c5ce7;
  margin: 12px auto 0;
  border-radius: 2px;
}

#development-recommendations {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .recommendations-section {
    padding: 1.5rem;
    margin: 2rem 0;
  }

  #development-recommendations {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .recommendations-section h3 {
    font-size: 1.25rem;
  }
}

/* sidebar */
.sidebar-newsletter {
  background: var(--autumn-umber);
  color: white;
  border-radius: 24px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.sidebar-newsletter input {
  width: 100%;
  padding: 0.8rem;
  border-radius: 60px;
  border: none;
  margin: 0.8rem 0;
}
.sidebar-newsletter button {
  background: var(--golden-hay);
  border: none;
  padding: 0.8rem;
  width: 100%;
  border-radius: 60px;
  font-weight: 600;
  cursor: pointer;
  color: #2c2c28;
}
.sidebar-module {
  background: white;
  border-radius: 28px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border-sand);
}
.table-of-contents ul {
  list-style: none;
}
.table-of-contents li {
  margin-bottom: 0.6rem;
}
.table-of-contents a {
  text-decoration: none;
  color: #4e3e32;
  display: flex;
  gap: 0.6rem;
  align-items: center;
  cursor: pointer;
}
.table-of-contents a:hover {
  color: var(--autumn-umber);
}
.progress-tracker label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
  font-size: 0.9rem;
  cursor: pointer;
}
button.small-save {
  margin-top: 1rem;
  background: #e8dccc;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 40px;
  cursor: pointer;
  font-weight: 500;
  width: 100%;
}
.audio-player {
  background: #f1e8df;
  border-radius: 60px;
  padding: 0.8rem 1.8rem;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
  cursor: pointer;
  border: none;
  font-weight: 500;
  transition: 0.2s;
}
.audio-player:hover {
  background: #e5d8cb;
}
img.hero-img {
  width: 100%;
  border-radius: 32px;
  object-fit: cover;
  margin: 1.5rem 0;
  box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.1);
}
.faq-item {
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--border-sand);
}

/* 1. Reading Mode Selector */
.reading-mode-selector {
  display: flex;
  gap: 0.8rem;
  margin: 0.5rem 0 1.5rem;
  padding: 0.5rem;
  background: #f5efe8;
  border-radius: 60px;
  width: fit-content;
  border: 1px solid var(--border-sand);
}
.reading-mode-selector button {
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: 40px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  background: transparent;
  color: #6e5a48;
}
.reading-mode-selector button.active {
  background: var(--autumn-umber);
  color: white;
  box-shadow: 0 4px 12px rgba(181, 101, 30, 0.25);
}
.reading-mode-selector button:hover:not(.active) {
  background: #e5d8cb;
}
.essentials-only .full-depth-content {
  display: none;
}
.full-depth .essentials-content {
  display: none;
}

/* 2. Skip to Solutions Button */
.skip-solutions-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--autumn-umber);
  color: white;
  border: none;
  border-radius: 60px;
  padding: 0.8rem 1.8rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(181, 101, 30, 0.35);
  transition: all 0.3s ease;
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.skip-solutions-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.skip-solutions-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(181, 101, 30, 0.45);
  background: #c97a30;
}
@media (max-width: 640px) {
  .skip-solutions-btn {
    bottom: 20px;
    right: 20px;
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
  }
}

/* 3. Live Poll */
.live-poll {
  background: white;
  border-radius: 28px;
  padding: 1.8rem;
  margin: 1.5rem 0 2rem;
  border: 1px solid var(--border-sand);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
}
.live-poll h4 {
  font-family: var(--font-serif);
  color: var(--autumn-umber);
  margin-bottom: 0.3rem;
  font-size: 1.1rem;
}
.live-poll .poll-sub {
  font-size: 0.85rem;
  color: #8a7a70;
  margin-bottom: 1rem;
}
.poll-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.poll-option {
  background: #f9f5f0;
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 0.8rem 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: #3a2e28;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.poll-option:hover {
  border-color: var(--golden-hay);
  background: #fcf6ed;
}
.poll-option.voted {
  border-color: var(--autumn-umber);
  background: #f5efe8;
}
.poll-option .vote-count {
  margin-left: auto;
  font-size: 0.8rem;
  color: #8a7a70;
  background: #ede3d4;
  padding: 0.1rem 0.6rem;
  border-radius: 20px;
  min-width: 24px;
  text-align: center;
}
.poll-option .vote-emoji {
  font-size: 1.2rem;
}
@media (max-width: 480px) {
  .poll-options {
    grid-template-columns: 1fr;
  }
}

/* 4. Letter From Future Self */
.future-letter {
  background: linear-gradient(145deg, #fcf6ed, #f5efe8);
  border-radius: 32px;
  padding: 2.5rem 2.5rem;
  margin: 2rem 0;
  border-left: 6px solid var(--autumn-umber);
  font-style: italic;
  position: relative;
}
.future-letter::before {
  content: "✉";
  position: absolute;
  top: -18px;
  right: 30px;
  font-size: 2.5rem;
  background: white;
  padding: 0.2rem 0.8rem;
  border-radius: 60px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}
.future-letter .letter-greeting {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--autumn-umber);
  margin-bottom: 0.8rem;
}
.future-letter p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #4a3a2e;
  margin-bottom: 1rem;
}
.future-letter .letter-signoff {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--autumn-umber);
  margin-top: 1rem;
}
@media (max-width: 640px) {
  .future-letter {
    padding: 1.8rem 1.5rem;
  }
  .future-letter::before {
    font-size: 1.8rem;
    top: -14px;
    right: 20px;
  }
}

/* 5. Break Interstitial */
.break-interstitial {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(42, 34, 28, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  padding: 2rem;
}
.break-interstitial.active {
  opacity: 1;
  pointer-events: auto;
}
.break-interstitial .break-card {
  background: white;
  border-radius: 40px;
  padding: 3.5rem 3rem;
  max-width: 520px;
  width: 100%;
  text-align: center;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
  transform: scale(0.95);
  transition: transform 0.5s ease;
}
.break-interstitial.active .break-card {
  transform: scale(1);
}
.break-interstitial .break-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}
.break-interstitial h3 {
  font-family: var(--font-serif);
  color: var(--autumn-umber);
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
}
.break-interstitial p {
  font-size: 1.05rem;
  color: #4a3a2e;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.break-interstitial .btn-continue {
  background: var(--autumn-umber);
  color: white;
  border: none;
  padding: 0.8rem 2.5rem;
  border-radius: 60px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}
.break-interstitial .btn-continue:hover {
  background: #c97a30;
}
@media (max-width: 480px) {
  .break-interstitial .break-card {
    padding: 2.5rem 1.5rem;
  }
  .break-interstitial h3 {
    font-size: 1.5rem;
  }
  .break-interstitial .break-icon {
    font-size: 2.8rem;
  }
}

/* 6. Reaction Buttons */
.reaction-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.5rem 0 2rem;
  padding: 1.5rem;
  background: white;
  border-radius: 28px;
  border: 1px solid var(--border-sand);
  justify-content: center;
}
.reaction-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.5rem;
  border-radius: 40px;
  border: 2px solid var(--border-sand);
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #4a3a2e;
}
.reaction-btn:hover {
  border-color: var(--golden-hay);
  background: #fcf6ed;
  transform: translateY(-2px);
}
.reaction-btn.clicked {
  border-color: var(--autumn-umber);
  background: #f5efe8;
}
.reaction-btn .reaction-count {
  background: #ede3d4;
  padding: 0.05rem 0.6rem;
  border-radius: 20px;
  font-size: 0.8rem;
  min-width: 20px;
  text-align: center;
}
.reaction-btn.clicked .reaction-count {
  background: var(--autumn-umber);
  color: white;
}

/* 7. Mood Tracker */
.mood-tracker {
  background: white;
  border-radius: 28px;
  padding: 1.8rem 2rem;
  border: 1px solid var(--border-sand);
  margin: 1.5rem 0;
}
.mood-tracker h4 {
  font-family: var(--font-serif);
  color: var(--autumn-umber);
  margin-bottom: 0.2rem;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.mood-tracker .mood-sub {
  font-size: 0.85rem;
  color: #8a7a70;
  margin-bottom: 0.8rem;
}
.mood-slider-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.mood-slider-container input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 4px;
  background: linear-gradient(to right, #c9aa7b, var(--autumn-umber));
  outline: none;
  transition: background 0.2s;
}
.mood-slider-container input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--autumn-umber);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(181, 101, 30, 0.3);
  transition: all 0.2s;
}
.mood-slider-container input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}
.mood-slider-container input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: var(--autumn-umber);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(181, 101, 30, 0.3);
}
.mood-value {
  min-width: 40px;
  text-align: center;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--autumn-umber);
}
.mood-tracker .mood-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: #8a7a70;
  margin-top: 0.2rem;
  padding: 0 0.3rem;
}
.mood-tracker .btn-save-mood {
  margin-top: 0.8rem;
  background: var(--autumn-umber);
  color: white;
  border: none;
  padding: 0.5rem 1.8rem;
  border-radius: 40px;
  font-family: var(--font-sans);
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
}
.mood-tracker .btn-save-mood:hover {
  background: #c97a30;
}
.mood-compare {
  background: #f9f5f0;
  border-radius: 16px;
  padding: 1rem 1.5rem;
  margin-top: 1rem;
  display: none;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.mood-compare.visible {
  display: flex;
}
.mood-compare .compare-result {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--autumn-umber);
}
.mood-compare .compare-text {
  color: #4a3a2e;
  font-size: 0.95rem;
}
@media (max-width: 480px) {
  .mood-tracker {
    padding: 1.2rem 1.2rem;
  }
  .mood-slider-container {
    gap: 0.6rem;
  }
  .mood-value {
    min-width: 32px;
    font-size: 1rem;
  }
}

/* 8. Printable Summary Card */
.summary-card {
  background: #fcf6ed;
  border-radius: 28px;
  padding: 2.5rem 2.5rem;
  border: 2px solid var(--autumn-umber);
  margin: 2rem 0;
  position: relative;
}
.summary-card .card-badge {
  position: absolute;
  top: -14px;
  left: 30px;
  background: var(--autumn-umber);
  color: white;
  padding: 0.2rem 1.5rem;
  border-radius: 40px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.summary-card h3 {
  font-family: var(--font-serif);
  color: var(--autumn-umber);
  margin-top: 0.3rem;
  font-size: 1.6rem;
}
.summary-card ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}
.summary-card ul li {
  padding: 0.6rem 0;
  border-bottom: 1px solid #e5d8cb;
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  font-size: 0.95rem;
}
.summary-card ul li:last-child {
  border-bottom: none;
}
.summary-card ul li i {
  color: var(--autumn-umber);
  margin-top: 0.2rem;
  min-width: 20px;
}
.summary-card .btn-print {
  background: var(--autumn-umber);
  color: white;
  border: none;
  padding: 0.6rem 2rem;
  border-radius: 40px;
  font-family: var(--font-sans);
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.summary-card .btn-print:hover {
  background: #c97a30;
}
@media print {
  .summary-card {
    border: 2px solid #000;
    background: white;
  }
  .summary-card .card-badge {
    background: #000;
    color: white;
  }
  .summary-card .btn-print {
    display: none;
  }
  .skip-solutions-btn,
  .break-interstitial,
  .reading-mode-selector,
  .live-poll,
  .reaction-buttons {
    display: none !important;
  }
  .mood-tracker .btn-save-mood {
    display: none;
  }
}
@media (max-width: 640px) {
  .summary-card {
    padding: 1.8rem 1.2rem;
  }
  .summary-card .card-badge {
    left: 15px;
    font-size: 0.65rem;
  }
}

/* Internal Links Styling */
.internal-link {
  background: #f0e7dd;
  border-radius: 40px;
  padding: 0.15rem 1rem;
  text-decoration: none;
  color: var(--autumn-umber);
  font-weight: 500;
  transition: 0.2s;
  display: inline-block;
  margin: 0.1rem 0;
  border: none;
}
.internal-link i {
  margin-right: 0.3rem;
}
.internal-link:hover {
  background: var(--autumn-umber);
  color: white;
}

/* Recommendation Engine with Internal Links */
.recommendation-engine {
  background: #fdf6ef;
  border-radius: 28px;
  padding: 2rem;
  margin: 2rem 0;
}
.recommendation-engine h3 {
  font-family: var(--font-serif);
  color: var(--autumn-umber);
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.rec-grid-internal {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.rec-grid-internal .rec-card {
  background: white;
  border-radius: 20px;
  padding: 1.2rem;
  border: 1px solid var(--border-sand);
  transition: all 0.2s;
  cursor: pointer;
}
.rec-grid-internal .rec-card:hover {
  transform: translateY(-4px);
  border-color: var(--autumn-umber);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}
.rec-grid-internal .rec-card a {
  text-decoration: none;
  font-weight: 600;
  color: var(--shadow-bark);
  display: block;
}
.rec-grid-internal .rec-card a i {
  color: var(--autumn-umber);
  margin-right: 0.4rem;
}
.rec-grid-internal .rec-card p {
  font-size: 0.85rem;
  color: #8f735b;
  margin-top: 0.3rem;
  margin-bottom: 0;
}

/* ===== UNIQUE ELEMENTS STYLES ===== */

/* 1. Reading Mode Selector */
.reading-mode-selector {
  display: flex;
  gap: 0.8rem;
  margin: 1rem 0 1.5rem;
  padding: 0.5rem;
  background: #f5efe8;
  border-radius: 60px;
  border: 1px solid var(--border-sand);
  flex-wrap: wrap;
}

.reading-mode-btn {
  flex: 1;
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 40px;
  background: transparent;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.9rem;
  color: #5f4e44;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 120px;
}

.reading-mode-btn.active {
  background: var(--autumn-umber);
  color: white;
  box-shadow: 0 4px 12px rgba(181, 101, 30, 0.25);
}

.reading-mode-btn:hover:not(.active) {
  background: #e5d8cb;
}

.reading-mode-btn i {
  margin-right: 0.5rem;
}

/* 2. Skip to Solutions Button (Floating) */
.skip-to-solutions {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--autumn-umber);
  color: white;
  border: none;
  border-radius: 60px;
  padding: 0.8rem 1.8rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(181, 101, 30, 0.35);
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.skip-to-solutions.visible {
  opacity: 1;
  transform: translateY(0);
}

.skip-to-solutions:hover {
  background: #9a5520;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(181, 101, 30, 0.45);
}

.skip-to-solutions i {
  font-size: 1rem;
}

/* 3. Live Anonymous Poll */
.live-poll {
  background: white;
  border-radius: 28px;
  padding: 1.8rem;
  margin: 1.5rem 0 2rem;
  border: 1px solid var(--border-sand);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.poll-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--shadow-bark);
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.poll-subtitle {
  font-size: 0.85rem;
  color: #8a7a70;
  margin-bottom: 1.2rem;
}

.poll-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.poll-option {
  background: #f9f6f1;
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 0.8rem 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: #3a2e28;
}

.poll-option:hover {
  background: #f0e7dd;
  border-color: var(--border-sand);
}

.poll-option.selected {
  border-color: var(--autumn-umber);
  background: #fcf6ed;
}

.poll-option .poll-label {
  display: block;
  font-weight: 500;
}

.poll-option .poll-count {
  display: block;
  font-size: 0.75rem;
  color: #8a7a70;
  margin-top: 0.2rem;
}

.poll-option .poll-bar {
  height: 4px;
  background: #e5d8cb;
  border-radius: 4px;
  margin-top: 0.4rem;
  overflow: hidden;
}

.poll-option .poll-bar-fill {
  height: 100%;
  background: var(--autumn-umber);
  border-radius: 4px;
  transition: width 0.6s ease;
  width: 0%;
}

.poll-vote-count {
  font-size: 0.75rem;
  color: #8a7a70;
  margin-top: 1rem;
  text-align: center;
}

/* 4. Letter From Your Future Self */
.future-self-letter {
  background: linear-gradient(145deg, #fcf6ed, #f5ede4);
  border-radius: 32px;
  padding: 2.5rem;
  margin: 2rem 0;
  border-left: 6px solid var(--autumn-umber);
  position: relative;
}

.future-self-letter::before {
  content: "✉";
  position: absolute;
  top: -16px;
  left: 30px;
  font-size: 2rem;
  background: var(--paper-cream);
  padding: 0 0.5rem;
}

.future-self-letter .letter-intro {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--autumn-umber);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.future-self-letter .letter-body {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.8;
  color: #3a2e28;
  font-style: italic;
}

.future-self-letter .letter-signoff {
  margin-top: 1.5rem;
  font-style: normal;
  font-weight: 500;
  color: var(--autumn-umber);
}

/* 5. Break Interstitial */
.break-interstitial {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(42, 38, 34, 0.92);
  backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.break-interstitial.visible {
  opacity: 1;
  pointer-events: auto;
}

.break-content {
  background: white;
  border-radius: 40px;
  padding: 3rem 4rem;
  max-width: 520px;
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.break-interstitial.visible .break-content {
  transform: scale(1);
}

.break-content .break-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.break-content h3 {
  font-family: var(--font-serif);
  color: var(--shadow-bark);
  margin-bottom: 0.5rem;
}

.break-content p {
  color: #5f4e44;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.break-content .break-continue-btn {
  background: var(--autumn-umber);
  color: white;
  border: none;
  padding: 0.8rem 2.5rem;
  border-radius: 60px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.break-content .break-continue-btn:hover {
  background: #9a5520;
  transform: scale(1.02);
}

/* 6. Reaction Buttons */
.reaction-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1.5rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--border-sand);
  border-bottom: 1px solid var(--border-sand);
}

.reaction-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.5rem;
  border: 2px solid var(--border-sand);
  border-radius: 60px;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: #3a2e28;
  cursor: pointer;
  transition: all 0.3s ease;
}

.reaction-btn:hover {
  border-color: var(--autumn-umber);
  background: #fcf6ed;
}

.reaction-btn.reacted {
  border-color: var(--autumn-umber);
  background: #fcf6ed;
}

.reaction-btn .reaction-count {
  background: #e5d8cb;
  border-radius: 20px;
  padding: 0.1rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #5f4e44;
  min-width: 20px;
  text-align: center;
}

.reaction-btn.reacted .reaction-count {
  background: var(--autumn-umber);
  color: white;
}

/* ===== ADDITIONAL CSS FOR CITATIONS & RESPONSIVENESS ===== */

/* Citation number styling */
span[style*="font-weight: 600; margin-right: 0.5rem;"] {
  color: var(--autumn-umber);
  font-weight: 700;
}

/* In-text citation badges */
p sup,
.citation-badge {
  font-size: 0.7rem;
  color: var(--autumn-umber);
  font-weight: 700;
  vertical-align: super;
  margin-left: 0.05rem;
}

/* References section - responsive */
.references-section {
  background: #fcf6ed;
  border-radius: 28px;
  padding: 2rem;
  margin: 2.5rem 0;
  border: 1px solid var(--border-sand);
  overflow: hidden;
}

.references-section ol li {
  font-size: 0.9rem;
  line-height: 1.5;
  padding: 0.6rem 0;
}

.references-section ol li a {
  word-break: break-all;
  font-size: 0.85rem;
}

.references-section ol li a:hover {
  text-decoration: underline;
}

.references-section .fair-use {
  font-size: 0.8rem;
  color: #6e5a48;
  border-top: 1px solid #e5d8cb;
  padding-top: 1rem;
  margin-top: 0.5rem;
}

/* Author bio - responsive */
.author-bio {
  border: 1px solid chocolate;
  border-radius: 32px;
  padding: 2rem;
  margin: 2.5rem 0;
  gap: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  background: transparent;
}

.author-avatar {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 600;
  color: white;
  font-family: var(--font-serif);
  background: linear-gradient(145deg, #130730, #8b5a44);
}

.author-info {
  flex: 1;
  min-width: 280px;
}

.author-info h4 {
  margin: 0 0 0.5rem 0;
  font-family: var(--font-serif);
}

.author-info p {
  margin: 0 0 1rem 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.author-credentials {
  font-size: 0.85rem;
  margin: 0;
  opacity: 0.9;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.author-credentials span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* Disclaimer box */
.disclaimer-box {
  max-width: var(--content-width, 720px);
  margin: 0 auto 2rem auto;
  background: #f9f7f4;
  border: 1px solid #e2ddd5;
  border-radius: 12px;
  padding: 1.25rem 1.75rem;
  font-size: 0.88rem;
  color: #5d5d5d;
  text-align: center;
}

.disclaimer-box p {
  margin: 0;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Tablets & small laptops */
@media (max-width: 900px) {
  .references-section {
    padding: 1.5rem;
  }
  .references-section ol li {
    font-size: 0.85rem;
  }
  .author-bio {
    padding: 1.5rem;
    gap: 1.2rem;
  }
  .author-info {
    min-width: 200px;
  }
}

/* Mobile landscape & small tablets */
@media (max-width: 768px) {
  .references-section {
    padding: 1.2rem;
    border-radius: 20px;
    margin: 2rem 0;
  }
  .references-section ol li {
    font-size: 0.82rem;
    padding: 0.5rem 0;
  }
  .references-section ol li a {
    font-size: 0.8rem;
    display: block;
    margin-left: 0 !important;
    margin-top: 0.2rem;
  }
  .references-section h3 {
    font-size: 1.3rem;
  }
  .references-section h3 i {
    font-size: 1.1rem;
  }

  .author-bio {
    padding: 1.2rem;
    border-radius: 24px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .author-avatar {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  .author-info {
    min-width: 0;
    width: 100%;
  }
  .author-info h4 {
    font-size: 1.1rem;
  }
  .author-info p {
    font-size: 0.9rem;
  }
  .author-credentials {
    justify-content: center;
    font-size: 0.8rem;
  }

  .disclaimer-box {
    padding: 1rem 1.25rem;
    font-size: 0.82rem;
    margin: 0 0 1.5rem 0;
    border-radius: 12px;
  }
}

/* Mobile portrait */
@media (max-width: 480px) {
  .references-section {
    padding: 1rem;
    border-radius: 16px;
    margin: 1.5rem 0;
  }
  .references-section ol {
    padding-left: 0;
  }
  .references-section ol li {
    font-size: 0.78rem;
    padding: 0.4rem 0;
    margin-bottom: 0.6rem;
  }
  .references-section ol li a {
    font-size: 0.75rem;
    word-break: break-all;
  }
  .references-section h3 {
    font-size: 1.1rem;
    flex-wrap: wrap;
  }
  .references-section .fair-use {
    font-size: 0.7rem;
  }

  .author-bio {
    padding: 1rem;
    border-radius: 20px;
    gap: 0.8rem;
    margin: 1.5rem 0;
  }
  .author-avatar {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  .author-info h4 {
    font-size: 1rem;
  }
  .author-info p {
    font-size: 0.85rem;
  }
  .author-credentials {
    font-size: 0.75rem;
    gap: 0.3rem 0.6rem;
    flex-direction: column;
    align-items: center;
  }

  .disclaimer-box {
    padding: 0.8rem 1rem;
    font-size: 0.75rem;
    border-radius: 10px;
  }

  /* Fix any overflow issues */
  .main-content {
    overflow: hidden;
    width: 100%;
  }
}

/* Very small screens */
@media (max-width: 360px) {
  .references-section {
    padding: 0.8rem;
  }
  .references-section ol li {
    font-size: 0.72rem;
  }
  .references-section ol li a {
    font-size: 0.7rem;
  }
  .author-bio {
    padding: 0.8rem;
  }
  .author-info p {
    font-size: 0.8rem;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .references-section {
    border: 1px solid #333;
    background: white;
    page-break-inside: avoid;
  }
  .references-section ol li a {
    color: #000 !important;
    text-decoration: underline !important;
  }
  .author-bio {
    border: 1px solid #333;
    background: white;
  }
  .disclaimer-box {
    border: 1px solid #999;
    background: #f9f9f9;
  }
  .references-section .fair-use {
    border-top-color: #ccc;
  }
}

/* 7. Mood Tracker */
.mood-tracker {
  background: white;
  border-radius: 28px;
  padding: 1.8rem;
  margin: 1.5rem 0;
  border: 1px solid var(--border-sand);
}

.mood-tracker-label {
  font-weight: 600;
  color: var(--shadow-bark);
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.mood-tracker-sub {
  font-size: 0.85rem;
  color: #8a7a70;
  margin-bottom: 1rem;
}

.mood-slider-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mood-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: #e5d8cb;
  outline: none;
  transition: background 0.3s ease;
}

.mood-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--autumn-umber);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(181, 101, 30, 0.3);
  transition: all 0.2s ease;
}

.mood-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.mood-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--autumn-umber);
  cursor: pointer;
  border: none;
}

.mood-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--autumn-umber);
  min-width: 40px;
  text-align: center;
}

.mood-tracker .mood-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: #8a7a70;
  margin-top: 0.2rem;
}

.mood-save-btn {
  margin-top: 1rem;
  padding: 0.5rem 2rem;
  border: 1px solid var(--autumn-umber);
  border-radius: 40px;
  background: transparent;
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--autumn-umber);
  cursor: pointer;
  transition: all 0.3s ease;
}

.mood-save-btn:hover {
  background: var(--autumn-umber);
  color: white;
}

.mood-result {
  margin-top: 1rem;
  padding: 1rem;
  background: #f5efe8;
  border-radius: 16px;
  text-align: center;
  display: none;
}

.mood-result.visible {
  display: block;
}

.mood-result .shift-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--autumn-umber);
}

.mood-result .shift-positive {
  color: #4a8a5a;
}

.mood-result .shift-negative {
  color: #b5651e;
}

/* 8. Printable Summary Card */
.printable-summary {
  background: white;
  border-radius: 28px;
  padding: 2rem;
  margin: 2rem 0;
  border: 2px solid var(--golden-hay);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.printable-summary .summary-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.printable-summary .summary-header i {
  font-size: 2rem;
  color: var(--golden-hay);
}

.printable-summary .summary-header h3 {
  margin: 0;
  color: var(--shadow-bark);
}

.printable-summary .summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.printable-summary .summary-item {
  background: #f9f6f1;
  border-radius: 16px;
  padding: 1rem;
  border-left: 4px solid var(--autumn-umber);
}

.printable-summary .summary-item strong {
  display: block;
  color: var(--shadow-bark);
  margin-bottom: 0.2rem;
}

.printable-summary .summary-item p {
  font-size: 0.9rem;
  margin: 0;
  color: #5f4e44;
}

.printable-summary .print-btn {
  margin-top: 1.5rem;
  padding: 0.7rem 2rem;
  background: var(--golden-hay);
  border: none;
  border-radius: 40px;
  font-family: var(--font-sans);
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.printable-summary .print-btn:hover {
  background: #c9a04a;
  transform: translateY(-2px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .poll-options {
    grid-template-columns: 1fr;
  }

  .future-self-letter {
    padding: 1.8rem;
  }

  .future-self-letter .letter-body {
    font-size: 1rem;
  }

  .break-content {
    padding: 2rem 1.5rem;
    margin: 1rem;
    max-width: 100%;
  }

  .reaction-buttons {
    gap: 0.5rem;
  }

  .reaction-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    flex: 1;
    justify-content: center;
    min-width: 80px;
  }

  .printable-summary .summary-grid {
    grid-template-columns: 1fr;
  }

  .mood-slider-container {
    flex-wrap: wrap;
  }

  .skip-to-solutions {
    bottom: 1rem;
    right: 1rem;
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
  }

  .skip-to-solutions span {
    display: none;
  }

  .reading-mode-selector {
    gap: 0.4rem;
  }

  .reading-mode-btn {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    min-width: 80px;
  }
}

@media (max-width: 480px) {
  .poll-options {
    grid-template-columns: 1fr;
  }

  .reaction-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .reaction-btn {
    justify-content: center;
    padding: 0.6rem;
  }

  .break-content {
    padding: 1.5rem 1rem;
  }

  .future-self-letter {
    padding: 1.2rem;
  }

  .future-self-letter .letter-body {
    font-size: 0.95rem;
  }

  .printable-summary {
    padding: 1.2rem;
  }

  .skip-to-solutions {
    bottom: 0.8rem;
    right: 0.8rem;
    padding: 0.5rem 1rem;
    border-radius: 40px;
  }

  .skip-to-solutions i {
    font-size: 1rem;
  }
}

/* Print styles for summary card */
@media print {
  .printable-summary {
    border: 2px solid #333;
    box-shadow: none;
    page-break-inside: avoid;
  }

  .printable-summary .print-btn {
    display: none;
  }

  .site-header,
  .sidebar,
  .skip-to-solutions,
  .break-interstitial,
  .reading-mode-selector,
  .reaction-buttons {
    display: none !important;
  }

  body {
    background: white;
    font-size: 12pt;
  }

  .main-content {
    max-width: 100%;
  }
}

/* ============================================================
   UNIVERSAL FOOTER — full-bleed, responsive, article-safe
   Works whether footer is inside .main-wrapper or not
   ============================================================ */

/* 1) Force full viewport width, ignore any parent max-width */
.site-footer {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-sizing: border-box;
  background: #2c2826;
  color: #dacbc0;
  padding: 3rem 1.5rem 0;
  margin-top: 4rem;
  position: relative;
  overflow-x: hidden;
}

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

.footer-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 0;
}

/* 2) Fluid 4-column grid */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  align-items: start;
  width: 100%;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

/* Brand */
.footer-logo {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.footer-logo span {
  color: #c87a5a;
}

.footer-tagline {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #dacbc0;
  margin: 0;
}

/* Column headings */
.footer-col h4 {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.25rem 0;
  letter-spacing: 0.02em;
}

/* Links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: #dacbc0;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: #c87a5a;
}

/* Social icons */
.footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.25rem;
  flex-wrap: wrap;
}

.footer-social .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #dacbc0;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.footer-social .social-link:hover {
  background: #c87a5a;
  color: #fff;
}

/* Newsletter form */
.footer-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.footer-newsletter-form input[type="email"] {
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.footer-newsletter-form input[type="email"]::placeholder {
  color: rgba(218, 203, 192, 0.6);
}

.footer-newsletter-form input[type="email"]:focus {
  border-color: #c87a5a;
}

/* Newsletter submit button */
.footer-newsletter-form button,
.footer-col form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.7rem 1.4rem;
  border: none;
  border-radius: 40px;
  background: #6f8e7e;
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.01em;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
  transition:
    background 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
}

.footer-newsletter-form button:hover,
.footer-col form button:hover {
  background: #6f8e7e;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.footer-newsletter-form button:active,
.footer-col form button:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.footer-newsletter-form button:focus-visible,
.footer-col form button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* Trust badges */
.footer-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.6rem 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: #dacbc0;
  white-space: nowrap;
}

.trust-badge i {
  color: #c87a5a;
  flex-shrink: 0;
}

/* Disclaimer */
.footer-disclaimer {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0.6rem;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #dacbc0;
  text-align: left;
}

.footer-disclaimer i {
  color: #c87a5a;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

/* Copyright */
.footer-copyright {
  text-align: center;
  padding: 0.5rem 0 1rem;
  width: 100%;
}

.footer-copyright p {
  margin: 0;
  font-size: 0.82rem;
  color: #dacbc0;
  opacity: 0.85;
}

/* Email contact bar */
.footer-contact {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  width: 100%;
  flex-wrap: wrap;
}

.footer-contact i {
  color: #c87a5a;
  flex-shrink: 0;
}

.footer-contact a {
  color: #dacbc0;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
  word-break: break-word;
}

.footer-contact a:hover {
  color: #c87a5a;
}

/* ============================================================
   RESPONSIVE — footer
   ============================================================ */

/* Tablet: 2 columns */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile: 1 column, centered */
@media (max-width: 560px) {
  .site-footer {
    padding: 2.5rem 1rem 0;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    text-align: center;
  }

  .footer-col {
    align-items: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-newsletter-form {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .footer-trust {
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-disclaimer {
    text-align: left;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 800px) {
  .footer-container {
    padding: 1.5rem 1.5rem 1rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .footer-trust {
    gap: 1rem;
  }

  .trust-badge {
    font-size: 0.65rem;
  }

  .footer-disclaimer {
    flex-direction: column;
    text-align: center;
    gap: 0.3rem;
  }
}

@media (max-width: 550px) {
  .footer-container {
    padding: 1.2rem 1rem 0.8rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-newsletter-form {
    max-width: 280px;
    margin: 0 auto;
  }

  .footer-trust {
    gap: 0.8rem;
  }

  .trust-badge {
    font-size: 0.6rem;
  }

  .footer-copyright p {
    font-size: 0.65rem;
  }
}

@media (max-width: 900px) {
  .article-grid {
    flex-direction: column;
    gap: 2rem;
  }
  h1 {
    font-size: 2.4rem;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  h1 {
    font-size: 2.2rem;
  }
  .subhead {
    font-size: 1.2rem;
  }
  h2 {
    font-size: 1.8rem;
  }
  body {
    font-size: 16px;
  }
  .nav-bar {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
  }
  .nav-links {
    justify-content: center;
    gap: 1rem;
  }
}
@media (max-width: 480px) {
  h1 {
    font-size: 1.9rem;
  }
  .soulspace-author-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .related-grid,
  .rec-grid {
    grid-template-columns: 1fr;
  }
  .interactive-pause {
    padding: 1.2rem;
  }
}
@keyframes gentleFade {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-once {
  animation: gentleFade 0.6s ease forwards;
}
