/* ============================================================
   Living After Estrangement — Shared Stylesheet
   livingafterestrangement.com · A Becoming Aurora property
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --indigo-ink:   #211d42;
  --indigo-deep:  #2b2657;
  --indigo-soft:  #4a4478;
  --amber:        #d4922a;
  --amber-bright: #e8a93d;
  --sky-pale:     #f1f0f7;
  --paper:        #fbfafe;
  --line:         #dddbe9;
  --display:      'Fraunces', Georgia, serif;
  --body:         'Source Serif 4', Georgia, serif;
  --utility:      'Inter', -apple-system, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--sky-pale);
  color: var(--indigo-ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

/* ---------- Dawn horizon line ---------- */
.horizon {
  height: 3px;
  background: linear-gradient(90deg,
    var(--indigo-deep) 0%,
    var(--indigo-soft) 35%,
    var(--amber) 75%,
    var(--amber-bright) 100%);
  border: none;
  flex-shrink: 0;
}

/* ---------- Layout ---------- */
.wrap   { max-width: 880px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 680px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header / Masthead ---------- */
header {
  background: var(--indigo-deep);
  color: var(--sky-pale);
}
.mast-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 26px 24px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.mast-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  color: #fff;
  text-decoration: none;
}
.mast-title .amber { color: var(--amber-bright); }
.mast-tag {
  font-family: var(--utility);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b9b3da;
}

/* ---------- Hero (home) ---------- */
.hero {
  background: linear-gradient(180deg, var(--indigo-deep) 0%, var(--indigo-soft) 100%);
  color: var(--sky-pale);
  padding: 72px 0 88px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 100px;
  background: radial-gradient(ellipse 120% 100% at 50% 100%,
    rgba(232,169,61,0.35) 0%, rgba(232,169,61,0) 70%);
  pointer-events: none;
}
.hero .eyebrow {
  font-family: var(--utility);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-bright);
  margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.75rem, 4.5vw, 2.65rem);
  line-height: 1.24;
  max-width: 640px;
  color: #fff;
}
.hero p.sub {
  margin-top: 22px;
  max-width: 540px;
  color: #cfcae6;
  font-size: 1.05rem;
  line-height: 1.6;
}
.hero .cta-row {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--utility);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 13px 24px;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  display: inline-block;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn-amber {
  background: var(--amber-bright);
  color: var(--indigo-ink);
}
.btn-amber:hover { background: #f2b855; }
.btn-ghost {
  border-color: #6c66a0;
  color: var(--sky-pale);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--amber-bright); color: var(--amber-bright); }
.btn-ghost-dark {
  border-color: var(--indigo-soft);
  color: var(--indigo-soft);
  background: transparent;
}
.btn-ghost-dark:hover { border-color: var(--amber); color: var(--amber); }

/* ---------- Section labels ---------- */
.section-label {
  font-family: var(--utility);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--indigo-soft);
  margin: 56px 0 8px;
}
.section-head {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.4rem;
  margin-bottom: 28px;
}

/* ---------- Question groups (home) ---------- */
.qgroup { margin-bottom: 44px; }
.qgroup h3 {
  font-family: var(--utility);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--amber);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2px;
}
.qlist { list-style: none; }
.qlist li { border-bottom: 1px solid var(--line); }
.qlist a {
  display: block;
  padding: 15px 2px;
  color: var(--indigo-ink);
  text-decoration: none;
  font-size: 1.02rem;
  transition: color 0.15s, padding-left 0.15s;
}
.qlist a:hover,
.qlist a:focus-visible {
  color: var(--amber);
  padding-left: 8px;
  outline: none;
}

/* ---------- Article page ---------- */
.article-head { padding: 64px 0 0; }
.crumb {
  font-family: var(--utility);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--indigo-soft);
  margin-bottom: 18px;
  text-decoration: none;
  display: inline-block;
}
.crumb:hover { color: var(--amber); }
.article-head h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  line-height: 1.27;
  margin-bottom: 36px;
}
.updated {
  font-family: var(--utility);
  font-size: 0.78rem;
  color: var(--indigo-soft);
  margin-bottom: 28px;
  display: block;
}

/* ---------- Short answer box ---------- */
.short-answer {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: 4px;
  padding: 26px 28px 24px;
  margin-bottom: 16px;
}
.short-answer .label {
  font-family: var(--utility);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 10px;
}
.short-answer p {
  font-size: 1.1rem;
  line-height: 1.58;
  font-weight: 600;
  color: var(--indigo-deep);
}

/* ---------- Article body ---------- */
.article-body { padding: 40px 0 0; }
.article-body h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.28rem;
  margin: 44px 0 14px;
  color: var(--indigo-deep);
}
.article-body p {
  margin-bottom: 20px;
  color: var(--indigo-ink);
}
.article-body p strong { color: var(--indigo-deep); }

/* ---------- Resources box ---------- */
.resources {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 24px 28px;
  margin: 44px 0;
}
.resources h2 {
  font-family: var(--utility);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  margin: 0 0 14px;
  color: var(--indigo-deep);
}
.resources ul { list-style: none; }
.resources li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.97rem;
}
.resources li:last-child { border-bottom: none; }
.resources li .rtype {
  font-family: var(--utility);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  display: block;
  margin-bottom: 2px;
}
.resources li a { text-decoration: none; color: var(--indigo-deep); }
.resources li a:hover { color: var(--amber); }

/* ---------- Funnel block ---------- */
.keep-going {
  background: var(--indigo-deep);
  color: var(--sky-pale);
  border-radius: 5px;
  padding: 38px 34px;
  margin: 48px 0 80px;
  position: relative;
  overflow: hidden;
}
.keep-going::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--indigo-soft), var(--amber-bright));
}
.keep-going h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.35rem;
  color: #fff;
  margin: 0 0 10px;
}
.keep-going p {
  color: #cfcae6;
  max-width: 520px;
  margin: 0 0 24px;
  font-size: 1rem;
}
.keep-going .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Article nav (prev/next) ---------- */
.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 0 0 80px;
  margin-top: 8px;
}
.article-nav a {
  font-family: var(--utility);
  font-size: 0.84rem;
  color: var(--indigo-soft);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s;
}
.article-nav a:hover { color: var(--amber); }
.article-nav .next { margin-left: auto; }

/* ---------- Footer ---------- */
footer {
  background: var(--indigo-ink);
  color: #9a94c2;
  font-family: var(--utility);
  font-size: 0.82rem;
  padding: 36px 0 52px;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}
footer .footer-brand {
  font-family: var(--display);
  font-size: 1rem;
  color: #cfcae6;
  margin-bottom: 4px;
}
footer .footer-tag {
  font-size: 0.78rem;
  color: #7a74a8;
}
footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
}
footer a { color: #cfcae6; text-decoration: none; }
footer a:hover { color: var(--amber-bright); }

/* ---------- Home: quiz promo strip ---------- */
.quiz-strip {
  background: var(--indigo-ink);
  padding: 52px 0 56px;
  margin-top: 56px;
  position: relative;
  overflow: hidden;
}
.quiz-strip::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--indigo-soft), var(--amber-bright));
}
.quiz-strip h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  color: #fff;
  max-width: 560px;
  line-height: 1.3;
  margin-bottom: 14px;
}
.quiz-strip p {
  color: #cfcae6;
  max-width: 480px;
  margin-bottom: 26px;
  font-size: 1.02rem;
}

/* ---------- Accessibility & motion ---------- */
:focus-visible { outline: 2px solid var(--amber-bright); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
  body { font-size: 17px; }
  .hero { padding: 52px 0 68px; }
  .keep-going { padding: 28px 22px; }
  .article-head h1 { font-size: 1.65rem; }
  .mast-tag { display: none; }
}
