/* Radha Ma — colors aligned with homepage (.jd-home) */
:root {
  --rm-white: #ffffff;
  --rm-cream: #fff8ef;
  --rm-apricot: #f9e1c0;
  --rm-events: #fbe9d7;
  --rm-card: #f7dcb8;
  --rm-contour: #d8874c;
  --rm-brown: #5e3824;
  --rm-pink: #e94b76;
  --rm-magenta: #d10068;
  --rm-blue: #61b7eb;
  --rm-ink: #1c1612;
  --rm-muted: #6a5a4c;
  --rm-line: #e4d3bf;
  /* semantic aliases used across the page */
  --rm-paper: var(--rm-cream);
  --rm-sky: var(--rm-blue);
  --rm-sky-deep: var(--rm-brown);
  --rm-sky-soft: var(--rm-events);
  --rm-blossom: var(--rm-pink);
  --rm-saffron: var(--rm-contour);
  --rm-saffron-deep: var(--rm-brown);
  --rm-serif: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  --rm-sans: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --rm-max: 1180px;
  --rm-gutter: clamp(1.1rem, 3vw, 2rem);
  --rm-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --rm-r-btn: 12px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--rm-sans);
  font-size: clamp(1.05rem, 1.15vw, 1.15rem);
  line-height: 1.65;
  color: var(--rm-ink);
  background: var(--rm-paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--rm-pink); text-decoration: none; }
a:hover { color: var(--rm-brown); }

.rm-sr {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.rm-wrap {
  width: min(var(--rm-max), calc(100% - var(--rm-gutter) * 2));
  margin-inline: auto;
}

.rm-wrap.narrow { width: min(760px, calc(100% - var(--rm-gutter) * 2)); }

/* Preview header slot (WP/Elementor header on live) */
.rm-wp-slot {
  background: var(--rm-apricot);
  color: var(--rm-muted);
  text-align: center;
  font-size: 0.82rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--rm-line);
}
.rm-wp-slot p { margin: 0; }

/* ========== HERO ========== */
.rm-hero {
  position: relative;
  min-height: min(100svh, 920px);
  display: grid;
  align-items: end;
  overflow: clip;
  color: var(--rm-ink);
  isolation: isolate;
}

.rm-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 18% 40%;
  transform: scale(1.04);
  animation: rm-ken 18s var(--rm-ease) both;
}

@keyframes rm-ken {
  from { transform: scale(1.08); }
  to { transform: scale(1.02); }
}

.rm-hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 248, 239, 0.18) 0%, rgba(255, 248, 239, 0.58) 48%, rgba(255, 248, 239, 0.82) 100%),
    linear-gradient(180deg, rgba(94, 56, 36, 0.06) 0%, rgba(255, 248, 239, 0.18) 45%, rgba(255, 248, 239, 0.94) 100%);
  pointer-events: none;
}

.rm-hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: end;
  padding: clamp(5rem, 12vh, 7.5rem) 0 clamp(2.8rem, 6vh, 4rem);
}

.rm-hero__copy {
  max-width: 34rem;
  padding-bottom: 0.4rem;
  opacity: 0;
  transform: translateY(1.2rem);
  animation: rm-rise 0.9s var(--rm-ease) 0.15s forwards;
}

.rm-brand {
  margin: 0 0 0.85rem;
  font-family: var(--rm-serif);
  font-weight: 560;
  font-size: clamp(3.4rem, 9vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--rm-ink);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.rm-hero__quote {
  margin: 0 0 1.6rem;
  font-family: var(--rm-serif);
  font-style: italic;
  font-weight: 450;
  font-size: clamp(1.15rem, 2.1vw, 1.45rem);
  line-height: 1.45;
  color: var(--rm-ink);
  max-width: 28rem;
}

.rm-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}

.rm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.7rem 1.45rem;
  border-radius: var(--rm-r-btn);
  border: 1.5px solid var(--rm-contour);
  background: #ecc5a8;
  color: var(--rm-brown);
  font-family: var(--rm-sans);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  line-height: 1.25;
  transition: transform 0.25s var(--rm-ease), background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.rm-btn:hover {
  transform: translateY(-2px);
  background: var(--rm-card);
  border-color: #c4783a;
  color: var(--rm-brown);
}

.rm-btn--primary {
  border-width: 2.5px;
  border-color: var(--rm-contour);
  background: var(--rm-card);
  color: var(--rm-brown);
  box-shadow: none;
}
.rm-btn--primary:hover {
  background: #ecc5a8;
  border-color: #c4783a;
  color: var(--rm-brown);
}

.rm-btn--ghost {
  background: rgba(255, 248, 239, 0.72);
  border-color: var(--rm-contour);
  color: var(--rm-brown);
  backdrop-filter: blur(8px);
}
.rm-btn--ghost:hover {
  background: var(--rm-white);
  color: var(--rm-brown);
}

.rm-hero__portrait {
  justify-self: end;
  width: min(100%, 420px);
  margin: 0;
  opacity: 0;
  transform: translateY(1.6rem) scale(0.98);
  animation: rm-rise 1s var(--rm-ease) 0.35s forwards;
}

.rm-hero__portrait img {
  width: 100%;
  border-radius: 18px;
  box-shadow:
    0 14px 36px rgba(94, 56, 36, 0.16),
    0 0 0 1px rgba(255, 248, 239, 0.4);
}

@keyframes rm-rise {
  to { opacity: 1; transform: none; }
}

.rm-wave {
  display: block;
  width: 100%;
  height: clamp(48px, 8vw, 88px);
  margin-top: -1px;
  color: var(--rm-paper);
}
.rm-wave path { fill: currentColor; }

/* ========== SECTIONS ========== */
.rm-section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.rm-section--soft { background: var(--rm-sky-soft); }

.rm-kicker {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rm-sky-deep);
}

.rm-title {
  margin: 0 0 1.1rem;
  font-family: var(--rm-serif);
  font-weight: 550;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.rm-lead {
  margin: 0 0 1.4rem;
  color: var(--rm-muted);
  max-width: 42rem;
}

.rm-prose {
  max-width: 42rem;
}
.rm-prose p { margin: 0 0 1.1rem; }
.rm-prose p:last-child { margin-bottom: 0; }
.rm-byline {
  margin-top: 1.25rem;
  font-weight: 700;
  color: var(--rm-sky-deep);
}

/* Interview layout */
.rm-interview {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: start;
}

.rm-video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  overflow: hidden;
  background: var(--rm-brown);
  box-shadow: 0 14px 36px rgba(94, 56, 36, 0.12);
}

.rm-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.rm-video__facade {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
}

.rm-video__facade img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
  transition: opacity 0.35s ease, transform 0.6s var(--rm-ease);
}

.rm-video__facade:hover img,
.rm-video__facade:focus-visible img {
  opacity: 1;
  transform: scale(1.03);
}

.rm-play {
  position: relative;
  z-index: 1;
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--rm-card);
  color: var(--rm-brown);
  border: 2px solid var(--rm-contour);
  box-shadow: 0 12px 30px rgba(94, 56, 36, 0.22);
  transition: transform 0.25s var(--rm-ease), background 0.25s ease;
}
.rm-video__facade:hover .rm-play {
  transform: scale(1.06);
  background: #ecc5a8;
}
.rm-play svg { width: 1.35rem; height: 1.35rem; margin-left: 0.15rem; }

/* Q&A — video + question pairs */
.rm-qa-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 1.35rem;
  margin-top: 0.5rem;
}

.rm-qa-item {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.rm-qa-item .rm-video {
  border-radius: 16px;
}

.rm-qa-qs {
  display: grid;
  gap: 0.65rem;
}

.rm-qa-q {
  margin: 0;
  padding: 0.85rem 1rem;
  background: var(--rm-white);
  border: 1px solid var(--rm-line);
  border-radius: 12px;
  color: var(--rm-ink);
  font-size: 0.95rem;
  line-height: 1.5;
}

.rm-qa-q strong {
  display: inline-block;
  margin-right: 0.35rem;
  color: var(--rm-contour);
  font-variant-numeric: tabular-nums;
}

.rm-clips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.rm-clips .rm-video { border-radius: 12px; }

/* Teachings */
.rm-teachings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
}

.rm-teach {
  padding: 1.25rem 1.3rem 1.35rem;
  border-top: 2px solid var(--rm-blossom);
  background: transparent;
}

.rm-teach h3 {
  margin: 0 0 0.45rem;
  font-family: var(--rm-serif);
  font-size: 1.35rem;
  font-weight: 550;
  letter-spacing: -0.01em;
}

.rm-teach p {
  margin: 0;
  color: var(--rm-muted);
  font-size: 0.98rem;
}

/* Book feature */
.rm-book-feature {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: center;
}

.rm-book-feature__cover {
  width: 100%;
  max-width: 220px;
  border-radius: 6px;
  box-shadow: 0 14px 36px rgba(94, 56, 36, 0.12);
}

.rm-book-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.25rem;
}

.rm-books-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 1.25rem;
  margin-top: 1.75rem;
}

.rm-book {
  text-align: center;
}

.rm-book a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.rm-book img {
  width: min(100%, 180px);
  margin: 0 auto 0.85rem;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(94, 56, 36, 0.1);
  transition: transform 0.35s var(--rm-ease);
}

.rm-book a:hover img { transform: translateY(-4px); }

.rm-book h3 {
  margin: 0 0 0.35rem;
  font-family: var(--rm-serif);
  font-size: 1.05rem;
  font-weight: 550;
  line-height: 1.3;
}

.rm-book p {
  margin: 0 0 0.55rem;
  color: var(--rm-muted);
  font-size: 0.88rem;
}

.rm-book .rm-link {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--rm-pink);
}

.rm-all-books {
  margin-top: 2rem;
  text-align: center;
}

/* Biography */
.rm-bio {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.rm-bio__media img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(94, 56, 36, 0.1);
}

.rm-pullquote {
  margin: 1.5rem 0 0;
  padding: 1.2rem 0 0;
  border-top: 1px solid var(--rm-line);
  font-family: var(--rm-serif);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--rm-ink);
}

.rm-pullquote footer {
  margin-top: 0.75rem;
  font-family: var(--rm-sans);
  font-style: normal;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--rm-brown);
}

/* Closing */
.rm-close {
  position: relative;
  overflow: clip;
  color: var(--rm-white);
  text-align: center;
  padding: clamp(4rem, 10vw, 7rem) 0;
}

.rm-close__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  filter: brightness(0.62);
  transform: scale(1.02);
}

.rm-close__inner {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - var(--rm-gutter) * 2));
  margin-inline: auto;
}

.rm-close blockquote {
  margin: 0;
  font-family: var(--rm-serif);
  font-style: italic;
  font-size: clamp(1.45rem, 3.4vw, 2.25rem);
  line-height: 1.35;
  text-wrap: balance;
}

.rm-close footer {
  margin-top: 1.1rem;
  font-family: var(--rm-sans);
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Footer */
.rm-footer {
  padding: 2.5rem 0 2rem;
  background: var(--rm-brown);
  color: rgba(255, 248, 239, 0.82);
  font-size: 0.92rem;
}

.rm-footer a { color: var(--rm-apricot); }
.rm-footer a:hover { color: var(--rm-white); }
.rm-footer__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.rm-footer h2 {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rm-white);
}

.rm-footer p { margin: 0 0 0.45rem; }
.rm-footer__copy {
  margin-top: 1.75rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  font-size: 0.85rem;
}

/* Reveal */
.rm-reveal {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.7s var(--rm-ease), transform 0.7s var(--rm-ease);
}
.rm-reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 960px) {
  .rm-hero__inner,
  .rm-interview,
  .rm-bio,
  .rm-book-feature {
    grid-template-columns: 1fr;
  }

  .rm-hero {
    min-height: auto;
  }

  .rm-hero__inner {
    padding-top: clamp(4.5rem, 14vw, 6rem);
  }

  .rm-hero__portrait {
    justify-self: start;
    width: min(100%, 360px);
    order: -1;
  }

  .rm-hero__veil {
    background:
      linear-gradient(180deg, rgba(255, 248, 239, 0.22) 0%, rgba(255, 248, 239, 0.58) 38%, rgba(255, 248, 239, 0.95) 100%);
  }

  .rm-books-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rm-footer__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .rm-teachings,
  .rm-qa-grid,
  .rm-clips,
  .rm-books-grid {
    grid-template-columns: 1fr;
  }

  .rm-brand {
    font-size: clamp(3rem, 14vw, 4.2rem);
  }

  .rm-book-feature__cover {
    max-width: 160px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rm-hero__bg,
  .rm-hero__copy,
  .rm-hero__portrait,
  .rm-reveal,
  .rm-qa-list li {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
