/* Ecclesia Christi / Paraklet Edition 1.1.0
   Book-cover art direction: tessellated gold, bronze, umber, parchment, oxblood.
   Retains existing WordPress / EmbedSection / Section Order architecture.
   The site palette is still owned by the established Scarame Customizer vars. */
:root {
  --ecclesia-umber:#21170f;
  --ecclesia-brown:#352218;
  --ecclesia-brown-deep:#160e0b;
  --ecclesia-copper:#935c37;
  --ecclesia-gold:#c6a170;
  --ecclesia-bright-gold:#e6ce9b;
  --ecclesia-ivory:#f5e9d5;
  --ecclesia-oxblood:#682d2a;
  --ecclesia-serif:Georgia,'Iowan Old Style','Palatino Linotype',serif;
  --ecclesia-tesserae:url('../ecclesia/paraklet/mosaik-textur.webp');
}
body.ecclesia-christi-theme {
  background:var(--scarame-bg);
  font-family:'Segoe UI',system-ui,-apple-system,sans-serif;
  letter-spacing:.004em;
}
.ecclesia-christi-theme .scarame-container {max-width:min(var(--scarame-max-width),1260px)}
.ecclesia-christi-theme :is(a,button,input,textarea,select):focus-visible {outline:2px solid var(--ecclesia-bright-gold);outline-offset:4px;}
/* Header: preserve WP menu, search and standard native controls. */
.ecclesia-christi-theme .scarame-site-header {
  background:rgba(31,20,15,.94);border-bottom:1px solid rgba(217,174,111,.29);
  box-shadow:0 3px 30px rgba(0,0,0,.12);
}
.ecclesia-christi-theme.scarablog-cinema .scarame-site-header {
  background:rgba(31,20,15,.94);border-color:rgba(217,174,111,.29);
}
.ecclesia-christi-theme .scarame-header-inner {min-height:83px;}
.ecclesia-christi-theme .scarame-brand {
  display:inline-flex;align-items:center;gap:13px;
  font:400 clamp(1rem,1.5vw,1.4rem)/1.1 var(--ecclesia-serif);
  text-transform:none;letter-spacing:.075em;color:var(--ecclesia-ivory);
}
.ecclesia-christi-theme .scarame-brand:hover {color:var(--ecclesia-bright-gold)}
.ecclesia-christi-theme .ecclesia-logo-badge,
.ecclesia-christi-theme .ecclesia-footer-spiral {
  display:inline-grid;place-items:center;flex:none;
  width:48px;height:48px;aspect-ratio:1;border-radius:50%;
  border:1px solid rgba(244,221,170,.68);
  background:radial-gradient(circle at 30% 25%,#f1e0bd,#bc9157 85%);
  box-shadow:inset 0 0 0 3px rgba(56,33,17,.09),0 5px 22px rgba(0,0,0,.28);
}
.ecclesia-christi-theme .ecclesia-brand-seal {height:35px;width:35px;max-height:none;object-fit:contain;filter:none;opacity:1}
.ecclesia-christi-theme .scarame-nav a {font-size:.73rem;font-weight:650;letter-spacing:.12em;text-transform:uppercase;}
.ecclesia-christi-theme .scarame-nav a:hover {color:var(--ecclesia-bright-gold);}
.ecclesia-christi-theme .scarame-header-icon {color:var(--ecclesia-ivory)}
/* Deep mosaic textures unify the entire scrolling surface. */
.ecclesia-christi-theme .scarablog-atmosphere {
 background:
  radial-gradient(ellipse 62% 70% at 92% 17%,rgba(174,104,45,.17),transparent 76%),
  radial-gradient(ellipse 72% 75% at 9% 73%,rgba(98,42,34,.17),transparent 80%),
  linear-gradient(145deg,#291b13 0%,#1b120f 47%,#251910 100%);
}
.ecclesia-christi-theme .scarablog-atmosphere::before {
 content:"";position:absolute;inset:0;background-image:var(--ecclesia-tesserae);
 background-size:480px auto;opacity:.055;filter:sepia(.55);mix-blend-mode:screen;
 pointer-events:none;
}
.ecclesia-christi-theme .scarablog-atmosphere .scarablog-mesh {opacity:.09;background-size:42px 42px;}
.ecclesia-christi-theme .scarablog-halo {box-shadow:0 0 100px rgba(185,113,58,.11),inset 0 0 85px rgba(155,112,59,.05);}
/* Opening: not a generic greeting. The supplied cover is the primary visual anchor. */
.ecclesia-christi-theme .scarablog-opening {
  isolation:isolate;min-height:max(720px,calc(100svh - 83px));padding:115px 0 145px;
  background:
    linear-gradient(90deg,rgba(28,17,12,.93) 0%,rgba(36,23,15,.91) 40%,rgba(31,20,14,.72) 70%,rgba(37,24,16,.78) 100%),
    var(--ecclesia-hero-image,var(--ecclesia-tesserae));
  background-size:cover,cover;background-position:center,center 35%;
}
.ecclesia-christi-theme .scarablog-opening::before {
 background:
    radial-gradient(ellipse 44% 57% at 78% 40%,rgba(230,172,91,.17),transparent 76%),
    linear-gradient(0deg,rgba(24,16,12,.42),transparent 18%,transparent 75%,rgba(23,14,11,.23));
}
.ecclesia-christi-theme .scarablog-opening-lines {right:3%;top:0;opacity:.20;width:min(58vw,850px);}
.ecclesia-christi-theme .scarablog-opening-lines span {border-color:var(--ecclesia-gold);}
.ecclesia-christi-theme .scarablog-opening-content {
  z-index:5;max-width:1260px;pointer-events:auto;
  padding-right:min(40vw,545px);
}
.ecclesia-christi-theme .scarablog-eyebrow {
  color:var(--ecclesia-bright-gold);font:650 .68rem/1.7 system-ui,sans-serif;
  letter-spacing:.23em;text-transform:uppercase;
}
.ecclesia-christi-theme .scarablog-eyebrow::before {width:28px;margin-right:12px;background:var(--ecclesia-gold)}
.ecclesia-christi-theme .scarablog-title {
  font:400 clamp(3.9rem,7vw,7.2rem)/1.035 var(--ecclesia-serif);
  letter-spacing:-.048em;color:var(--ecclesia-ivory);
  margin:0 0 26px;max-width:10ch;text-wrap:balance;
  text-shadow:0 6px 35px rgba(0,0,0,.34);
}
.ecclesia-christi-theme .scarablog-lead {
  max-width:35ch;margin-bottom:34px;
  font:italic 400 clamp(1.08rem,1.65vw,1.48rem)/1.52 var(--ecclesia-serif);
  color:#dfc8a6;letter-spacing:.005em;
}
.ecclesia-christi-theme .scarablog-featured-link {
  max-width:465px;background:rgba(35,21,15,.79);
  border-left:2px solid var(--ecclesia-gold);border-top:1px solid rgba(198,161,112,.30);
  border-right:1px solid rgba(198,161,112,.30);border-bottom:1px solid rgba(198,161,112,.30);
  border-radius:1px 11px 11px 1px;box-shadow:0 17px 60px rgba(0,0,0,.18);
}
.ecclesia-christi .scarablog-featured-link:hover,
.ecclesia-christi-theme a.scarablog-featured-link:hover {border-color:var(--ecclesia-bright-gold);background:rgba(49,30,20,.92)}
.ecclesia-christi-theme .scarablog-featured-overline {font-size:.66rem;font-weight:600;letter-spacing:.17em;color:var(--ecclesia-bright-gold)}
.ecclesia-christi-theme .scarablog-featured-name {font:400 clamp(1.15rem,1.9vw,1.42rem)/1.22 var(--ecclesia-serif);}
.ecclesia-christi-theme .scarablog-featured-empty {opacity:1;}
.ecclesia-christi-theme .scarablog-scroll-prompt {font-size:.64rem;letter-spacing:.22em;color:#dfc7aa;}
.ecclesia-christi-theme .scarablog-mouse {border-radius:14px;width:22px;height:35px;transform:none;}
.ecclesia-christi-theme .scarablog-mouse::after {transform:none;}
.ecclesia-christi-theme .scarablog-opening-counter {font-size:.58rem;color:#c3a984;letter-spacing:.25em;}
/* Real book-cover image: text in artwork remains completely unaltered. */
.ecclesia-christi-theme .ecclesia-book-visual {
  position:absolute;z-index:3;right:clamp(4%,8vw,12%);top:51%;
  transform:translateY(-51%);width:min(30vw,400px);margin:0;
  perspective:1500px;pointer-events:none;
}
.ecclesia-christi-theme .ecclesia-book-aureole {
  position:absolute;inset:-13% -28%;border-radius:50%;
  background:radial-gradient(circle,rgba(209,152,77,.22),rgba(197,129,70,.07) 45%,transparent 72%);
  filter:blur(16px);
}
.ecclesia-christi-theme .ecclesia-book-visual img {
 position:relative;width:100%;height:auto;
 transform:perspective(1050px) rotateY(-8deg) rotateZ(1deg);
 border:1px solid rgba(249,213,156,.34);
 box-shadow:-30px 32px 82px rgba(0,0,0,.66),-9px 12px 22px rgba(0,0,0,.38),0 0 50px rgba(215,157,88,.17);
}
.ecclesia-christi-theme .ecclesia-book-visual figcaption {
  text-align:center;font:600 .56rem/2 system-ui,sans-serif;letter-spacing:.19em;
  color:#d6ba91;margin-top:15px;
}
.ecclesia-christi-theme .ecclesia-book-visual figcaption span {padding:0 8px;color:#9e744d}
/* Scroll chapters: familiar rounded EmbedSections, new cover-art texture. */
.ecclesia-christi-theme .scarablog-scene {
  min-height:90svh;position:relative;
  background:linear-gradient(180deg,rgba(46,28,19,.10),rgba(25,15,12,.25));
}
.ecclesia-christi-theme .scarablog-scene-glow {opacity:.42}
.ecclesia-christi-theme .scarablog-scene--1 .scarablog-scene-glow {background:radial-gradient(ellipse 67% 78% at 18% 50%,rgba(160,105,54,.15),transparent 76%)}
.ecclesia-christi-theme .scarablog-scene--2 .scarablog-scene-glow {background:radial-gradient(ellipse 65% 73% at 83% 37%,rgba(209,153,76,.16),transparent 76%)}
.ecclesia-christi-theme .scarablog-scene--3 .scarablog-scene-glow {background:radial-gradient(ellipse 64% 75% at 11% 61%,rgba(104,45,42,.15),transparent 75%)}
.ecclesia-christi-theme .scarablog-scene .scarame-embed-section-shell,
.ecclesia-christi-theme .scarablog-scene .scarame-card {
  border-color:rgba(204,155,98,.22);
  background:linear-gradient(135deg,rgba(55,35,25,.92),rgba(39,25,19,.91));
  box-shadow:0 24px 80px rgba(0,0,0,.25);
}
.ecclesia-christi-theme .scarame-embed-section-shell {border-radius:var(--scarame-radius);}
.ecclesia-christi-theme .scarablog-demo-layout {grid-template-columns:.94fr 1.06fr;gap:clamp(36px,5vw,90px)}
.ecclesia-christi-theme .scarablog-demo-text h2 {
  max-width:14ch;margin-bottom:27px;
  font:400 clamp(3.1rem,5.8vw,6.2rem)/1.065 var(--ecclesia-serif);
  letter-spacing:-.049em;color:var(--ecclesia-ivory);
}
.ecclesia-christi-theme .scarablog-demo-text>p:not(.scarablog-eyebrow) {
  max-width:48ch;font-size:1.03rem;line-height:1.84;color:#d7c4ad;
}
.ecclesia-christi-theme .scarablog-editor-demo .scarablog-demo-layout img {
  width:min(100%,475px);height:min(55vw,560px);min-height:360px;
  border:1px solid rgba(233,186,120,.27);
  border-radius:170px 170px 14px 14px;object-fit:cover;
  box-shadow:0 32px 90px rgba(0,0,0,.40),0 0 58px rgba(180,116,62,.09);
  filter:sepia(.13) saturate(.88);
}
.ecclesia-christi-theme .scarablog-demo-layout--reverse img {border-radius:14px 150px 14px 14px;object-position:center 45%;}
.ecclesia-christi-theme .scarablog-chapter-bottom {font-size:.61rem;letter-spacing:.27em;color:#b49b80;}
.ecclesia-christi-theme .scarablog-demo-button {
  padding:12px 24px;border:1px solid rgba(225,183,117,.5);
  border-radius:7px;color:var(--ecclesia-bright-gold);font-size:.76rem;letter-spacing:.08em;
}
.ecclesia-christi-theme .scarablog-demo-button:hover {background:rgba(210,156,86,.09);}
/* The WordPress content templates gain matching typography. */
.ecclesia-christi-theme :is(.scarame-blog-section-header h1,.scarame-blog-section-header h2,.scarame-page-title,.scarame-blog-single h1,.scarame-blog-card h3) {
  font-family:var(--ecclesia-serif);font-weight:400;letter-spacing:-.045em;
}
.ecclesia-christi-theme.scarablog-cinema .scarame-blog-section-header h2 {font-size:clamp(3rem,5.5vw,5.7rem);line-height:1.12;}
.ecclesia-christi-theme .scarame-blog-card {border:1px solid rgba(204,155,98,.25);border-radius:12px;}
.ecclesia-christi-theme .scarame-blog-card-cover {aspect-ratio:1.48;}
.ecclesia-christi-theme .scarame-blog-card img.ecclesia-post-placeholder {object-fit:cover;filter:sepia(.15)}
.ecclesia-christi-theme .scarame-blog-single {border-top:1px solid rgba(204,155,98,.2)}
.ecclesia-christi-theme .scarame-blog-single-head {text-align:center;}
.ecclesia-christi-theme .scarame-blog-single-content {font-family:var(--ecclesia-serif);font-size:1.19rem;line-height:1.82;}
.ecclesia-christi-theme .scarame-blog-single-content :is(h2,h3) {font-weight:400;color:var(--ecclesia-ivory)}
.ecclesia-christi-theme .scarame-blog-intro {font-family:var(--ecclesia-serif);font-style:italic}
.ecclesia-christi-theme .scarame-blog-close {border-radius:50%;}
.ecclesia-christi-theme :is(.scarame-page-card,.scarame-blog-article) {border-color:rgba(204,155,98,.22)}
/* The original WP footer remains THE footer; no duplicate rail/bar. */
.ecclesia-christi-theme .scarame-site-footer {
  background:linear-gradient(180deg,#24170f,#180f0c);
  border-top:1px solid rgba(210,162,100,.27);
}
.ecclesia-christi-theme .scarame-footer-brand h2 {font:400 1.55rem/1.2 var(--ecclesia-serif);}
.ecclesia-christi-theme .scarame-footer-brand-head {gap:13px;}
.ecclesia-christi-theme .ecclesia-footer-spiral {width:37px;height:37px;}
.ecclesia-christi-theme .ecclesia-footer-spiral img {height:28px;width:28px;object-fit:contain}
.ecclesia-christi-theme .scarame-footer-column h3 {font-size:.75rem;text-transform:uppercase;letter-spacing:.13em;color:var(--ecclesia-bright-gold)}
.ecclesia-christi-theme .ecclesia-footer-menu-hint {opacity:.5;font-size:.8rem;}
/* Shared scroll motif: black, exactly 3 arms, turning clockwise on bronze disc. */
.ecclesia-christi-theme.scarablog-cinema .scarame-scroll-object--background {left:84%;top:46%;filter:none;}
.ecclesia-christi-theme.scarablog-cinema .scarame-scroll-object--demo {width:min(var(--scarame-scroll-size),36vw);height:min(var(--scarame-scroll-size),67vh);}
.ecclesia-christi-theme.scarablog-cinema .scarame-scroll-object--demo img {filter:drop-shadow(0 8px 28px rgba(14,8,5,.4))}
.ecclesia-christi-theme.scarablog-cinema .scarame-scroll-object--center {filter:none}
.ecclesia-christi-theme .scarablog-chapter-rail a[aria-current="location"]>span {box-shadow:0 0 16px rgba(220,173,104,.65)}
/* Mobile layout: art belongs *below* copy, not on top of it. */
@media(max-width:1000px){
 .ecclesia-christi-theme .scarablog-opening-content {padding-right:min(39vw,400px)}
 .ecclesia-christi-theme .scarablog-title {font-size:clamp(3.5rem,7.5vw,6.1rem)}
 .ecclesia-christi-theme .ecclesia-book-visual {width:min(34vw,340px);right:3.5%}
 .ecclesia-christi-theme .scarablog-demo-layout {grid-template-columns:1fr 1fr;gap:28px}
 .ecclesia-christi-theme .scarablog-editor-demo .scarablog-demo-layout img {height:450px;min-height:0}
}
@media(max-width:680px){
 .ecclesia-christi-theme .scarame-header-inner {min-height:69px}
 .ecclesia-christi-theme .ecclesia-logo-badge {width:37px;height:37px}
 .ecclesia-christi-theme .ecclesia-brand-seal {height:28px;width:28px}
 .ecclesia-christi-theme .scarame-brand {font-size:.98rem;letter-spacing:.035em;gap:9px}
 .ecclesia-christi-theme .scarablog-opening {min-height:0;padding:83px 0 110px;display:flex;flex-direction:column;gap:44px;align-items:stretch;
   background-image:linear-gradient(180deg,rgba(29,18,13,.88),rgba(29,18,13,.86)),var(--ecclesia-hero-image,var(--ecclesia-tesserae));}
 .ecclesia-christi-theme .scarablog-opening-content {width:calc(100% - 42px);max-width:none;padding:0;margin-inline:auto}
 .ecclesia-christi-theme .scarablog-title {font-size:clamp(3.45rem,11vw,4.8rem);line-height:1.06;max-width:12ch}
 .ecclesia-christi-theme .scarablog-lead {font-size:1.16rem;max-width:33ch;}
 .ecclesia-christi-theme .scarablog-featured-link {max-width:100%;}
 .ecclesia-christi-theme .scarablog-scroll-prompt {bottom:24px;left:21px}
 .ecclesia-christi-theme .scarablog-opening-counter {display:none}
 .ecclesia-christi-theme .ecclesia-book-visual {position:relative;top:auto;right:auto;transform:none;margin:0 auto 15px;width:min(53vw,280px);}
 .ecclesia-christi-theme .ecclesia-book-visual figcaption {white-space:normal;font-size:.54rem}
 .ecclesia-christi-theme .scarablog-demo-layout {grid-template-columns:1fr;gap:36px;}
 .ecclesia-christi-theme .scarablog-demo-text h2 {font-size:clamp(3rem,10.8vw,4.7rem)}
 .ecclesia-christi-theme .scarablog-editor-demo .scarablog-demo-layout img {width:min(80vw,380px);height:380px;min-height:0;margin-inline:auto;}
 .ecclesia-christi-theme.scarablog-cinema .scarame-scroll-object--background {left:87%;top:34%;}
 .ecclesia-christi-theme.scarablog-cinema .scarame-scroll-object--demo {width:min(260px,57vw);height:min(260px,57vw)}
 .ecclesia-christi-theme.scarablog-cinema .scarame-scroll-object--demo img {opacity:.4}
}
@media(max-width:390px){
 .ecclesia-christi-theme .scarablog-title {font-size:3.28rem}
 .ecclesia-christi-theme .ecclesia-book-visual {width:61vw}
}
@media(prefers-reduced-motion:reduce){
 .ecclesia-christi-theme .ecclesia-book-visual img {transform:none}
 .ecclesia-christi-theme .scarablog-scene * {scroll-behavior:auto}
}
@media print {
 .ecclesia-christi-theme .scarablog-opening {background:#fff!important;color:#111}
 .ecclesia-christi-theme .ecclesia-book-visual {position:static;transform:none;width:170px;}
}
