/* RUMA v3 · explore area (Explore RUMA /studio + Wellness Education /wellness).
   Owned by the explore agent; reads tokens.css vars only. Every class is prefixed xr-.
   Round 2: a photograph for every idea (places, values, pillars, chapters, topics, rituals,
   prompts), editorial image/text rows, and a wider reading body on large screens. */

/* ---------- reading layout: sticky index + one wide body ---------- */
.theme-v3 .xr-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(40px, 5vw, 104px); align-items: start; }
.theme-v3 .xr-body { min-width: 0; max-width: 1180px; }
@media (min-width: 1440px) { .theme-v3 .xr-layout { grid-template-columns: 220px minmax(0, 1fr); } .theme-v3 .xr-body { max-width: 1260px; } }

.theme-v3 .xr-index { position: sticky; top: calc(var(--head-h) + 40px); padding-top: clamp(64px, 8vw, 120px); }
.theme-v3 .xr-index__sum { display: none; }
.theme-v3 .xr-index ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line); }
.theme-v3 .xr-index li a {
  position: relative; display: flex; align-items: center; min-height: 40px; padding: 4px 0 4px 18px; margin-left: -1px;
  font-size: var(--fs-small); line-height: 1.3; color: var(--muted); text-decoration: none; border-left: 1px solid transparent;
  transition: color .4s var(--ease-warm), border-color .4s var(--ease-warm);
}
.theme-v3 .xr-index li a[aria-current] { color: var(--candle-soft); border-left-color: var(--candle); }
.theme-v3 .xr-index li a[aria-current]::before {
  content: ""; position: absolute; left: -3px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%;
  background: var(--candle); box-shadow: 0 0 10px var(--candle);
}
@media (hover: hover) { .theme-v3 .xr-index li a:hover { color: var(--text-strong); } }

@media (max-width: 999px) {
  .theme-v3 .xr-layout { display: block; }
  .theme-v3 .xr-index { padding-top: 0; position: static; margin-top: 8px; }
  .js .theme-v3 .xr-index { position: sticky; top: calc(var(--head-h) - 1px); z-index: 30; }
  .theme-v3 .xr-index__box { background: var(--night); border-bottom: 1px solid var(--line); margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); }
  .theme-v3 .xr-index__sum {
    display: flex; align-items: center; gap: 12px; min-height: 52px; cursor: pointer; list-style: none;
  }
  .theme-v3 .xr-index__sum::-webkit-details-marker { display: none; }
  .theme-v3 .xr-index__sum::after {
    content: ""; margin-left: auto; width: 9px; height: 9px; flex: none; border-right: 1.5px solid var(--candle); border-bottom: 1.5px solid var(--candle);
    transform: rotate(45deg) translate(-2px, -2px); transition: transform .5s var(--ease-out);
  }
  .theme-v3 .xr-index__box[open] .xr-index__sum::after { transform: rotate(225deg); }
  .theme-v3 .xr-index__now { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--candle-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .theme-v3 .xr-index ol { border-left: 0; padding-bottom: 12px; max-height: 60vh; overflow-y: auto; overscroll-behavior: contain; }
  .theme-v3 .xr-index li a { min-height: 44px; padding-left: 12px; border-left-width: 2px; }
}

/* photos: always fill their frame */
.theme-v3 .xr-body .media > img, .theme-v3 .xr-topics__thumb > img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- sections ---------- */
.theme-v3 .xr-sec { padding-block: clamp(64px, 8vw, 120px); border-top: 1px solid var(--line); position: relative; }
.theme-v3 .xr-sec.xr-first { border-top: 0; }
.theme-v3 .xr-sec__head { display: grid; gap: 14px; margin-bottom: clamp(28px, 3.4vw, 44px); }
.theme-v3 .xr-sub { font-family: var(--font-display); font-style: italic; font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.3; color: var(--candle-soft); max-width: 36ch; }
.theme-v3 .xr-sec h2.label, .theme-v3 .xr-intro h2.label, .theme-v3 .xr-topics h2.label {
  font-family: var(--font-body); font-size: var(--fs-micro); font-weight: 500; line-height: 1.4; color: var(--candle); letter-spacing: .12em;
}

.theme-v3 .xr-prose { display: grid; gap: 18px; max-width: 62ch; }
.theme-v3 .xr-prose p { color: var(--text); }
.theme-v3 .xr-prose--drop p:first-child { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.2; color: var(--text-strong); max-width: 26ch; }
.theme-v3 .xr-prose--center { margin-inline: auto; text-align: center; }
.theme-v3 .xr-prose--lead p:first-child { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.2; color: var(--text-strong); font-weight: 300; }

/* "A place to move. A place to breathe." — four photographs */
.theme-v3 .xr-places { list-style: none; padding: 0; margin: clamp(40px, 5vw, 72px) 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.theme-v3 .xr-place { display: grid; gap: 14px; align-content: start; }
.theme-v3 .xr-place__media { aspect-ratio: 3 / 4; border-radius: 999px 999px var(--r-media) var(--r-media); }
.theme-v3 .xr-place:nth-child(even) { margin-top: clamp(0px, 4vw, 56px); }
.theme-v3 .xr-place__line { font-family: var(--font-display); font-style: italic; font-size: clamp(1.25rem, 1.8vw, 1.6rem); line-height: 1.2; color: var(--text-strong); padding-top: 12px; border-top: 1px solid var(--line); }
@media (max-width: 999px) { .theme-v3 .xr-places { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; } }

/* two-line turn at the end of a section */
.theme-v3 .xr-turn { margin-top: clamp(28px, 3vw, 40px); display: grid; gap: 4px; font-family: var(--font-display); font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.25; color: var(--text-strong); max-width: 30ch; }
.theme-v3 .xr-turn em { color: var(--candle-soft); }

/* copy + one photograph (meaning: oval; why: arch, image first) */
.theme-v3 .xr-split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 88px); align-items: start; }
.theme-v3 .xr-split--flip { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.theme-v3 .xr-figure { display: grid; gap: 16px; position: sticky; top: calc(var(--head-h) + 40px); margin: 0; }
.theme-v3 .xr-figure__media { aspect-ratio: 3 / 4; border-radius: 50% / 34%; }
.theme-v3 .xr-figure--arch .xr-figure__media { border-radius: 999px 999px var(--r-media) var(--r-media); aspect-ratio: 4 / 5; }
@media (max-width: 760px) {
  .theme-v3 .xr-split, .theme-v3 .xr-split--flip { grid-template-columns: 1fr; }
  .theme-v3 .xr-figure { position: static; max-width: 340px; }
  .theme-v3 .xr-figure--arch { max-width: none; }
  .theme-v3 .xr-figure--arch .xr-figure__media { aspect-ratio: 4 / 3; border-radius: var(--r-media); }
}

/* purpose / mission / vision: statement, then copy beside a photograph (or a wide band) */
.theme-v3 .xr-statement { display: grid; gap: 22px; }
.theme-v3 .xr-statement__main { font-family: var(--font-display); font-weight: 300; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.12; color: var(--text-strong); max-width: 22ch; letter-spacing: -.01em; text-wrap: balance; margin-bottom: 10px; }
.theme-v3 .xr-statement__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.theme-v3 .xr-statement__copy { display: grid; gap: 22px; }
.theme-v3 .xr-statement__media { aspect-ratio: 4 / 5; }
.theme-v3 .xr-statement--side_flip .xr-statement__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.theme-v3 .xr-statement--side_flip .xr-statement__media { order: -1; aspect-ratio: 5 / 4; }
.theme-v3 .xr-statement--band .xr-statement__grid { grid-template-columns: 1fr; }
.theme-v3 .xr-statement__band { aspect-ratio: 21 / 9; margin-block: 6px 12px; }
@media (max-width: 760px) {
  .theme-v3 .xr-statement__grid, .theme-v3 .xr-statement--side_flip .xr-statement__grid { grid-template-columns: 1fr; }
  .theme-v3 .xr-statement__media, .theme-v3 .xr-statement--side_flip .xr-statement__media { order: -1; aspect-ratio: 3 / 2; }
  .theme-v3 .xr-statement__band { aspect-ratio: 3 / 2; }
}
.theme-v3 .xr-close { font-family: var(--font-display); font-style: italic; font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.3; color: var(--candle-soft); margin-top: 8px; padding-left: 22px; position: relative; max-width: 40ch; }
.theme-v3 .xr-close::before { content: ""; position: absolute; left: 0; top: .72em; width: 12px; height: 1px; background: var(--candle); }
.theme-v3 .xr-close--center { text-align: center; padding-left: 0; margin-inline: auto; }
.theme-v3 .xr-close--center::before { display: none; }

/* philosophy: the pull quote, one candle burning behind it */
.theme-v3 .xr-philo { text-align: center; display: grid; justify-items: center; gap: 26px; isolation: isolate; overflow: hidden; }
.theme-v3 .xr-philo__bg { position: absolute; z-index: -2; top: 0; bottom: 0; left: 50%; width: min(560px, 90%); transform: translateX(-50%); pointer-events: none; opacity: .5;
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent 100%); mask-image: radial-gradient(closest-side, #000 30%, transparent 100%); }
.theme-v3 .xr-philo__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; filter: sepia(.3) saturate(.9) brightness(.7); }
.theme-v3 .xr-philo__glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(60% 45% at 50% 32%, rgb(var(--candle-glow) / .12), transparent 70%), linear-gradient(180deg, rgb(var(--night-rgb) / .2), rgb(var(--night-rgb) / .55) 60%, rgb(var(--night-rgb) / .2)); }
.theme-v3 .xr-submark { width: 72px; height: auto; opacity: .92; }
.theme-v3 .xr-quote { width: 100%; margin: 0; }
.theme-v3 .xr-quote p { font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1.16; color: var(--text-strong); text-wrap: balance; letter-spacing: -.01em; max-width: 22ch; margin-inline: auto; text-shadow: 0 2px 24px rgb(var(--night-rgb) / .8); }
.theme-v3 .xr-philo .xr-prose p { text-shadow: 0 1px 14px rgb(var(--night-rgb) / .9); }

/* sketch line */
.theme-v3 .xr-line { width: 160px; height: 18px; overflow: visible; }
.theme-v3 .xr-line path { fill: none; stroke: var(--candle); stroke-width: 1.2; stroke-linecap: round; opacity: .7; stroke-dasharray: 1; stroke-dashoffset: 0; }
.theme-v3 .xr-line--center { margin-inline: auto; }
@media (prefers-reduced-motion: no-preference) {
  .js .theme-v3 .xr-line[data-reveal] { filter: none; transform: none; opacity: 1; }
  .js .theme-v3 .xr-line path { stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--ease-inout) .3s; }
  .js .theme-v3 .xr-line.is-in path { stroke-dashoffset: 0; }
}

/* values: seven photo cards (3 across; the seventh lies wide) */
.theme-v3 .xr-values { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(16px, 2vw, 28px); }
.theme-v3 .xr-value { display: grid; gap: 18px; align-content: start; }
.theme-v3 .xr-value__media { aspect-ratio: 4 / 3; }
.theme-v3 .xr-value__body { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 6px 12px; align-content: start; }
.theme-v3 .xr-values__n { grid-row: span 2; font-family: var(--font-display); font-style: italic; font-size: 1.35rem; color: var(--candle); line-height: 1.3; font-variant-numeric: lining-nums; }
.theme-v3 .xr-value h3 { font-size: clamp(1.4rem, 1.8vw, 1.7rem); }
.theme-v3 .xr-value p { font-size: var(--fs-small); color: var(--text); }
.theme-v3 .xr-value:last-child { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(20px, 3vw, 44px); }
.theme-v3 .xr-value:last-child .xr-value__media { aspect-ratio: 16 / 9; }
.theme-v3 .xr-value:last-child p { max-width: 52ch; }
@media (max-width: 999px) { .theme-v3 .xr-values { grid-template-columns: repeat(2, minmax(0, 1fr)); } .theme-v3 .xr-value:last-child { grid-template-columns: 1fr; } }
@media (max-width: 639px) {
  .theme-v3 .xr-values { grid-template-columns: 1fr; gap: 0; }
  .theme-v3 .xr-value, .theme-v3 .xr-value:last-child { grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); align-items: start; }
  .theme-v3 .xr-value__media, .theme-v3 .xr-value:last-child .xr-value__media { aspect-ratio: 1; border-radius: 14px; }
  .theme-v3 .xr-value__body { grid-template-columns: 1fr; }
  .theme-v3 .xr-values__n { grid-row: auto; font-size: 1.1rem; }
}

/* pillars: four photo cards */
.theme-v3 .xr-pillars { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.theme-v3 .xr-pillar { border-radius: var(--r-shell); background: var(--ember); box-shadow: inset 0 0 0 1px var(--line); display: grid; align-content: start; overflow: hidden; }
.theme-v3 .xr-pillar__media { aspect-ratio: 16 / 10; border-radius: 0; }
.theme-v3 .xr-pillar__body { padding: clamp(22px, 2.6vw, 34px); display: grid; gap: 10px; }
.theme-v3 .xr-pillar:nth-child(2) .xr-pillar__body, .theme-v3 .xr-pillar:nth-child(3) .xr-pillar__body { background: radial-gradient(120% 120% at 100% 0%, rgb(var(--candle-glow) / .08), transparent 60%); }
.theme-v3 .xr-pillar__name { font-family: var(--font-body); font-size: var(--fs-micro); font-weight: 600; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--candle); }
.theme-v3 .xr-pillar__line { font-family: var(--font-display); font-size: clamp(1.7rem, 2.6vw, 2.2rem); line-height: 1.12; color: var(--text-strong); font-weight: 300; }
.theme-v3 .xr-pillar__scope { font-size: var(--fs-small); color: var(--candle-soft); font-style: italic; }
.theme-v3 .xr-pillar__body p:last-child { font-size: var(--fs-small); color: var(--text); }
@media (max-width: 700px) { .theme-v3 .xr-pillars { grid-template-columns: 1fr; } }

/* move well. live well. */
.theme-v3 .xr-mwlw { border-top: 1px solid var(--line); }
.theme-v3 .xr-mwlw__head { display: grid; gap: 16px; justify-items: center; text-align: center; margin-bottom: clamp(40px, 5vw, 72px); }
.theme-v3 .xr-mwlw__head h2 { font-size: clamp(2.8rem, 6.4vw, 5.6rem); }
.theme-v3 .xr-mwlw__tr { font-family: var(--font-display); font-style: italic; font-size: clamp(1.2rem, 1.8vw, 1.5rem); color: var(--candle-soft); margin-top: -6px; }
.theme-v3 .xr-mwlw__halves { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); }
.theme-v3 .xr-half { display: grid; gap: 22px; align-content: start; }
.theme-v3 .xr-half__media { aspect-ratio: 16 / 10; }
.theme-v3 .xr-half__media img { width: 100%; height: 100%; object-fit: cover; }
.theme-v3 .xr-half__body { display: grid; gap: 12px; }
.theme-v3 .xr-half h3 { font-size: clamp(2.2rem, 3.4vw, 3rem); }
.theme-v3 .xr-half__line { font-family: var(--font-display); font-style: italic; font-size: 1.4rem; color: var(--candle-soft); line-height: 1.25; }
.theme-v3 .xr-half p { max-width: 54ch; }
.theme-v3 .xr-tags { list-style: none; padding: 0; margin: 4px 0 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.theme-v3 .xr-tags li { font-size: var(--fs-micro); padding: 5px 12px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--text); }
.theme-v3 .xr-final { margin: clamp(56px, 7vw, 104px) auto 0; text-align: center; display: grid; gap: 6px; max-width: 760px; }
.theme-v3 .xr-final__k { font-size: var(--fs-micro); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--candle); margin-bottom: 10px; }
.theme-v3 .xr-final p:not(.xr-final__k) { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.6rem, 2.8vw, 2.4rem); line-height: 1.2; color: var(--text-strong); }
.theme-v3 .xr-final p:last-child { font-style: italic; color: var(--candle-soft); }
@media (max-width: 760px) { .theme-v3 .xr-mwlw__halves { grid-template-columns: 1fr; } }

/* where to find us */
.theme-v3 .xr-where { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.theme-v3 .xr-where h2 { margin-bottom: 20px; }
.theme-v3 .xr-dl { display: grid; gap: 18px; width: 100%; }
.theme-v3 .xr-dl dt { font-size: var(--fs-small); color: var(--candle-soft); font-weight: 600; }
.theme-v3 .xr-dl dd { margin: 2px 0 0; color: var(--text-strong); }
.theme-v3 .xr-dl dd a { display: inline-flex; min-height: 44px; align-items: center; }
@media (max-width: 860px) { .theme-v3 .xr-where { grid-template-columns: 1fr; } }

/* ---------- wellness ---------- */
.theme-v3 .xr-intro__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.theme-v3 .xr-note { padding: 24px 0 0 24px; border-left: 1px solid var(--line-strong); display: grid; gap: 12px; }
.theme-v3 .xr-note p { font-size: var(--fs-small); color: var(--muted); }
@media (max-width: 860px) { .theme-v3 .xr-intro__grid { grid-template-columns: 1fr; } }

/* the chapter map: one photograph per chapter, topics below */
.theme-v3 .xr-topics { margin-top: clamp(56px, 7vw, 96px); padding-top: 28px; border-top: 1px solid var(--line); display: grid; gap: 24px; }
.theme-v3 .xr-topics__grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 32px clamp(16px, 1.8vw, 28px); }
.theme-v3 .xr-topics__grid > li { display: grid; gap: 6px; align-content: start; }
.theme-v3 .xr-topics__thumb { display: block; aspect-ratio: 4 / 5; border-radius: 999px 999px var(--r-media) var(--r-media); margin-bottom: 8px; }
.theme-v3 .xr-topics__thumb img { transition: transform 1.2s var(--ease-warm), filter 1.2s var(--ease-warm); }
@media (hover: hover) { .theme-v3 .xr-topics__grid > li:hover .xr-topics__thumb img { transform: scale(1.04); filter: sepia(.24) saturate(.9) brightness(.92); } }
.theme-v3 .xr-topics__ch { font-family: var(--font-display); font-size: 1.7rem; font-style: italic; color: var(--candle-soft); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.theme-v3 .xr-topics__grid ol { list-style: none; padding: 0; margin: 0; display: grid; }
.theme-v3 .xr-topics__grid ol a { display: inline-flex; align-items: center; min-height: 36px; padding-block: 4px; font-size: var(--fs-small); line-height: 1.3; color: var(--text); text-decoration: none; }
@media (hover: hover) {
  .theme-v3 .xr-topics__grid a:hover { color: var(--candle-soft); text-decoration: underline; text-decoration-color: var(--line-strong); }
}
@media (max-width: 1100px) { .theme-v3 .xr-topics__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .theme-v3 .xr-topics__thumb { aspect-ratio: 16 / 10; } }
@media (max-width: 600px) {
  .theme-v3 .xr-topics__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
  .theme-v3 .xr-topics__thumb { aspect-ratio: 1; border-radius: 999px 999px 14px 14px; }
  .theme-v3 .xr-topics__grid ol a { min-height: 44px; }
}

/* chapter opener: a wide photograph with the name set over its lower edge */
.theme-v3 .xr-chapter__hero { position: relative; margin-bottom: clamp(36px, 4.4vw, 64px); }
.theme-v3 .xr-chapter__media { aspect-ratio: 21 / 9; }
.theme-v3 .xr-chapter__hero::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: var(--r-media); pointer-events: none; background: linear-gradient(180deg, transparent 30%, rgb(var(--night-rgb) / .35) 55%, rgb(var(--night-rgb) / .92) 100%), linear-gradient(90deg, rgb(var(--night-rgb) / .55), transparent 65%); }
.theme-v3 .xr-chapter__hero .xr-chapter__head { position: absolute; z-index: 3; left: clamp(20px, 3.4vw, 48px); right: clamp(20px, 3.4vw, 48px); bottom: clamp(18px, 3vw, 40px); margin: 0; }
.theme-v3 .xr-chapter__hero .xr-sub { text-shadow: 0 1px 16px rgb(var(--night-rgb) / .9); }
.theme-v3 .xr-chapter__hero h2 { text-shadow: 0 2px 30px rgb(var(--night-rgb) / .7); }
@media (max-width: 640px) {
  .theme-v3 .xr-chapter__media { aspect-ratio: 4 / 3; }
  .theme-v3 .xr-chapter__hero::after { background: linear-gradient(180deg, transparent 25%, rgb(var(--night-rgb) / .5) 55%, rgb(var(--night-rgb) / .95) 100%); }
}
.theme-v3 .xr-chapter__head { display: grid; gap: 10px; margin-bottom: clamp(32px, 4vw, 56px); position: relative; }
.theme-v3 .xr-chapter__head .xr-submark { width: 56px; margin-bottom: 6px; }
.theme-v3 .xr-chapter__n { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: var(--candle); letter-spacing: .06em; }
.theme-v3 .xr-chapter__head h2 { font-size: clamp(2.8rem, 6vw, 5rem); }

/* topic: editorial image / text row, alternating sides */
.theme-v3 .xr-topic { padding: clamp(32px, 4vw, 56px) 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.theme-v3 .xr-topic--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.theme-v3 .xr-topic--flip .xr-topic__media { order: 2; }
.theme-v3 .xr-topic__media { aspect-ratio: 1; position: sticky; top: calc(var(--head-h) + 32px); }
.theme-v3 .xr-topic__text { display: grid; gap: 14px; align-content: start; min-width: 0; }
.theme-v3 .xr-topic__k { display: flex; align-items: baseline; gap: 12px; font-size: var(--fs-micro); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--muted); font-weight: 500; }
.theme-v3 .xr-topic__n { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; letter-spacing: 0; text-transform: none; color: var(--candle); font-variant-numeric: lining-nums; }
.theme-v3 .xr-topic h3 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.theme-v3 .xr-topic__sub { font-family: var(--font-display); font-style: italic; font-size: 1.35rem; color: var(--candle-soft); line-height: 1.3; }
.theme-v3 .xr-topic__text > .xr-prose p { font-size: clamp(1.08rem, 1.3vw, 1.2rem); color: var(--text-strong); }
@media (max-width: 760px) {
  .theme-v3 .xr-topic, .theme-v3 .xr-topic--flip { grid-template-columns: 1fr; gap: 20px; }
  .theme-v3 .xr-topic__media, .theme-v3 .xr-topic--flip .xr-topic__media { order: 0; position: static; aspect-ratio: 3 / 2; }
}

.theme-v3 .xr-more > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-size: var(--fs-small); font-weight: 500; color: var(--candle-soft);
}
.theme-v3 .xr-more > summary::-webkit-details-marker { display: none; }
.theme-v3 .xr-more > summary::after {
  content: ""; width: 8px; height: 8px; flex: none; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .5s var(--ease-out);
}
.theme-v3 .xr-more[open] > summary::after { transform: rotate(225deg); }
.theme-v3 .xr-more__close { display: none; }
.theme-v3 .xr-more[open] .xr-more__open { display: none; }
.theme-v3 .xr-more[open] .xr-more__close { display: inline; }
@media (hover: hover) { .theme-v3 .xr-more > summary:hover { text-decoration: underline; text-underline-offset: .22em; text-decoration-color: var(--line-strong); } }
.theme-v3 .xr-more > .xr-prose { padding: 8px 0 6px; }
@media (prefers-reduced-motion: no-preference) { .theme-v3 .xr-more[open] > .xr-prose { animation: xr-open .8s var(--ease-warm); } }
@keyframes xr-open { from { opacity: 0; transform: translateY(-6px); } }

.theme-v3 .xr-questions { list-style: none; padding: 4px 0 4px 22px; margin: 0; border-left: 1px solid var(--line-strong); display: grid; gap: 6px; }
.theme-v3 .xr-questions li { font-family: var(--font-display); font-style: italic; font-size: 1.35rem; line-height: 1.3; color: var(--text-strong); }

.theme-v3 .xr-explore { justify-self: start; }
.theme-v3 .xr-explore__k { color: var(--muted); font-weight: 400; }

/* a thought to take with you: a candlelit photograph beside the question */
.theme-v3 .xr-prompt { margin: clamp(32px, 4vw, 56px) 0; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: stretch; border-radius: var(--r-shell); overflow: hidden; background: radial-gradient(70% 90% at 70% 0%, rgb(var(--candle-glow) / .1), transparent 70%), var(--night-deep); box-shadow: inset 0 0 0 1px var(--line); }
.theme-v3 .xr-prompt__media { border-radius: 0; min-height: 320px; }
.theme-v3 .xr-prompt__body { padding: clamp(32px, 5vw, 72px) clamp(24px, 4vw, 56px); display: grid; gap: 14px; align-content: center; justify-items: start; }
.theme-v3 .xr-prompt .label { color: var(--candle); }
.theme-v3 .xr-prompt__q { font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1.2; color: var(--text-strong); max-width: 22ch; text-wrap: balance; }
@media (max-width: 700px) {
  .theme-v3 .xr-prompt { grid-template-columns: 1fr; }
  .theme-v3 .xr-prompt__media { min-height: 0; aspect-ratio: 16 / 10; }
  .theme-v3 .xr-prompt__body { justify-items: center; text-align: center; }
}
.theme-v3 .xr-body .v3-moment .wrap { padding-inline: 0; }

/* rituals: three photo cards */
.theme-v3 .xr-chapter__head--plain { margin-bottom: clamp(32px, 4vw, 56px); }
.theme-v3 .xr-rituals { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.theme-v3 .xr-ritual { border-radius: var(--r-shell); background: var(--ember); box-shadow: inset 0 0 0 1px var(--line); display: grid; align-content: start; overflow: hidden; }
.theme-v3 .xr-ritual__media { aspect-ratio: 4 / 5; border-radius: 0; }
.theme-v3 .xr-ritual__body { padding: clamp(22px, 2.4vw, 32px); display: grid; gap: 16px; align-content: start; }
.theme-v3 .xr-ritual:nth-child(2) .xr-ritual__body { background: radial-gradient(120% 100% at 50% 0%, rgb(var(--candle-glow) / .1), transparent 65%); }
.theme-v3 .xr-ritual h3 { font-size: clamp(1.6rem, 2.2vw, 1.9rem); }
.theme-v3 .xr-ritual ol { list-style: none; padding: 0; margin: 0; display: grid; counter-reset: xr-step; }
.theme-v3 .xr-ritual ol li { counter-increment: xr-step; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 8px; padding: 9px 0; border-top: 1px solid var(--line); font-size: var(--fs-small); color: var(--text); }
.theme-v3 .xr-ritual ol li::before { content: counter(xr-step); font-family: var(--font-display); font-style: italic; color: var(--candle); font-size: 1.05rem; line-height: 1.4; }
.theme-v3 .xr-ritual .link { justify-self: start; }
@media (max-width: 1100px) {
  .theme-v3 .xr-rituals { grid-template-columns: 1fr; }
  .theme-v3 .xr-ritual { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .theme-v3 .xr-ritual__media { aspect-ratio: auto; min-height: 100%; }
}
@media (max-width: 560px) {
  .theme-v3 .xr-ritual { grid-template-columns: 1fr; }
  .theme-v3 .xr-ritual__media { aspect-ratio: 16 / 10; min-height: 0; }
}

/* closing statement */
.theme-v3 .xr-closing { overflow: hidden; isolation: isolate; text-align: center; border-top: 1px solid var(--line); }
.theme-v3 .xr-closing .glow { width: min(900px, 120vw); opacity: .5; }
.theme-v3 .xr-closing__inner { position: relative; z-index: 2; display: grid; gap: 22px; justify-items: center; }
.theme-v3 .xr-closing h2 { max-width: 18ch; }
.theme-v3 .xr-closing .lede { font-family: var(--font-display); font-style: italic; font-size: clamp(1.4rem, 2.2vw, 1.8rem); color: var(--candle-soft); }
.theme-v3 .xr-closing .cta-row { justify-content: center; margin-top: 8px; }

/* html already has scroll-padding-top for the fixed header; on small screens add room for the sticky index bar */
@media (max-width: 999px) { .theme-v3 .xr-sec, .theme-v3 .xr-topic, .theme-v3 .xr-mwlw { scroll-margin-top: 52px; } }
