.letter .signature { margin-bottom: .15rem; }
.signatory-office { margin: 0 0 1.5rem; color: #695048; font: italic 1.05rem/1.35 var(--head); }
#press-story h4 { margin: 1.2rem 0 .3rem; font: 1.35rem/1.15 var(--head); color: #572e37; }
#press-story:not([hidden]) { animation: turn-column .3s ease-out; }
@keyframes turn-column { from { opacity: .25; transform: translateX(.7rem); } }
#clipping-copy h3 { margin: 1.3rem 0 .3rem; font: small-caps bold 1rem/1.3 var(--head); letter-spacing: .065em; }
#clipping-copy p { margin: .25rem 0; font: 1.04rem/1.55 var(--reading); }
.loose-clipping { transform: rotate(-.7deg); }
.invoice-sheet { width: min(100%, 620px); }
.invoice-service { font: italic 1rem/1.35 var(--head); }
.invoice-parties { text-align: left; margin: 1.2rem 0; font: 1rem/1.55 var(--reading); }
.invoice-accounts { width: 100%; border-collapse: collapse; font: 1rem/1.4 var(--head); text-align: left; }
.invoice-accounts :is(th,td) { padding: .6rem .35rem; vertical-align: top; }
.invoice-accounts th { font-weight: normal; }
.invoice-accounts thead { border-block: 1px solid #997b55; color: #513b2a; }
.invoice-accounts tbody tr { border-bottom: 1px dotted #b79875; }
.invoice-accounts :is(th,td):not(:first-child), .invoice-accounts tfoot { text-align: right; }
.invoice-accounts tfoot { font-weight: bold; }
.marginalia { margin-top: 1.5rem; display: grid; gap: .95rem; text-align: left; }
.marginalia div:last-child { margin-left: 9%; color: #6c3442; }
.pen-author { font: small-caps .96rem/1.2 var(--head); }
.pen-line { font: 1.7rem/1.12 var(--hand); margin: .2rem 0; }
.parlor-room {
  position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center;
  background: #1d1412; color: #fff1d7;
}
.parlor-room::before {
  content: ''; position: absolute; z-index: -1; inset: -1.5rem;
  background: url('assets/petit-salon-objets.webp') center/cover;
  filter: blur(22px) brightness(.38);
}
.parlor-scene {
  position: relative; isolation: isolate; width: min(100%, max(46rem, calc((100svh - 76px) * 1.5)));
  box-shadow: 0 0 3.5rem #130b08b3;
}
.parlor-scene picture, .parlor-scene img { display: block; width: 100%; height: auto; }
.parlor-title {
  position: absolute; z-index: 1; inset: 0 0 auto; pointer-events: none;
  display: flex; align-items: flex-start; justify-content: space-between; gap: .6rem;
  padding: clamp(.4rem,1.6vw,1.35rem) clamp(.9rem,3vw,2.7rem) 2rem;
  background: linear-gradient(to bottom,#1a1113d9, #23151365 55%,transparent);
  text-shadow: 0 1px 6px #1d100b;
}
.parlor-title h1 { margin: 0; font: clamp(2rem,4.5vw,4.8rem)/1.08 var(--head); }
.parlor-title h1 em, .whispers-heading h1 em { color: #efd3a8; }
.parlor-title .study-back { flex-shrink: 0; }
.whispers-heading h1 { font: clamp(2.9rem,5vw,5.3rem)/1 var(--head); }
.whispers-heading p { font: italic clamp(1.08rem,1.7vw,1.35rem)/1.35 var(--head); color: #f1d8b3; }
.parlor-object {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%,-13px);
  width: clamp(102px, 16vw, 178px); min-height: 48px; padding: 20px 0 0;
  color: #fff3d8; background: transparent; border: 0; text-align: center;
  --fx: 50%; --fy: 20%; --period: 3.8s; --phase: -.7s;
}
.parlor-object::before {
  content: ''; position: absolute; left: var(--fx); top: var(--fy); width: 54px; height: 44px; transform: translate(-50%,-80%);
}
.parlor-object .firefly-swarm { width: 48px; height: 32px; pointer-events: none; }
.object-label {
  position: relative; isolation: isolate; display: inline-block; padding: .2em .52em .28em;
  font: italic clamp(1rem, 1.45vw, 1.23rem)/1.1 var(--head); text-wrap: balance;
  color: #fff1d4; text-shadow: 0 1px 3px #170c08,0 0 4px #27140c;
}
.object-label::before {
  content: ''; position: absolute; inset: -.07em -.3em; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at center,#211417f5 25%,#251716e8 54%,#241318bb 70%,transparent 89%);
  border-radius: 42%; filter: blur(1.5px); transition: transform .3s ease;
}
.parlor-object:focus-visible, .whisper-choice:focus-visible { outline: 2px solid #f7d58b; outline-offset: 3px; }
.parlor-object:is(:hover,:focus-visible) .object-label { color: #fff8d9; }
.parlor-object:is(:hover,:focus-visible) .object-label::before { transform: scale(1.08); }
.parlor-object[data-folio="rendez-vous"] { --x:20%; --y:27%; }
.parlor-object[data-folio="programme"] { --x:18%; --y:64%; --phase:-1.8s; }
.parlor-object[data-folio="savoir-vivre"] { --x:52%; --y:59.5%; }
.parlor-object[data-folio="portefeuille"] { --x:80%; --y:38.5%; --phase:-2.4s; }
.parlor-object[data-folio="enquete"] { --x:89%; --y:55.5%; width: 21%; }
.parlor-object[data-folio="usages"] { --x:42%; --y:85.5%; --phase:-1.4s; }
.whispers {
  color: #fff1d9; padding: clamp(1rem,3vw,2.5rem) var(--edge) clamp(2rem,5vw,4.5rem);
  min-height: calc(100svh - 76px);
  background: linear-gradient(115deg,#18111af3,#352027e8 52%,#1b171ee8),url('assets/petit-salon.webp') center/cover;
}
.whispers-inner { max-width: 1080px; margin: auto; }
.whispers-heading {
  position: relative; isolation: isolate; display: grid; align-items: center; overflow: hidden;
  min-height: clamp(14rem,25vw,19rem); margin: .15rem 0 1.8rem; background: #290e10;
}
.whispers-console {
  position: absolute; z-index: -1; inset-block: 0; right: 0; height: 100%; aspect-ratio: 1536/614;
  mask-image: linear-gradient(to right, transparent, #000 20%); pointer-events: none;
}
.whispers-console img { display: block; width: 100%; height: 100%; }
.whispers-title-block { width: 66%; padding: 1.2rem clamp(.85rem,3.8vw,3.5rem); text-shadow: 0 2px 9px #260e10; }
.whispers-title-block h1 { text-wrap: balance; }
.whispers-heading .fleuron { background: #d5b27a; width: 3.75rem; height: 1.4rem; margin-bottom: .35rem; }
.whispers-heading p { margin-top: .55rem; }
.whispers-collection { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 1.65rem clamp(.8rem,2.6vw,2.1rem); }
.whisper-choice { border: 0; padding: .15rem; background: none; color: #f7e5ca; display: grid; justify-items: center; align-content: start; gap: .55rem; }
.whisper-portrait, .whisper-seal {
  position: relative; display: block; aspect-ratio: 4/5; padding: 3px; background: linear-gradient(145deg,#897048,#e3c68a 28%,#5f4632 55%,#c7a879 84%,#69482d);
  box-shadow: 0 .35rem 1rem #130c15a1; border-radius: 47% 47% 45% 45%;
}
.whisper-portrait { width: min(82%, 8.4rem); transition: transform .35s ease, box-shadow .35s ease; }
.whisper-portrait img, .whisper-seal img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 30%; border-radius: inherit; }
.whisper-choice:hover .whisper-portrait, .whisper-choice:focus-visible .whisper-portrait {
  transform: translateY(-3px) rotate(-1.5deg); box-shadow: 0 .5rem 1.4rem #120b14,0 0 .8rem #cfab742c;
}
.whisper-name { font: 1.18rem/1.18 var(--head); text-wrap: balance; }
.whisper-choice.is-read .whisper-portrait::after {
  content: '✓'; position: absolute; bottom: 0; right: 4%; width: 1.35rem; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; color: #fce3b0; background: #702f40; box-shadow: 0 0 0 1px #caa775;
  font: .85rem/1 Georgia,serif;
}
body:has(#folio-reader[open]) { overflow: hidden; }
#folio-reader {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0 var(--edge) 2.5rem;
  background: transparent; border: 0; overflow: auto; overscroll-behavior: contain; color: #3b2d30; perspective: 1200px;
}
#folio-reader::backdrop { background: #151017ce; backdrop-filter: blur(4px); }
.folio-toolbar { position: sticky; top: 0; z-index: 2; max-width: 920px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: .5rem; pointer-events: none; }
.folio-toolbar .study-back { background: #221c21f2; color: #f3d9b1; padding-inline: .75rem; border-radius: 1.5rem; }
#folio-page { width: min(100%, 690px); margin: clamp(.35rem,3vh,2rem) auto 0; }
.folio-sheet, .whisper-paper {
  position: relative; padding: clamp(1.5rem,5.5vw,4rem); background: linear-gradient(115deg,#faf1dfe8,#fff8e8ed 56%,#f0e3cde6),url('assets/papier-journal.webp') center/440px;
  color: #422f31; box-shadow: 0 1rem 3rem #0906097d;
}
.folio-sheet { animation: unfold-paper .46s cubic-bezier(.18,.65,.24,1) both; transform-origin: center top; }
.folio-sheet::before {
  content: ''; display: block; float: right; width: clamp(4rem,11vw,6.4rem); aspect-ratio: 1;
  margin: 0 0 .45rem .75rem; border-radius: 50%; background: url('assets/petit-salon-objets.webp') var(--detail-x) var(--detail-y)/650% auto;
  box-shadow: 0 0 0 2px #f2e3cc,0 0 0 3px #ad8b61;
}
.folio-rendez-vous { --detail-x:14.5%; --detail-y:20%; }
.folio-programme { --detail-x:12%; --detail-y:68%; }
.folio-savoir-vivre { --detail-x:52%; --detail-y:62%; }
.folio-portefeuille { --detail-x:85.4%; --detail-y:35%; }
.folio-enquete { --detail-x:96%; --detail-y:57%; }
.folio-usages { --detail-x:40.5%; --detail-y:96%; }
@keyframes unfold-paper { from { opacity: .25; transform: translateY(24px) rotateX(-9deg); } }
.folio-origin { margin: 0; color: #775b46; font: small-caps 1.06rem/1.2 var(--head); letter-spacing: .05em; }
.folio-sheet h2, .whisper-paper h2 { margin: .3em 0 .58em; color: #663744; font: clamp(2.1rem,4.8vw,3.35rem)/1.04 var(--head); text-wrap: balance; }
.folio-sheet h3 { margin: 1.25em 0 .45em; color: #643641; font: 1.65rem/1.15 var(--head); }
.folio-sheet .fleuron, .whisper-paper .fleuron { width: 3.2rem; height: 1.1rem; margin-top: .55rem; background: #a9814f; }
.folio-sheet > p:not(.folio-origin), .whisper-paper p:not(.folio-origin) { margin: .82em 0; font: 1.08rem/1.6 var(--reading); }
.folio-sheet .appointment-line { font: italic 1.3rem/1.15 var(--head) !important; color: #76563b; }
.folio-sheet .pen-signature { margin-bottom: 0 !important; font: 2.5rem/1.1 var(--hand) !important; color: #713a47; }
.folio-sheet .office-line { margin-top: .25rem !important; font: italic 1.15rem/1.25 var(--head) !important; }
.folio-portefeuille { border-left: .55rem solid #633e2d; }
.folio-savoir-vivre { border-left: .55rem solid #513643; box-shadow: inset .6rem 0 1.1rem -.7rem #705c44,0 1rem 3rem #0906097d; }
.folio-programme { background: radial-gradient(ellipse at top left, #fff9ed, #f7efdf 75%); }
.whisper-paper { margin: clamp(.35rem,8vh,5rem) auto; max-width: 540px; text-align: center; }
.whisper-seal { width: 6rem; margin: 0 auto 1.3rem; }
.whisper-paper h2 { font-style: italic; }
.whisper-paper p:not(.folio-origin) { text-align: center; }
@media(max-width: 980px) {
  .whispers-collection { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media(max-width: 680px) {
  .parlor-room { display: block; place-items: initial; container-type: inline-size; }
  .parlor-scene {
    --photo-width: max(100cqw, min(132cqw, calc((100svh - 60px) * .666667)));
    --crop: calc((var(--photo-width) - 100cqw) / 2);
    width: var(--photo-width); margin-inline-start: calc(0px - var(--crop));
  }
  .parlor-title { inset-inline: var(--crop); align-items: center; padding: .25rem .8rem 1.2rem; }
  .parlor-title h1 { font-size: clamp(1.65rem,7.8vw,2.75rem); white-space: nowrap; }
  .parlor-title .study-back { font-size: 1rem; }
  /* Keep the captions on-screen while each swarm stays on the object in the photograph. */
  .parlor-object[data-folio] {
    --label-width: min(36cqw,9.5rem);
    --object-x: calc(var(--photo-width) * var(--mobile-x));
    --margin: calc(var(--crop) + var(--label-width) / 2 + 3px);
    --caption-x: clamp(var(--margin), var(--object-x), calc(var(--photo-width) - var(--margin)));
    left: var(--caption-x); width: var(--label-width); --fx: calc(50% + var(--object-x) - var(--caption-x));
  }
  .parlor-object[data-folio="rendez-vous"] { --mobile-x:.295; --y:19%; }
  .parlor-object[data-folio="programme"] { --mobile-x:.225; --y:49.5%; }
  .parlor-object[data-folio="savoir-vivre"] { --mobile-x:.33; --y:68.5%; }
  .parlor-object[data-folio="portefeuille"] { --mobile-x:.815; --y:30%; }
  .parlor-object[data-folio="enquete"] { --mobile-x:.775; --y:53.5%; }
  .parlor-object[data-folio="usages"] { --mobile-x:.845; --y:84.5%; }
  .whispers { padding: .45rem 1rem 2rem; }
  .whispers-heading { min-height: clamp(11.75rem,52vw,14rem); margin-bottom: 1.25rem; }
  .whispers-console { right: -13%; }
  .whispers-title-block { width: 65%; padding: .75rem .3rem .85rem .8rem; }
  .whispers-title-block p { max-width: 18ch; }
  .whispers-heading h1 { font-size: clamp(2.15rem,8.2vw,3.65rem); }
  .whispers-collection { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.25rem .8rem; }
  .whisper-portrait { width: min(70%,7.4rem); }
  #folio-reader { padding-inline: .65rem; }
  .folio-toolbar .study-back, .folio-toolbar .put-back { font-size: 1rem; }
  .invoice-sheet { transform: none; padding-inline: 1rem; }
  .invoice-accounts { font-size: .96rem; }
  .invoice-accounts :is(th,td) { padding-inline: .2rem; }
  .loose-clipping { transform: none; }
  .room.parlor span { text-wrap: balance; text-align: center; }
}
@media(prefers-reduced-motion: reduce) {
  #press-story:not([hidden]), .whisper-paper, .folio-sheet { animation: none; }
  .whisper-portrait { transition: none; }
}
.whisper-flip { display: grid; max-width: 540px; margin: clamp(.35rem,8vh,5rem) auto; transform-style: preserve-3d; animation: read-verso .8s cubic-bezier(.4,.04,.19,1) both; }
.whisper-flip > * { grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.whisper-flip .whisper-paper { margin: 0; width: 100%; max-width: none; animation: none; }
.whisper-recto { display: grid; place-content: center; justify-items: center; gap: .7rem; background: #f1e3cb url('assets/papier-journal.webp') center/420px; color: #503542; transform: rotateY(180deg); }
.whisper-recto img { height: 9rem; width: 7.2rem; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 3px #b59364; }
.whisper-recto i { font: 1.8rem var(--hand); }
@keyframes read-verso { 0% { transform: perspective(1000px) translateY(18px) rotateY(-180deg) scale(.9); } 20% { transform: perspective(1000px) rotateY(-163deg) scale(.94); } 100% { transform: perspective(1000px) rotateY(0); } }
.folio-rendez-vous { border-top: .35rem solid #a78253; }
.folio-enquete .folio-origin, .folio-usages .folio-origin { font-style: italic; }
@media(prefers-reduced-motion: reduce) {
  .whisper-flip { animation: none; }
  .whisper-recto { display: none; }
}
