:root {
  /* Brand Colors - High-Voltage Premium Purples & Magentas */
  --brand-purple: #7c3aed;       /* Electric Violet (High visibility accent) */
  --brand-purple-dark: #6d28d9;  /* Deep Vivid Purple */
  --brand-purple-soft: #f5f3ff;  /* Clean, Tinted Background for light cards */
  --brand-lavender: #fafafa;     /* Off-white canvas base */
  
  /* Pop Accent - Used sparingly for interactive elements to make them "flash" */
  --pop-accent: #d946ef;         /* Neon Magenta */
  
  /* Neutrals - Deep Slate / Tech Charcoal for extreme contrast */
  --text: #0f172a;               /* Midnight Slate Black */
  --muted: #475569;              /* Deep Muted Blue-Gray */
  --brand-gray: #334155;          
  --brand-gray-light: #f1f5f9;   /* Clean ice-gray for micro-cards */
  --white: #ffffff;
  
  /* Depth & Shadow - Multi-layered "Float" effect to make cards pop out */
  --border: rgba(226, 232, 240, 0.8); 
  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.02);
  
  /* Massive, soft ambient shadow that creates a distinct physical 3D lift */
  --shadow: 0 20px 40px -15px rgba(109, 40, 217, 0.07), 0 15px 25px -10px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 30px 60px -12px rgba(15, 23, 42, 0.12), 0 18px 36px -18px rgba(109, 40, 217, 0.2);
  
  /* Structural Radii */
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  
  /* Physics-based Transition for responsive spring-back animation */
  --transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
  color: var(--text);
  /* Mesh gradient background for high-end digital aesthetic */
  background: radial-gradient(at 50% 0%, #f5f3ff 0px, transparent 50%),
              radial-gradient(at 0% 100%, #f8fafc 0px, transparent 50%),
              #ffffff;
}

.page-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px 120px;
}

/* --- Hero Components (Immersive Dark pop) --- */
.hero {
  /* High-contrast electric gradient */
  background: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 40%, var(--brand-purple) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 80px 56px;
  box-shadow: var(--shadow-md);
  margin-bottom: 48px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Glowing orb effect behind the hero layout */
.hero::after {
  content: "";
  position: absolute;
  inset: auto -80px -80px auto;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(217, 70, 239, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.brand-logo-wrap {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  backdrop-filter: blur(12px);
}

.brand-logo {
  width: 240px;
  max-width: 100%;
  height: auto;
  display: block;
}

.brand-logo-text {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
}

.hero-copy {
  flex: 1 1 480px;
  min-width: 280px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: #f472b6; /* Hot Pink eyebrow for sharp layout pop */
  font-weight: 800;
  margin-bottom: 14px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.hero p {
  max-width: 680px;
  margin: 24px 0 0;
  color: #ede9fe;
  font-size: 1.25rem;
  line-height: 1.6;
  opacity: 0.95;
}

/* --- Container Blocks --- */
.notice {
  background: var(--white);
  border-left: 5px solid var(--brand-purple);
  border-radius: var(--radius-md);
  padding: 28px;
  margin: 40px 0;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  border-left-width: 5px;
}

/* --- Navigation / Table of Contents --- */
.toc {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 0 0 56px;
}

.toc a {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

/* When hovered, links spring upward and catch a sharp purple glow */
.toc a:hover {
  border-color: var(--brand-purple);
  color: var(--brand-purple);
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 30px -10px rgba(109, 40, 217, 0.15);
}

/* --- Structural Sections --- */
section {
  margin: 64px 0;
}

.section-heading {
  border-bottom: 2px solid var(--text); /* Heavy dark bottom line for strict editorial style */
  padding-bottom: 16px;
  margin-bottom: 36px;
}

.section-heading .label {
  color: var(--brand-purple);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  font-weight: 800;
}

.section-heading h2 {
  margin: 8px 0 0;
  color: var(--text);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}

/* --- 3D Floating Cards --- */
.card,
.week-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px;
  margin-bottom: 36px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.card:hover,
.week-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 50px -15px rgba(15, 23, 42, 0.08);
}

.card h3,
.week-card h3 {
  margin-top: 0;
  color: var(--text);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h4 {
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 12px;
}

p, li {
  color: var(--muted);
  font-size: 1.05rem;
}

ul, ol {
  padding-left: 24px;
}

li {
  margin-bottom: 14px;
}

/* --- Sub Grids --- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.mini-card {
  background: var(--brand-gray-light);
  border: 1px solid rgba(15, 23, 42, 0.05);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: var(--transition);
}

.mini-card:hover {
  background: var(--white);
  border-color: var(--border);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.mini-card h4 {
  margin-top: 0;
  color: var(--text);
}

/* --- Specialized Editorial Blocks --- */
.reflection-box {
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-top: 32px;
  border: 2px dashed var(--border); /* Modern clean dashed layout block */
}

.ifs-box {
  background: var(--brand-purple-soft);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-top: 32px;
  border: 1px solid rgba(124, 58, 237, 0.12);
}

.tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--brand-purple), var(--pop-accent));
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

.week-meta {
  background: var(--brand-gray-light);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 32px 0;
  border: 1px solid var(--border);
}

.reflection-box strong,
.notice strong,
.week-meta strong,
.ifs-box strong {
  color: var(--text);
  font-weight: 700;
}

.fillable-line {
  border-bottom: 2px solid var(--text);
  display: inline-block;
  min-width: 260px;
  height: 1.2em;
}

/* --- Callouts & Buttons --- */
.closing,
.final-section {
  background: linear-gradient(135deg, #0f172a 0%, #311042 50%, #4c1d95 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  box-shadow: var(--shadow-md);
  margin: 64px 0;
  border: 1px solid rgba(217, 70, 239, 0.2);
}

.closing h2,
.closing p,
.final-section h2,
.final-section p {
  color: var(--white);
}

.final-section h2 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: clamp(2.2rem, 5vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.final-section p {
  max-width: 820px;
  margin: 0 auto 20px;
  font-size: 1.125rem;
  opacity: 0.9;
  line-height: 1.7;
}

.final-section p:last-child {
  margin-bottom: 0;
}

.script-box {
  background: var(--brand-gray-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  margin: 32px 0;
}

.script-box blockquote {
  margin: 0;
  padding-left: 24px;
  border-left: 4px solid var(--brand-purple);
  color: var(--text);
  font-style: italic;
  font-size: 1.1rem;
}

.prayer-box,
.donation-option,
.reading-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.reading-links,
.donation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.button-link {
  display: inline-block;
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-purple-dark));
  color: var(--white);
  text-decoration: none;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: 0 8px 20px -6px rgba(109, 40, 217, 0.4);
}

.button-link:hover {
  background: linear-gradient(135deg, var(--brand-purple-dark), #4c1d95);
  transform: translateY(-3px);
  box-shadow: 0 15px 25px -5px rgba(109, 40, 217, 0.5);
}

/* --- Flow Steps --- */
.meeting-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.flow-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.time-pill {
  display: inline-flex;
  background: linear-gradient(135deg, var(--brand-purple-soft), #fae8ff);
  color: var(--brand-purple-dark);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 16px;
  border: 1px solid rgba(124, 58, 237, 0.1);
}

/* --- Footer --- */
footer {
  text-align: center;
  color: var(--muted);
  margin-top: 80px;
  padding-top: 40px;
  border-top: 2px solid var(--text); /* Anchors bottom of viewport beautifully */
}

footer p {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

/* --- Responsive Adaptations --- */
@media (max-width: 768px) {
  .page-wrapper {
    padding: 32px 16px 80px;
  }

  .hero,
  .final-section,
  .closing {
    padding: 48px 24px;
    border-radius: var(--radius-md);
  }

  .card,
  .week-card {
    padding: 28px;
    border-radius: var(--radius-md);
  }

  .fillable-line {
    min-width: 100%;
    margin-top: 6px;
  }
}
