/* ============================================================
   Lighthouse Confessions — RoseCascade Style (rc-)
   CLEAN VERSION — Simple Divider + Exact Menu Width Alignment
   ============================================================ */

/* ------------------------------------------------------------
   Color Tokens & Motion Tokens
   ------------------------------------------------------------ */
:root {
  --rc-primary: #d9a3b6;
  --rc-primary-dark: #b87e96;
  --rc-surface: #f8f3f5;
  --rc-surface-alt: #f1eaed;
  --rc-ink: #2c2c2c;
  --rc-muted: #7a6e74;
  --rc-edge: rgba(0,0,0,0.08);
  --rc-edge-strong: rgba(0,0,0,0.18);

  --rc-radius-sm: 6px;
  --rc-radius-md: 10px;
  --rc-radius-lg: 16px;

  --rc-shadow-sm: 0 2px 6px rgba(0,0,0,0.08);
  --rc-shadow-md: 0 4px 14px rgba(0,0,0,0.10);
  --rc-shadow-lg: 0 10px 30px rgba(0,0,0,0.12);

  --rc-font-body: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --rc-font-head: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;

  /* EXACT SAME WIDTH AS MENU */
  --rc-page-width: 1100px;

  --rc-space-xs: 0.4rem;
  --rc-space-sm: 0.7rem;
  --rc-space-md: 1.3rem;
  --rc-space-lg: 2.2rem;
  --rc-space-xl: 3.5rem;

  --rc-motion-fast: 150ms;
  --rc-motion-med: 260ms;
  --rc-motion-slow: 420ms;
  --rc-easing: cubic-bezier(.22,.61,.36,1);
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ------------------------------------------------------------
   Reset
   ------------------------------------------------------------ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.rc-body {
  font-family: var(--rc-font-body);
  background: var(--rc-surface);
  color: var(--rc-ink);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Background wash */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(120% 60% at 80% 20%, rgba(255,255,255,.06), transparent 60%),
    linear-gradient(120deg, rgba(255,255,255,.06), rgba(0,0,0,0.03));
  animation: rc-wash 24s ease-in-out infinite alternate;
  opacity: .35;
}

@keyframes rc-wash {
  0% { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(0,-2%,0) scale(1.02); }
}

/* ------------------------------------------------------------
   Typography
   ------------------------------------------------------------ */
h1, h2, h3 { font-family: var(--rc-font-head); color: var(--rc-ink); }

.rc-h1 {
  font-size: 2.6rem;
  margin-bottom: var(--rc-space-md);
}

.rc-h2 {
  font-size: 1.7rem;
  margin-bottom: var(--rc-space-sm);
}

/* Perfect text justification */
article p,
section p,
main p,
p {
  text-align: justify !important;
  text-justify: inter-word !important;
  -webkit-hyphens: auto !important;
  -ms-hyphens: auto !important;
  hyphens: auto !important;
  margin-bottom: var(--rc-space-md);
}

/* ------------------------------------------------------------
   Container — EXACT SAME WIDTH AS MENU
   ------------------------------------------------------------ */
.rc-container {
  width: 100%;
  max-width: var(--rc-page-width);
  margin: 0 auto;
  padding-left: var(--rc-space-md);
  padding-right: var(--rc-space-md);
}

/* ------------------------------------------------------------
   Navigation
   ------------------------------------------------------------ */
.rc-header {
  padding-top: var(--rc-space-lg);
  padding-bottom: var(--rc-space-md);
}

.rc-header .rc-container { text-align: center; }

.rc-logo {
  width: 480px;
  height: auto;
  margin-bottom: var(--rc-space-md);
}

.rc-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--rc-space-sm);
}

.rc-nav a {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  background: var(--rc-surface-alt);
  border-radius: var(--rc-radius-md);
  color: var(--rc-muted);
  font-weight: 500;
  text-decoration: none;
  position: relative;
  transition: background var(--rc-motion-fast), color var(--rc-motion-fast);
}

/* underline grow */
.rc-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, var(--rc-primary), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--rc-motion-med) var(--rc-easing);
}

.rc-nav a:hover::after { transform: scaleX(1); }
.rc-nav a:hover { background: var(--rc-primary); color: #fff; }

/* ------------------------------------------------------------
   Layout
   ------------------------------------------------------------ */
.rc-main { width: 100%; }

.rc-article {
  width: 100%;
  max-width: var(--rc-page-width); /* EXACT MENU WIDTH */
  margin: 0 auto;
  padding: var(--rc-space-lg) var(--rc-space-md);
}

/* ------------------------------------------------------------
   SIMPLE ANCHOR-INTEGRATED DIVIDER (WORKS 100%)
   ------------------------------------------------------------ */

.rc-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin: 2.5rem 0 1rem;
}

.rc-divider-line {
  flex-grow: 1;
  height: 1px;
  background-color: var(--rc-primary-dark); /* Thin line */
  opacity: 0.85;
}

.rc-divider-icon {
  font-size: 1.3rem;
  color: var(--rc-primary-dark);
}

/* ------------------------------------------------------------
   Hero Image
   ------------------------------------------------------------ */
.rc-hero {
  margin-bottom: var(--rc-space-lg);
}

.rc-hero-img {
  width: 100%;
  border-radius: var(--rc-radius-lg);
  box-shadow: var(--rc-shadow-lg);
  border: 2px solid var(--rc-primary-dark);
}

/* ------------------------------------------------------------
   Cards
   ------------------------------------------------------------ */
.rc-card {
  background: var(--rc-surface-alt);
  border: 1px solid var(--rc-edge);
  border-radius: var(--rc-radius-md);
  padding: var(--rc-space-md);
  box-shadow: var(--rc-shadow-sm);
  transition:
    transform var(--rc-motion-fast),
    box-shadow var(--rc-motion-fast),
    border-color var(--rc-motion-fast);
}

.rc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  border-color: var(--rc-edge-strong);
}

/* ------------------------------------------------------------
   Reading Progress Bar
   ------------------------------------------------------------ */
.rc-progress {
  position: fixed;
  left: 0; top: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--rc-primary), transparent);
  z-index: 9998;
  transition: width var(--rc-motion-fast) linear;
}

/* ------------------------------------------------------------
   Back-to-Top — Floating Petal Compass
   ------------------------------------------------------------ */
.rc-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 60px;
  height: 60px;

  background: radial-gradient(circle at 30% 30%, #ffffff 0%, var(--rc-primary) 60%, var(--rc-primary-dark) 100%);
  border: none;
  border-radius: 40% 60% 60% 40% / 50% 40% 60% 50%;
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
  cursor: pointer;

  opacity: 0 !important;
  transform: translateY(14px) rotate(2deg) !important;
  pointer-events: none !important;
  transition:
    opacity .35s var(--rc-easing),
    transform .35s var(--rc-easing),
    box-shadow .35s var(--rc-easing),
    background .35s var(--rc-easing),
    border-radius .35s var(--rc-easing);

  z-index: 9999 !important;
  overflow: hidden;
}

.rc-to-top.rc-show {
  opacity: 1 !important;
  transform: translateY(0) rotate(0deg) !important;
  pointer-events: auto !important;
}

.rc-to-top:hover {
  background: radial-gradient(circle at 70% 70%, #ffffff 0%, var(--rc-primary) 70%, var(--rc-primary-dark) 100%);
  border-radius: 60% 40% 40% 60% / 45% 55% 45% 55%;
  box-shadow: 0 10px 28px rgba(0,0,0,0.28);
}

.rc-to-top .ripple {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: .35;
  transform: translate(-50%, -50%) scale(0);
  background: #fff;
  animation: rc-ripple .6s ease-out forwards;
}

@keyframes rc-ripple {
  to { transform: translate(-50%, -50%) scale(6); opacity: 0; }
}

/* ------------------------------------------------------------
   Beacon Capsule Footer (centered)
   ------------------------------------------------------------ */
.rc-footer {
  display: block;
  width: fit-content;
  margin: var(--rc-space-xl) auto var(--rc-space-xl);

  padding: 1.2rem 2.2rem;
  background: radial-gradient(circle at 30% 30%,
              #ffffff 0%, var(--rc-primary) 60%, var(--rc-primary-dark) 100%);

  border-radius: 45% 55% 60% 40% / 40% 60% 55% 45%;
  box-shadow:
    0 6px 18px rgba(0,0,0,0.18),
    inset 0 0 12px rgba(255,255,255,0.35);

  font-weight: 600;
  color: #111;
  text-align: center;
  animation: rc-footer-glow 5.5s ease-in-out infinite alternate;
}

@keyframes rc-footer-glow {
  0% {
    transform: translateY(0px) rotate(-1deg);
  }
  100% {
    transform: translateY(-2px) rotate(1deg);
  }
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 700px) {
  .rc-h1 { font-size: 2.1rem; }
  :root { --rc-page-width: 95%; }
}
