/* Angelwhite / Angelblack — direction Sora (10-Design/directions/02-sora). Le côté est porté par html[data-side].
   Mouvement en transform/opacity uniquement ; --sy (défilement en px, posé par motion.js) pilote la parallaxe ;
   rien ne bouge sans la classe .alive (posée par motion.js, jamais avec « réduire les animations »). */
:root, [data-side="white"] {
  --sky-1: #86bdea; --sky-2: #bfdff7; --sky-3: #e9f4fc;
  --paper: #ffffff; --cloud-far: rgba(255,255,255,.55); --cloud-mid: rgba(255,255,255,.85); --cloud-near: #ffffff; --puff: rgba(255,255,255,.9);
  --ink: #1d2946; --soft: #55607a; --accent: #e891ab; --accent-ink: #a8395f; --hair: #dbe6f1;
  --wing-fill: #ffffff; --wing-line: #2a3a62; --halo: #e9b949; --orb: rgba(255,248,220,.95); --stars: 0;
  --f-head: "Shippori Mincho B1", "Hiragino Mincho ProN", serif; --f-text: "Zen Maru Gothic", system-ui, sans-serif;
  --sy: 0;
}
[data-side="black"] {
  --sky-1: #050817; --sky-2: #120f33; --sky-3: #261a48;
  --paper: #0d0b1d; --cloud-far: rgba(84,64,150,.28); --cloud-mid: rgba(38,28,78,.85); --cloud-near: #0d0b1d; --puff: rgba(70,56,130,.45);
  --ink: #ece8f7; --soft: #aaa3c4; --accent: #e0577a; --accent-ink: #f08aa4; --hair: #2a2547;
  --wing-fill: #120f26; --wing-line: #d9d3ef; --halo: #e0577a; --orb: #f3e7ff; --stars: 1;
}
* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); transition: background .8s, color .8s; }
body { margin: 0; font: 400 1rem/1.85 var(--f-text); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 4px; border-radius: 4px; }
.col { width: min(700px, 100% - 40px); margin-inline: auto; }

/* Le ciel et ses plans de profondeur */
.sky { position: relative; min-height: min(92vh, 860px); overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 48%, var(--sky-3) 78%, var(--paper) 100%); transition: background .8s; }
.plane { position: absolute; inset: 0; pointer-events: none; will-change: transform; }
.stars { opacity: var(--stars); transition: opacity .8s; transform: translateY(calc(var(--sy) * .8px)); }
.stars i { position: absolute; border-radius: 50%; background: #fff; animation: twinkle 4s ease-in-out infinite; }
.stars .shoot { position: absolute; top: 14%; left: 70%; width: 120px; height: 1.5px; border-radius: 2px; opacity: 0;
  background: linear-gradient(90deg, transparent, #fff); transform: rotate(-24deg); }
.orb { position: absolute; right: 12%; top: 13%; width: 96px; height: 96px; border-radius: 50%; transition: background .8s, box-shadow .8s, filter .8s;
  background: radial-gradient(circle, var(--orb) 0 30%, transparent 70%); filter: blur(2px); }
.orbs { transform: translateY(calc(var(--sy) * .7px)); }
.orb-glow { position: absolute; right: 12%; top: 13%; width: 96px; height: 96px; transform: scale(2.4); }
[data-side="black"] .orb { background: transparent; filter: none; box-shadow: 20px -12px 0 0 var(--orb); }
[data-side="black"] .orb-glow { transform: none; }
.puffs { z-index: 0; filter: blur(.7px); transform: translateY(calc(var(--sy) * .55px)); }
.puffs span { position: absolute; left: 0; width: 220px; fill: var(--puff); transition: fill .8s; }
.puffs span:nth-child(1) { top: 22%; width: 180px; }
.puffs span:nth-child(2) { top: 38%; width: 240px; opacity: .8; }
.puffs span:nth-child(3) { top: 12%; width: 130px; opacity: .7; }
.puffs svg { display: block; width: 100%; }

header.top { position: relative; z-index: 5; }
header.top .bar { width: min(1180px, 100% - 40px); margin-inline: auto; display: flex; align-items: center; gap: 26px; padding-top: 26px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.25rem var(--f-head); letter-spacing: .04em; }
.brand .mark { width: 30px; height: 30px; color: var(--halo); }
nav.main { margin-left: auto; display: flex; gap: 26px; font-size: .95rem; }
nav.main a { text-decoration: none; }
nav.main a[aria-current] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

.hero { position: relative; z-index: 3; text-align: center; padding: clamp(40px, 9vh, 96px) 20px 0; }
.hero .angel { width: min(520px, 86vw); margin: 0 auto -18px; transform: translateY(calc(var(--sy) * .45px)); opacity: calc(1 - var(--sy) / 620);
  filter: drop-shadow(0 10px 30px color-mix(in srgb, var(--sky-1) 60%, transparent)); }
.hero .words { transform: translateY(calc(var(--sy) * .28px)); opacity: calc(1 - var(--sy) / 720); }
.hero h1 { font: 700 clamp(3rem, 8vw, 6.2rem)/1 var(--f-head); letter-spacing: .06em; margin: 0; }
.hero p { margin: 18px auto 0; max-width: 34ch; font-size: 1.12rem; color: var(--soft); }

.cl { position: absolute; left: 0; right: 0; bottom: -2px; overflow: hidden; pointer-events: none; }
.cl svg { display: block; height: 100%; width: auto; aspect-ratio: 2880 / 260; }
.cl.far { height: 300px; bottom: 70px; z-index: 1; transform: translateY(calc(var(--sy) * .5px)); filter: blur(5px); fill: var(--cloud-far); }
.cl.mid { height: 250px; bottom: 10px; z-index: 2; transform: translateY(calc(var(--sy) * .25px)); filter: blur(1.5px); fill: var(--cloud-mid); }
.cl.near { height: 240px; z-index: 4; fill: var(--cloud-near); }
.cl, .puffs span { transition: fill .8s; }

/* Plumes : tombent sans cesse, rares et lentes */
.fall { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.fall span { position: absolute; top: -70px; width: 15px; opacity: 0; }
.fall span:nth-child(1) { left: 16%; --x: 60px;  --r: 170deg;  --d: 17s; --w: 0s; }
.fall span:nth-child(2) { left: 31%; --x: -40px; --r: -150deg; --d: 22s; --w: -9s; width: 11px; }
.fall span:nth-child(3) { left: 62%; --x: 70px;  --r: 210deg;  --d: 19s; --w: -4s; }
.fall span:nth-child(4) { left: 79%; --x: -50px; --r: -180deg; --d: 25s; --w: -15s; width: 12px; }
.fall span:nth-child(5) { left: 47%; --x: 40px;  --r: 130deg;  --d: 21s; --w: -12s; width: 10px; }
.fall span:nth-child(6) { left: 88%; --x: -30px; --r: 160deg;  --d: 27s; --w: -20s; width: 9px; }

/* Les pages, comme des lettres */
.latest { padding: 30px 0 40px; }
.latest h2, .open .when { font: 500 .95rem var(--f-text); color: var(--soft); margin: 0 0 8px; }
.letter { display: block; text-decoration: none; padding: 34px 0; border-bottom: 1px solid var(--hair); }
.letter time { font-size: .9rem; color: var(--soft); }
.letter h3 { font: 700 clamp(1.5rem, 3vw, 1.9rem)/1.35 var(--f-head); margin: 4px 0 10px; transition: color .25s; }
.letter:hover h3 { color: var(--accent-ink); }
.letter p { margin: 0; color: var(--soft); max-width: 58ch; }
.letter .theme { display: inline-block; margin-top: 12px; font-size: .85rem; color: var(--accent-ink); }
.more { display: inline-block; margin-top: 26px; font-size: .95rem; text-underline-offset: 5px; }
.sep { display: flex; align-items: center; gap: 14px; margin: 50px 0; color: var(--halo); }
.sep::before, .sep::after { content: ""; flex: 1; height: 1px; background: var(--hair); transform-origin: center; }
.sep .mark { width: 34px; height: 34px; }
.open h2 { font: 700 clamp(2.1rem, 5vw, 3.1rem)/1.25 var(--f-head); margin: 4px 0 26px; }
.open p { font-size: 1.08rem; line-height: 2.05; margin: 0 0 1.3em; }
.open blockquote { margin: 34px 0; padding: 4px 0 4px 26px; border-left: 2px solid var(--accent); font: 500 1.45rem/1.6 var(--f-head); }
footer { margin-top: 90px; padding: 40px 0 56px; text-align: center; color: var(--soft); font-size: .92rem; border-top: 1px solid var(--hair); }
footer .seal { display: block; font: 700 1.8rem var(--f-head); color: var(--accent-ink); margin-bottom: 8px; }
footer a { display: inline-block; margin-top: 10px; text-underline-offset: 5px; }

/* ——— Mouvement (seulement si sora.js a activé .alive, donc jamais avec « réduire les animations ») ——— */
.alive .cl svg { animation: drift var(--drift) linear infinite; }
.alive .cl.far { --drift: 240s; } .alive .cl.mid { --drift: 150s; } .alive .cl.near { --drift: 95s; }
@keyframes drift { to { transform: translateX(-50%); } }
.alive .puffs span { animation: cross var(--t) linear infinite; animation-delay: var(--w); }
.alive .puffs span:nth-child(1) { --t: 110s; --w: -30s; } .alive .puffs span:nth-child(2) { --t: 160s; --w: -95s; } .alive .puffs span:nth-child(3) { --t: 200s; --w: -20s; }
@keyframes cross { from { transform: translateX(-260px); } to { transform: translateX(calc(100vw + 40px)); } }
.alive .fall span { animation: fall var(--d) linear infinite; animation-delay: var(--w); }
@keyframes fall { 0% { opacity: 0; transform: translate(0, 0) rotate(0); } 8% { opacity: .9; } 50% { transform: translate(var(--x), 45vh) rotate(calc(var(--r) * .5)); } 85% { opacity: .75; } 100% { opacity: 0; transform: translate(calc(var(--x) * -.4), 90vh) rotate(var(--r)); } }
@keyframes twinkle { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.alive .stars .shoot { animation: shoot 11s ease-in 3s infinite; }
@keyframes shoot { 0%, 90% { opacity: 0; transform: translate(0, 0) rotate(-24deg); } 92% { opacity: 1; } 100% { opacity: 0; transform: translate(-340px, 150px) rotate(-24deg); } }
.alive .orb-glow { animation: breathe 9s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(2.65); } }
[data-side="black"] .alive .orb-glow, .alive[data-side="black"] .orb-glow { animation: none; }

/* Ouverture : les ailes se déploient, l'auréole descend, le titre se pose */
.alive .angel .angel-svg { animation: arrive 1.8s cubic-bezier(.2,.7,.2,1) both; }
.alive .angel .wing { transform-box: view-box; transform-origin: 400px 370px; animation: unfoldR 1.8s cubic-bezier(.2,.8,.2,1) both, flapR 7s ease-in-out 1.8s infinite; }
.alive .angel .wl { animation-name: unfoldL, flapL; }
.alive .angel .halo { animation: haloIn 1.4s cubic-bezier(.2,.7,.2,1) .7s both, bob 5s ease-in-out 2.1s infinite; }
.alive .hero .words h1 { animation: rise 1.2s cubic-bezier(.2,.7,.2,1) .9s both; }
.alive .hero .words p { animation: rise 1.2s cubic-bezier(.2,.7,.2,1) 1.2s both; }
@keyframes arrive { from { opacity: 0; transform: translateY(24px) scale(.94); } }
@keyframes unfoldR { from { transform: rotate(38deg) scaleX(.7); } }
@keyframes unfoldL { from { transform: rotate(-38deg) scaleX(.7); } }
@keyframes flapR { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-4deg); } }
@keyframes flapL { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(4deg); } }
@keyframes haloIn { from { opacity: 0; transform: translateY(-40px); } }
@keyframes bob { 50% { transform: translateY(-7px); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* Apparition au défilement */
.alive .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); transition-delay: var(--dl, 0s); }
.alive .reveal.in { opacity: 1; transform: none; }
.alive .sep.reveal { transform: none; }
.alive .sep.reveal::before, .alive .sep.reveal::after { transform: scaleX(0); transition: transform 1.2s cubic-bezier(.2,.7,.2,1) .2s; }
.alive .sep.reveal.in::before, .alive .sep.reveal.in::after { transform: none; }
.alive .sep .mark ellipse { stroke-dasharray: 120; stroke-dashoffset: 120; transition: stroke-dashoffset 1.4s ease .4s; }
.alive .sep.in .mark ellipse { stroke-dashoffset: 0; }
[data-side="black"] .alive .sep .mark ellipse, .alive[data-side="black"] .sep .mark ellipse { stroke-dasharray: 58 9 12 99; stroke-dashoffset: 0; }

@media (max-width: 760px) {
  nav.main { display: none; }
  .cl.far { height: 200px; bottom: 50px; } .cl.mid { height: 170px; } .cl.near { height: 150px; }
  .puffs span:nth-child(2) { display: none; }
}
@media (prefers-reduced-motion: reduce) { .fall { display: none; } * { transition: none !important; } }

/* ——— Angelsoul : la porte des deux versants ———
   --p est la part de nuit (0 : tout en lumière, 1 : tout en nuit), posée sur <html> par soul.js quand on fait glisser la couture.
   Le jour est dessous, plein écran ; la nuit est dessus, découpée à partir de la couture. Chaque moitié porte data-side. */
[data-side="soul"] { --p: .5; --paper: #14122b; --ink: #ece8f7; --soft: #b3acd0; --accent: #e891ab; --accent-ink: #f0a8bd; --hair: #2f2a55; --halo: #e9b949; }
.scene { --cut: calc((1 - var(--p)) * 100%); position: relative; display: grid; min-height: 100vh; min-height: 100svh; overflow: hidden; isolation: isolate; }
.scene .bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.bg.day { background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 34%, var(--sky-3) 56%, var(--paper) 74%); }
/* Le couchant : il monte de l'horizon à mesure que la nuit gagne, puis tout se voile */
.bg.day .dusk { position: absolute; inset: 0; opacity: clamp(0, calc(var(--p) * 1.5), 1);
  background: linear-gradient(180deg, rgba(60,70,140,.55) 0%, rgba(214,120,150,.55) 34%, rgba(250,170,110,.85) 52%, rgba(255,214,170,.6) 62%, transparent 76%); }
.bg.day .veil { position: absolute; inset: 0; background: #0d0b1d; opacity: clamp(0, calc((var(--p) - .45) * .8), .4); }
.bg.day .sun { position: absolute; left: 9%; top: 12vh; width: 110px; height: 110px; margin-left: -55px; border-radius: 50%; transform: translateY(calc(var(--p) * 46vh));
  background: radial-gradient(circle, rgba(255,250,225,1) 0 38%, rgba(255,246,210,.55) 52%, transparent 72%); }
.bg.day .sun i { position: absolute; inset: 0; border-radius: 50%; opacity: clamp(0, calc(var(--p) * 1.6), 1);
  background: radial-gradient(circle, #ffd27a 0 36%, rgba(255,150,90,.7) 52%, transparent 74%); }
.bg.night { clip-path: inset(0 0 0 var(--cut)); background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 34%, var(--sky-3) 56%, var(--paper) 74%); }
.bg.night .stars { transform: none; opacity: clamp(.35, calc(var(--p) * 1.7), 1); height: 78vh; inset: 0 0 auto 0; }
.bg.night .moon { position: absolute; right: 7%; top: 13vh; width: 84px; height: 84px; border-radius: 50%; box-shadow: 18px -10px 0 0 var(--orb);
  transform: translateY(calc((1 - var(--p)) * 30vh)); opacity: clamp(.25, calc(var(--p) * 1.6), 1); }

/* Le nom, d'un seul tenant : il change d'encre là où passe la couture */
.soul h1.name { position: absolute; z-index: 3; top: clamp(34px, 8vh, 84px); left: 0; right: 0; margin: 0; display: grid; text-align: center; pointer-events: none;
  font: 700 clamp(2.5rem, 9vw, 6.4rem)/1 var(--f-head); letter-spacing: .06em; }
.soul h1.name span { grid-area: 1 / 1; }
.soul h1.name .t-day { color: #1d2946; clip-path: inset(-20% calc(var(--p) * 100%) -20% 0); }
.soul h1.name .t-night { color: #ece8f7; clip-path: inset(-20% 0 -20% var(--cut)); }

/* Les deux moitiés : chacune occupe sa part, et s'efface quand il ne lui reste presque rien */
.half { grid-area: 1 / 1; z-index: 2; min-width: 0; overflow: hidden; container-type: inline-size; color: var(--ink); }
.half[data-side="white"] { justify-self: start; width: var(--cut); opacity: clamp(0, calc((1 - var(--p) - .2) * 8), 1); }
.half[data-side="black"] { justify-self: end; width: calc(var(--p) * 100%); opacity: clamp(0, calc((var(--p) - .2) * 8), 1); }
.half .in { padding: clamp(150px, 27vh, 250px) clamp(14px, 8cqw, 72px) 90px; }
.half .angel { width: min(300px, 78%); margin: 0 auto; filter: drop-shadow(0 10px 30px color-mix(in srgb, var(--sky-1) 60%, transparent)); }
.half h2 { margin: 2px 0 0; text-align: center; font: 700 clamp(1.25rem, 6cqw, 2.1rem)/1.2 var(--f-head); letter-spacing: .04em; }
.half .tag { margin: 12px auto 0; max-width: 30ch; text-align: center; color: var(--soft); }
.half .enter { display: block; width: fit-content; max-width: 100%; margin: 24px auto 0; padding: 11px 26px; border: 1px solid currentColor; border-radius: 999px; text-align: center; text-decoration: none; font-weight: 500; line-height: 1.4;
  transition: background .25s, color .25s; }
.half .enter:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.half .last { max-width: 520px; margin: 56px auto 0; }
.half .lbl { margin: 0; font: 500 .95rem var(--f-text); color: var(--soft); }
.half .letter { padding: 22px 0; }
.half .letter h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); margin: 2px 0 0; }
.half .letter .theme { margin-top: 6px; }
.half .none { color: var(--soft); margin: 18px 0 0; }
/* Moitié étroite (téléphone à mi-course) : l'ange, le nom et la porte ; le reste revient quand on lui fait de la place */
@container (max-width: 340px) {
  .half .tag, .half .last { display: none; }
  .half .enter { margin-top: 16px; padding: 9px 14px; font-size: .88rem; }
}

/* La couture : on la fait glisser (souris, doigt, flèches du clavier) */
.seam { position: absolute; z-index: 5; top: 0; bottom: 0; left: clamp(22px, var(--cut), calc(100% - 22px)); width: 48px; margin-left: -24px; cursor: ew-resize; touch-action: pan-y; -webkit-tap-highlight-color: transparent; }
.seam::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: linear-gradient(180deg, transparent, rgba(255,255,255,.75) 12%, rgba(255,255,255,.75) 70%, transparent); }
.seam .knob { position: sticky; top: calc(50vh - 24px); display: block; width: 48px; height: 48px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255,255,255,.8), 0 6px 22px rgba(0,0,0,.35); transition: transform .2s; }
.seam .knob svg { display: block; width: 100%; height: 100%; }
.seam:hover .knob, .seam.drag .knob { transform: scale(1.12); }
.seam:focus-visible { outline: none; }
.seam:focus-visible .knob { box-shadow: 0 0 0 3px var(--accent-ink), 0 6px 22px rgba(0,0,0,.35); }
.seam .hint { position: sticky; top: calc(50vh + 34px); display: block; width: 90px; margin-left: -21px; text-align: center; font-size: .78rem; letter-spacing: .08em; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.6); opacity: .9; transition: opacity .6s; }
.seam.used .hint { opacity: 0; }
.alive .seam:not(.used) .knob { animation: nudge 2.6s ease-in-out 4.2s 3; }
@keyframes nudge { 0%, 100% { transform: none; } 30% { transform: translateX(-9px); } 60% { transform: translateX(9px); } }

.soul-about { padding: 70px 0 0; text-align: center; }
.soul-about p { margin: 0 auto .9em; max-width: 46ch; font-size: 1.08rem; line-height: 2; }
@media (max-width: 760px) {
  .half .in { padding-top: clamp(120px, 22vh, 170px); padding-bottom: 64px; }
  .bg.day .sun { width: 84px; height: 84px; margin-left: -42px; top: 9vh; }
  .bg.night .moon { width: 60px; height: 60px; top: 10vh; box-shadow: 13px -8px 0 0 var(--orb); }
}

/* ——— Site : éléments qui n'existaient pas dans la maquette ——— */
.orb { right: 0; top: 0; }
.sky.compact { min-height: 0; height: clamp(300px, 46vh, 420px); }
.sky.compact .hero { padding-top: clamp(10px, 3vh, 30px); }
.sky.compact .hero .angel { width: min(300px, 64vw); }
.sky.compact .cl.far { height: 220px; bottom: 40px; } .sky.compact .cl.mid { height: 180px; } .sky.compact .cl.near { height: 170px; }
.page-title, .open h1 { font: 700 clamp(2.1rem, 5vw, 3.1rem)/1.25 var(--f-head); margin: 4px 0 26px; }
.kicker { margin: 0; font-size: .95rem; color: var(--soft); } .kicker a { text-underline-offset: 5px; }
.empty { color: var(--soft); font-size: 1.05rem; padding: 30px 0; }
.themes { list-style: none; padding: 0; margin: 0; }
.themes li { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--hair); }
.themes a { font: 700 1.5rem/1.35 var(--f-head); text-decoration: none; }
.themes a:hover { color: var(--accent-ink); }
.themes span { color: var(--soft); font-size: .9rem; white-space: nowrap; }
.open .when a { color: var(--accent-ink); text-underline-offset: 4px; }
.open figure { margin: 0 0 30px; }
.open img { max-width: 100%; height: auto; border-radius: 6px; display: block; }
.prose { font-size: 1.08rem; line-height: 2.05; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.3em; }
.prose h2, .prose h3 { font: 700 1.5rem/1.4 var(--f-head); margin: 1.8em 0 .6em; }
.prose blockquote { margin: 34px 0; padding: 4px 0 4px 26px; border-left: 2px solid var(--accent); font: 500 1.45rem/1.6 var(--f-head); }
.prose blockquote p { margin: 0; }
.prose a { color: var(--accent-ink); text-underline-offset: 4px; }
.prose hr { border: 0; text-align: center; margin: 40px 0; } .prose hr::after { content: "◦ ◦ ◦"; letter-spacing: .6em; color: var(--soft); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 60px; padding-top: 30px; border-top: 1px solid var(--hair); }
.pager a { text-decoration: none; font: 700 1.1rem/1.4 var(--f-head); }
.pager a span { display: block; font: 400 .85rem var(--f-text); color: var(--soft); margin-bottom: 4px; }
.pager .next { text-align: right; }
.pager a:hover { color: var(--accent-ink); }
.alive .angel .angel-svg { animation-delay: 0s; }

/* ——— Pages intérieures : le ciel s'arrête en haut de l'écran et le texte défile dessous (A22) ———
   --keep est la part du ciel qui reste visible une fois arrêté : les ailes, l'astre et la ligne de nuages.
   motion.js fige la parallaxe à cet endroit (il lit « top »), pour que les ailes ne continuent pas à glisser. */
:root { --h: clamp(300px, 46vh, 420px); --keep: clamp(190px, 27vh, 260px); }
.sky.compact { height: var(--h); position: sticky; top: calc(var(--keep) - var(--h)); z-index: 20; }
/* Le rappel du titre : sans hauteur dans la page, accroché juste sous le ciel arrêté ; visible quand motion.js pose .pinned */
.pin { position: sticky; top: calc(var(--keep) - 1px); height: 0; z-index: 19; }
.pin .in { position: absolute; left: 0; right: 0; top: 0; padding: 2px 0 12px; background: var(--paper); border-bottom: 1px solid var(--hair);
  opacity: 0; transform: translateY(-10px); transition: opacity .3s, transform .3s; pointer-events: none; }
.pinned .pin .in { opacity: 1; transform: none; }
.pin span { display: block; font-size: .8rem; color: var(--soft); line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pin strong { display: block; font: 700 1.15rem/1.35 var(--f-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ——— Sous une page : la réaction et le mot à l'auteur (A23). Caché sans script. ——— */
.reader { margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--hair); }
.reader .touch { display: inline-flex; align-items: center; gap: 10px; padding: 9px 20px 9px 14px; border: 1px solid var(--hair); border-radius: 999px; background: none; color: var(--soft);
  font: 500 .95rem var(--f-text); cursor: pointer; transition: color .25s, border-color .25s; }
.reader .touch svg { width: 13px; height: 34px; }
.reader .touch:hover, .reader .touch[aria-pressed="true"] { color: var(--accent-ink); border-color: var(--accent); }
.reader .touch[aria-pressed="true"] { cursor: default; }
.reader .touch[aria-pressed="true"] svg path:first-child { fill: var(--accent); }
.reader details { margin-top: 22px; }
.reader summary { cursor: pointer; color: var(--soft); font-size: .95rem; width: fit-content; }
.reader summary:hover { color: var(--accent-ink); }
.reader .hint { margin: 14px 0 12px; color: var(--soft); font-size: .92rem; line-height: 1.7; }
.reader textarea { display: block; width: 100%; min-height: 130px; padding: 14px; border: 1px solid var(--hair); border-radius: 10px; background: transparent; color: var(--ink); font: 400 1rem/1.7 var(--f-text); resize: vertical; }
.reader .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.reader form button { margin-top: 12px; padding: 9px 22px; border: 1px solid currentColor; border-radius: 999px; background: none; color: var(--ink); font: 500 .95rem var(--f-text); cursor: pointer; }
.reader form button:disabled { opacity: .5; cursor: default; }
.reader .state { margin: 12px 0 0; color: var(--soft); font-size: .92rem; min-height: 1.6em; }
.words { margin-top: 34px; }
.words h2 { font: 500 .95rem var(--f-text); color: var(--soft); margin: 0 0 6px; }

/* ——— Le petit dessin au crayon derrière le texte d'une page (A24) : pâle, tracé trait après trait à l'ouverture ——— */
article.open .prose { position: relative; isolation: isolate; }
.sketch { position: absolute; z-index: -1; top: 10px; right: -6%; width: min(58%, 300px); pointer-events: none; overflow: visible;
  fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .2; }
[data-side="black"] .sketch { opacity: .17; }
.sketch path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.alive .sketch path { stroke-dashoffset: 1; animation: draw 1.1s ease-out forwards; animation-delay: calc(.5s + var(--i) * .32s); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.open .words blockquote { margin: 0; padding: 18px 0; border: 0; border-bottom: 1px solid var(--hair); font: 400 1.02rem/1.9 var(--f-text); white-space: pre-line; }
