/* ==========================================================================
   1. Color Palette & CSS Custom Properties
   ========================================================================== */
:root {
  --cream: #FAF6EE;
  --cream-darker: #F2EBDB;
  --ink: #1A1A1A;
  --ink-soft: #3A3A3A;
  --muted: #6B6B6B;
  --hairline: #D9D2C2;
  --forest: #14532D;
  --forest-deep: #0C3A1F;
  --amber: #B45309;
  --amber-soft: #FCE9C7;
  --burnt: #C2410C;
  --burnt-deep: #9A3412;
  --wine: #7F1D1D;
  --sage: #DCE5D0;
  --sage-deep: #4D6643;
}

/* ==========================================================================
   2. Base Reset & Editorial Typography (Lora + Playfair Display + Inter)
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #e5e7eb;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Lora', Georgia, serif;
  background: var(--cream);
  color: var(--ink);
  font-size: 19px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, figure, blockquote, ul, ol {
  margin: 0;
}

ul, ol {
  list-style: none;
  padding: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: inherit;
}

.display-font {
  font-family: 'Playfair Display', Georgia, serif;
  letter-spacing: -0.01em;
}

.ui-font {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ==========================================================================
   3. Layout & Utility Classes
   ========================================================================== */
.max-w-5xl { max-width: 64rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-xl  { max-width: 36rem; }
.max-w-md  { max-width: 28rem; }
.max-w-xs  { max-width: 20rem; }

.mx-auto { margin-left: auto; margin-right: auto; }
.-mx-5   { margin-left: -1.25rem; margin-right: -1.25rem; }

.my-4 { margin-top: 1rem; margin-bottom: 1rem; }
.my-5 { margin-top: 1.25rem; margin-bottom: 1.25rem; }
.my-6 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.my-7 { margin-top: 1.75rem; margin-bottom: 1.75rem; }
.my-8 { margin-top: 2rem; margin-bottom: 2rem; }

.m-0   { margin: 0 !important; }
.mt-1  { margin-top: 0.25rem !important; }
.mt-2  { margin-top: 0.5rem !important; }
.mt-3  { margin-top: 0.75rem !important; }
.mt-4  { margin-top: 1rem !important; }
.mt-6  { margin-top: 1.5rem !important; }
.mt-7  { margin-top: 1.75rem !important; }
.mt-8  { margin-top: 2rem !important; }
.mt-10 { margin-top: 2.5rem !important; }
.mt-12 { margin-top: 3rem !important; }

.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 0.75rem !important; }
.mb-4 { margin-bottom: 1rem !important; }
.mb-5 { margin-bottom: 1.25rem !important; }
.mb-8 { margin-bottom: 2rem !important; }

.p-4  { padding: 1rem; }
.p-5  { padding: 1.25rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.pt-6 { padding-top: 1.5rem; }

.flex { display: flex; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }

.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }

.w-full { width: 100%; }
.w-20 { width: 5rem; }
.h-20 { height: 5rem; }

.rounded { border-radius: 0.25rem; }
.border-t { border-top-width: 1px; }
.border-y { border-top-width: 1px; border-bottom-width: 1px; }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); }

.text-center { text-align: center; }
.text-xs   { font-size: 0.75rem; line-height: 1rem; }
.text-sm   { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-xl   { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl  { font-size: 1.5rem; line-height: 2rem; }
.text-3xl  { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl  { font-size: 2.25rem; line-height: 2.5rem; }

.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }
.font-black    { font-weight: 900; }
.italic        { font-style: italic; }
.uppercase     { text-transform: uppercase; }
.underline     { text-decoration-line: underline; }
.leading-relaxed { line-height: 1.625; }
.tracking-widest { letter-spacing: 0.1em; }

@media (min-width: 768px) {
  .md\:px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
  .md\:-mx-10 { margin-left: -2.5rem; margin-right: -2.5rem; }
  .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .md\:text-5xl { font-size: 3rem; line-height: 1; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:col-span-2 { grid-column: span 2 / span 2; }
}

/* ==========================================================================
   4. Editorial Article Prose & Components
   ========================================================================== */
.article-prose p {
  margin-bottom: 1.2rem;
}

.news-link {
  color: var(--forest);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  text-decoration-color: var(--amber);
  transition: all 0.15s;
}

.news-link:hover {
  color: var(--amber);
  text-decoration-color: var(--forest);
}

/* Drop cap */
.drop-cap::first-letter {
  font-family: 'Playfair Display', Georgia, serif;
  float: left;
  font-size: 5.2rem;
  line-height: 0.85;
  font-weight: 800;
  color: var(--forest);
  padding: 0.3rem 0.8rem 0 0;
  margin-bottom: -0.2rem;
}

/* Pull quote — magazine style */
.pull-quote {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 1.7rem;
  line-height: 1.35;
  color: var(--forest-deep);
  text-align: center;
  margin: 2.5rem auto;
  max-width: 90%;
  position: relative;
  padding: 1.5rem 0;
}

.pull-quote::before,
.pull-quote::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--amber);
  margin: 0 auto;
}

.pull-quote::before { margin-bottom: 1.2rem; }
.pull-quote::after  { margin-top: 1.2rem; }

.pull-quote .mark {
  font-size: 4rem;
  color: var(--amber);
  line-height: 0;
  vertical-align: -0.6em;
  margin-right: 0.2rem;
  font-family: 'Playfair Display', Georgia, serif;
}

/* Section divider — ornament */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 3.5rem 0 2rem;
  color: var(--amber);
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--hairline);
  max-width: 120px;
}

.section-divider .ornament {
  font-size: 18px;
  letter-spacing: 6px;
}

/* Section heading */
.section-h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 800;
  font-size: 2rem;
  line-height: 1.2;
  color: var(--ink);
  margin: 0.5rem 0 1.2rem;
  letter-spacing: -0.02em;
}

.section-h2 .accent {
  color: var(--forest);
  font-style: italic;
}

/* Callouts */
.callout-warning {
  background: var(--amber-soft);
  border-left: 4px solid var(--amber);
  padding: 18px 22px;
  margin: 1.8rem 0;
  border-radius: 0 6px 6px 0;
}

.callout-warning p {
  margin: 0;
  color: #5C2E07;
}

.callout-danger {
  background: #FBE9E9;
  border-left: 4px solid var(--wine);
  padding: 18px 22px;
  margin: 1.8rem 0;
  border-radius: 0 6px 6px 0;
}

.callout-danger p {
  margin: 0;
  color: var(--wine);
}

/* Doctor question line */
.question-line {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  color: var(--amber);
  font-size: 1.15rem;
  margin: 2rem 0 0.8rem;
  font-weight: 500;
}

/* CTA Button */
.cta-button {
  display: block;
  width: 100%;
  max-width: 540px;
  margin: 18px auto;
  padding: 22px 32px;
  background: var(--burnt);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  text-align: center;
  border-radius: 4px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 6px 0 var(--burnt-deep), 0 8px 16px rgba(154, 52, 18, 0.25);
  transition: transform 0.12s, box-shadow 0.12s;
  border: none;
}

.cta-button:hover {
  transform: translateY(2px);
  box-shadow: 0 4px 0 var(--burnt-deep), 0 6px 14px rgba(154, 52, 18, 0.3);
  color: #ffffff;
}

.cta-button:active {
  transform: translateY(6px);
  box-shadow: 0 0 0 var(--burnt-deep);
}

/* CTA wrapper */
.cta-frame {
  background: var(--cream);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 32px 28px;
  margin: 2.5rem 0;
  text-align: center;
  position: relative;
}

.cta-frame::before {
  content: 'EXCLUSIVE READER OFFER';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--forest);
  color: var(--cream);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 4px 18px;
  border-radius: 999px;
}

/* Arrow chain */
.chain-node {
  background: #ffffff;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 16px 18px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.chain-node.problem  { background: #F5F5F5; border-color: #C8C2B2; }
.chain-node.failed   { background: #FBE9E9; border-color: #E2A4A4; color: var(--wine); }
.chain-node.villain  { background: #FFF7E0; border-color: var(--amber); color: #5C2E07; }
.chain-node.solution { background: var(--sage); border-color: var(--sage-deep); color: var(--forest-deep); }
.chain-node.result   { background: #E8F0E4; border-color: var(--forest); color: var(--forest-deep); }

.chain-arrow {
  text-align: center;
  color: var(--amber);
  font-size: 28px;
  line-height: 1;
  margin: 6px 0;
}

/* Symptom check list */
.symptom-list li {
  border-bottom: 1px dashed var(--hairline);
  padding: 14px 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.symptom-list li:last-child {
  border-bottom: none;
}

.symptom-list .check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: 2px solid var(--amber);
  border-radius: 4px;
  color: var(--burnt);
  font-weight: 800;
  text-align: center;
  line-height: 20px;
  font-size: 16px;
  margin-top: 2px;
  font-family: 'Inter', sans-serif;
}

/* Timeline */
.timeline-row {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
}

.timeline-row:last-child {
  border-bottom: none;
}

.timeline-stage {
  flex-shrink: 0;
  width: 100px;
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  color: var(--forest);
  font-size: 1.1rem;
  line-height: 1.2;
}

.timeline-stage small {
  display: block;
  color: var(--amber);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* Testimonial card */
.testimonial {
  background: #ffffff;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 28px 26px;
  margin: 1.8rem 0;
  position: relative;
}

.testimonial-meta {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
}

.testimonial-meta img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--sage);
}

.testimonial-name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--forest-deep);
  margin: 0;
}

.testimonial-role {
  font-family: 'Inter', sans-serif;
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.testimonial-quote {
  font-style: italic;
  color: var(--ink-soft);
}

/* Reader Comments */
.comment {
  padding: 22px 0;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.comment-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid var(--hairline);
  object-fit: cover;
}

.comment-name {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  font-size: 15px;
}

.comment-time {
  font-family: 'Inter', sans-serif;
  color: var(--muted);
  font-size: 12px;
  margin: 2px 0 8px;
}

.comment-body {
  font-family: 'Lora', serif;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  color: var(--ink-soft);
}

.comment-photo {
  display: block;
  width: 100%;
  max-width: 260px;
  margin-top: 10px;
  border-radius: 8px;
  border: 1px solid var(--hairline);
}

.comment-actions {
  font-family: 'Inter', sans-serif;
  color: var(--muted);
  font-size: 12px;
  margin-top: 10px;
}

/* Author Dossier Card */
.author-dossier {
  background: var(--sage);
  border-radius: 8px;
  padding: 24px;
  margin: 2rem 0;
  display: flex;
  gap: 22px;
  align-items: center;
}

.author-dossier img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffffff;
  flex-shrink: 0;
}

.author-dossier .label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--forest-deep);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 0 0 6px;
}

.author-dossier h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--forest-deep);
  margin: 0 0 8px;
  line-height: 1.1;
}

.author-dossier p {
  font-family: 'Lora', serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--forest-deep);
  margin: 0;
}

/* Stat Strip */
.stat-strip {
  background: var(--ink);
  color: var(--cream);
  padding: 28px 24px;
  margin: 2.5rem -2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
  border-radius: 4px;
}

.stat-strip .num {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--amber-soft);
  line-height: 1;
}

.stat-strip .label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #C8C2B2;
  margin-top: 6px;
}

@media (max-width: 768px) {
  body { font-size: 17px; }
  .pull-quote { font-size: 1.3rem; }
  .section-h2 { font-size: 1.6rem; }
  .author-dossier { flex-direction: column; text-align: center; }
  .stat-strip { grid-template-columns: 1fr; gap: 18px; margin: 2rem -1rem; }
  .timeline-row { flex-direction: column; gap: 8px; }
  .timeline-stage { width: auto; }
}
