/* Reflet des Ondes belongs to this single word, not to the interface. */
.hero-name { font-family:Reflet,cursive; font-size:clamp(155px,15vw,270px); font-weight:400; font-style:normal; letter-spacing:0; line-height:1.1; top:12%; left:-.8%; text-shadow:0 2px 30px #0b151340; }
.hero-introduction { bottom:5%; }
.reader-sheet.letter-reading { background:#e4e3d8; }
.letter-opening-dialog[open] { animation:none; }
.reader-sheet.letter-reading[open] { animation:letter-reading-in .35s ease both; }
@keyframes letter-reading-in { from { transform:translateY(12px); } to { transform:translateY(0); } }
.motion-reduced .reader-sheet.letter-reading[open] { animation:none; }
.letter-reading .reading-article { background:#faf7ed; width:min(794px,100%); min-height:900px; padding:65px 65px 45px; margin:40px auto 25px; border:1px solid #d5d2c3; box-shadow:0 25px 80px #26382f13,0 1px 1px #fff inset; }
.letter-reading .reader-body { color:#303a31; }
.letter-reading .reading-article h2 { font-size:clamp(34px,4vw,55px); }
.letter-reading .reader-type { color:#727b65; }
.letter-reading .reader-neighbours { gap:12px; }
.letter-reading .reader-actions { flex-wrap:wrap; }
.catalogue-count .unread-count { color:#7c4838; }
.mixed-catalogue > .catalogue-item:not(.envelope-card),.letter-catalogue > .empty-state { grid-column:1 / -1; }
@media(min-width:1750px) { .hero-name { font-size:15vw;top:10%; } }
@media(max-width:1050px) { .hero-name { font-size:18vw;top:15%; } }
@media(max-width:760px) {
  .hero-name { top:4%;left:-1%;font-size:36vw;line-height:1.1; }
  .hero-introduction { bottom:0; }
  .hero-introduction>p { display:none; }
  .letter-reading .reading-article { width:calc(100% + 8vw);margin:25px -4vw 20px;padding:35px 6vw 30px;min-height:0; }
  .letter-reading .reading-article h2 { font-size:35px; }
  .letter-reading .reader-body { font-size:18px; }
  .letter-reading .reader-byline { gap:12px; }
}
@media(max-height:720px) and (min-width:761px) { .hero-name { top:7%;font-size:13vw; }.hero-introduction { bottom:0; } }
@media(max-height:550px) and (max-width:1050px) { .hero-name { top:-5%;font-size:15vw; }.hero-introduction { bottom:0; } }
@media(max-width:760px) and (max-height:650px) and (orientation:portrait) {
  .hero-name { font-size:33vw; }
  .hero-introduction { bottom:-22px; }
  .stage[data-chapter="0"] #scene-canvas { transform:translateY(-12px) scale(.8);transform-origin:60% 50%; }
}
@media print { .letter-reading .reading-article { border:0;box-shadow:none;padding:0;width:100%;min-height:0;background:white; } }

/* V7 — the wax seal remains the signature after crossing the threshold. */
.header .seal-wordmark {position:relative;flex:0 0 64px;width:64px;height:64px;align-items:center;justify-content:center;border-radius:50%;isolation:isolate;perspective:500px}
.header .seal-wordmark img {display:block;width:100%;height:100%;object-fit:contain;transform:rotate(-9deg);filter:drop-shadow(2px 5px 5px #0007);transition:transform .7s cubic-bezier(.2,.7,.2,1),filter .7s;user-select:none;-webkit-user-drag:none}
.header .seal-wordmark:hover img,.header .seal-wordmark:focus-visible img {transform:rotate(-3deg) rotateY(-15deg) rotateX(8deg) translateY(-2px);filter:drop-shadow(3px 7px 6px #0008)}
.header.on-light .seal-wordmark img {filter:drop-shadow(2px 3px 3px #24332344)}
#settings-dialog .setting-row>span {min-width:0;padding-right:14px}
#settings-dialog .setting-row small {display:block;max-width:240px;margin-top:7px;font-size:10px;font-weight:400;line-height:1.6;color:#9cac91}
@media(max-width:760px){.header .seal-wordmark{width:48px;height:48px;flex-basis:48px}.header{gap:13px}#settings-dialog .setting-row small{font-size:9px;max-width:205px}}
@media(prefers-reduced-motion:reduce){.header .seal-wordmark img{transition:none}.header .seal-wordmark:is(:hover,:focus-visible) img{transform:rotate(-9deg)}}
.motion-reduced .header .seal-wordmark img {transition:none}.motion-reduced .header .seal-wordmark:is(:hover,:focus-visible) img{transform:rotate(-9deg)}
