/* ═══════════════════════════════════════════════════════════════
   OVERCOMING ANXIETY — SIX SIMPLE STEPS
   The Workbook Edition · Shared Design System
   ═══════════════════════════════════════════════════════════════ */

:root {
  --ink:        #2a1f17;
  --ink-soft:   #4a3729;
  --muted:      #8a7560;
  --paper:      #fdf6e9;
  --paper-deep: #f7ebd3;
  --bg:         #f0e3c8;

  --amber:      #c9742b;
  --amber-deep: #9c5418;
  --terracotta: #b85c3a;
  --honey:      #e8a849;
  --gold:       #b8893f;

  --sage:       #7a8868;
  --sage-deep:  #5a6a4a;

  --rule:       #d9c5a3;
  --rule-soft:  #ead8b5;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Fraunces', 'Cormorant Garamond', 'Georgia', serif;
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(at 15% 20%, rgba(232, 168, 73, 0.12) 0px, transparent 50%),
    radial-gradient(at 85% 80%, rgba(184, 92, 58, 0.08) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(201, 116, 43, 0.05) 0px, transparent 60%);
  background-attachment: fixed;
  line-height: 1.78;
  margin: 0;
  padding: 40px 20px;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

.ebook {
  max-width: 780px;
  margin: 0 auto;
  background: var(--paper);
  background-image:
    radial-gradient(at 0% 0%, rgba(232, 168, 73, 0.08) 0px, transparent 40%),
    radial-gradient(at 100% 100%, rgba(184, 92, 58, 0.06) 0px, transparent 40%);
  box-shadow:
    0 2px 8px rgba(74, 55, 41, 0.08),
    0 20px 60px rgba(74, 55, 41, 0.15),
    0 40px 100px rgba(74, 55, 41, 0.1);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.ebook::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--amber) 0%, var(--terracotta) 35%, var(--honey) 70%, var(--amber-deep) 100%);
  z-index: 5;
}

.chapter-opener {
  position: relative;
  padding: 90px 70px 60px;
  background:
    radial-gradient(at 50% 0%, rgba(232, 168, 73, 0.25) 0px, transparent 60%),
    linear-gradient(180deg, #fdf6e9 0%, #f7ebd3 100%);
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}
.chapter-opener::before, .chapter-opener::after {
  content: "❦";
  position: absolute;
  color: var(--amber);
  opacity: 0.2;
  font-size: 80px;
}
.chapter-opener::before { top: 30px; left: 30px; transform: rotate(-15deg); }
.chapter-opener::after { bottom: 20px; right: 30px; transform: rotate(15deg); }

.book-mark {
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 10px;
  color: var(--amber-deep);
  font-weight: 700;
  margin: 0 0 30px;
  position: relative;
  display: inline-block;
}
.book-mark::before, .book-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 30px;
  height: 1px;
  background: var(--amber);
}
.book-mark::before { right: calc(100% + 18px); }
.book-mark::after { left: calc(100% + 18px); }

.chapter-number {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 22px;
  color: var(--terracotta);
  margin: 0 0 14px;
  letter-spacing: 0.05em;
}

h1.chapter-title {
  font-family: 'Fraunces', serif;
  font-size: 48px;
  line-height: 1.1;
  margin: 0 0 22px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}
h1.chapter-title em {
  font-style: italic;
  color: var(--amber-deep);
  font-weight: 400;
}

.chapter-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--muted);
  font-size: 22px;
  margin: 0 auto;
  line-height: 1.55;
  max-width: 480px;
}

.opener-ornament {
  margin: 36px auto 0;
  width: 200px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.opener-ornament svg { width: 100%; height: 100%; }

.chapter-body {
  padding: 60px 70px 70px;
}

.chapter-body p {
  margin: 0 0 22px;
  color: var(--ink-soft);
  text-align: justify;
  hyphens: auto;
}

.drop-cap {
  text-align: left !important;
}
.drop-cap::first-letter {
  font-family: 'Fraunces', serif;
  font-size: 92px;
  line-height: 0.82;
  float: left;
  margin: 8px 14px -4px 0;
  color: var(--amber-deep);
  font-weight: 700;
  font-style: italic;
  text-shadow: 2px 3px 0 rgba(184, 92, 58, 0.15);
}

h2 {
  font-family: 'Fraunces', serif;
  font-size: 30px;
  margin: 60px 0 6px;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  position: relative;
  padding-top: 30px;
}
h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--amber) 0%, var(--terracotta) 100%);
  border-radius: 2px;
}
h2 + .h2-sub {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--muted);
  font-size: 18px;
  margin: 0 0 32px;
  line-height: 1.5;
}

h3 {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  margin: 42px 0 14px;
  color: var(--amber-deep);
  font-weight: 600;
  font-style: italic;
  line-height: 1.3;
}
h3::before {
  content: "✦ ";
  color: var(--honey);
  font-style: normal;
  font-size: 16px;
  vertical-align: middle;
  margin-right: 4px;
}

.hero-image, .secondary-image {
  margin: 50px -70px;
  position: relative;
}
.hero-image img, .secondary-image img {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(1.05);
}
.hero-image::after, .secondary-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 80px rgba(74, 55, 41, 0.2);
}
.image-caption {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--muted);
  text-align: center;
  margin: 18px 70px 0;
  line-height: 1.5;
  position: relative;
  padding: 0 30px;
}
.image-caption::before, .image-caption::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 18px;
  height: 1px;
  background: var(--amber);
  opacity: 0.5;
}
.image-caption::before { left: 0; }
.image-caption::after { right: 0; }

.pull-quote {
  margin: 50px -30px;
  padding: 50px 60px;
  background:
    radial-gradient(at 20% 20%, rgba(232, 168, 73, 0.15) 0%, transparent 50%),
    linear-gradient(135deg, #fdf6e9 0%, #f4e4c1 100%);
  border-radius: 8px;
  position: relative;
  text-align: center;
  border: 1px solid var(--rule-soft);
  box-shadow: 0 4px 20px rgba(184, 92, 58, 0.08);
}
.pull-quote::before {
  content: "“";
  font-family: 'Fraunces', serif;
  font-size: 140px;
  line-height: 0.7;
  color: var(--amber);
  opacity: 0.25;
  position: absolute;
  top: 30px;
  left: 30px;
}
.pull-quote::after {
  content: "”";
  font-family: 'Fraunces', serif;
  font-size: 140px;
  line-height: 0.4;
  color: var(--amber);
  opacity: 0.25;
  position: absolute;
  bottom: 0;
  right: 30px;
}
.pull-quote-text {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 24px;
  line-height: 1.45;
  color: var(--ink);
  margin: 0;
  font-weight: 400;
  position: relative;
  z-index: 1;
}
.pull-quote-attribution {
  display: block;
  margin-top: 22px;
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-size: 12px;
  color: var(--amber-deep);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
}
.pull-quote-attribution::before { content: "— "; }

.callout-box {
  background: linear-gradient(135deg, rgba(232, 168, 73, 0.12) 0%, rgba(184, 92, 58, 0.08) 100%);
  border: 1px solid var(--rule);
  border-left: 5px solid var(--amber);
  border-radius: 6px;
  padding: 30px 36px;
  margin: 36px 0;
  position: relative;
}
.callout-box::before {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 50px;
  height: 50px;
  background: linear-gradient(225deg, var(--amber) 0%, var(--amber) 50%, transparent 50%);
  border-radius: 0 6px 0 50px;
  opacity: 0.4;
}
.callout-box .callout-title {
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 11px;
  font-weight: 700;
  color: var(--amber-deep);
  margin: 0 0 14px;
}
.callout-box p { text-align: left; }
.callout-box p:last-child { margin-bottom: 0; }

.callout-soft {
  background: linear-gradient(135deg, rgba(122, 136, 104, 0.08) 0%, rgba(122, 136, 104, 0.04) 100%);
  border-left-color: var(--sage);
}
.callout-soft::before {
  background: linear-gradient(225deg, var(--sage) 0%, var(--sage) 50%, transparent 50%);
}
.callout-soft .callout-title { color: var(--sage-deep); }

.infographic-wrap {
  margin: 60px -40px;
  padding: 50px 40px;
  background:
    radial-gradient(at 50% 0%, rgba(232, 168, 73, 0.18) 0%, transparent 60%),
    linear-gradient(180deg, #fdf6e9 0%, #f0e3c8 100%);
  border-radius: 12px;
  border: 1px solid var(--rule);
  position: relative;
}
.infographic-wrap::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 4px;
  background: linear-gradient(90deg, var(--amber), var(--terracotta), var(--honey));
  border-radius: 12px 12px 0 0;
}
.infographic-title {
  text-align: center;
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 28px;
  font-family: 'Fraunces', serif;
  font-weight: 600;
}
.infographic-sub {
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 17px;
  color: var(--muted);
  margin: 0 0 36px;
}
.infographic-wrap svg {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

ul.styled-list {
  list-style: none;
  padding: 0;
  margin: 28px 0;
}
ul.styled-list li {
  padding: 18px 0 18px 50px;
  position: relative;
  color: var(--ink-soft);
  border-bottom: 1px dotted var(--rule);
  text-align: left;
}
ul.styled-list li:last-child { border-bottom: none; }
ul.styled-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 26px;
  width: 32px;
  height: 32px;
  background: radial-gradient(circle, var(--honey) 0%, var(--amber) 100%);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(184, 92, 58, 0.25);
}
ul.styled-list li::after {
  content: "✦";
  position: absolute;
  left: 0;
  top: 26px;
  width: 32px;
  height: 32px;
  color: #fff;
  text-align: center;
  line-height: 32px;
  font-size: 14px;
}
ul.styled-list li strong {
  color: var(--ink);
  display: block;
  margin-bottom: 6px;
  font-family: 'Fraunces', serif;
  font-size: 19px;
  font-weight: 600;
}

.section-break {
  margin: 70px auto;
  text-align: center;
  color: var(--amber);
  font-size: 24px;
  letter-spacing: 1.5em;
  padding-left: 1.5em;
  opacity: 0.6;
}

.chapter-closer {
  margin: 80px -10px 0;
  padding: 50px 50px 44px;
  background:
    radial-gradient(at 20% 20%, rgba(232, 168, 73, 0.25) 0%, transparent 60%),
    linear-gradient(135deg, #4a3729 0%, #2a1f17 100%);
  color: #f7ebd3;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(42, 31, 23, 0.3);
}
.chapter-closer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--honey), var(--amber), var(--terracotta));
}
.chapter-closer::after {
  content: "❦";
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 60px;
  color: var(--amber);
  opacity: 0.18;
}
.chapter-closer .closer-eyebrow {
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 10px;
  font-weight: 700;
  color: var(--honey);
  margin: 0 0 8px;
}
.chapter-closer h3 {
  color: #ffffff;
  margin: 0 0 22px;
  font-family: 'Fraunces', serif;
  font-size: 26px;
  font-weight: 600;
  font-style: normal;
}
.chapter-closer h3::before { content: ""; }
.chapter-closer p {
  color: #f0deb8;
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.7;
  text-align: left;
}
.chapter-closer p strong {
  color: var(--honey);
  font-family: 'Fraunces', serif;
  font-weight: 600;
}

.chapter-closer .key-points {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}
.chapter-closer .key-points li {
  padding: 14px 0 14px 32px;
  position: relative;
  border-bottom: 1px solid rgba(232, 168, 73, 0.15);
  color: #f0deb8;
  font-size: 16px;
  line-height: 1.65;
}
.chapter-closer .key-points li:last-child { border-bottom: none; }
.chapter-closer .key-points li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 14px;
  color: var(--honey);
  font-size: 14px;
}
.chapter-closer .key-points li strong {
  color: var(--honey);
  display: inline;
}

.action-step {
  margin-top: 36px;
  padding: 26px 28px;
  background: rgba(232, 168, 73, 0.12);
  border: 1px solid rgba(232, 168, 73, 0.3);
  border-left: 4px solid var(--honey);
  border-radius: 6px;
  position: relative;
}
.action-step .action-tag {
  color: var(--honey);
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  margin-bottom: 12px;
  font-weight: 700;
}
.action-step p {
  color: #fdf6e9 !important;
  margin: 0;
  font-family: 'Fraunces', serif;
  font-size: 17px;
  line-height: 1.65;
}
.action-step p em {
  color: var(--honey);
  font-style: italic;
}

.next-chapter {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(232, 168, 73, 0.2);
}
.next-chapter-eyebrow {
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 10px;
  color: var(--honey);
  font-weight: 700;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.next-chapter-eyebrow::after {
  content: "→";
  font-size: 14px;
}
.next-chapter-text {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: #f7ebd3;
  font-size: 19px;
  line-height: 1.55;
  margin: 0;
  text-align: left;
}

.closing-signature {
  text-align: center;
  margin: 40px 0 0;
  padding: 30px 0 0;
  color: var(--muted);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 17px;
}

/* Worksheet block — for the workbook elements */
.worksheet {
  margin: 50px -20px;
  padding: 40px 36px;
  background: linear-gradient(180deg, #fffdf6 0%, #fdf6e9 100%);
  border: 2px dashed var(--amber);
  border-radius: 10px;
  position: relative;
}
.worksheet::before {
  content: "WORKSHEET";
  position: absolute;
  top: -12px;
  left: 30px;
  background: var(--paper);
  padding: 0 14px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--amber-deep);
}
.worksheet h3 {
  margin-top: 0;
  font-style: normal;
}
.worksheet h3::before { content: "" }
.worksheet-line {
  display: block;
  margin: 18px 0;
  border-bottom: 1px solid var(--rule);
  min-height: 24px;
  position: relative;
}
.worksheet-line.short { width: 60%; }
.worksheet-prompt {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--amber-deep);
  font-weight: 600;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@media (max-width: 720px) {
  body { padding: 10px; font-size: 17px; }
  .chapter-opener { padding: 60px 28px 44px; }
  .chapter-opener::before, .chapter-opener::after { font-size: 50px; }
  .chapter-body { padding: 40px 28px 50px; }
  h1.chapter-title { font-size: 34px; }
  .chapter-subtitle { font-size: 18px; }
  h2 { font-size: 24px; }
  .hero-image, .secondary-image { margin: 30px -28px; }
  .image-caption { margin-left: 28px; margin-right: 28px; padding: 0 20px; }
  .pull-quote { margin: 36px 0; padding: 32px 24px; }
  .pull-quote-text { font-size: 19px; }
  .infographic-wrap { margin: 36px -10px; padding: 30px 16px; }
  .infographic-title { font-size: 22px; }
  .chapter-closer { margin: 50px 0 0; padding: 36px 28px; }
  .chapter-closer h3 { font-size: 22px; }
  .callout-box { padding: 22px 24px; }
  .worksheet { margin: 36px 0; padding: 28px 22px; }
}
