/* ============================================================
   Our Sister's Place — theme stylesheet (Bootstrap 5.3 layer)
   ------------------------------------------------------------
   MODX: served as a static asset from assets/css/osp.css and
   linked from the `head` chunk AFTER the Bootstrap CDN CSS.
   Layout/grid is Bootstrap (.container-xxl / .row / .col-*);
   this file only themes Bootstrap and styles the custom
   components the design system needs.
   ============================================================ */

/* ---------- Design tokens + Bootstrap root overrides ---------- */
:root {
  /* OSP palette (namespaced --osp-*) */
  --osp-plum-900: #2E2A35;
  --osp-plum-800: #3D2F4A;
  --osp-plum-700: #4A3458;
  --osp-plum-600: #5B3A6B;
  --osp-plum-500: #6E4A80;
  --osp-plum-300: #A98EB5;
  --osp-plum-100: #E8DFEC;
  --osp-plum-50:  #F4EEF6;

  --osp-terra-700: #A8694F;
  --osp-terra-600: #C9846B;
  --osp-terra-500: #D9947B;
  --osp-terra-300: #E8B5A1;
  --osp-terra-100: #F5DDD0;
  --osp-terra-50:  #FAEEE6;

  --osp-cream:    #F7F3ED;
  --osp-cream-2:  #EFE9E0;
  --osp-paper:    #FBF8F2;
  --osp-ink:      #2E2A35;
  --osp-ink-soft: #4A4452;
  --osp-ink-mute: #6B6376;
  --osp-line:     #E5DED2;

  --osp-safety:   #B91C42; /* high-urgency red for crisis CTAs */
  --osp-safety-d: #8E142F;

  --osp-font-serif: "Newsreader", "Source Serif 4", Georgia, serif;
  --osp-font-sans:  "Public Sans", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --osp-r-md: 10px;
  --osp-r-lg: 16px;
  --osp-r-xl: 24px;

  --osp-sh-md: 0 4px 12px rgba(46,42,53,.08), 0 8px 24px rgba(46,42,53,.06);

  /* Map Bootstrap globals onto the OSP tokens */
  --bs-body-bg: var(--osp-cream);
  --bs-body-color: var(--osp-ink);
  --bs-body-font-family: var(--osp-font-sans);
  --bs-body-font-size: 1.0625rem;   /* 17px */
  --bs-body-line-height: 1.55;
  --bs-border-color: var(--osp-line);
  --bs-link-color-rgb: 91, 58, 107; /* plum-600 */
  --bs-link-hover-color-rgb: 74, 52, 88;
}

body {
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}

/* Design container is 1280px wide with 24px side padding */
@media (min-width: 1400px) {
  .container-xxl { max-width: 1280px; }
}
.container-xxl { --bs-gutter-x: 3rem; }
.container-xxl .row { --bs-gutter-x: 1.5rem; }
/* .container-xxl .row (2 classes) out-specifies Bootstrap's .g-0 (1 class);
   re-assert zero-gutter rows here so .g-0 keeps working everywhere. */
.container-xxl .row.g-0 { --bs-gutter-x: 0; --bs-gutter-y: 0; }

a { text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--osp-font-serif);
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--osp-plum-900);
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 6vw, 76px); line-height: 1.02; letter-spacing: -0.025em; }
h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.08; letter-spacing: -0.018em; }
h3 { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.18; }
h4 { font-size: 19px; line-height: 1.3; }
p { margin: 0; text-wrap: pretty; }

.eyebrow {
  font-family: var(--osp-font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--osp-terra-700);
}

/* ---------- Buttons (Bootstrap custom variants via --bs-btn-*) ---------- */
.btn {
  --bs-btn-border-radius: 999px;
  --bs-btn-padding-x: 1.375rem;
  --bs-btn-padding-y: 0.8125rem;
  --bs-btn-font-weight: 600;
  --bs-btn-font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: all .15s;
}
.btn:hover { text-decoration: none; }
.btn-lg { --bs-btn-padding-x: 1.875rem; --bs-btn-padding-y: 1.125rem; --bs-btn-font-size: 1.0625rem; }

/* Primary (plum) */
.btn-plum {
  --bs-btn-bg: var(--osp-plum-600);
  --bs-btn-border-color: var(--osp-plum-600);
  --bs-btn-color: var(--osp-cream);
  --bs-btn-hover-bg: var(--osp-plum-700);
  --bs-btn-hover-border-color: var(--osp-plum-700);
  --bs-btn-hover-color: var(--osp-cream);
  --bs-btn-active-bg: var(--osp-plum-800);
  --bs-btn-active-border-color: var(--osp-plum-800);
  --bs-btn-active-color: var(--osp-cream);
}
.btn-plum:hover { transform: translateY(-1px); }

/* Ghost (outline plum) */
.btn-ghost-plum {
  --bs-btn-bg: transparent;
  --bs-btn-border-color: var(--osp-plum-300);
  --bs-btn-color: var(--osp-plum-700);
  --bs-btn-hover-bg: var(--osp-plum-50);
  --bs-btn-hover-border-color: var(--osp-plum-300);
  --bs-btn-hover-color: var(--osp-plum-700);
  --bs-btn-active-bg: var(--osp-plum-100);
  --bs-btn-active-border-color: var(--osp-plum-300);
  --bs-btn-active-color: var(--osp-plum-700);
  border-width: 1.5px;
}

/* Cream on dark (assess panel primary) */
.btn-cream {
  --bs-btn-bg: var(--osp-cream);
  --bs-btn-border-color: var(--osp-cream);
  --bs-btn-color: var(--osp-plum-800);
  --bs-btn-hover-bg: #fff;
  --bs-btn-hover-border-color: #fff;
  --bs-btn-hover-color: var(--osp-plum-800);
  --bs-btn-active-bg: #fff;
  --bs-btn-active-border-color: #fff;
  --bs-btn-active-color: var(--osp-plum-800);
}

/* Ghost on dark (assess panel secondary) */
.btn-ghost-cream {
  --bs-btn-bg: transparent;
  --bs-btn-border-color: rgba(255,255,255,.3);
  --bs-btn-color: var(--osp-cream);
  --bs-btn-hover-bg: rgba(255,255,255,.08);
  --bs-btn-hover-border-color: rgba(255,255,255,.3);
  --bs-btn-hover-color: var(--osp-cream);
  --bs-btn-active-bg: rgba(255,255,255,.12);
  --bs-btn-active-border-color: rgba(255,255,255,.3);
  --bs-btn-active-color: var(--osp-cream);
  border-width: 1.5px;
}

/* White on terracotta (donate card CTA) */
.btn-white-terra {
  --bs-btn-bg: #fff;
  --bs-btn-border-color: #fff;
  --bs-btn-color: var(--osp-terra-700);
  --bs-btn-hover-bg: var(--osp-cream);
  --bs-btn-hover-border-color: var(--osp-cream);
  --bs-btn-hover-color: var(--osp-terra-700);
  --bs-btn-active-bg: var(--osp-cream);
  --bs-btn-active-border-color: var(--osp-cream);
  --bs-btn-active-color: var(--osp-terra-700);
}

/* ---------- Safety bar ---------- */
.safety-bar {
  background: var(--osp-plum-900);
  color: var(--osp-cream);
  font-size: 14px;
  z-index: 1035; /* above the sticky navbar */
}
.safety-bar a { color: var(--osp-terra-300); }
.safety-bar a:hover { color: var(--osp-cream); }
.safety-bar-text a { color: var(--osp-plum-300); }
.pulse { display: inline-flex; align-items: center; gap: 8px; }
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--osp-terra-500);
  box-shadow: 0 0 0 0 rgba(217,148,123,.7);
  animation: osp-pulse 2s infinite;
}
@keyframes osp-pulse {
  0% { box-shadow: 0 0 0 0 rgba(217,148,123,.7); }
  70% { box-shadow: 0 0 0 10px rgba(217,148,123,0); }
  100% { box-shadow: 0 0 0 0 rgba(217,148,123,0); }
}

/* ---------- Navbar ---------- */
.osp-navbar {
  background: var(--osp-cream);
  border-bottom: 1px solid var(--osp-line);
  position: sticky;
  top: 37px; /* below safety bar */
  z-index: 1030;
  padding-top: 14px;
  padding-bottom: 14px;
}
@media (max-width: 767.98px) {
  .osp-navbar { top: 0; } /* safety bar hidden on mobile */
}
.brand {
  font-family: var(--osp-font-serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--osp-plum-700);
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--osp-plum-700); text-decoration: none; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; flex-shrink: 0; }
.osp-navbar .nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--osp-ink-soft);
  padding-top: 6px;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: all .15s;
}
.osp-navbar .nav-link:hover,
.osp-navbar .nav-link.show {
  color: var(--osp-plum-700);
  border-color: var(--osp-terra-500);
  text-decoration:none;
}
.dropdown-toggle::after{
    display:none;
}
.menu-toggle {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: none; background: none;
  border-radius: var(--osp-r-md);
  color: var(--osp-plum-900);
}
.menu-toggle:hover { background: var(--osp-plum-50); }

/* Mega dropdowns (custom width panel inside Bootstrap .dropdown-menu) */
.nav-mega { position: static; }
@media (min-width: 992px) {
  .nav-mega { position: relative; }
  .dropdown-menu.mega {
    left: 50%;
    transform: translateX(-50%);
  }
}
.dropdown-menu.mega {
  width: min(720px, 94vw);
  padding: 28px;
  margin-top: 18px !important;
  background: var(--osp-paper);
  border: 1px solid var(--osp-line);
  border-radius: var(--osp-r-lg);
}
.mega-heading {
  font-family: var(--osp-font-sans);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--osp-ink-mute);
  font-weight: 600;
  margin: 0 0 10px;
}
.mega-link {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;
  padding: 10px 12px;
  border-radius: var(--osp-r-md);
  color: var(--osp-ink);
  transition: background .12s;
}
.mega-link:hover { background: var(--osp-cream); text-decoration: none; }
.mega-link-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--osp-plum-50);
  display: grid; place-items: center;
  color: var(--osp-plum-700);
}
.mega-link-icon svg { width: 18px; height: 18px; }
.mega-link strong { display: block; font-size: 14px; font-weight: 600; color: var(--osp-plum-900); line-height: 1.3; }
.mega-link span span { display: block; font-size: 12.5px; color: var(--osp-ink-mute); line-height: 1.45; margin-top: 2px; }
.mega-feat {
  background: linear-gradient(160deg, var(--osp-plum-700), var(--osp-plum-900));
  background-size: cover !important;
  background-position: center !important;
  color: var(--osp-cream);
  border-radius: 14px;
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  height: 100%;
}
.mega-feat:hover, .mega-feat:focus { text-decoration: none; color: var(--osp-cream);opacity:.75; }
.mega-feat-eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--osp-terra-300);
  font-weight: 600;
}

.mega-feat p { font-size: 13.5px; line-height: 1.55; color: rgba(247,243,237,.82); }
.mega-feat .h3 { color: var(--osp-cream); font-size: 24px; margin: 12px 0 8px; line-height: 1.15;font-family: var(--osp-font-serif);font-weight: 500;letter-spacing: -0.012em;text-wrap: balance; }
.mega-feat-cta { margin-top: 16px; font-size: 13px; font-weight: 600; color: var(--osp-terra-300); }

/* ---------- Quick escape ---------- */
.quick-escape {
  background: var(--osp-safety);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 11px 18px 11px 14px;
  border: none;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(185, 28, 66, 0.3);
  transition: all .15s;
  white-space: nowrap;
}
.quick-escape:hover {
  background: var(--osp-safety-d);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(185, 28, 66, 0.4);
}
.quick-escape kbd {
  background: rgba(255,255,255,.22);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: var(--osp-font-sans);
  font-size: 11px;
  font-weight: 600;
  margin-left: 4px;
}
.quick-escape-float {
  position: fixed;
  top: 14px;
  right: 16px;
  z-index: 2000;
  box-shadow: 0 6px 20px rgba(185, 28, 66, 0.45);
  display: none;
}
.quick-escape-float.visible { display: inline-flex; }
@media (max-width: 575.98px) {
  /* Always available on phones, anchored bottom-right so it never
     covers the brand or the offcanvas menu toggle. */
  .quick-escape-float { display: inline-flex; top: auto; bottom: 16px; right: 16px; }
}

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-head { margin-bottom: 56px; }
.section-head h2 { margin-top: 12px; }
.section-head p { margin-top: 18px; font-size: 18px; color: var(--osp-ink-soft); max-width: 56ch; }
.section-head-aside {
  margin-top: 0 !important;
  color: var(--osp-ink-mute);
  font-size: 15px !important;
}
@media (max-width: 767.98px) {
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }
}

/* ---------- Hero ---------- */
.hero { background: var(--osp-cream); }
.hero-inner { padding-top: 70px; padding-bottom: 90px; z-index: 1; }
.hero-bg {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .55;
}
.hero-bg svg { width: 100%; height: 100%; }
.hero h1 .accent {
  font-style: italic;
  color: var(--osp-terra-600);
  font-family: var(--osp-font-serif);
  font-weight: 400;
}
.hero-photo {
  margin: 30px 0 0;
  border-radius: var(--osp-r-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--osp-sh-md);
  aspect-ratio: 16/9;
  max-width: 560px;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo figcaption {
  position: absolute;
  bottom: 8px; left: 10px;
  font-size: 10.5px;
  color: #fff;
  background: rgba(46,42,53,.65);
  padding: 4px 8px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.hero-lede {
  margin-top: 24px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--osp-ink-soft);
  max-width: 50ch;
}
@media (max-width: 767.98px) {
  .hero-inner { padding-top: 36px; padding-bottom: 56px; }
}

/* Help panel (hero right) */
.help-panel {
  background: #fff;
  border: 1px solid var(--osp-line);
  border-radius: var(--osp-r-xl);
  padding: 32px;
  box-shadow: var(--osp-sh-md);
  position: relative;
}
.help-panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--osp-r-xl);
  padding: 1px;
  background: linear-gradient(180deg, var(--osp-terra-300), transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.help-panel h3 { font-size: 22px; margin-bottom: 4px; }
.help-panel-sub { color: var(--osp-ink-mute); font-size: 14px; margin-bottom: 22px; }
.help-channel {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: var(--osp-paper);
  border: 1px solid var(--osp-line);
  border-radius: var(--osp-r-md);
  transition: all .15s;
  color: var(--osp-ink);
}
.help-channel:hover {
  border-color: var(--osp-terra-500);
  background: #fff;
  transform: translateX(2px);
  text-decoration: none;
  color: var(--osp-ink);
}
.help-channel-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--osp-plum-50);
  color: var(--osp-plum-700);
  display: grid; place-items: center;
  flex-shrink: 0;
  font-size:20px;
}
.help-channel.urgent .help-channel-icon {
  background: rgba(185, 28, 66, 0.1);
  color: var(--osp-safety);
}
.help-channel-body { flex: 1; min-width: 0; display: block; }
.help-channel-label {
  display: block;
  font-size: 12px;
  color: var(--osp-ink-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}
.help-channel-value {
  display: block;
  font-family: var(--osp-font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--osp-plum-900);
  letter-spacing: -0.01em;
  margin-top: 2px;
}
.help-channel-arrow { color: var(--osp-ink-mute); transition: transform .15s; }
.help-channel:hover .help-channel-arrow { transform: translateX(3px); color: var(--osp-plum-700); }
.help-panel-foot {
  margin-top: 18px;
  font-size: 13px;
  color: var(--osp-ink-mute);
  display: flex;
  align-items: center;
  gap: 8px;
}
.help-panel-foot svg { color: var(--osp-plum-500); flex-shrink: 0; }
@media (max-width: 767.98px) {
  .help-panel { padding: 24px; }
  .help-channel-value { font-size: 19px; }
}

/* ---------- Path cards ---------- */
.paths-section { background: var(--osp-paper); }
.path-card {
  background: #fff;
  border: 1px solid var(--osp-line);
  border-radius: var(--osp-r-lg);
  padding: 32px;
  transition: all .2s;
  color: inherit;
  display: flex;
  flex-direction: column;
  min-height: 260px;
}
.path-card:hover {
  border-color: var(--osp-plum-300);
  transform: translateY(-3px);
  box-shadow: var(--osp-sh-md);
  text-decoration: none;
  color: inherit;
}
.path-card.feature {
  background: var(--osp-plum-700);
  color: var(--osp-cream);
  border-color: var(--osp-plum-700);
}
.path-card.feature h3 { color: var(--osp-cream); }
.path-card.feature .path-card-text { color: var(--osp-plum-100); }
.path-card.feature .path-card-cta { color: var(--osp-terra-300); }
.path-card.feature:hover { background: var(--osp-plum-800); color: var(--osp-cream); }
.path-card-icon {
  width: 56px; height: 56px;
  border-radius: var(--osp-r-md);
  background: var(--osp-terra-50);
  color: var(--osp-terra-700);
  display: grid; place-items: center;
  margin-bottom: 22px;
  font-size:20px;
}
.path-card.feature .path-card-icon { background: rgba(255,255,255,.1); color: var(--osp-terra-300); }
.path-card h3 { font-size: 24px; }
.path-card-text { margin-top: 10px; color: var(--osp-ink-soft); font-size: 15.5px; line-height: 1.55; }
.path-card-cta {
  margin-top: auto;
  padding-top: 22px;
  font-size: 15px;
  font-weight: 600;
  color: var(--osp-plum-700);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.path-card-cta svg { transition: transform .15s; }
.path-card:hover .path-card-cta svg { transform: translateX(3px); }
@media (max-width: 767.98px) {
  .path-card { min-height: auto; padding: 26px; }
}

/* ---------- Assessment panel ---------- */
.assess {
  background: linear-gradient(135deg, var(--osp-plum-700), var(--osp-plum-800));
  color: var(--osp-cream);
  border-radius: var(--osp-r-xl);
  padding: 64px;
  position: relative;
  overflow: hidden;
}
.assess h2 { color: #fff; }
.assess-text, .assess-text p { margin-top: 18px; font-size: 17px; color: var(--osp-plum-100); line-height: 1.6; }
.assess-q {
  padding: 18px 22px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--osp-r-md);
  font-family: var(--osp-font-serif);
  font-size: 17px;
  font-style: italic;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 14px;
}
.assess-q::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--osp-terra-500);
  flex-shrink: 0;
}
@media (max-width: 991.98px) { .assess { padding: 48px; } }
@media (max-width: 767.98px) {
  .assess { padding: 32px 24px; }
  .assess-q { font-size: 15px; padding: 14px 16px; }
}

/* ---------- Programs ---------- */
.programs-section { background: var(--osp-cream); }
.program {
  background: var(--osp-paper);
  border: 1px solid var(--osp-line);
  border-radius: var(--osp-r-lg);
  padding: 36px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
  transition: all .2s;
  color: inherit;
}
.program:hover {
  background: #fff;
  border-color: var(--osp-plum-300);
  text-decoration: none;
  color: inherit;
}
.program-mark {
  width: 64px; height: 64px;
  border-radius: var(--osp-r-md);
  display: grid; place-items: center;
  flex-shrink: 0;
  background: var(--osp-plum-50);
  color: var(--osp-plum-700);
  font-size:20px;
}
.program-mark.terra { background: var(--osp-terra-50); color: var(--osp-terra-700); }
.program-mark.cream { background: var(--osp-cream-2); color: var(--osp-plum-700); }
.program-mark.plum { background: var(--osp-plum-100); color: var(--osp-plum-800); }
.program h3 { font-size: 22px; }
.program-text { margin-top: 8px; font-size: 15.5px; color: var(--osp-ink-soft); line-height: 1.55; }
.program-meta {
  margin-top: 14px;
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--osp-ink-mute);
  font-weight: 500;
}
.program-meta span { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 767.98px) {
  .program { grid-template-columns: 1fr; gap: 16px; padding: 26px; }
  .program-mark { width: 52px; height: 52px; }
}

/* ---------- Impact ---------- */
.impact-section { background: var(--osp-plum-900); color: var(--osp-cream); }
.impact-section h2 { color: #fff; }
.impact-section .eyebrow { color: var(--osp-terra-300); }
.impact-aside, .impact-aside p { color: var(--osp-plum-100) !important; font-size: 16px !important; }
.impact-grid { margin-top: 8px; }
.impact-stat { border-top: 1px solid rgba(255,255,255,.15); padding-top: 28px; }
.impact-stat-num {
  font-family: var(--osp-font-serif);
  font-size: clamp(54px, 5vw, 76px);
  font-weight: 400;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.02em;
}
.impact-stat-num .accent { color: var(--osp-terra-500); font-style: italic; }
.impact-stat-label { margin-top: 14px; color: var(--osp-plum-100); font-size: 15px; line-height: 1.5; max-width: 28ch; }
@media (max-width: 767.98px) { .impact-stat-num { font-size: 48px; } }

.story-card {
  margin-top: 80px;
  background: var(--osp-plum-800);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--osp-r-xl);
  padding: 56px;
}
.story-portrait {
  width: 220px; height: 260px;
  border-radius: var(--osp-r-lg);
  overflow: hidden;
  background: var(--osp-plum-700);
}
.story-portrait img { width: 100%; height: 100%; object-fit: cover; }
.story-quote {
  font-family: var(--osp-font-serif);
  font-size: 26px;
  line-height: 1.4;
  color: #fff;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.story-quote-mark {
  font-size: 80px;
  line-height: 0;
  color: var(--osp-terra-500);
  font-family: var(--osp-font-serif);
  vertical-align: -0.3em;
  margin-right: 6px;
}
.story-attribution {
  margin-top: 22px;
  font-size: 14px;
  color: var(--osp-plum-100);
  display: flex;
  align-items: center;
  gap: 12px;
}
.story-attribution::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--osp-terra-500);
}
@media (max-width: 991.98px) {
  .story-card { padding: 36px; }
  .story-portrait { width: 100%; height: 240px; }
}
@media (max-width: 767.98px) {
  .story-card { margin-top: 48px; padding: 28px; }
  .story-quote { font-size: 20px; }
}

/* ---------- Thrift band ---------- */
.thrift-section { background: var(--osp-cream); }
.thrift-lede, .thrift-lede p {
  margin-top: 20px;
  font-size: 18px;
  color: var(--osp-ink-soft);
  line-height: 1.6;
  max-width: 46ch;
}
.thrift-lede strong { color: var(--osp-plum-800); font-weight: 600; }
.thrift-stats {
  border: 1px solid var(--osp-line);
  border-radius: var(--osp-r-md);
  overflow: hidden;
}
.thrift-stat { background: var(--osp-paper); padding: 20px 18px; }
/* 1px hairline dividers between the three stat cells (Bootstrap g-0 row) */
.thrift-stats .col + .col .thrift-stat { border-left: 1px solid var(--osp-line); }
.thrift-stat-num {
  font-family: var(--osp-font-serif);
  font-size: 30px;
  font-weight: 500;
  color: var(--osp-plum-900);
  line-height: 1;
}
.thrift-stat-num .accent { color: var(--osp-terra-600); font-style: italic; }
.thrift-stat p { margin-top: 8px; font-size: 12.5px; color: var(--osp-ink-mute); line-height: 1.35; }

.thrift-media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  max-width: 560px;
}
.thrift-media:hover { text-decoration: none; }
.thrift-photo {
  position: absolute;
  overflow: hidden;
  border-radius: var(--osp-r-lg);
  border: 1px solid var(--osp-line);
  box-shadow: var(--osp-sh-md);
  background: var(--osp-plum-50);
}
.thrift-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.16,.7,.3,1); }
.thrift-media:hover .thrift-photo img { transform: scale(1.04); }
.thrift-photo-main { inset: 0 18% 18% 0; }
.thrift-photo-small {
  width: 46%; aspect-ratio: 3/4;
  right: 0; bottom: 0;
  border: 4px solid var(--osp-cream);
}
.thrift-tag {
  position: absolute; top: 16px; left: 16px;
  background: var(--osp-terra-600); color: #fff;
  padding: 7px 13px; border-radius: 999px;
  font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 700;
}
.thrift-pricetag {
  position: absolute;
  left: 2%; bottom: 22%;
  background: #fff;
  padding: 12px 16px; border-radius: 4px;
  box-shadow: 0 10px 26px rgba(46,42,53,.2);
  transform: rotate(-4deg);
  border-left: 3px solid var(--osp-terra-600);
  z-index: 2;
}
.thrift-pricetag-price { font-family: var(--osp-font-serif); font-size: 22px; font-weight: 500; color: var(--osp-plum-900); line-height: 1; }
.thrift-pricetag-label { margin-top: 4px; font-size: 10.5px; color: var(--osp-ink-mute); letter-spacing: 0.02em; }
@media (max-width: 991.98px) { .thrift-media { max-width: 460px; } }

/* ---------- Get involved ---------- */
.involve-section { background: var(--osp-paper); }
.involve-card {
  background: var(--osp-cream);
  border: 1px solid var(--osp-line);
  border-radius: var(--osp-r-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.involve-card.donate {
  background: var(--osp-terra-600);
  color: #fff;
  border-color: var(--osp-terra-600);
}
.involve-card.donate h3 { color: #fff; }
.involve-card.donate p { color: rgba(255,255,255,.88); }
.involve-card h3 { font-size: 24px; }
.involve-card p { margin-top: 12px; color: var(--osp-ink-soft); }
.involve-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--osp-terra-700);
  margin-bottom: 16px;
}
.involve-card.donate .involve-tag { color: rgba(255,255,255,.85); }
.donate-amounts { display: flex; gap: 8px; margin: 20px 0 4px; }
.donate-amount {
  flex: 1;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  padding: 12px 8px;
  border-radius: var(--osp-r-md);
  font-weight: 700;
  font-family: var(--osp-font-serif);
  font-size: 18px;
  transition: all .15s;
}
.donate-amount:hover, .donate-amount.active { background: #fff; color: var(--osp-terra-700); }
@media (max-width: 767.98px) { .involve-card { padding: 28px; } }

/* ---------- Footer ---------- */
.footer {
  background: var(--osp-plum-900);
  color: var(--osp-plum-100);
  padding: 72px 0 32px;
}
.footer-top {
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand-name {
  font-family: var(--osp-font-serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--osp-cream);
  letter-spacing: -0.01em;
}
.footer-blurb {
  margin-top: 18px;
  color: var(--osp-plum-100);
  font-size: 15px;
  max-width: 36ch;
  line-height: 1.6;
}
.footer h4 {
  color: #fff;
  font-family: var(--osp-font-sans);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  margin-bottom: 18px;
}
.footer ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer a { color: var(--osp-plum-100); font-size: 15px; }
.footer a:hover { color: var(--osp-cream); }
.footer-bot { padding-top: 28px; font-size: 13px; color: var(--osp-plum-300); }
.footer-safety-note {
  margin-top: 20px;
  padding: 18px;
  background: rgba(255,255,255,.04);
  border-left: 3px solid var(--osp-terra-500);
  border-radius: 0 var(--osp-r-md) var(--osp-r-md) 0;
  font-size: 13px;
  color: var(--osp-plum-100);
  line-height: 1.55;
}
.footer-safety-note strong { color: var(--osp-cream); }
.footer-safety-note a { color: var(--osp-terra-300); }
@media (max-width: 767.98px) { .footer { padding: 48px 0 24px; } }

/* ---------- Quick-escape overlay ---------- */
.escape-overlay {
  position: fixed;
  inset: 0;
  background: var(--osp-cream);
  z-index: 3000;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  opacity: 0;
  transition: opacity .2s;
}
.escape-overlay.active { display: flex; opacity: 1; }
.escape-overlay h1 { font-size: clamp(40px, 5vw, 64px); color: var(--osp-plum-900); max-width: 14ch; }
.escape-overlay p { margin-top: 20px; font-size: 18px; color: var(--osp-ink-soft); max-width: 40ch; }
.escape-countdown {
  margin-top: 36px;
  font-family: var(--osp-font-serif);
  font-size: 80px;
  font-weight: 500;
  color: var(--osp-terra-600);
  line-height: 1;
}

/* ---------- Decoy hover cover ---------- */
.hover-cover {
  position: fixed;
  inset: 0;
  background: var(--osp-paper);
  z-index: 2900;
  display: none;
  flex-direction: column;
  padding: 60px;
  opacity: 0;
  transition: opacity .15s;
  overflow-y: auto;
}
.hover-cover.active { display: flex; opacity: 1; }
.hover-cover h1 { font-family: var(--osp-font-serif); font-size: 56px; color: var(--osp-plum-900); max-width: 18ch; }
.hover-cover .recipe-meta { display: flex; gap: 32px; margin-top: 28px; color: var(--osp-ink-mute); font-size: 14px; }
.hover-cover .recipe-body { margin-top: 40px; max-width: 1100px; }
.hover-cover h3 { margin-bottom: 16px; }
.hover-cover ol, .hover-cover ul {
  font-size: 16px;
  color: var(--osp-ink-soft);
  line-height: 1.8;
  padding-left: 22px;
  margin: 0;
}
.hover-cover-hint {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--osp-plum-700);
  color: var(--osp-cream);
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 13px;
  box-shadow: var(--osp-sh-md);
}
@media (max-width: 767.98px) {
  .hover-cover { padding: 32px 24px; }
  .hover-cover h1 { font-size: 36px; }
  .hover-cover .recipe-body { margin-top: 28px; }
}

/* ---------- Mobile drawer (Bootstrap offcanvas skin) ---------- */
.mobile-drawer {
  --bs-offcanvas-bg: var(--osp-cream);
  --bs-offcanvas-width: 380px;
  --bs-offcanvas-padding-x: 24px;
  --bs-offcanvas-padding-y: 24px;
}
.mobile-drawer .brand { font-size: 22px; }
.mobile-drawer-links { display: flex; flex-direction: column; }
.mobile-drawer-links a {
  font-family: var(--osp-font-serif);
  font-size: 24px;
  color: var(--osp-plum-900);
  padding: 10px 0;
  border-bottom: 1px solid var(--osp-line);
}
.mobile-drawer-links a:last-child { border-bottom: none; }
.mobile-drawer .quick-escape { justify-content: center; font-size: 16px; padding: 16px; }

/* ---------- Grain texture ---------- */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  opacity: .035; mix-blend-mode: multiply;
  background-image: radial-gradient(rgba(46,42,53,1) 1px, transparent 1px);
  background-size: 3px 3px;
}

/* ---------- Scroll reveal (motion-safe) ----------
   Content is only hidden after JS adds html.motion-ready,
   and never under prefers-reduced-motion — so no-JS and
   reduced-motion users always see everything. */
@media (prefers-reduced-motion: no-preference) {
  html.motion-ready [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition:
      opacity .72s cubic-bezier(.16,.7,.3,1),
      transform .72s cubic-bezier(.16,.7,.3,1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
  }
  html.motion-ready [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }
}
