:root {
  /* Warm, earthy palette for toddler stage */
  --bg-warm: #fff8f2;
  --bg-soft: #fef3e9;
  --text-deep: #4a3b2c;
  --text-soft: #6b5c4b;
  --primary-terracotta: #e07a5f;
  --primary-clay: #c36b51;
  --accent-sand: #f2cc8f;
  --accent-sage-soft: #81b29a;
  --border-warm: #f0d9c8;
  --card-warm: #ffffffec;
  --quote-warm: #fae8dd;
  --shadow-warm: 0 20px 40px rgba(193, 118, 78, 0.08);

  /* Typography - friendly and readable */
  --font-sans: "Quicksand", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: "Crimson Text", Georgia, serif;

  /* Spacing */
  --container-width: 1200px;
  --content-width: 760px;
  --sidebar-width: 280px;
  --border-radius-xl: 40px;
  --border-radius-lg: 32px;
  --border-radius-md: 24px;
  --border-radius-sm: 16px;

  /* Animation */
  --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ===== BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-warm);
  font-family: var(--font-sans);
  color: var(--text-deep);
  line-height: 1.7;
  font-size: 18px;
  font-weight: 400;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

/* Beautiful focus states for accessibility */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--primary-terracotta);
  outline-offset: 4px;
  border-radius: 8px;
}

/* Smooth transitions */
a,
button,
.card,
.interactive-element,
.nav-link {
  transition: all 0.3s ease;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.3;
  color: #3a2e23;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 52px;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #4a3b2c 0%, #7b5e47 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: 34px;
  margin: 3.5rem 0 1.2rem;
  border-bottom: 2px solid var(--border-warm);
  padding-bottom: 0.75rem;
  position: relative;
}

h2:before {
  content: "🧸";
  font-size: 1.8rem;
  position: absolute;
  left: -2.2rem;
  top: -0.2rem;
  opacity: 0.6;
}

h3 {
  font-size: 26px;
  margin: 2.2rem 0 1rem;
  color: #c36b51;
}

p {
  margin-bottom: 1.5rem;
  color: var(--text-deep);
}

a {
  color: var(--primary-terracotta);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid transparent;
}

a:hover {
  border-bottom-color: var(--primary-terracotta);
}

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

/* ===== HEADER & NAVIGATION ===== */
.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;
}

/* ===== LAYOUT ===== */
.main-wrapper {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 2rem 2rem 0;
}

.article-grid {
  display: flex;
  gap: 3.5rem;
  position: relative;
}

.article-content {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  background: transparent;
}

.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  display: none;
}

/* ===== META & HEADER SECTION ===== */
.meta-category {
  font-size: 14px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #b48c76;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.meta-category i {
  color: var(--primary-terracotta);
  font-size: 16px;
}

.title-block {
  margin: 0.5rem 0 0.8rem;
}

.subhead {
  font-size: 24px;
  font-family: var(--font-serif);
  color: #b48c76;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 15px;
  margin: 1.5rem 0 1.2rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border-warm);
  border-bottom: 1px solid var(--border-warm);
  color: #8b7a68;
}

.byline i {
  color: var(--primary-terracotta);
  margin-right: 0.4rem;
}

.reading-time {
  display: flex;
  align-items: center;
}

/* ===== HERO SECTION ===== */
.hero-container {
  position: relative;
  width: 100%;
  height: 300px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  margin: 1.5rem 0 2.5rem;
  box-shadow: var(--shadow-warm);
  transition: transform 0.5s ease;
}

.hero-container:hover {
  transform: scale(1.02);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease;
}

.hero-container:hover .hero-image {
  transform: scale(1.1);
}

.hero-caption {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: white;
  background: rgba(224, 122, 95, 0.3);
  backdrop-filter: blur(8px);
  padding: 0.6rem 1.8rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: slideUp 0.8s ease;
}

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

/* ===== EMOTIONAL HOOK SECTION ===== */
.emotional-hook {
  font-size: 1.3rem;
  line-height: 1.7;
  color: #5b4c3b;
  background: rgba(224, 122, 95, 0.05);
  padding: 2rem;
  border-radius: var(--border-radius-md);
  border-left: 8px solid var(--primary-terracotta);
  margin: 2rem 0;
  position: relative;
  animation: fadeIn 1s ease;
}

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

.emotional-hook:after {
  content: "💫";
  position: absolute;
  bottom: -15px;
  right: 20px;
  font-size: 2rem;
  opacity: 0.3;
}

/* ===== AUTHOR'S NOTE ===== */
.authors-note {
  background: #fae8dd;
  padding: 1.5rem 2rem;
  border-radius: 60px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
  border: 2px dashed var(--primary-terracotta);
  animation: float 6s infinite ease-in-out;
}

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

.authors-note i {
  font-size: 2rem;
  color: var(--primary-terracotta);
}

/* ===== INTERACTIVE TODDLER MOMENT CARDS ===== */
.moment-card {
  background: white;
  border-radius: var(--border-radius-md);
  padding: 2rem;
  margin: 2rem 0;
  border: 2px solid var(--border-warm);
  box-shadow: var(--shadow-warm);
  transition: all 0.3s var(--transition-bounce);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.moment-card:hover {
  transform: translateY(-8px) rotate(1deg);
  border-color: var(--primary-terracotta);
  box-shadow: 0 30px 50px rgba(224, 122, 95, 0.15);
}

.moment-card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(224, 122, 95, 0.1) 0%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.3s;
}

.moment-card:hover:before {
  opacity: 1;
}

.moment-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: bounce 2s infinite;
}

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

/* ===== EXPERT QUOTES ===== */
.expert-quote {
  margin: 3rem 0 2rem;
  padding: 0 2rem 0 2.5rem;
  border-left: 6px solid var(--primary-terracotta);
  position: relative;
  background: linear-gradient(to right, rgba(224, 122, 95, 0.02), transparent);
}

.expert-quote p {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  line-height: 1.6;
  font-style: italic;
  color: #5b4c3b;
  margin-bottom: 0.8rem;
}

.quote-source {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: #8b7a68;
}

.quote-context {
  margin-top: 1rem;
  font-size: 1rem;
  color: #7a6958;
  padding-left: 1rem;
  border-left: 3px solid var(--accent-sand);
  background: rgba(242, 204, 143, 0.1);
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius-sm);
}

/* ===== TECHNIQUE CARDS ===== */
.technique-card {
  background: var(--card-warm);
  border-radius: var(--border-radius-md);
  padding: 2rem;
  margin: 2rem 0;
  border: 1px solid var(--border-warm);
  box-shadow: var(--shadow-warm);
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}

.technique-card:hover {
  transform: perspective(1000px) rotateX(2deg);
  border-color: var(--primary-terracotta);
}

.technique-card h3 {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.8rem;
}

.technique-card h3 i {
  color: var(--primary-terracotta);
  font-size: 2.2rem;
  transition: transform 0.3s;
}

.technique-card:hover h3 i {
  transform: rotate(360deg);
}

/* ===== REFLECTION BOX ===== */
.reflection-box {
  background: #fef3e9;
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  margin: 3rem 0;
  border: 2px solid var(--accent-sand);
  position: relative;
}

.reflection-box h4 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #c36b51;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.reflection-box h4 i {
  animation: spin 10s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.reflection-box ul {
  list-style: none;
}

.reflection-box li {
  margin-bottom: 1.2rem;
  padding-left: 2.5rem;
  position: relative;
  font-size: 1.1rem;
}

.reflection-box li:before {
  content: "🧸";
  position: absolute;
  left: 0;
  opacity: 0.7;
  animation: wiggle 3s infinite;
}

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

/* ===== ANONYMOUS RESPONSE BOX ===== */
.anonymous-response {
  background: #ffffffed;
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius-xl);
  padding: 3rem;
  margin: 3.5rem 0;
  border: 3px solid var(--primary-terracotta);
  text-align: center;
  box-shadow: 0 30px 60px rgba(224, 122, 95, 0.1);
  position: relative;
  overflow: hidden;
}

.anonymous-response:before {
  content: "💭💭💭";
  position: absolute;
  top: -20px;
  right: -20px;
  font-size: 8rem;
  opacity: 0.1;
  transform: rotate(15deg);
}

.anonymous-response h4 {
  font-family: var(--font-serif);
  font-size: 32px;
  color: #c36b51;
  margin-bottom: 1.5rem;
}

.anonymous-response textarea {
  width: 100%;
  padding: 1.8rem;
  border-radius: var(--border-radius-md);
  border: 2px solid var(--border-warm);
  background: #fefcf9;
  font-family: var(--font-sans);
  font-size: 1.1rem;
  margin: 1.5rem 0;
  resize: vertical;
  transition: all 0.2s;
}

.anonymous-response textarea:focus {
  border-color: var(--primary-terracotta);
  box-shadow: 0 0 0 4px rgba(224, 122, 95, 0.1);
}

.anonymous-response button {
  background: var(--primary-terracotta);
  border: none;
  color: white;
  padding: 1.2rem 3rem;
  border-radius: 60px;
  font-weight: 700;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s var(--transition-bounce);
  border: 2px solid transparent;
}

.anonymous-response button:hover {
  background: #c36b51;
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 15px 30px rgba(224, 122, 95, 0.3);
}

.response-note {
  font-size: 0.95rem;
  color: #a58e7c;
  margin-top: 1.5rem;
}

/* ===== FAQ SECTION ===== */
.faq-section {
  background: #fef3e9;
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  margin: 3.5rem 0;
}

.faq-item {
  margin: 2.5rem 0;
  border-bottom: 2px dashed var(--border-warm);
  padding-bottom: 2rem;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #c36b51;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
}

.faq-question i {
  color: var(--primary-terracotta);
  transition: transform 0.3s;
}

.faq-question:hover i {
  transform: rotate(90deg);
}

.faq-answer {
  margin-left: 2.5rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ===== AUTHOR BIO ===== */
.author-bio {
  background: linear-gradient(135deg, #fae8dd, #fef3e9);
  border-radius: var(--border-radius-xl);
  padding: 2.5rem;
  margin: 3.5rem 0 2rem;
  display: flex;
  gap: 2.5rem;
  align-items: center;
  flex-wrap: wrap;
  border: 2px solid var(--border-warm);
  position: relative;
  overflow: hidden;
}

.author-bio:before {
  content: "👩‍👧‍👦";
  position: absolute;
  bottom: -20px;
  right: -20px;
  font-size: 8rem;
  opacity: 0.1;
  transform: rotate(-10deg);
}

.author-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--primary-terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3.5rem;
  box-shadow: 0 10px 25px rgba(224, 122, 95, 0.3);
  animation: gentleFloat 6s infinite;
}

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

.author-info h4 {
  font-size: 2rem;
  margin-bottom: 0.8rem;
  color: #4a3b2c;
}

.author-credentials {
  font-size: 1rem;
  color: #8b7a68;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid var(--border-warm);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.author-credentials span {
  background: white;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
}

/* Reading Mode Selector */
.reading-mode-selector {
  display: flex;
  gap: 0.8rem;
  margin: 1rem 0 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.mode-btn {
  background: white;
  border: 2px solid var(--border-warm, #f0d9c8);
  padding: 0.7rem 1.8rem;
  border-radius: 60px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-sans, "Quicksand", sans-serif);
  font-size: 0.95rem;
  color: #4a3b2c;
}

.mode-btn.active {
  background: var(--primary-terracotta, #e07a5f);
  border-color: var(--primary-terracotta, #e07a5f);
  color: white;
  box-shadow: 0 4px 12px rgba(224, 122, 95, 0.4);
}

.mode-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(193, 118, 78, 0.15);
}

/* Essentials-only content wrapper */
.essentials-only {
  display: none;
}

body.essentials-mode .full-depth-content {
  display: none !important;
}

body.essentials-mode .essentials-only {
  display: block !important;
}

/* Essentials mode content styling */
.essentials-only h2 {
  font-size: 28px;
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
  border-bottom: none;
}

.essentials-only h2:before {
  display: none;
}

.essentials-only .essentials-list {
  background: #fef3e9;
  border-radius: 20px;
  padding: 1.5rem 2rem;
  margin: 1rem 0;
}

.essentials-only .essentials-list li {
  margin-bottom: 0.8rem;
  font-size: 1.05rem;
  padding-left: 1.5rem;
  position: relative;
  list-style: none;
}

.essentials-only .essentials-list li:before {
  content: "✦";
  position: absolute;
  left: -0.5rem;
  color: var(--primary-terracotta, #e07a5f);
  font-weight: 700;
}

.essentials-only .essentials-summary {
  background: linear-gradient(135deg, #fef3e9, #fff8f2);
  border-radius: 24px;
  padding: 2rem;
  margin: 2rem 0;
  border: 2px solid var(--primary-terracotta, #e07a5f);
  text-align: center;
}

.essentials-only .essentials-summary h3 {
  font-family: var(--font-serif, "Crimson Text", Georgia, serif);
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
  color: #4a3b2c;
}

/* Skip to Solutions Button */
.skip-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--primary-terracotta, #e07a5f);
  border: none;
  padding: 1rem 1.8rem;
  border-radius: 60px;
  font-weight: 700;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  font-family: var(--font-sans, "Quicksand", sans-serif);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: white;
}

.skip-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.skip-btn:hover {
  transform: scale(1.05) translateY(-3px);
  background: #c36b51;
  box-shadow: 0 12px 30px rgba(224, 122, 95, 0.4);
}

/* Live Poll */
.live-poll {
  background: #fff1e6;
  border-radius: 28px;
  padding: 1.5rem;
  margin: 1rem 0 1.5rem;
  border: 1px solid #e0cbbc;
}

.live-poll h4 {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif, "Crimson Text", Georgia, serif);
  font-size: 1.2rem;
  color: #4a3b2c;
}

.poll-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.poll-option-btn {
  background: white;
  border: 1px solid var(--primary-terracotta, #e07a5f);
  border-radius: 40px;
  padding: 0.5rem 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-sans, "Quicksand", sans-serif);
  font-size: 0.9rem;
  color: #4a3b2c;
}

.poll-option-btn:hover {
  background: var(--primary-terracotta, #e07a5f);
  color: white;
  transform: translateY(-2px);
}

.poll-option-btn.voted {
  background: var(--primary-terracotta, #e07a5f);
  color: white;
}

.poll-results {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #5b4c3b;
}

.poll-results div {
  margin-bottom: 0.3rem;
}

/* Letter from Future Self */
.future-letter {
  background: #fae1d0;
  border-radius: 36px;
  padding: 2rem;
  margin: 2rem 0;
  border-left: 12px solid #c36b51;
  position: relative;
}

.future-letter h4 {
  font-family: var(--font-serif, "Crimson Text", Georgia, serif);
  margin: 0.5rem 0 1rem;
  font-size: 1.4rem;
  color: #4a3b2c;
}

.future-letter p {
  font-size: 1.1rem;
  font-style: italic;
  color: #4a3b2c;
  line-height: 1.8;
}

.future-letter .future-signature {
  margin-top: 0.75rem;
  font-style: normal;
  font-weight: 600;
  color: #c36b51;
}

/* Reaction Buttons */
.reaction-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.reaction-btn {
  background: #fff0e6;
  border: 1px solid var(--primary-terracotta, #e07a5f);
  border-radius: 60px;
  padding: 0.6rem 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-sans, "Quicksand", sans-serif);
  font-size: 0.95rem;
  color: #4a3b2c;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.reaction-btn:hover {
  background: var(--primary-terracotta, #e07a5f);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(224, 122, 95, 0.3);
}

.reaction-btn .reaction-count {
  background: rgba(224, 122, 95, 0.2);
  border-radius: 30px;
  padding: 0.1rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.reaction-btn:hover .reaction-count {
  background: rgba(255, 255, 255, 0.3);
}

/* Mood Tracker Enhanced */
.mood-tracker {
  background: #fef3e9;
  border-radius: 32px;
  padding: 1.5rem;
  margin: 0 0 1.5rem 0;
  border: 2px solid var(--primary-terracotta, #e07a5f);
}

.mood-tracker h4 {
  margin: 0 0 0.5rem 0;
  font-family: var(--font-serif, "Crimson Text", Georgia, serif);
  font-size: 1.15rem;
  color: #4a3b2c;
}

.mood-tracker p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: #6b5c4b;
}

.mood-tracker input[type="range"] {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: #e0d6cc;
  border-radius: 10px;
  outline: none;
  margin: 0.5rem 0;
}

.mood-tracker input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  background: var(--primary-terracotta, #e07a5f);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.mood-tracker input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: var(--primary-terracotta, #e07a5f);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.mood-tracker .mood-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #8b7a68;
}

.mood-tracker .mood-value {
  margin-top: 0.3rem;
  font-weight: 600;
  font-size: 1.1rem;
  color: #4a3b2c;
}

.mood-tracker .mood-btn {
  margin-top: 0.8rem;
  border: none;
  padding: 0.4rem 1.2rem;
  border-radius: 40px;
  color: white;
  cursor: pointer;
  font-family: var(--font-sans, "Quicksand", sans-serif);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.mood-tracker .mood-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mood-tracker .mood-btn-primary {
  background: var(--primary-terracotta, #e07a5f);
}

.mood-tracker .mood-btn-secondary {
  background: #81b29a;
}

.mood-tracker .mood-compare-result {
  margin-top: 0.8rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #4a3b2c;
  padding: 0.5rem;
  background: white;
  border-radius: 12px;
  text-align: center;
}

/* Break Interstitial */
.break-interstitial {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(250, 242, 235, 0.98);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
}

.break-interstitial.show {
  opacity: 1;
  visibility: visible;
}

.break-content {
  max-width: 500px;
  padding: 1rem;
}

.break-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-family: var(--font-serif, "Crimson Text", Georgia, serif);
  color: #4a3b2c;
}

.break-content p {
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 0.8rem;
  color: #5b4c3b;
}

.break-content .break-btn {
  background: var(--primary-terracotta, #e07a5f);
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 60px;
  font-weight: 700;
  margin-top: 1.5rem;
  cursor: pointer;
  font-family: var(--font-sans, "Quicksand", sans-serif);
  font-size: 1rem;
  transition: all 0.3s ease;
  color: white;
}

.break-content .break-btn:hover {
  background: #c36b51;
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(224, 122, 95, 0.3);
}

/* Printable Summary Card */
.printable-summary {
  background: #fff9f0;
  border: 2px dashed var(--primary-terracotta, #e07a5f);
  border-radius: 32px;
  padding: 1.8rem;
  margin: 2rem 0;
}

.printable-summary h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-serif, "Crimson Text", Georgia, serif);
  font-size: 1.3rem;
  color: #4a3b2c;
  margin-bottom: 1rem;
}

.printable-summary ul {
  margin-left: 1.5rem;
  list-style: none;
  padding: 0;
}

.printable-summary ul li {
  padding: 0.4rem 0;
  font-size: 1rem;
  color: #4a3b2c;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.printable-summary ul li:before {
  content: "✔️";
  color: var(--primary-terracotta, #e07a5f);
  font-weight: 700;
}

.printable-summary .print-btn {
  background: var(--primary-terracotta, #e07a5f);
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 40px;
  color: white;
  cursor: pointer;
  margin-top: 1rem;
  font-family: var(--font-sans, "Quicksand", sans-serif);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.printable-summary .print-btn:hover {
  background: #c36b51;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(224, 122, 95, 0.3);
}

/* Newsletter in sidebar */
.sidebar-module .newsletter-form {
  background: white;
  padding: 1rem;
  border-radius: var(--border-radius-sm, 16px);
  border: 1px solid var(--border-warm, #f0d9c8);
}

.sidebar-module .newsletter-form input {
  width: 100%;
  padding: 0.8rem;
  border-radius: 50px;
  border: 1px solid var(--border-warm, #f0d9c8);
  margin-bottom: 0.5rem;
  font-family: var(--font-sans, "Quicksand", sans-serif);
  font-size: 0.9rem;
  background: #fffcf9;
}

.sidebar-module .newsletter-form input:focus {
  border-color: var(--primary-terracotta, #e07a5f);
  outline: none;
}

.sidebar-module .newsletter-form button {
  background: var(--primary-terracotta, #e07a5f);
  color: white;
  border: none;
  padding: 0.8rem;
  border-radius: 50px;
  width: 100%;
  cursor: pointer;
  font-family: var(--font-sans, "Quicksand", sans-serif);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.sidebar-module .newsletter-form button:hover {
  background: #c36b51;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(224, 122, 95, 0.3);
}

/* Internal links styling */
.internal-link {
  color: var(--primary-terracotta, #e07a5f);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--accent-sand, #f2cc8f);
  transition: all 0.2s ease;
}

.internal-link:hover {
  border-bottom-color: var(--primary-terracotta, #e07a5f);
  color: #c36b51;
}

/* Additional image container */
.additional-image-container {
  margin: 2.5rem 0 1rem 0;
  text-align: center;
}

.additional-image-container img {
  width: 100%;
  max-width: 700px;
  height: auto;
  border-radius: 32px;
  box-shadow: 0 20px 40px rgba(193, 118, 78, 0.15);
  object-fit: cover;
  transition: transform 0.5s ease;
}

.additional-image-container img:hover {
  transform: scale(1.01);
}

.additional-image-container .image-caption {
  font-size: 0.85rem;
  color: #8b7a68;
  margin-top: 0.75rem;
  font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .reading-mode-selector {
    flex-direction: row;
    gap: 0.5rem;
  }

  .mode-btn {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
  }

  .future-letter {
    padding: 1.5rem;
  }

  .future-letter h4 {
    font-size: 1.2rem;
  }

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

  .reaction-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .skip-btn {
    bottom: 20px;
    right: 20px;
    padding: 0.8rem 1.5rem;
    font-size: 0.85rem;
  }

  .break-content h2 {
    font-size: 2rem;
  }

  .break-content p {
    font-size: 1rem;
  }

  .essentials-only .essentials-list li {
    font-size: 0.95rem;
  }

  .printable-summary ul li {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .reading-mode-selector {
    flex-direction: column;
    gap: 0.4rem;
  }

  .mode-btn {
    width: 100%;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.8rem;
  }

  .poll-option-btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

  .future-letter {
    padding: 1.2rem;
  }

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

  .future-letter p {
    font-size: 0.9rem;
  }

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

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

  .skip-btn {
    bottom: 15px;
    right: 15px;
    padding: 0.6rem 1rem;
    font-size: 0.75rem;
    border-radius: 50px;
  }

  .mood-tracker {
    padding: 1rem;
  }

  .mood-tracker h4 {
    font-size: 1rem;
  }

  .mood-tracker .mood-labels {
    font-size: 0.7rem;
  }
}

@media print {
  .reading-mode-selector,
  .skip-btn,
  .break-interstitial,
  .live-poll,
  .reaction-buttons,
  .site-header,
  .sidebar,
  .site-footer {
    display: none !important;
  }

  .printable-summary {
    break-inside: avoid;
    border: 2px solid #ccc !important;
  }

  .mood-tracker {
    break-inside: avoid;
  }

  .full-depth-content {
    display: block !important;
  }

  .essentials-only {
    display: none !important;
  }

  body.essentials-mode .full-depth-content {
    display: block !important;
  }

  body.essentials-mode .essentials-only {
    display: none !important;
  }
}

/* ===== RECOMMENDATIONS SECTION ===== */
.recommendations-section {
  margin: 3rem 0;
  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;
}

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

/* ===== SIDEBAR ===== */
.sidebar-module {
  background: #fef3e9;
  border-radius: var(--border-radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-warm);
}

.sidebar-module h4 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #c36b51;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.sidebar-module ul {
  list-style: none;
}

.sidebar-module li {
  margin-bottom: 0.5rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  color: var(--text-deep);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-link:hover {
  background: rgba(224, 122, 95, 0.1);
  transform: translateX(5px);
}

/* ============================================================
   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 BREAKPOINTS (FULL COVERAGE) ===== */
/* Desktop wide */
@media (min-width: 1025px) {
  .sidebar {
    display: block;
  }
  .article-content {
    margin: 0;
  }
}

/* Laptop */
@media (max-width: 1024px) {
  .article-content {
    max-width: 700px;
  }
  h1 {
    font-size: 46px;
  }
  h2:before {
    display: none;
  }
}

/* Small tablet */
@media (max-width: 900px) {
  .article-content {
    max-width: 100%;
  }
  #development-recommendations {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet / Mobile landscape */
@media (max-width: 768px) {
  body {
    font-size: 17px;
  }
  h1 {
    font-size: 38px;
  }
  h2 {
    font-size: 30px;
  }
  .author-bio {
    flex-direction: column;
    text-align: center;
  }
  #development-recommendations {
    grid-template-columns: 1fr;
  }
  .emotional-hook {
    font-size: 1.2rem;
  }
  .recommendations-section {
    padding: 1.5rem;
    margin: 2rem 0;
  }
  .recommendations-section h3 {
    font-size: 1.25rem;
  }
}

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

/* Mobile portrait */
@media (max-width: 480px) {
  .main-wrapper {
    padding: 1rem 1rem 0;
  }
  h1 {
    font-size: 32px;
  }
  .hero-container {
    height: 200px;
  }
  .anonymous-response {
    padding: 2rem;
  }
  .faq-section {
    padding: 2rem;
  }
}

/* Small phones */
@media (max-width: 320px) {
  h1 {
    font-size: 28px;
  }
}

/* Footer responsive overrides */
@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;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.8s ease;
}
