/* ==========================================================================
   Returning to Yourself: companion page styles
   ========================================================================== */

:root {
  --plum: #2E1A2B;
  --plum-deep: #22131F;
  --cocoa: #5A3A2E;
  --bronze: #C4894D;
  --rose: #E5B9A3;
  --rose-soft: #F1D9CC;
  --ivory: #FBF6F2;
  --ink: #2A1E22;
  --muted: #7A6A6E;
  --line-soft: rgba(229, 185, 163, 0.3);
  --display: "Fraunces", Georgia, serif;
  --body: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --measure: 38rem;
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

a:focus-visible, button:focus-visible, textarea:focus-visible { outline: 2px solid var(--bronze); outline-offset: 2px; }

@keyframes breathe { 0%, 100% { transform: scale(0.86); } 44% { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .breathing-disc { animation: none !important; transform: scale(0.93); }
}

/* ---------- Layout ---------- */

.section { padding: 4rem 0; }
.section--dark { background: var(--plum); color: var(--ivory); }
.measure { max-width: var(--measure); margin: 0 auto; padding: 0 1.35rem; }

.h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 2rem;
  margin: 0 0 1.25rem;
  letter-spacing: -0.01em;
}
.section--dark .h2 { color: var(--ivory); }
.intro-muted { color: var(--muted); }
.on-dark { color: var(--rose-soft); }

/* Full-bleed photo behind the header and the closing section */
.bg-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; display: block; }
.bg-fade { position: absolute; inset: 0; z-index: 1; }
.over-photo { position: relative; z-index: 2; }

/* ---------- Header ---------- */

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 0 4rem;
  position: relative;
  overflow: hidden;
  background: var(--plum);
  color: var(--ivory);
}
.hero .bg-photo { opacity: 0.6; }
.hero .bg-fade { background: linear-gradient(180deg, rgba(46, 26, 43, 0.35), var(--plum) 88%); }
.back-home { position: absolute; top: 1.25rem; left: 1.35rem; color: var(--rose-soft); font-size: 0.85rem; text-decoration: none; z-index: 2; }
.breath { position: relative; width: min(58vw, 15rem); aspect-ratio: 1; margin: 0 auto 2.25rem; }
.breath-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--rose); opacity: 0.7; transform: scale(1.18); }
.breathing-disc { position: absolute; inset: 0; border-radius: 50%; background: var(--bronze); animation: breathe 9s ease-in-out infinite; }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.6rem, 10vw, 4.6rem); line-height: 1.1; margin: 0; letter-spacing: -0.01em; color: var(--ivory); }
.hero-sub { font-family: var(--display); font-style: italic; font-weight: 300; font-size: 1.35rem; color: var(--rose); margin: 1rem 0 0; }
.hero-event { font-size: 0.95rem; color: var(--rose-soft); margin: 1.75rem 0 1em; line-height: 1.5; opacity: 0.9; }
.hero-hint { position: absolute; bottom: 1.4rem; left: 0; right: 0; font-size: 0.85rem; color: var(--rose); opacity: 0.75; margin: 0; }

/* ---------- A note from Ruth ---------- */

.note p { margin: 0 0 1em; }
.note .pull { font-family: var(--display); font-size: 1.3rem; font-weight: 300; line-height: 1.45; color: var(--plum); margin: 0 0 1.25rem; }
.note .signature { font-family: var(--display); font-style: italic; color: var(--cocoa); margin-top: 1.5rem; }

/* ---------- How we hold this circle ---------- */

.agreements { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.agreements li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.dot { width: 0.85rem; height: 0.85rem; border-radius: 50%; background: var(--bronze); margin-top: 0.55rem; }
.agreements strong { display: block; font-weight: 600; color: var(--ivory); }
.agreements span:not(.dot) { color: var(--rose-soft); }

/* ---------- Four doorways ---------- */

.doorways-intro { margin: 1em 0 2.25rem; }
.take-home-intro { margin: 1em 0 2rem; }
.h2--tight { margin-bottom: 0.5rem; }
.h2--roomy { margin-bottom: 1.5rem; }
.doorway { padding: 2rem 0; border-top: 1px solid var(--rose); }
.doorway--last {
  border-bottom: 1px solid var(--rose);
  background: var(--rose-soft);
  margin: 0 -1.35rem;
  padding-left: 1.35rem;
  padding-right: 1.35rem;
}
.doorway-kicker { font-size: 0.95rem; color: var(--bronze); font-weight: 600; }
.doorway h3 { font-size: 1.9rem; font-weight: 400; color: var(--plum); margin: 0.35rem 0 0.85rem; }
.doorway p { color: var(--cocoa); margin: 1em 0 1.1rem; }
.doorway textarea {
  display: block;
  width: 100%;
  min-height: 7.5rem;
  resize: vertical;
  font: inherit;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--rose);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  box-sizing: border-box;
}
.saved-note { font-size: 0.85rem; color: var(--muted); margin-top: 0.5rem; min-height: 1.2em; }

.pill-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.notes-actions { margin-top: 1rem; }
.btn-pill-outline {
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--bronze);
  background: transparent;
  color: var(--cocoa);
  cursor: pointer;
}
.small-muted { font-size: 0.85rem; color: var(--muted); margin: 0.6rem 0 1em; }

/* ---------- Practice ---------- */

.practice-intro { margin: 1em 0 1.25rem; color: var(--rose-soft); }
.practice-intro a { color: var(--ivory); text-decoration: underline; text-decoration-color: var(--rose); text-underline-offset: 3px; }
.listen-links { margin-bottom: 2rem; }
.listen {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-size: 0.95rem;
}
.listen--solid { background: var(--bronze); color: var(--plum); }
.listen--outline { background: transparent; color: var(--ivory); border: 1px solid var(--ivory); }

.steps { list-style: none; padding: 0; margin: 0 0 2.25rem; }
.steps li { display: grid; grid-template-columns: 2.1rem 1fr; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--line-soft); }
.step-num { width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--bronze); color: var(--plum); font-weight: 600; display: grid; place-items: center; font-size: 0.95rem; }
.steps strong { display: block; color: var(--ivory); font-weight: 600; margin-bottom: 0.15rem; }
.steps p { margin: 0; color: var(--rose-soft); }

.guide { background: var(--plum-deep); border: 1px solid rgba(229, 185, 163, 0.25); border-radius: 16px; padding: 1.6rem 1.4rem; }
.guide-name { font-family: var(--display); font-size: 1.45rem; color: var(--ivory); margin-bottom: 0.5rem; min-height: 1.6em; }
.guide-text { color: var(--rose-soft); min-height: 6.5em; margin-bottom: 1rem; }
.guide-track { height: 3px; background: rgba(229, 185, 163, 0.25); border-radius: 2px; overflow: hidden; margin-bottom: 1.25rem; }
.guide-bar { display: block; height: 100%; width: 0; background: var(--bronze); transition: width 0.5s linear; }
.guide-buttons { gap: 0.7rem; }
.btn-guide {
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 1.3rem;
  border-radius: 999px;
  background: transparent;
  color: var(--rose);
  border: 1px solid rgba(229, 185, 163, 0.5);
  cursor: pointer;
}
.btn-guide--primary { border-color: var(--bronze); background: var(--bronze); color: var(--plum); }
.safety { font-size: 0.95rem; color: var(--rose-soft); opacity: 0.85; margin: 1.5rem 0 1em; }

/* ---------- Take it home ---------- */

.take-home { margin: 0; display: grid; gap: 1.6rem; }
.take-home dt { font-family: var(--display); font-size: 1.4rem; font-weight: 400; color: var(--plum); margin-bottom: 0.35rem; }
.take-home dd { margin: 0; color: var(--cocoa); }
.take-home em { display: block; margin-top: 0.5rem; color: var(--ink); font-style: normal; padding-left: 1rem; border-left: 2px solid var(--rose); }

.reading-title { font-family: var(--display); font-weight: 400; font-size: 1.5rem; color: var(--plum); margin: 2.5rem 0 0.5rem; letter-spacing: -0.01em; }
.reading-intro { margin: 1em 0 1.5rem; }
.books { margin: 0; display: grid; gap: 1.25rem; }
.book { display: flex; gap: 1rem; align-items: flex-start; }
.book img { width: 3.4rem; height: 5.1rem; flex: none; object-fit: cover; display: block; }
.book img.contain { object-fit: contain; }
.book dt { font-family: var(--display); font-size: 1.2rem; font-weight: 400; color: var(--plum); margin-bottom: 0.15rem; }
.book dt a { color: var(--plum); text-decoration: underline; text-decoration-color: var(--rose); text-underline-offset: 3px; }
.book dt a:hover { color: var(--bronze); text-decoration-color: var(--bronze); }
.book dd { margin: 0; color: var(--cocoa); }

/* ---------- Stay connected ---------- */

.closing { position: relative; overflow: hidden; }
.closing .bg-photo { opacity: 0.55; }
.closing .bg-fade { background: linear-gradient(180deg, var(--plum) 0%, rgba(46, 26, 43, 0.35) 30%, var(--plum) 100%); }
.closing .h2 { margin-bottom: 1rem; }
.contact-card { background: var(--plum-deep); border-radius: 16px; padding: 1.5rem 1.4rem; margin-top: 1.5rem; }
.contact-card p { margin: 1em 0 0.6rem; color: var(--rose-soft); }
.contact-card p:last-child { margin-bottom: 0; }
.contact-card strong { color: var(--ivory); }
.contact-card a { color: var(--rose); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.crisis-card { border: 1px solid rgba(229, 185, 163, 0.35); }
.crisis-card a { white-space: nowrap; }
.made-for--tight { margin-top: 0; }
.made-for a { color: var(--rose-soft); }
.made-for {font-size: 0.85rem; opacity: 0.7; margin: 2.5rem 0 1em; color: var(--rose-soft); }

.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 10;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: var(--bronze);
  color: var(--plum);
  display: grid;
  place-items: center;
  text-decoration: none;
  font-size: 1.2rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* ---------- Printing ("Save as PDF") prints only the visitor's notes ---------- */

.print-notes { display: none; }
@media print {
  body > *:not(.print-notes) { display: none !important; }
  .print-notes { display: block !important; padding: 1in; color: #2A1E22; font-family: "Figtree", Arial, sans-serif; }
  .print-title { font-size: 1.6rem; font-weight: 700; margin: 0 0 0.3rem; }
  .print-notes h2 { font-size: 1.17em; margin: 1.2rem 0 0.3rem; }
  .print-notes p { white-space: pre-wrap; }
}
