/* =========================================================
   Soft Lift: a little more color and depth, same calm feel.
   Sage + berry lead. Loaded after the layout styles.
   body:not(#_) raises specificity so these win over the
   layout and page styles without !important.
   ========================================================= */

:root:not(#_) {
  --sage-soft: #e3eee7;
  --berry-soft: #f5e6ee;
  --berry-deep: #8f4a6d;
  --ground: #fbf9f6;
  --radius-lg: 14px;
  --shadow-soft: 0 1px 2px rgba(23, 22, 20, 0.04), 0 8px 24px rgba(171, 95, 133, 0.08);
  --shadow-lift: 0 2px 4px rgba(23, 22, 20, 0.05), 0 14px 34px rgba(171, 95, 133, 0.14);
}

/* ---------- Headings: a touch more weight ---------- */
body:not(#_) h1,
body:not(#_) h2 {
  -webkit-text-stroke: 0.5px currentColor;
}

/* ---------- Header ---------- */
body:not(#_) .site-head {
  border-top: 4px solid transparent;
  border-image: linear-gradient(90deg, var(--sage), var(--berry)) 1;
  box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(171, 95, 133, 0.05);
}
body:not(#_) .wordmark { color: var(--ink); }
body:not(#_) .site-head nav a[aria-current="page"],
body:not(#_) .site-head nav a:hover {
  color: var(--berry);
  border-color: var(--berry);
}

/* ---------- Links ---------- */
body:not(#_) main a:not(.btn):not(.journey-cta):not(.row):not(.gg-badge) {
  color: var(--berry-deep);
  text-decoration-color: var(--sage);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
body:not(#_) main a:not(.btn):not(.journey-cta):not(.row):not(.gg-badge):hover {
  color: var(--berry);
  text-decoration-color: var(--berry);
}

/* ---------- Eyebrows ---------- */
body:not(#_) .eyebrow {
  color: var(--berry);
  letter-spacing: 0.16em;
}
body:not(#_) .eyebrow::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
  margin-right: 10px;
  vertical-align: 1px;
}

/* ---------- Buttons ---------- */
body:not(#_) .btn {
  background: var(--berry);
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(171, 95, 133, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
body:not(#_) .btn:hover {
  background: var(--berry-deep);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(171, 95, 133, 0.3);
}

/* ---------- Homepage hero ---------- */
body:not(#_) .hero-photo {
  border-radius: var(--radius-lg);
  box-shadow: 14px 14px 0 #d3e4d9, var(--shadow-lift);
}

/* ---------- Homepage topic cards ---------- */
body:not(#_) .topic-list {
  background: transparent;
  border: none;
  gap: 16px;
  margin-top: 8px;
}
body:not(#_) .topic-list li {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border-top: 3px solid var(--sage);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
body:not(#_) .topic-list li:nth-child(even) { border-top-color: var(--berry); }
body:not(#_) .topic-list li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}
body:not(#_) .topic-list a {
  border-radius: var(--radius-lg);
  color: inherit;
  text-decoration: none;
}
body:not(#_) .topic-list a:hover { background: var(--surface); }
body:not(#_) .topic-list a:hover .topic-name { color: var(--berry); }

/* ---------- About ---------- */
body:not(#_) .about img {
  box-shadow: 0 0 0 6px var(--surface), 0 0 0 8px var(--berry), var(--shadow-soft);
}

/* ---------- Signup band ---------- */
body:not(#_) .signup-inner {
  background: linear-gradient(135deg, var(--sage-soft), var(--berry-soft));
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

/* ---------- Learn page list ---------- */
body:not(#_) .group h2 {
  display: inline-block;
  border-bottom: 3px solid var(--sage);
  padding-bottom: 4px;
}
body:not(#_) .row {
  border-radius: 10px;
  transition: background 0.15s ease;
}
body:not(#_) .row:hover { background: var(--berry-soft); }
body:not(#_) .row:hover .row-title { color: var(--berry); }

/* ---------- Article ---------- */
body:not(#_) .art-figure img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
}
body:not(#_) .art-body h2 {
  position: relative;
  padding-top: 18px;
}
body:not(#_) .art-body h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--sage), var(--berry));
}
body:not(#_) .art-body hr {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--sage), var(--berry), transparent);
  opacity: 0.5;
}
body:not(#_) .art-body blockquote {
  border-left: 4px solid var(--berry);
  background: var(--berry-soft);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 16px 22px;
}
body:not(#_) .art-body strong { color: var(--ink); }

/* Key Takeaways card (the list right after that heading) */
body:not(#_) .art-body h2[id*="key-takeaways"] + ul {
  background: var(--sage-soft);
  border-left: 4px solid var(--sage);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 20px 24px 20px 44px;
  box-shadow: var(--shadow-soft);
}
body:not(#_) .art-body h2[id*="key-takeaways"] + ul li::marker { color: var(--berry); }

/* Bulleted and numbered list markers */
body:not(#_) .art-body ul li::marker,
body:not(#_) .art-body ol li::marker {
  color: var(--berry);
  font-weight: 600;
}

/* Free resource / journey boxes */
body:not(#_) .journey-slot--free,
body:not(#_) .journey-slot--paid {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
body:not(#_) .journey-cta {
  border-radius: 999px;
}

@media (prefers-reduced-motion: reduce) {
  body:not(#_) .topic-list li,
  body:not(#_) .btn { transition: none; }
  body:not(#_) .topic-list li:hover,
  body:not(#_) .btn:hover { transform: none; }
}
