/* Handmade interactions: torn edges, the sealed letter, page-turning books, the ledger book,
   the topic deck, and the Postmoon mailer. Behavior lives in craft.js. */

/* ---------- 1. Torn-paper edges ---------- */
.tear { position: relative; height: 0; z-index: 4; pointer-events: none; filter: drop-shadow(0 -3px 3px rgba(20, 16, 8, .2)); }
.tear i, .tear b { position: absolute; left: 0; right: 0; bottom: -1px; display: block; -webkit-mask: url(torn/edge.svg) 0 0 / 1200px 100% repeat-x; mask: url(torn/edge.svg) 0 0 / 1200px 100% repeat-x; }
.tear b { height: 37px; background: #F5ECDA; -webkit-mask-image: url(torn/edge-core.svg); mask-image: url(torn/edge-core.svg); }
.tear i { height: 34px; background: var(--tc); }
.tear.to-paper i { background-color: var(--paper-1); background-image: var(--fiber); background-blend-mode: multiply; }
.tear.to-paper b { background: #FFFDF7; }
.js .tear i, .js .tear b { clip-path: inset(0 100% 0 0); }
.tear.ripped i, .tear.ripped b { clip-path: inset(0 0 0 0); transition: clip-path 1.15s cubic-bezier(.65, .05, .2, 1); }
.tear.ripped i { transition-delay: .06s; }
@media (max-width: 700px) { .tear i { height: 22px; } .tear b { height: 24px; } .tear i, .tear b { -webkit-mask-size: 700px 100%; mask-size: 700px 100%; } }

/* ---------- 2. Pinned notes that pull off the board ---------- */
.seats-hint { position: absolute; left: 0; right: 0; top: 26px; z-index: 3; margin: 0; text-align: center; font-family: var(--serif); font-style: italic; font-size: 17px; color: rgba(231, 219, 197, .7); pointer-events: none; display: none; }
.notes-loose .seats-hint { display: block; }
.notes-loose .tag { cursor: grab; touch-action: none; user-select: none; -webkit-user-drag: none; }
.notes-loose .tag.dragging { cursor: grabbing; transition: none !important; box-shadow: 0 40px 50px -24px rgba(0, 0, 0, .85); z-index: 5; }
.tag.unpinned::before { opacity: 0; transform: translateY(14px) scale(.6); transition: opacity .25s, transform .3s; }
.tag.unpinned::after { content: ""; position: absolute; top: -3px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: rgba(30, 35, 70, .55); box-shadow: inset 0 1px 1px rgba(0, 0, 0, .5); }

/* ---------- 3. The sealed letter ---------- */
.sealed-section { padding: clamp(10px, 2vw, 30px) 0 clamp(70px, 9vw, 110px); }
.sealed { position: relative; max-width: 760px; margin: 0 auto; padding-top: 0; transition: padding-top 1.1s cubic-bezier(.3, .8, .25, 1) .7s; }
.env-body { position: relative; aspect-ratio: 760 / 430; perspective: 1600px; }
.env-backing { position: absolute; inset: 0; background: #E7D7BC; background-image: var(--fiber); background-blend-mode: multiply; box-shadow: 0 40px 60px -36px rgba(40, 30, 15, .7); }
/* The slot clips the letter at the envelope's bottom fold and leaves room above for it to rise into */
.env-slot { position: absolute; left: 5%; right: 5%; bottom: 4%; height: 400%; overflow: hidden; z-index: 1; pointer-events: none; }
.env-letter { position: absolute; left: 0; right: 0; top: 77.5%; pointer-events: auto; padding: clamp(26px, 4vw, 44px) clamp(22px, 4vw, 48px); background: #FDFAF3; background-image: var(--fiber); background-blend-mode: multiply; box-shadow: 0 2px 6px rgba(40, 30, 15, .15); text-align: center; transform: translateY(0); transition: transform 1.1s cubic-bezier(.3, .8, .25, 1) .7s; }
.env-letter::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(176, 141, 87, .5); pointer-events: none; }
.env-letter .script-eyebrow { justify-content: center; }
.env-letter h2 { font-size: clamp(34px, 4.4vw, 52px); margin: 6px 0 10px; }
.env-letter p { max-width: 520px; margin: 0 auto 22px; color: #4A4F63; }
.env-letter .connect-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.env-letter .signoff img { width: 190px; margin: 0 auto; display: block; }
.opened .env-letter { transform: translateY(calc(var(--rise, 300px) * -1)); }
.env-pocket { position: absolute; inset: 0; z-index: 2; pointer-events: none; filter: drop-shadow(0 -2px 3px rgba(60, 45, 20, .2)); }
.env-pocket::before { content: ""; position: absolute; inset: 0; background-color: #EADCC3; background-image: var(--fiber); background-blend-mode: multiply; clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%); }
.env-flap { position: absolute; left: 0; right: 0; top: 0; height: 58%; z-index: 3; transform-origin: 50% 0; transform: rotateX(0deg); transition: transform .8s cubic-bezier(.5, 0, .3, 1) .25s, z-index 0s linear .65s; }
.env-flap::before { content: ""; position: absolute; inset: 0; background: #DCC9A6; background-image: var(--fiber); background-blend-mode: multiply; clip-path: polygon(0 0, 100% 0, 50% 100%); filter: drop-shadow(0 4px 4px rgba(60, 45, 20, .25)); }
.seal-btn { position: absolute; left: 50%; top: 58%; z-index: 4; width: clamp(92px, 14vw, 128px); aspect-ratio: 1; transform: translate(-50%, -50%); padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.seal-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 6px; }
.seal-btn .half { position: absolute; inset: 0; background: url(../alimayu-seal.png) center / contain no-repeat; filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .4)); transition: transform .7s cubic-bezier(.3, .7, .3, 1), opacity .6s ease .25s; }
.seal-btn .half.l { clip-path: polygon(0 0, 52% 0, 44% 30%, 55% 52%, 46% 74%, 52% 100%, 0 100%); }
.seal-btn .half.r { clip-path: polygon(52% 0, 100% 0, 100% 100%, 52% 100%, 46% 74%, 55% 52%, 44% 30%); }
.seal-btn:hover .half.l { transform: rotate(-3deg); } .seal-btn:hover .half.r { transform: rotate(3deg); }
.seal-label { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: 10px; white-space: nowrap; font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--navy); transition: opacity .3s; }
.opened .seal-btn { cursor: default; }
.opened .seal-btn .half.l { transform: translate(-60px, 40px) rotate(-38deg); opacity: 0; }
.opened .seal-btn .half.r { transform: translate(60px, 50px) rotate(34deg); opacity: 0; }
.opened .seal-label { opacity: 0; }
.opened .env-flap { transform: rotateX(180deg); z-index: 0; }
@media (prefers-reduced-motion: reduce) { .env-letter, .env-flap, .seal-btn .half, .sealed { transition: none; } }

/* ---------- 4. Books ---------- */
.book { --pw: min(470px, 44vw); position: relative; margin: 0 auto; outline: none; }
.book-stage.spread { position: relative; width: calc(var(--pw) * 2); max-width: 100%; aspect-ratio: 2 / 1.34; margin: 0 auto; perspective: 2600px; transition: transform .9s cubic-bezier(.3, .1, .2, 1); }
.book-stage.spread.closed-front { transform: translateX(-25%); }
.book-stage.spread.closed-back { transform: translateX(25%); }
.book-stage.instant, .book-stage.instant * { transition: none !important; }
.leaf { position: absolute; left: 50%; top: 0; width: 50%; height: 100%; transform-style: preserve-3d; transform-origin: 0 50%; transition: transform .9s cubic-bezier(.3, .1, .2, 1); }
.leaf.turned { transform: rotateY(-180deg); }
.face { position: absolute; inset: 0; overflow: hidden; container-type: inline-size; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.face.back { transform: rotateY(180deg); }
.face.front::after, .face.back::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.face.front::after { background: linear-gradient(90deg, rgba(40, 28, 10, .22), rgba(40, 28, 10, 0) 9%); }
.face.back::after { background: linear-gradient(270deg, rgba(40, 28, 10, .22), rgba(40, 28, 10, 0) 9%); }
.book-stage.spread { filter: drop-shadow(0 34px 34px rgba(20, 14, 6, .35)); }
.bp { position: absolute; inset: 0; padding: 9cqw 9cqw 8cqw; background: #FBF7EF; background-image: var(--fiber); background-blend-mode: multiply; color: var(--navy); overflow: hidden; }
.bp.blank { background-color: #F3EBDC; }
.face.front .bp { border-radius: 0 4px 4px 0; }
.face.back .bp { border-radius: 4px 0 0 4px; }
.book-stage.single { width: min(100%, 420px); margin: 0 auto; overflow: hidden; filter: drop-shadow(0 24px 24px rgba(20, 14, 6, .3)); }
.book-track { display: flex; transition: transform .55s cubic-bezier(.3, .1, .2, 1); }
.face.solo { position: relative; flex: 0 0 100%; aspect-ratio: 1 / 1.34; backface-visibility: visible; }
.face.solo .bp { border-radius: 4px; }
.book-bar { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 22px; }
.book-bar button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid currentColor; background: transparent; color: inherit; font-size: 20px; cursor: pointer; transition: background .2s, color .2s, opacity .2s; }
.book-bar button:hover:not(:disabled) { background: var(--navy); color: #fff; border-color: var(--navy); }
.book-bar button:disabled { opacity: .3; cursor: default; }
.book-count { min-width: 170px; text-align: center; font-family: var(--serif); font-style: italic; font-size: 18px; }
.book .face.front, .book .face.back { cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .leaf, .book-track, .book-stage.spread { transition: none; } }

/* Shared page parts */
.bp .pg-kicker { font: 600 3.1cqw var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 0 0 3cqw; }
.bp .pg-title { font-family: var(--serif); font-size: 9.4cqw; line-height: 1; margin: 0 0 4cqw; }
.bp .pg-text { font-family: var(--serif); font-size: 5cqw; line-height: 1.32; margin: 0 0 4cqw; color: #2C3150; }
.bp .pg-small { font-size: 3.6cqw; line-height: 1.45; color: #4A4F63; margin: 0; }
.bp .pg-num { position: absolute; bottom: 4.5cqw; left: 0; right: 0; text-align: center; font-family: var(--serif); font-style: italic; font-size: 3.6cqw; color: var(--gold); }
.bp .pg-link { display: inline-flex; align-items: center; gap: 2cqw; margin-top: 2cqw; padding: 2.6cqw 4.6cqw; background: var(--navy); color: #fff; text-decoration: none; font: 700 3.6cqw var(--sans); border-radius: 1cqw; }
.bp .pg-link:hover { background: var(--teal); }
.bp .pg-photo { position: absolute; inset: 7cqw; overflow: hidden; border-radius: 999px 999px 0 0; box-shadow: inset 0 0 0 1px rgba(176, 141, 87, .6); }
.bp .pg-photo img { width: 100%; height: 100%; object-fit: cover; }
.bp .pg-photo::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 12px 24px -10px rgba(0, 0, 0, .5); }
.bp.cover { background: var(--navy); background-image: radial-gradient(80% 60% at 50% 30%, rgba(205, 176, 131, .18), transparent 70%), var(--fleck); background-blend-mode: normal, soft-light; color: var(--cream); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; box-shadow: inset 0 0 0 2.4cqw var(--navy), inset 0 0 0 2.7cqw var(--gold); }
.bp.cover img.cv-seal { width: 30cqw; margin-bottom: 5cqw; filter: drop-shadow(0 2cqw 2cqw rgba(0, 0, 0, .45)); }
.bp.cover .pg-title { color: #fff; font-size: 11cqw; }
.bp.cover .pg-kicker { color: var(--gold-soft); }
.bp.cover .pg-text { color: var(--cream); font-style: italic; }
.bp.cover .cv-hint { position: absolute; bottom: 6cqw; font-family: var(--serif); font-style: italic; font-size: 3.8cqw; color: var(--gold-soft); }
.bp.cover.teal { background-color: var(--teal-deep); box-shadow: inset 0 0 0 2.4cqw var(--teal-deep), inset 0 0 0 2.7cqw var(--gold-soft); }
.bp.cover.rose { background-color: #A4533F; box-shadow: inset 0 0 0 2.4cqw #A4533F, inset 0 0 0 2.7cqw #EBD3C8; }

/* Inside the studio book on the navy strip */
.studio-strip .book { color: var(--cream); margin-top: 34px; }
.studio-strip .book-bar button:hover:not(:disabled) { background: var(--cream); color: var(--navy); border-color: var(--cream); }
.studio-strip .bp { text-align: left; }
.bp.chapter { display: flex; flex-direction: column; justify-content: center; }
.bp.chapter .pg-title { font-size: 11cqw; }
.bp.chapter .pg-num-big { font-family: var(--serif); font-style: italic; font-size: 7cqw; color: var(--gold); }

/* ---------- 5. Ledger book ---------- */
.ledger .book { margin-top: 6px; }
.ledger-cover { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background-color: #22305A; color: var(--cream); background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 7px), var(--fleck); box-shadow: inset 0 0 0 2.4cqw #22305A, inset 0 0 0 2.7cqw var(--gold); }
.ledger-cover img { width: 28cqw; margin-bottom: 4cqw; filter: drop-shadow(0 2cqw 2cqw rgba(0, 0, 0, .45)); }
.ledger-cover h3 { font-size: 13cqw; color: #fff; letter-spacing: .02em; }
.ledger-cover .lc-kicker { font: 600 3.2cqw var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-soft); margin: 0 0 2cqw; }
.ledger-cover .lc-sub { font-family: var(--serif); font-style: italic; font-size: 5cqw; color: var(--cream); margin: 3cqw 0 0; }
.ledger-cover .lc-hint { position: absolute; bottom: 6cqw; font-family: var(--serif); font-style: italic; font-size: 3.8cqw; color: var(--gold-soft); margin: 0; }
.ledger-page { padding: 8cqw 7cqw 6cqw 11cqw; background-image: linear-gradient(90deg, transparent 8.4cqw, rgba(164, 83, 63, .45) 8.4cqw 8.7cqw, transparent 8.7cqw), repeating-linear-gradient(180deg, transparent 0 7.6cqw, rgba(47, 122, 120, .2) 7.6cqw 7.8cqw), var(--fiber); background-position: 0 0, 0 15.4cqw, 0 0; }
.lp-era { font-family: var(--serif); font-size: 4.2cqw; color: var(--gold); margin: 0 0 1cqw; }
.lp-era span { font-style: italic; }
.ledger-page h4 { font-size: 6.6cqw; line-height: 1.05; margin: 0 0 3.4cqw; min-height: 7cqw; }
.ledger-page ol { list-style: none; margin: 0; padding: 0; }
.ledger-page li { min-height: 7.8cqw; }
.ledger-page [data-entry] { display: grid; grid-template-columns: 19cqw 1fr; gap: 2.4cqw; align-items: baseline; width: 100%; padding: .9cqw 0 .9cqw 3.4cqw; border: 0; background: none; text-align: left; cursor: pointer; position: relative; color: var(--navy); transition: opacity .3s, background .2s; }
.ledger-page [data-entry]::before { content: ""; position: absolute; left: 0; top: 50%; width: 2.2cqw; height: 2.2cqw; margin-top: -1.1cqw; border-radius: 50%; background: var(--c); }
.ledger-page [data-entry]:hover, .ledger-page [data-entry].on { background: rgba(176, 141, 87, .14); }
.ledger-page [data-entry]:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.ledger-page [data-entry].dim { opacity: .22; }
.le-yr { font-family: var(--serif); font-style: italic; font-size: 3.7cqw; color: #6B6556; }
.le-name { font: 600 3.9cqw/1.25 var(--sans); }
.ledger .tl-detail { max-width: calc(min(470px, 44vw) * 2); margin-left: auto; margin-right: auto; }

/* ---------- 6. Topic deck ---------- */
.deck-wrap { display: grid; grid-template-columns: 1fr; gap: 30px; }
.deck { position: relative; height: 390px; margin: 0 auto; width: 100%; max-width: 1140px; }
.topic-card { --step: min(64px, calc((100% - 230px) / 14)); position: absolute; bottom: 0; left: calc(50% - 115px + (var(--i) - 7) * var(--step)); width: 230px; height: 320px; padding: 0; border: 0; border-radius: 12px; background: #FBF7EF; background-image: var(--fiber); background-blend-mode: multiply; color: var(--navy); text-align: left; cursor: pointer; box-shadow: -6px 8px 18px -6px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(176, 141, 87, .6); transform-origin: 50% 160%; transform: rotate(calc((var(--i) - 7) * 2.4deg)); transition: transform .45s cubic-bezier(.2, 1.2, .3, 1), box-shadow .3s, background .3s; }
.topic-card .tc-spine { position: absolute; left: 0; top: 40px; bottom: 10px; width: 60px; display: flex; align-items: center; justify-content: center; border-right: 1px dashed rgba(176, 141, 87, .55); }
.topic-card .tc-spine span { writing-mode: vertical-rl; transform: rotate(180deg); font: 600 14px var(--sans); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-height: 260px; }
.topic-card .tc-num { position: absolute; left: 0; width: 60px; top: 12px; text-align: center; font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--gold); }
.topic-card .tc-body { position: absolute; left: 60px; right: 0; top: 0; bottom: 0; padding: 22px 18px; display: flex; flex-direction: column; justify-content: space-between; }
.topic-card .tc-name { font-family: var(--serif); font-size: 22px; overflow-wrap: anywhere; hyphens: auto; font-weight: 600; line-height: 1.05; }
.topic-card .tc-pip { align-self: flex-end; color: var(--gold); font-size: 22px; }
.topic-card:hover, .topic-card:focus-visible { transform: translateY(-34px) rotate(calc((var(--i) - 7) * 2.4deg)); z-index: 20; outline: none; }
.topic-card:focus-visible { box-shadow: 0 0 0 3px var(--gold), -6px 8px 18px -6px rgba(0, 0, 0, .55); }
.topic-card[aria-pressed="true"] { z-index: 30; transform: translateY(-70px) rotate(0deg); background-color: var(--gold); box-shadow: 0 30px 40px -18px rgba(0, 0, 0, .8); }
.topic-card[aria-pressed="true"] .tc-num, .topic-card[aria-pressed="true"] .tc-pip { color: var(--navy); }
.deck.shuffle .topic-card { animation: shuffle .52s cubic-bezier(.4, 0, .2, 1); }
@keyframes shuffle { 40% { transform: translateY(-20px) rotate(calc((7 - var(--i)) * 2.4deg)); } }
.deck-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.deck-actions .btn { min-height: 48px; }
.deck-hint { text-align: center; font-size: 15px; color: rgba(231, 219, 197, .7) !important; margin: 0; }
.deck-wrap .const-panel { max-width: 760px; margin: 0 auto; width: 100%; }
@media (max-width: 900px) {
  .deck { height: auto; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 80px 20px 18px; -webkit-overflow-scrolling: touch; }
  .topic-card { position: relative; left: auto; flex: 0 0 200px; height: 280px; transform: none; scroll-snap-align: center; }
  .topic-card:hover, .topic-card:focus-visible { transform: translateY(-14px); }
  .topic-card[aria-pressed="true"] { transform: translateY(-40px); }
}
@media (prefers-reduced-motion: reduce) { .topic-card { transition: none; } .deck.shuffle .topic-card { animation: none; } }

/* ---------- 7. Four ways to work together: a hand of cards ---------- */
@media (min-width: 1001px) {
  .envelopes.hand { display: flex; justify-content: center; gap: 0; padding: 40px 0 10px; }
  .envelopes.hand .envelope { flex: 0 0 280px; margin: 0 -18px; transform-origin: 50% 150%; transform: rotate(calc((var(--k) - 1.5) * 6deg)) translateY(calc(var(--lift, 0) * 1px)); transition: transform .45s cubic-bezier(.2, 1.2, .3, 1), box-shadow .35s; z-index: 1; }
  .envelopes.hand .envelope:nth-child(1) { --k: 0; --lift: 14; } .envelopes.hand .envelope:nth-child(2) { --k: 1; --lift: 0; }
  .envelopes.hand .envelope:nth-child(3) { --k: 2; --lift: 0; } .envelopes.hand .envelope:nth-child(4) { --k: 3; --lift: 14; }
  .envelopes.hand .envelope:hover, .envelopes.hand .envelope:focus-visible { transform: rotate(0deg) translateY(-34px) scale(1.04); z-index: 5; box-shadow: 0 50px 60px -30px rgba(40, 30, 15, .85); }
  .envelopes.hand:hover .envelope:not(:hover) { filter: saturate(.85) brightness(.97); }
}

/* ---------- 8. The Postmoon mailer ---------- */
.pm-mailer { position: relative; margin-top: clamp(110px, 12vw, 150px); }
.pmm-env { position: relative; width: min(330px, 70%); aspect-ratio: 330 / 210; margin: 0 auto 26px; transform: rotate(-4deg); transition: transform .9s cubic-bezier(.3, .8, .3, 1); }
.pmm-env .back { position: absolute; inset: 0; background: #DDBFB2; border-radius: 4px; box-shadow: var(--shadow); }
.pmm-env .pocket { position: absolute; inset: 0; z-index: 2; border-radius: 4px; background:
  linear-gradient(to top right, #EBD3C8 49.5%, transparent 50%) left bottom / 50.2% 100% no-repeat,
  linear-gradient(to top left, #EBD3C8 49.5%, transparent 50%) right bottom / 50.2% 100% no-repeat; filter: drop-shadow(0 -1px 2px rgba(30, 35, 70, .2)); }
.pmm-env .flap { position: absolute; left: 0; right: 0; top: 0; height: 60%; z-index: 3; transform-origin: 50% 0; transition: transform .7s ease .2s, z-index 0s .55s; }
.pmm-env .flap::before { content: ""; position: absolute; inset: 0; background: #E3C6B9; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.pmm-env .wax { position: absolute; left: 50%; top: 60%; z-index: 4; width: 62px; margin: -31px 0 0 -31px; transition: transform .6s ease, opacity .5s ease; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .35)); }
.pmm-env .note { position: absolute; left: 10%; right: 10%; top: 8%; bottom: 8%; z-index: 1; background: var(--moonmilk); border-radius: 2px; }
.pm-mailer.spilled .pmm-env { transform: rotate(-14deg) translateY(-6px); }
.pm-mailer.spilled .pmm-env .flap { transform: rotateX(180deg); z-index: 0; }
.pm-mailer.spilled .pmm-env .wax { transform: translateY(26px) rotate(25deg); opacity: 0; }
.pm-mailer .cards { margin-top: 0; }
.js .pm-mailer .card { opacity: 0; transform: translate(var(--fx, 0), -230px) scale(.42) rotate(var(--fr, 0deg)); transition: transform 1s cubic-bezier(.25, 1.25, .35, 1), opacity .5s ease; }
.pm-mailer .card:nth-child(1) { --fx: calc(100% + 28px); --fr: 12deg; --to: rotate(-1.1deg); transition-delay: .55s; }
.pm-mailer .card:nth-child(2) { --fx: 0px; --fr: -6deg; --to: rotate(.6deg) translateY(6px); transition-delay: .75s; }
.pm-mailer .card:nth-child(3) { --fx: calc(-100% - 28px); --fr: -14deg; --to: rotate(-.4deg); transition-delay: .95s; }
.pm-mailer.spilled .card { opacity: 1; transform: var(--to); }
.pm-mailer .card a { color: var(--rosehip); font-weight: 700; }
@media (max-width: 760px) { .pm-mailer .card { --fx: 0px !important; } }
@media (prefers-reduced-motion: reduce) { .pm-mailer .card, .pmm-env, .pmm-env * { transition: none !important; } }
.env-letter .signoff { margin-top: 18px; }

/* FAAITH and HOPE picture book */
.fh-book { color: var(--cream); margin-top: 10px; }
.night .book-bar button:hover:not(:disabled) { background: var(--cream); color: var(--navy); border-color: var(--cream); }
.bp.fh-art { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background-color: #F6EEDF; background-image: radial-gradient(circle at 50% 42%, rgba(47, 122, 120, .16) 0 30cqw, transparent 30.4cqw), var(--fiber); }
.bp.fh-art .fh-icon { width: 42cqw; height: 42cqw; }
.bp.fh-art .fh-icon path, .bp.fh-art .fh-icon circle { stroke: var(--teal); }
.bp.fh-art .fh-icon path[fill="#CDB083"] { fill: var(--gold); stroke: none; }
.fh-roman { font-family: var(--serif); font-style: italic; font-size: 6cqw; color: var(--gold); margin: 7cqw 0 0; }
.fh-word { font-family: var(--serif); font-weight: 600; font-size: 12cqw; line-height: 1; color: var(--navy); margin: 1cqw 0 0; }

/* How to talk series */
.ht-shelf { display: grid; gap: clamp(60px, 8vw, 100px); }
.bp.ht-art { display: flex; flex-direction: column; align-items: center; justify-content: center; background-color: #F6EEDF; }
.ht-ring { display: grid; place-items: center; width: 46cqw; aspect-ratio: 1; border-radius: 50%; border: .6cqw solid var(--gold); box-shadow: inset 0 0 0 2.4cqw #F6EEDF, inset 0 0 0 2.8cqw rgba(47, 122, 120, .5); }
.ht-ring span { font-family: var(--serif); font-style: italic; font-size: 16cqw; color: var(--navy); }
.ht-ch { font-family: var(--serif); font-weight: 600; font-size: 8.4cqw; line-height: 1.05; color: var(--navy); text-align: center; margin: 6cqw 0 0; }
