// Public R2 base URL for media assets. Custom domain attached to the
// `profile-book-media` bucket. No trailing slash.
const MEDIA_BASE = "https://media.dams.family";

window.MEDIA_BASE = MEDIA_BASE;

// Access codes — design-only, client-side check. Anyone who view-sources
// the bundle can read this list, so treat codes as "polite friction"
// rather than real security. Login events are pinged to /api/log-login
// for analytics.
const RECIPIENTS = {
  "WELCOME":     { name: "Friend",                            agency: null },
  "HEARTS-2026": { name: "Friend",                            agency: null },
  "LIGHTHOUSE":  { name: "Sarah",                             agency: "Lighthouse Family Services" },
  "EVERGREEN":   { name: "the Evergreen Adoption Agency",     agency: "Evergreen Adoption Agency" },
  "OPENARMS":    { name: "Open Arms",                         agency: "Open Arms Adoption Network" },
  "BETH-ZACH":   { name: "Friend",                            agency: null },
};

// Letter content is user-locked verbatim per Beth & Zach. Do not rewrite
// without their explicit ask. See memory: feedback_letter_locked.md.
const LETTER_PARAGRAPHS = [
  "You are courageous and thoughtful in considering adoption as a path for your baby's life. We know that selecting their parents is a momentous decision. In respect to this, we have tried to make this book as honest as possible so you can have some window into the child's life. We want to give you the respect of full transparency and honesty so you can make the best decision for you and your baby.",
  "Parenting has always been central to our life goals. We are excited to love and raise a child through all of the joys and hardships that will come. While adoption has always been a path that was in our mind, we have decided to focus on this path after two years of struggling to have a baby ourselves. Beth's father and Zach's childhood friend were adopted; consequently, it's a path that we have always honored and been excited about.",
  "As you go through the process of finding the right match for your baby, please know you have our support and well wishes for a smooth and peaceful journey.",
  "Thank you for your consideration.",
];

// Each chapter is one nav-rail entry. `sections` are the underlying
// scroll-snap sections that belong to that chapter — multiple sections
// can share a single nav button. The first section's id is what the
// nav scrolls to; the active nav highlights when ANY of its sections
// is on screen. See app.jsx for the wiring.
const CHAPTERS = [
  { id: "letter",     num: "01", title: "A letter to you",  nav: "The Letter",     sections: ["letter"] },
  { id: "about",      num: "02", title: "About us",         nav: "About Us",       sections: ["about", "stronger"] },
  { id: "story",      num: "03", title: "Our story",        nav: "Our Story",      sections: ["story"] },
  { id: "home",       num: "04", title: "Home & family",    nav: "Home & Family",  sections: ["home", "family", "friends"] },
  { id: "life",       num: "05", title: "Life together",    nav: "Life Together",  sections: ["leisure", "traditions", "day", "values", "life"] },
  { id: "parenthood", num: "06", title: "Parenthood",       nav: "Parenthood",     sections: ["parenthood", "hopes"] },
  { id: "close",      num: "07", title: "With love",        nav: "With Love",      sections: ["close"] },
];

window.RECIPIENTS = RECIPIENTS;
window.LETTER_PARAGRAPHS = LETTER_PARAGRAPHS;
window.CHAPTERS = CHAPTERS;
