/* Characters of the Bible (2026-11-04), built on Faces of Faith (2026-11-03). One stylesheet for every series; the palette comes from --accent, --bg, and --tint (r,g,b) set per series. Loaded after the shared fs.css (dark page, gold accent).
   Deck: a fanned stack of every card (Web FX galleries/fanned-card-stack idea); on phones a sideways strip.
   Faces: one depth card per person (Web FX scroll/stacking-cards + cursor-hover/tilt-glare-cards + 3d/depth-parallax-layers
   ideas): the card stays beside its story (sticky), tilts and floats with the scroll, and catches the light under a mouse. */
.stage .dim{background:rgba(5,4,3,.55)}
.fx .step-handoff .panel{text-shadow:0 1px 18px rgba(0,0,0,.6)}

/* ---------- the deck ---------- */
.deck{position:relative;padding:14vh 16px 8vh;background:radial-gradient(70% 60% at 50% 70%,rgb(var(--tint)) 0%,var(--bg) 70%);outline:none;overflow:hidden}
.deck-head{max-width:40rem;margin:0 auto;text-align:center}
.deck-head h2{font-size:clamp(40px,5vw,64px);font-weight:400}
.deck-head p:not(.kicker){margin:18px auto 0;color:var(--ink-2);font:italic 400 clamp(19px,1.6vw,22px)/1.5 var(--serif)}
.fan{list-style:none;margin:4vh auto 0;padding:0;position:relative;height:460px;max-width:1100px}
.fan li{position:absolute;left:50%;bottom:180px;width:170px;margin-left:-85px;
  transform-origin:50% 400%;transform:rotate(calc((var(--i) - (var(--n) - 1) / 2) * var(--step,9.5deg))) translateY(0);transition:transform .6s cubic-bezier(.16,1,.3,1);z-index:calc(10 + var(--i))}
.fan-card{display:flex;flex-direction:column;justify-content:flex-end;gap:6px;padding:0 10px 12px 14px;position:relative;aspect-ratio:4/5;border-radius:14px;overflow:hidden;text-decoration:none;color:#fff;
  box-shadow:0 22px 50px rgba(0,0,0,.6),0 0 0 1px rgba(255,255,255,.08);background:#111}
.fan-card picture{position:absolute;inset:0;display:block}
.fan-card img{display:block;width:100%;height:100%;object-fit:cover}
.fan-card>img{position:absolute;inset:0}
.fan-card::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 52%,rgba(0,0,0,.85))}
.fan-name,.fan-yrs{position:relative;z-index:1}  /* 2026-11-08: in flow, so a two-line era never runs into the name */
.fan-name{font:500 21px/1 var(--serif)}
.fan-yrs{font:500 9.5px/1.2 var(--sans);letter-spacing:.14em;text-transform:uppercase;color:rgba(255,255,255,.7)}
@media (hover:hover) and (pointer:fine){
  .fan li:hover,.fan li:focus-within{transform:rotate(calc((var(--i) - (var(--n) - 1) / 2) * var(--step,9.5deg))) translateY(-40px) scale(1.06);z-index:40}
}
.fan li:focus-within{z-index:40}
/* the fan opens as it comes into view (faces.js adds .open); without JS it is open */
html.fx .fan:not(.open) li{transform:rotate(0) translateY(30px)}
html.fx .fan:not(.open) li{transition-duration:0s}
html.fx .fan.open li{transition-delay:calc(var(--i) * 45ms)}

/* ---------- one depth card per person ---------- */
.faces{position:relative}
.face{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(32px,6vw,96px);max-width:1180px;margin:0 auto;padding:12vh clamp(20px,4vw,48px);align-items:start;
  border-top:1px solid var(--line)}
.face.r .face-stick{order:2}
.face-stick{position:sticky;top:8vh;perspective:1100px}
/* 2026-11-08: the card is flat (no preserve-3d). With the plate lifted 60px in 3D, a tilt toward a corner or edge swung part of the
   plate behind the portrait plane and the name and role vanished. The card still tilts as one piece under its parent's perspective. */
.face-card{position:relative;transform-style:flat;will-change:transform;border-radius:20px}
.face-pic{position:relative;margin:0;aspect-ratio:4/5;border-radius:20px;overflow:hidden;background:#0d0c0b;
  box-shadow:0 40px 90px rgba(0,0,0,.65),0 0 0 1px rgba(255,255,255,.07)}
.face-pic picture{position:absolute;inset:-6% 0;display:block}
.face-pic img{display:block;width:100%;height:100%;object-fit:cover;will-change:transform}
.face-pic::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 55%,rgba(5,4,3,.9));pointer-events:none}
.glare{position:absolute;inset:0;pointer-events:none;opacity:0;transition:opacity .4s;
  background:radial-gradient(60% 50% at var(--gx,50%) var(--gy,30%),rgba(255,236,200,.22),transparent 70%);mix-blend-mode:screen}
.face-card.hot .glare{opacity:1}
.face-plate{position:absolute;z-index:2;left:clamp(18px,2.4vw,30px);right:18px;bottom:clamp(18px,2.4vw,28px);pointer-events:none;will-change:transform;transition:transform .18s ease-out}
html.fx .face-plate{filter:drop-shadow(0 12px 18px rgba(0,0,0,.55))}
.face-plate .lab{margin:0 0 8px;font:500 10.5px/1.3 var(--sans);letter-spacing:.22em;text-transform:uppercase;color:rgba(255,255,255,.72)}
.face-plate .lab span{color:var(--accent);margin-right:.7em}
.face-plate h2{font-size:clamp(44px,5.4vw,78px);line-height:.92;color:#fbf3e3;text-shadow:0 4px 30px rgba(0,0,0,.6)}
.face-plate .role{margin:10px 0 0;font:400 15px/1.4 var(--sans);color:rgba(255,255,255,.82)}
.face-plate .role span{display:block;font-size:13px;color:rgba(255,255,255,.6)}
.art-note{margin:14px 4px 0;font-size:12px;line-height:1.5;color:var(--ink-3)}

.face-text{padding-top:4vh;max-width:34rem}
.front{margin:0;font:400 clamp(24px,2.3vw,32px)/1.3 var(--serif);color:var(--ink);text-wrap:pretty}
.story p{margin:20px 0 0;color:var(--ink-2);font-size:16.5px;line-height:1.7;text-wrap:pretty}
.said{margin:34px 0 0;padding:26px 0 0;border-top:1px solid var(--line)}
.said p{margin:0;font:italic 400 clamp(26px,2.5vw,34px)/1.25 var(--serif);color:#f6ead2}
.said cite{display:block;margin-top:12px;font:500 10.5px/1.3 var(--sans);font-style:normal;letter-spacing:.2em;text-transform:uppercase;color:var(--accent)}
.said-note{display:block;margin-top:8px;font-size:13px;line-height:1.5;color:var(--ink-3)}
.why{margin:20px 0 0;color:var(--ink-2);font-size:16px;line-height:1.65}
.why b{display:block;font:500 10px/1 var(--sans);letter-spacing:.2em;text-transform:uppercase;color:var(--accent);margin-bottom:8px}
.next{margin:28px 0 0}
.next a{font:500 11px/1 var(--sans);letter-spacing:.18em;text-transform:uppercase;color:var(--ink-2);text-underline-offset:5px}
.next a::after{content:"  \2193";letter-spacing:0}

/* table */
.tablewrap{overflow-x:auto;margin-top:26px}
table.ev{width:100%;border-collapse:collapse;font-size:15px}
table.ev th,table.ev td{text-align:left;vertical-align:top;padding:12px 14px 12px 0;border-bottom:1px solid var(--line)}
table.ev thead th{font:500 10.5px/1.3 var(--sans);letter-spacing:.2em;text-transform:uppercase;color:var(--ink-3)}
table.ev tbody th{font-weight:500;color:var(--ink);white-space:nowrap}
table.ev td{color:var(--ink-2)}

/* text mode and reduced motion: everything still, cards at rest */
html:not(.fx) .face-card,html:not(.fx) .face-pic img,html:not(.fx) .face-plate{transform:none!important}

@media (max-width:760px){
  .deck{padding:10vh 0 6vh}
  .deck-head{padding:0 16px}
  .fan{height:auto;display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;padding:6px 16px 18px;margin-top:5vh;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  .fan::-webkit-scrollbar{display:none}
  .fan li,html.fx .fan:not(.open) li,html.fx .fan.open li{position:relative;left:auto;bottom:auto;margin:0;flex:0 0 42vw;transform:none;scroll-snap-align:start;transition:none}
  .face{grid-template-columns:1fr;gap:22px;padding:9vh 16px}
  .face.r .face-stick{order:0}
  .face-stick{position:relative;top:auto}
  .face-text{padding-top:0}
  .face-plate h2{font-size:48px}
  .front{font-size:24px}
}
@media print{.deck,.faces,.after,.invite{display:none!important}}
.fx .step-title .cue{color:#d9cfbf;text-shadow:0 1px 10px #000,0 0 3px #000}

/* ---------- Characters of the Bible additions (2026-11-04) ---------- */
html,body{background:var(--bg)}
.faces{background:radial-gradient(120% 50% at 50% 0%,rgba(var(--tint),.55),transparent 60%)}
.p-none{background:radial-gradient(80% 70% at 50% 60%,rgb(var(--tint)),var(--bg))}
.draft{display:inline-block;margin-left:.8em;padding:4px 9px;border:1px solid var(--accent);border-radius:999px;font-size:9.5px;letter-spacing:.18em;color:var(--ink)}
.lbl{margin:30px 0 0;font:500 10.5px/1.3 var(--sans);letter-spacing:.22em;text-transform:uppercase;color:var(--accent)}
.lbl em{font-style:normal;color:var(--ink-3);letter-spacing:.14em;margin-left:.8em;text-transform:none;font-size:11.5px}
.body{margin:10px 0 0;color:var(--ink-2);font-size:16.5px;line-height:1.7;text-wrap:pretty}
.refs{list-style:none;margin:10px 0 0;padding:0;border-top:1px solid var(--line)}
.refs li{border-bottom:1px solid var(--line)}
.refs summary,.refs .norefs{display:flex;gap:12px;align-items:baseline;padding:12px 0;min-height:44px;cursor:pointer;list-style:none;color:var(--ink-2);font-size:15px;line-height:1.45}
.refs .norefs{cursor:default}
.refs summary::-webkit-details-marker{display:none}
.refs b{flex:0 0 auto;min-width:8.2em;font:500 12.5px/1.45 var(--sans);letter-spacing:.04em;color:var(--ink)}
.refs summary::after{content:"+";margin-left:auto;padding-left:10px;color:var(--accent);font:400 18px/1 var(--sans)}
.refs details[open] summary::after{content:"\2212"}
.refs .kjv{padding:0 0 16px;color:var(--ink);font:400 18.5px/1.55 var(--serif)}
.refs .kjv sup{font:500 10px/1 var(--sans);color:var(--accent);margin-right:2px}
.face-text .verse{margin-top:30px}
.ask{position:relative;margin:30px 0 0;padding:22px 22px 24px;border-radius:16px;background:linear-gradient(135deg,rgba(var(--tint),.9),rgba(255,255,255,.03));border:1px solid rgba(255,255,255,.08)}
.ask::before{content:"";position:absolute;left:22px;top:0;width:40px;height:2px;background:var(--accent)}
.ask-k{margin:0;font:500 10.5px/1.3 var(--sans);letter-spacing:.22em;text-transform:uppercase;color:var(--accent)}
.ask-q{margin:10px 0 0;font:italic 400 clamp(23px,2.1vw,28px)/1.3 var(--serif);color:var(--ink);text-wrap:pretty}
.also{margin:16px 0 0;font-size:14px;color:var(--ink-3)}
.nopic{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;background:radial-gradient(70% 60% at 50% 40%,rgb(var(--tint)),#050505)}
.nopic b{font:400 clamp(60px,9vw,120px)/1 var(--serif);color:var(--accent);opacity:.8}
.nopic i{font:500 10px/1 var(--sans);font-style:normal;letter-spacing:.2em;text-transform:uppercase;color:var(--ink-3)}
.fan-card .nopic b{font-size:56px}
table.ev td:last-child{font-style:italic}
@media (max-width:760px){.refs b{min-width:7.4em}.ask{padding:20px 18px 22px}}
@media print{.refs details{display:block}.refs .kjv{display:none}}
/* bright plates (morning lake, doorway light) are dimmed per series so the title always reads */
.stage .p-title img,.step-title .still img{filter:brightness(var(--plate-dim,1))}
.fx .step-title .panel{text-shadow:0 2px 24px rgba(0,0,0,.55)}

/* 2026-11-09 phones (Anthony's iPhone: small labels over bright photos could not be read, and the low card hid the picture).
   Labels: every small label over a picture sits on 80% black or more (4.5:1 or better even on a white sky).
   Framing: snap.js rests each beat with the card low, so the series plate is lifted per series (--L) and its new bottom edge
   melts into the dark (--F). chars.js sets --chk on the stage (0 on the title beat, 1 from the first card on), so the opening
   picture is untouched and the lift eases in as the reader leaves the title. */
@media (max-width:760px){
  /* the series name wraps to two lines rather than being cut (Spanish buttons are wider) */
  .fx .brand{flex:1 1 auto;min-width:0;max-width:none;overflow:visible;white-space:normal}
  .fx .brand span{display:inline-block;background:rgba(8,8,10,.82);border-radius:12px;padding:5px 8px;line-height:1.3;
    letter-spacing:.08em;font-size:10px;white-space:normal;vertical-align:middle}
  .fx .top{gap:8px}
  /* the darker accents (Villains red) are lifted toward white for small labels, so they pass on the band too */
  .fx .brand span,.fx .step-title .kicker{color:var(--accent);color:color-mix(in srgb,var(--accent) 65%,#fff)}
  .fx .top-tools{flex:0 0 auto}
  .tbtn{background:rgba(8,8,10,.82)}
  .lsw{background:rgba(7,8,11,.86)}
  /* title beat: a soft dark band behind the kicker, title, lede, and cue */
  .fx .step-title .panel{position:relative;isolation:isolate}
  .fx .step-title .panel::before{content:"";position:absolute;z-index:-1;left:-14px;right:-14px;top:-44px;bottom:-30px;pointer-events:none;
    background:linear-gradient(180deg,rgba(8,8,10,0) 0,rgba(8,8,10,.8) 44px,rgba(8,8,10,.8) calc(100% - 30px),rgba(8,8,10,0) 100%)}
  .fx .step-title .cue{color:#d9cfbf}
  /* the cards are solid on phones, so the plate needs far less dimming above them */
  .stage .dim{background:rgba(5,4,3,.22)}
  .fx .stage .p-title img{--lift:calc(var(--L,0%) * var(--chk,0));--fade:calc(var(--F,30%) * var(--chk,0))}
  .fx .stage .p-title img[src*="plate-brothers-"]{--L:-40%}   /* the coat on the stones */
  .fx .stage .p-title img[src*="plate-followers-"]{--L:-10%}  /* the village and the road */
  .fx .stage .p-title img[src*="plate-kings-"]{--L:-28%}      /* the throne in the shaft of light */
  .fx .stage .p-title img[src*="plate-prophets-"]{--L:-42%}   /* the fire */
  .fx .stage .p-title img[src*="plate-twelve-"]{--L:-32%}     /* the boat on the shore */
  .fx .stage .p-title img[src*="plate-unlikely-"]{--L:-35%}   /* the basket of loaves */
  .fx .stage .p-title img[src*="plate-villains-"]{--L:-22%}   /* the dark throne */
  .fx .stage .p-title img[src*="plate-women-"]{--L:-25%}      /* the doorway and the jar */
  /* fan cards: the name and era sit on 80% black or more */
  .fan-card::after{background:linear-gradient(180deg,transparent 36%,rgba(0,0,0,.82) 64%,rgba(0,0,0,.9))}
  .fan-yrs{color:rgba(255,255,255,.78)}
  /* person cards: the label, name, and role sit on 80% black or more (the plate also drifts up to 16px with the scroll) */
  .face-pic::after{background:linear-gradient(180deg,transparent 44%,rgba(5,4,3,.82) 62%,rgba(5,4,3,.92))}
}
