:root {
  --ink: #1d1619;
  --body: #4f4448;
  --muted: #8b7f84;
  --rose: #a85d78;
  --rose-deep: #8a4560;
  --blush: #f6e4ea;
  --blush-soft: #fcf6f8;
  --line: #ece4e7;
  --ease: cubic-bezier(.22,.7,.2,1);
  color-scheme: light only;
  box-sizing: border-box;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-behavior: smooth; background: #fff; scroll-padding-top: calc(68px + env(safe-area-inset-top, 0px)); }
body { margin: 0; background: #fff; color: var(--ink); font: 400 1rem/1.75 "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
a:focus-visible, summary:focus-visible, button:focus-visible, input:focus-visible { outline: 1px solid var(--rose); outline-offset: 4px; }
img { max-width: 100%; display: block; }
::selection { background: var(--blush); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Falling hearts */
.hearts { position: fixed; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.hearts svg { position: absolute; top: -30px; left: var(--x); width: var(--s); height: var(--s); opacity: 0; animation: drift var(--d) linear var(--delay) infinite; }
.hearts path { fill: none; stroke: var(--rose); stroke-width: 1.1; }
.hearts svg.f path { fill: var(--blush); stroke: none; }
@keyframes drift {
  0% { transform: translate(0,-30px) rotate(-12deg); opacity: 0; }
  10% { opacity: .55; }
  50% { transform: translate(28px,50vh) rotate(10deg); }
  90% { opacity: .45; }
  100% { transform: translate(-10px,104vh) rotate(-8deg); opacity: 0; }
}

/* Top bar */
.bar { position: sticky; top: 0; z-index: 20; padding-top: env(safe-area-inset-top, 0px); background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .4s ease; }
.bar.scrolled { border-bottom-color: var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: rgba(255,255,255,.92); }
.bar-in { max-width: 68rem; margin: 0 auto; height: 64px; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.brand { font-family: "Cormorant Garamond", serif; font-weight: 500; font-size: 1.4rem; text-decoration: none; letter-spacing: .02em; }
.bar nav { display: flex; gap: 1.6rem; }
.bar nav a { text-decoration: none; font-size: .85rem; color: var(--body); letter-spacing: .04em; position: relative; transition: color .3s ease; }
.bar nav a:hover { color: var(--ink); }
.bar nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--rose); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.bar nav a:hover::after { transform: scaleX(1); transform-origin: left; }
@media (max-width: 400px) { .bar nav { gap: 1.1rem; } }

.wrap { position: relative; z-index: 2; max-width: 36rem; margin: 0 auto; padding: 0 1.5rem; }

/* Hero */
.hero { position: relative; z-index: 2; text-align: center; padding: 5.5rem 1.5rem 4rem; overflow: hidden; }
.hero::before { content: ""; position: absolute; left: 50%; top: 42%; width: 560px; height: 560px; transform: translate(-50%,-50%); border-radius: 50%; background: radial-gradient(circle, var(--blush) 0%, rgba(246,228,234,.4) 40%, transparent 70%); z-index: -1; animation: breathe 9s ease-in-out infinite; }
@keyframes breathe { 0%,100% { transform: translate(-50%,-50%) scale(1); } 50% { transform: translate(-50%,-50%) scale(1.08); } }
.kicker { display: inline-flex; align-items: center; gap: .8rem; margin: 0 0 1.4rem; font-size: .82rem; letter-spacing: .08em; color: var(--rose-deep); }
.kicker::before, .kicker::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .5; }
h1 { font-family: "Cormorant Garamond", serif; font-weight: 400; font-size: clamp(3.6rem, 16vw, 5.4rem); line-height: .9; margin: 0; letter-spacing: -.01em; }
h1 .line { display: block; overflow: hidden; padding-bottom: .08em; }
h1 .line span { display: block; transform: translateY(105%); animation: up 1.2s var(--ease) forwards; }
h1 .line:nth-child(2) span { animation-delay: .12s; font-style: italic; color: var(--rose-deep); }
@keyframes up { to { transform: none; } }
.hero .tag { margin: 1.75rem auto 0; max-width: 30ch; color: var(--body); font-size: 1.05rem; }
.ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2.25rem; }
.ctas .btn { padding: .95rem 1.75rem; }
.fade { opacity: 0; transform: translateY(12px); animation: rise 1s var(--ease) forwards; }
.d1 { animation-delay: .5s; } .d2 { animation-delay: .65s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Ticker */
.ticker { position: relative; z-index: 2; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; white-space: nowrap; padding: .9rem 0; background: #fff; }
.ticker-track { display: inline-flex; animation: scroll 38s linear infinite; }
.ticker span { font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 1.15rem; color: var(--body); padding: 0 1.4rem; }
.ticker i { font-style: normal; color: var(--rose); padding: 0 .2rem; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* Buttons */
.btn { position: relative; display: block; overflow: hidden; text-align: center; padding: .95rem 1.2rem; background: transparent; color: var(--ink); border: 1px solid var(--ink); text-decoration: none; font: 500 .88rem/1.4 "Figtree", sans-serif; letter-spacing: .06em; z-index: 0; cursor: pointer; transition: color .45s var(--ease), border-color .45s var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease); z-index: -1; }
.btn:hover { color: #fff; }
.btn:hover::before { transform: scaleY(1); }
.btn.solid { background: var(--ink); color: #fff; }
.btn.solid::before { background: var(--rose-deep); }
.btn.solid:hover { border-color: var(--rose-deep); }
.btn[disabled] { opacity: .6; cursor: wait; }

h2 { font-family: "Cormorant Garamond", serif; font-weight: 400; font-size: clamp(2.5rem, 10vw, 3.1rem); line-height: 1; margin: 0; letter-spacing: -.01em; }
.section { padding: 6rem 0 0; }
.head { text-align: center; margin-bottom: 2.5rem; }
.head .kicker { margin-bottom: 1rem; }
.lead { margin: 1rem auto 0; color: var(--body); max-width: 34ch; }
.fine { margin: 1.25rem auto 0; font-size: .85rem; color: var(--muted); max-width: 38ch; text-align: center; }
.fine a { color: var(--rose-deep); text-underline-offset: 3px; }

/* Releases */
.releases { padding-top: 5rem; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 84%; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .5rem 1.5rem 1.5rem; margin: 0 -1.5rem; scrollbar-width: none; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.rail.single { grid-auto-columns: 100%; }
.release { scroll-snap-align: center; background: #fff; border: 1px solid var(--line); padding: 2.5rem 1.6rem 2rem; text-align: center; display: flex; flex-direction: column; }
.cover-wrap { perspective: 1000px; margin: 0 auto 2rem; position: relative; }
.cover-wrap::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: -14px; height: 14px; border-radius: 50%; background: radial-gradient(ellipse, rgba(29,22,25,.18), transparent 70%); }
.cover { width: 176px; aspect-ratio: 2/3; overflow: hidden; border-radius: 1px 3px 3px 1px; box-shadow: 0 30px 50px -18px rgba(29,22,25,.35), 0 2px 6px rgba(29,22,25,.08); transform: rotateY(-14deg) rotateX(2deg); transition: transform .8s var(--ease); position: relative; }
.cover::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 9px; background: linear-gradient(90deg, rgba(0,0,0,.2), rgba(255,255,255,.18) 60%, transparent); z-index: 2; }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.35) 50%, transparent 60%); transform: translateX(-100%); transition: transform 1.1s var(--ease); z-index: 3; }
.release:hover .cover { transform: rotateY(0) translateY(-6px); }
.release:hover .cover::after { transform: translateX(100%); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.ph { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.1rem; text-align: center; background: linear-gradient(160deg, var(--phbg), color-mix(in srgb, var(--phbg) 82%, #000)); color: var(--phink); }
.ph .pt { font-family: "Cormorant Garamond", serif; font-weight: 500; font-size: 1.45rem; line-height: 1.05; }
.ph .pl { width: 24px; height: 1px; background: currentColor; opacity: .45; margin: .8rem 0; }
.ph .pa { font-size: .56rem; letter-spacing: .24em; opacity: .8; }
.status { margin: 0; font-size: .8rem; letter-spacing: .06em; color: var(--rose-deep); }
.release h3 { font-family: "Cormorant Garamond", serif; font-weight: 500; font-size: 1.9rem; line-height: 1.05; margin: .5rem 0 0; }
.release .sub { margin: .35rem 0 0; color: var(--muted); font-size: .9rem; }
.release .btn { margin-top: 1.75rem; }
.release .note { margin: .8rem 0 0; color: var(--muted); font-size: .8rem; }
.rail-nav { display: flex; align-items: center; justify-content: center; gap: 1.25rem; margin-top: .5rem; }
.dots { display: flex; gap: .4rem; }
.dots button { width: 18px; height: 2px; padding: 0; border: 0; background: var(--line); cursor: pointer; transition: background-color .4s ease, width .4s var(--ease); }
.dots button[aria-current="true"] { background: var(--ink); width: 34px; }
.arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; font-size: 1.05rem; transition: border-color .3s ease, background-color .3s ease, color .3s ease; }
.arrow:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.rail-nav.hidden { display: none; }

/* Shelf */
.stack { display: grid; gap: 4px; }
.ledge { height: 6px; margin-top: 4px; background: var(--ink); box-shadow: 0 16px 24px -10px rgba(29,22,25,.35); }
.spine { overflow: hidden; background: #fff; }
.stack.show .spine { animation: slide 1s var(--ease) both; animation-delay: calc(var(--i) * 90ms); }
.stack:not(.show) .spine { opacity: 0; }
@keyframes slide { from { opacity: 0; transform: translateX(-36px); } to { opacity: 1; transform: none; } }
.spine summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.4rem; color: var(--tc); background: var(--c); position: relative; transition: padding-left .5s var(--ease); border: 1px solid color-mix(in srgb, var(--c) 85%, #000); }
.spine summary:hover { padding-left: 1.8rem; }
.spine summary::-webkit-details-marker { display: none; }
.spine summary::before, .spine summary::after { content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: color-mix(in srgb, var(--tc) 40%, transparent); }
.spine summary::before { left: 12px; box-shadow: 4px 0 0 color-mix(in srgb, var(--tc) 40%, transparent); }
.spine summary::after { right: 12px; box-shadow: -4px 0 0 color-mix(in srgb, var(--tc) 40%, transparent); }
.spine .t { font-family: "Cormorant Garamond", serif; font-weight: 500; font-size: 1.35rem; line-height: 1.1; padding-left: .7rem; }
.spine .n { font-size: .75rem; letter-spacing: .05em; opacity: .75; padding-right: .7rem; white-space: nowrap; }
.spine .plus { display: inline-block; margin-left: .5rem; transition: transform .45s var(--ease); }
.spine[open] .plus { transform: rotate(45deg); }
.spine .inside { padding: 1.4rem 1.4rem 1.5rem; display: grid; gap: .55rem; border: 1px solid var(--line); border-top: 0; }
.spine[open] .inside { animation: open .5s var(--ease); }
@keyframes open { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.spine .inside p { margin: 0 0 .3rem; color: var(--body); font-size: .93rem; }
.stack .spine:nth-child(6n+2) { margin-right: 5%; } .stack .spine:nth-child(6n+3) { margin-right: 2%; }
.stack .spine:nth-child(6n+4) { margin-right: 8%; } .stack .spine:nth-child(6n+5) { margin-right: 3%; } .stack .spine:nth-child(6n) { margin-right: 11%; }

/* About */
.about-card { border: 1px solid var(--line); background: #fff; }
.portrait { position: relative; height: 360px; margin: 1.5rem 1.5rem 0; border-radius: 999px 999px 0 0; overflow: hidden; background: linear-gradient(170deg, var(--blush-soft), var(--blush)); display: flex; align-items: center; justify-content: center; }
.portrait::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(255,255,255,.9); border-radius: 999px 999px 0 0; pointer-events: none; }
.portrait .pm { font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 5rem; color: var(--rose); opacity: .55; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.about-body { padding: 2.25rem 1.75rem 2.5rem; }
.about-body .hi { margin: 0; font-family: "Cormorant Garamond", serif; font-weight: 400; font-size: 2.2rem; line-height: 1.05; }
.about-body p { margin: 1.1rem 0 0; color: var(--body); }
.pull { margin: 2.25rem 0 0; padding: 1.75rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 1.6rem; line-height: 1.25; color: var(--ink); }
.pull cite { display: block; margin-top: .75rem; font-family: "Figtree", sans-serif; font-style: normal; font-size: .78rem; letter-spacing: .06em; color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 1.75rem 0 0; }
.facts div { text-align: center; padding: .25rem; }
.facts div + div { border-left: 1px solid var(--line); }
.facts dt { font-size: .74rem; letter-spacing: .05em; color: var(--muted); }
.facts dd { margin: .15rem 0 0; font-family: "Cormorant Garamond", serif; font-weight: 500; font-size: 1.2rem; line-height: 1.15; }
.sign { margin: 2rem 0 0; font-family: "Pinyon Script", "Brush Script MT", cursive; font-size: 2.6rem; line-height: 1; color: var(--rose-deep); text-align: right; }

/* Newsletter */
.letter { position: relative; overflow: hidden; background: var(--ink); color: #f4ecef; padding: 3.5rem 1.75rem; text-align: center; }
.letter::before { content: ""; position: absolute; left: 50%; top: 0; width: 420px; height: 420px; transform: translate(-50%,-55%); border-radius: 50%; background: radial-gradient(circle, rgba(201,140,163,.35), transparent 70%); animation: glow 8s ease-in-out infinite; }
@keyframes glow { 0%,100% { opacity: .7; } 50% { opacity: 1; } }
.letter > * { position: relative; }
.letter .kicker { color: #e6b3c6; }
.letter h2 { color: #fff; }
.letter .lead { color: #cbbcc2; }
.signup { display: grid; gap: .6rem; margin: 2rem auto 0; max-width: 24rem; }
.signup input { width: 100%; padding: .95rem 1rem; background: transparent; border: 1px solid rgba(255,255,255,.35); color: #fff; font: 400 1rem "Figtree", sans-serif; border-radius: 0; transition: border-color .3s ease; }
.signup input::placeholder { color: #a8979e; }
.signup input:focus { border-color: #fff; outline: none; }
.signup .btn { border-color: #fff; color: var(--ink); background: #fff; }
.signup .btn::before { background: var(--blush); }
.signup .btn:hover { color: var(--ink); }
.msg { margin: .4rem 0 0; min-height: 1.5em; font-size: .9rem; color: #e6b3c6; }

/* Contact */
.contact { display: grid; border-top: 1px solid var(--line); }
.contact a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.35rem .2rem; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding-left .5s var(--ease), color .3s ease; }
.contact a:hover { padding-left: .9rem; color: var(--rose-deep); }
.contact .k { font-family: "Cormorant Garamond", serif; font-weight: 500; font-size: 1.4rem; }
.contact .v { font-size: .8rem; letter-spacing: .04em; color: var(--muted); }

footer { position: relative; z-index: 2; margin-top: 6rem; padding: 3.5rem 1.5rem 3rem; text-align: center; background: var(--ink); color: #cbbcc2; }
footer .brand { display: inline-block; font-size: 2rem; color: #fff; margin-bottom: 1.5rem; }
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.6rem; padding: 0; margin: 0 0 2rem; list-style: none; }
.socials a { font-size: .85rem; letter-spacing: .04em; color: #e9dde2; text-decoration: none; transition: color .3s ease; }
.socials a:hover { color: #e6b3c6; }
footer small { font-size: .78rem; color: #9b8c92; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (min-width: 640px) { .rail { grid-auto-columns: calc(50% - .5rem); } .rail.single { grid-auto-columns: 100%; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  h1 .line span, .fade, .reveal, .stack:not(.show) .spine { opacity: 1 !important; transform: none !important; }
  .hearts { display: none; } html { scroll-behavior: auto; }
}

.book-row { display: flex; gap: 1.1rem; align-items: flex-start; margin-bottom: .6rem; }
.book-row .thumb { width: 92px; aspect-ratio: 2/3; object-fit: cover; flex: none; box-shadow: 0 14px 24px -12px rgba(29,22,25,.4); }
.book-row p { margin: 0; }

.about-body p a { color: var(--rose-deep); text-underline-offset: 3px; }

/* Press & media */
.press-label { margin: 0 0 1rem; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: .9rem; }
.press-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.press-grid { display: grid; gap: 1rem; margin-bottom: 3rem; }
@media (min-width: 640px) { .press-grid { grid-template-columns: 1fr 1fr; } .press-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
.press-card { display: flex; flex-direction: column; border: 1px solid var(--line); background: #fff; padding: 1.75rem 1.5rem 1.5rem; transition: border-color .4s ease, transform .5s var(--ease); }
.press-card:hover { border-color: var(--rose); transform: translateY(-3px); }
.press-card .pub { margin: 0; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--rose-deep); }
.press-card h3 { font-family: "Cormorant Garamond", serif; font-weight: 500; font-size: 1.55rem; line-height: 1.15; margin: .6rem 0 0; }
.press-card p:not(.pub) { margin: .75rem 0 1.4rem; color: var(--body); font-size: .93rem; flex: 1; }
.online { display: grid; border-top: 1px solid var(--line); }
.online a { display: grid; grid-template-columns: 1fr auto; gap: .1rem 1rem; padding: 1.2rem .2rem; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding-left .5s var(--ease), color .3s ease; }
.online a:hover { padding-left: .9rem; color: var(--rose-deep); }
.online .k { font-family: "Cormorant Garamond", serif; font-weight: 500; font-size: 1.4rem; line-height: 1.2; }
.online .d { grid-column: 1; font-size: .85rem; color: var(--muted); }
.online .ar { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--rose); }
@media (max-width: 420px) { .bar nav { gap: .9rem; } .bar nav a { font-size: .8rem; letter-spacing: .02em; } .brand { font-size: 1.25rem; } }

/* Show full covers, never cropped */
.cover.has-img { aspect-ratio: auto; }
.cover.has-img img { height: auto; object-fit: contain; }
.book-row .thumb { aspect-ratio: auto; height: auto; object-fit: contain; }

/* Pre-order tag */
.release { position: relative; }
.release.is-preorder { border-color: color-mix(in srgb, var(--rose) 45%, var(--line)); background: linear-gradient(180deg, var(--blush-soft), #fff 55%); }
.po-badge { position: absolute; top: 1rem; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: .45rem; padding: .32rem .85rem .32rem .7rem; border-radius: 999px; background: var(--rose-deep); color: #fff; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; box-shadow: 0 6px 16px -6px rgba(138,69,96,.6); z-index: 4; white-space: nowrap; }
.release.is-preorder .cover-wrap { margin-top: 1.2rem; }
.po-dot { width: 7px; height: 7px; border-radius: 50%; background: #ffd9e6; animation: po-pulse 1.8s ease-out infinite; }
@keyframes po-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,217,230,.8); } 100% { box-shadow: 0 0 0 8px rgba(255,217,230,0); } }
.po-band { position: absolute; left: 0; right: 0; bottom: 14%; z-index: 4; overflow: hidden; background: rgba(138,69,96,.94); color: #fff; padding: .38rem 0; transform: rotate(-4deg) scale(1.15); box-shadow: 0 6px 14px -6px rgba(0,0,0,.5); border-top: 1px solid rgba(255,255,255,.35); border-bottom: 1px solid rgba(255,255,255,.35); }
.po-track { display: inline-flex; white-space: nowrap; animation: po-scroll 9s linear infinite; }
.po-track span { font-size: .62rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; padding: 0 .55rem; }
.po-track i { font-style: normal; font-size: .55rem; color: #ffd9e6; }
@keyframes po-scroll { to { transform: translateX(-50%); } }
.cover-link { display: block; text-decoration: none; }
.po-btn { background: var(--rose-deep) !important; border-color: var(--rose-deep) !important; }
.po-btn::before { background: var(--ink) !important; }

/* Pre-order spine on the shelf: tap goes straight to pre-order */
a.spine-po { display: block; text-decoration: none; }
a.spine-po .summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.4rem; color: var(--tc); background: var(--c); position: relative; transition: padding-left .5s var(--ease); border: 1px solid color-mix(in srgb, var(--c) 85%, #000); }
a.spine-po:hover .summary { padding-left: 1.8rem; }
a.spine-po .summary::before, a.spine-po .summary::after { content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: color-mix(in srgb, var(--tc) 40%, transparent); }
a.spine-po .summary::before { left: 12px; box-shadow: 4px 0 0 color-mix(in srgb, var(--tc) 40%, transparent); }
a.spine-po .summary::after { right: 12px; box-shadow: -4px 0 0 color-mix(in srgb, var(--tc) 40%, transparent); }
a.spine-po .n { display: inline-flex; align-items: center; gap: .55rem; opacity: 1; }
.po-pill { display: inline-block; padding: .18rem .6rem; border-radius: 999px; background: #fff; color: var(--rose-deep); font-size: .66rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; position: relative; overflow: hidden; }
.po-pill::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(214,150,175,.55), transparent); animation: po-shine 2.8s ease-in-out infinite; }
@keyframes po-shine { 0% { left: -60%; } 50%, 100% { left: 130%; } }

/* Author photo: show the whole portrait in a soft frame */
.portrait { height: auto; aspect-ratio: 540 / 695; border-radius: 6px; background: #e9e4e6; }
.portrait::after { inset: 10px; border-radius: 3px; border-color: rgba(255,255,255,.75); }
.portrait img { object-position: 50% 0; }
@media (min-width: 640px) { .portrait { max-width: 26rem; margin-left: auto; margin-right: auto; } }

/* =========================================================
   Baby pink theme: soft, girly and pretty
   ========================================================= */
:root {
  --ink: #4a2335;
  --body: #6e4a5a;
  --muted: #a07888;
  --rose: #e48aab;
  --rose-deep: #c2557f;
  --blush: #ffd6e5;
  --blush-soft: #fff0f5;
  --line: #f8cfde;
  --pink-bg: #ffe9f1;
}
html, body { background: var(--pink-bg); }
body {
  background:
    radial-gradient(1200px 600px at 10% -10%, #ffd3e3 0%, transparent 60%),
    radial-gradient(900px 500px at 110% 30%, #ffdbe8 0%, transparent 60%),
    radial-gradient(900px 600px at -10% 75%, #ffe0ec 0%, transparent 60%),
    linear-gradient(180deg, #fff0f6 0%, #ffe6ef 45%, #ffeaf2 100%);
  background-attachment: fixed;
}
::selection { background: #ffc2d8; }

.bar { background: rgba(255,236,243,.85); }
.bar.scrolled { border-bottom-color: #f6c6d8; }
body::before { background: rgba(255,236,243,.85); }
.brand { color: var(--rose-deep); font-style: italic; }

/* Hero: rosy glow, sparkles */
.hero::before { background: radial-gradient(circle, #ffc4da 0%, rgba(255,196,218,.45) 40%, transparent 70%); }
h1 { color: var(--ink); }
h1 .line:nth-child(2) span { color: var(--rose-deep); }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background-image:
    radial-gradient(circle, #fff 0 2px, transparent 3px),
    radial-gradient(circle, #ffb6d0 0 1.5px, transparent 2.5px),
    radial-gradient(circle, #fff 0 1.5px, transparent 2.5px);
  background-size: 140px 140px, 190px 190px, 110px 110px;
  background-position: 20px 30px, 80px 90px, 50px 10px;
  animation: twinkle 4s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .35; } to { opacity: 1; } }

/* Ticker */
.ticker { background: linear-gradient(90deg, #ffc9dc, #ffe1ec 50%, #ffc9dc); border-color: #f7bcd2; }
.ticker span { color: #7a3a55; }
.ticker i { color: var(--rose-deep); }

/* Buttons: rose pill */
.btn { border-radius: 999px; border-color: var(--rose-deep); color: var(--rose-deep); background: rgba(255,255,255,.7); }
.btn::before { background: var(--rose-deep); }
.btn:hover { color: #fff; }
.btn.solid { background: linear-gradient(135deg, #e7769f, #c2557f); border-color: transparent; color: #fff; box-shadow: 0 10px 22px -10px rgba(194,85,127,.7); }
.btn.solid::before { background: #a8416a; }
.po-btn { background: linear-gradient(135deg, #e7769f, #c2557f) !important; }
.po-btn::before { background: #a8416a !important; }

/* Cards */
.release, .about-card, .press-card { background: rgba(255,255,255,.82); border-color: #f8cddd; border-radius: 22px; box-shadow: 0 18px 40px -26px rgba(194,85,127,.55); }
.release.is-preorder { background: linear-gradient(180deg, #ffe3ee, #fff 60%); border-color: #eea6c1; }
.press-card:hover { border-color: var(--rose); }
.arrow { background: #fff; border-color: #f4bcd0; color: var(--rose-deep); }
.arrow:hover { background: var(--rose-deep); border-color: var(--rose-deep); color: #fff; }
.dots button { background: #f5c3d5; border-radius: 2px; }
.dots button[aria-current="true"] { background: var(--rose-deep); }
.status, .kicker, .pub { color: var(--rose-deep); }

/* Shelf: all pink spines, still distinct */
.ledge { background: linear-gradient(90deg, #d86f96, #c2557f); border-radius: 0 0 6px 6px; box-shadow: 0 16px 24px -10px rgba(194,85,127,.55); }
.stack .spine summary, a.spine-po .summary { border-radius: 4px; }
.stack > :nth-child(6n+1) { --c: #c2557f !important; --tc: #fff !important; }
.stack > :nth-child(6n+2) { --c: #e7769f !important; --tc: #fff !important; }
.stack > :nth-child(6n+3) { --c: #ffd0e0 !important; --tc: #5a2840 !important; }
.stack > :nth-child(6n+4) { --c: #f3a6c2 !important; --tc: #4a2335 !important; }
.stack > :nth-child(6n+5) { --c: #fff2f7 !important; --tc: #8a4560 !important; }
.stack > :nth-child(6n)   { --c: #d8879f !important; --tc: #fff !important; }
.spine .inside { background: rgba(255,255,255,.85); border-color: #f8cddd; border-radius: 0 0 14px 14px; }
.po-pill { color: var(--rose-deep); }

/* About */
.portrait { background: #ffe1ec; border-radius: 18px; }
.pull { border-color: #f8cddd; color: var(--rose-deep); }
.facts div + div { border-left-color: #f8cddd; }
.facts dd { color: var(--rose-deep); }

/* Newsletter: rose gradient */
.letter { background: linear-gradient(145deg, #e7769f 0%, #c2557f 55%, #a8416a 100%); border-radius: 26px; box-shadow: 0 30px 60px -30px rgba(168,65,106,.8); }
.letter::before { background: radial-gradient(circle, rgba(255,255,255,.35), transparent 70%); }
.letter .kicker { color: #ffe3ee; }
.letter .lead { color: #ffe9f1; }
.signup input { border-color: rgba(255,255,255,.6); border-radius: 999px; background: rgba(255,255,255,.12); padding-left: 1.25rem; }
.signup input::placeholder { color: #ffd9e6; }
.signup .btn { background: #fff; color: var(--rose-deep); border-color: #fff; }
.signup .btn::before { background: #ffe1ec; }
.signup .btn:hover { color: var(--rose-deep); }
.msg { color: #fff; }

/* Contact & online lists */
.contact, .online { border-top-color: #f8cddd; }
.contact a, .online a { border-bottom-color: #f8cddd; }
.contact a:hover, .online a:hover { color: var(--rose-deep); }
.press-label::after { background: #f8cddd; }

/* Footer */
footer { background: linear-gradient(180deg, #ffd3e3, #f6b3cb); color: #7a3a55; }
footer .brand { color: var(--rose-deep); }
.socials a { color: #6e2f4a; }
.socials a:hover { color: #fff; }
footer small { color: #8f5470; }

/* More hearts, pinker */
.hearts path { stroke: #e48aab; stroke-width: 1.3; }
.hearts svg.f path { fill: #ffbcd3; }
@keyframes drift {
  0% { transform: translate(0,-30px) rotate(-12deg) scale(.9); opacity: 0; }
  10% { opacity: .8; }
  50% { transform: translate(28px,50vh) rotate(10deg) scale(1.05); }
  90% { opacity: .65; }
  100% { transform: translate(-10px,104vh) rotate(-8deg) scale(.95); opacity: 0; }
}

/* =========================================================
   Pre-order showcase: glowing halo, spinning seal, sparkles
   ========================================================= */
.po-band { display: none; }
.release.is-preorder { overflow: visible; background: linear-gradient(180deg, #ffd9e7 0%, #fff3f8 55%, #fff 100%); border: 1.5px solid #f0a3c0; }
.release.is-preorder .cover-wrap { margin-top: 1.9rem; margin-bottom: 2.4rem; }
.release.is-preorder .cover-wrap::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 260px; height: 320px; transform: translate(-50%,-50%);
  background: radial-gradient(ellipse at center, rgba(255,140,186,.65) 0%, rgba(255,182,211,.35) 40%, transparent 70%);
  filter: blur(6px); z-index: -1; animation: po-halo 3.2s ease-in-out infinite;
}
@keyframes po-halo { 0%,100% { opacity: .7; transform: translate(-50%,-50%) scale(.95); } 50% { opacity: 1; transform: translate(-50%,-50%) scale(1.06); } }
.release.is-preorder .cover { animation: po-float 4.5s ease-in-out infinite; }
@keyframes po-float { 0%,100% { transform: rotateY(-14deg) rotateX(2deg) translateY(0); } 50% { transform: rotateY(-8deg) rotateX(2deg) translateY(-8px); } }
.release.is-preorder:hover .cover { animation-play-state: paused; }
.release.is-preorder .cover::after { animation: po-gleam 3.6s ease-in-out infinite; }
@keyframes po-gleam { 0%, 55% { transform: translateX(-100%); } 85%, 100% { transform: translateX(100%); } }

/* The spinning seal sticker */
.po-seal { position: absolute; right: -48px; bottom: -44px; width: 100px; height: 100px; z-index: 6; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff9cc2, #e2638f 55%, #b8406c 100%);
  box-shadow: 0 12px 26px -8px rgba(184,64,108,.75), inset 0 0 0 3px rgba(255,255,255,.55), inset 0 0 0 6px rgba(226,99,143,.6);
  display: flex; align-items: center; justify-content: center; animation: po-pop .9s cubic-bezier(.3,1.6,.5,1) .4s both, po-bob 3s ease-in-out 1.3s infinite; }
@keyframes po-pop { from { transform: scale(0) rotate(-40deg); } to { transform: scale(1) rotate(0); } }
@keyframes po-bob { 0%,100% { transform: rotate(-6deg) scale(1); } 50% { transform: rotate(6deg) scale(1.06); } }
.po-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: po-spin 12s linear infinite; }
.po-ring text { fill: #fff; font: 700 11.2px "Figtree", sans-serif; letter-spacing: 1.6px; }
@keyframes po-spin { to { transform: rotate(360deg); } }
.po-heart { width: 30px; height: 30px; fill: #fff; filter: drop-shadow(0 2px 4px rgba(120,20,60,.35)); animation: po-beat 1.2s ease-in-out infinite; }
@keyframes po-beat { 0%,100% { transform: scale(1); } 15% { transform: scale(1.22); } 30% { transform: scale(.96); } 45% { transform: scale(1.12); } }

/* Twinkling sparkles and rising hearts around the cover */
.po-fx { position: absolute; inset: -30px -40px; pointer-events: none; z-index: 5; }
.po-fx .sp { position: absolute; font-style: normal; color: #ff7fb0; text-shadow: 0 0 8px rgba(255,160,200,.9); animation: po-twinkle 2.4s ease-in-out infinite; }
.sp0 { top: 6%; left: 8%; font-size: 18px; } .sp1 { top: 0; right: 14%; font-size: 13px; animation-delay: .5s; }
.sp2 { top: 38%; left: 0; font-size: 12px; animation-delay: 1s; } .sp3 { top: 44%; right: 2%; font-size: 20px; animation-delay: 1.4s; }
.sp4 { bottom: 10%; left: 10%; font-size: 15px; animation-delay: .8s; } .sp5 { bottom: 26%; right: 26%; font-size: 10px; color: #fff; animation-delay: 1.8s; }
@keyframes po-twinkle { 0%,100% { opacity: 0; transform: scale(.4) rotate(0); } 50% { opacity: 1; transform: scale(1.1) rotate(45deg); } }
.po-fx .rh { position: absolute; bottom: 12%; font-weight: 400; color: #ff8fb8; opacity: 0; animation: po-rise 4s ease-in infinite; }
.rh0 { left: 22%; font-size: 14px; } .rh1 { left: 46%; font-size: 10px; animation-delay: .8s; color: #ffb3cf; }
.rh2 { left: 70%; font-size: 16px; animation-delay: 1.6s; } .rh3 { left: 34%; font-size: 11px; animation-delay: 2.4s; color: #fff; }
.rh4 { left: 60%; font-size: 13px; animation-delay: 3.2s; }
@keyframes po-rise { 0% { opacity: 0; transform: translateY(0) scale(.6); } 15% { opacity: .95; } 100% { opacity: 0; transform: translate(10px,-230px) scale(1.15); } }

/* Shimmering badge on top */
.po-badge { background: linear-gradient(110deg, #c2557f 0%, #ec7ba5 35%, #ffc3d9 50%, #ec7ba5 65%, #c2557f 100%); background-size: 250% 100%; animation: po-sheen 3s linear infinite; padding: .45rem 1rem; font-size: .7rem; top: .9rem; box-shadow: 0 8px 20px -6px rgba(194,85,127,.75); }
@keyframes po-sheen { from { background-position: 100% 0; } to { background-position: -150% 0; } }
.po-badge .po-dot { background: #fff; }

/* Pre-order button glows */
.po-btn { animation: po-glow 2.2s ease-in-out infinite; }
@keyframes po-glow { 0%,100% { box-shadow: 0 10px 22px -10px rgba(194,85,127,.7); } 50% { box-shadow: 0 10px 30px -4px rgba(236,123,165,.95); } }

@media (prefers-reduced-motion: reduce) { .po-fx { display: none; } }

/* =========================================================
   Coming soon showcase: gift-wrapped cover, confetti, script date
   ========================================================= */
.release.is-coming { overflow: hidden; background: linear-gradient(180deg, #fbe4ff 0%, #ffe6f0 45%, #fff 100%); border: 1.5px solid #e9b3d8; }
.release.is-coming .cover-wrap { margin-top: 2.3rem; }
.release.is-coming .cover-wrap::before { content: ""; position: absolute; left: 50%; top: 50%; width: 270px; height: 330px; transform: translate(-50%,-50%); background: conic-gradient(from 0deg, rgba(255,170,210,.0), rgba(255,170,210,.55), rgba(214,170,255,.45), rgba(255,200,225,.55), rgba(255,170,210,.0)); filter: blur(18px); border-radius: 50%; z-index: -1; animation: cs-swirl 8s linear infinite; }
@keyframes cs-swirl { to { transform: translate(-50%,-50%) rotate(360deg); } }
.cs-cover { animation: cs-tease 5s ease-in-out infinite; overflow: visible !important; }
@keyframes cs-tease { 0%,100% { transform: rotateY(-14deg) rotateX(2deg); } 50% { transform: rotateY(-4deg) rotateX(2deg) translateY(-6px); } }
.cs-cover img, .cs-cover .ph { border-radius: 1px 3px 3px 1px; }

/* Gift ribbon wrapped around the cover */
.cs-ribbon { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.cs-v, .cs-h { position: absolute; background: linear-gradient(90deg, #d8678f, #ffb3cf 30%, #ffd6e6 50%, #ffb3cf 70%, #d8678f); box-shadow: 0 0 10px rgba(194,85,127,.35); opacity: .93; }
.cs-v { top: -2px; bottom: -2px; right: 10%; width: 15px; }
.cs-h { left: -2px; right: -2px; top: 24%; height: 15px; background: linear-gradient(180deg, #d8678f, #ffb3cf 30%, #ffd6e6 50%, #ffb3cf 70%, #d8678f); }
.cs-bow { position: absolute; width: 84px; right: calc(10% + 7.5px); top: calc(24% + 7.5px); transform: translate(50%,-58%); filter: drop-shadow(0 6px 10px rgba(150,40,90,.4)); animation: cs-bow 2.6s ease-in-out infinite; transform-origin: 50% 50%; }
@keyframes cs-bow { 0%,100% { transform: translate(50%,-58%) rotate(-5deg) scale(1); } 50% { transform: translate(50%,-58%) rotate(5deg) scale(1.08); } }

/* Glittery coming-soon badge */
.cs-badge { position: absolute; top: .95rem; left: 50%; transform: translateX(-50%); z-index: 6; display: inline-flex; align-items: center; gap: .5rem; padding: .45rem 1.05rem; border-radius: 999px; white-space: nowrap; color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  background: linear-gradient(110deg, #b56cc9, #e47aa9 30%, #ffd1e4 50%, #e47aa9 70%, #b56cc9); background-size: 250% 100%; animation: po-sheen 3s linear infinite; box-shadow: 0 8px 22px -6px rgba(181,108,201,.7); }
.cs-star { display: inline-block; animation: cs-spark 1.6s ease-in-out infinite; }
.cs-star:last-child { animation-delay: .8s; }
@keyframes cs-spark { 0%,100% { transform: scale(.7) rotate(0); opacity: .6; } 50% { transform: scale(1.25) rotate(90deg); opacity: 1; } }

/* Date in handwriting */
.cs-date { margin: .2rem 0 0; font-family: "Pinyon Script", cursive; font-size: 2.3rem; line-height: 1.1; background: linear-gradient(90deg, #b56cc9, #e2638f, #b56cc9); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: po-sheen 4s linear infinite; }

/* Pastel confetti */
.cs-confetti { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.cf { position: absolute; top: -12px; left: var(--l); width: 7px; height: 11px; border-radius: 2px; opacity: 0; animation: cs-fall var(--du) linear var(--dl) infinite; }
.cf0 { background: #ff9cc2; } .cf1 { background: #d6aaff; border-radius: 50%; width: 8px; height: 8px; } .cf2 { background: #ffd36e; }
.cf3 { background: #9fe1d4; } .cf4 { background: #ffb3cf; border-radius: 50%; width: 6px; height: 6px; } .cf5 { background: #fff; } .cf6 { background: #f27aa6; }
@keyframes cs-fall { 0% { opacity: 0; transform: translateY(0) rotate(0); } 10% { opacity: .95; } 100% { opacity: 0; transform: translateY(560px) rotate(540deg) translateX(20px); } }
.release.is-coming > *:not(.cs-confetti):not(.cs-badge) { position: relative; z-index: 2; }

/* Notify button with a little bell ring */
.cs-btn { background: linear-gradient(135deg, #c27bd6, #e2638f) !important; border-color: transparent !important; }
.cs-btn::after { content: "🔔"; display: inline-block; margin-left: .5rem; animation: cs-ring 2.4s ease-in-out infinite; transform-origin: 50% 0; }
@keyframes cs-ring { 0%, 60%, 100% { transform: rotate(0); } 65% { transform: rotate(18deg); } 72% { transform: rotate(-16deg); } 79% { transform: rotate(10deg); } 86% { transform: rotate(-6deg); } }

/* Shelf pill for coming-soon books */
.cs-pill { display: inline-block; padding: .18rem .6rem; border-radius: 999px; background: linear-gradient(110deg, #b56cc9, #e47aa9 40%, #ffd1e4 50%, #e47aa9 60%, #b56cc9); background-size: 250% 100%; animation: po-sheen 3s linear infinite; color: #fff; font-size: .64rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.spine .n:has(.cs-pill) { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .cs-confetti { display: none; } }


/* Coming soon: calm, on-brand version (no purple, no shimmer) */
.release.is-coming { background: linear-gradient(180deg, #ffe4ee 0%, #fff6f9 60%, #fff 100%); border: 1px solid #f0b9cc; }
.release.is-coming .cover-wrap::before { display: none; }
.cs-confetti { display: none; }
.cs-cover { animation: none; }
.cs-badge { background: #fff; color: var(--rose-deep); border: 1px solid #eaa9c1; animation: none; box-shadow: 0 6px 16px -10px rgba(194,85,127,.5); font-weight: 600; letter-spacing: .14em; padding: .4rem 1rem; }
.cs-date { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--rose-deep); animation: none; font-size: 2.1rem; }
.cs-btn { background: linear-gradient(135deg, #e7769f, #c2557f) !important; }
.cs-btn::after { content: none; }
.cs-pill { background: rgba(255,255,255,.9); color: var(--rose-deep); border: 1px solid #eaa9c1; animation: none; font-weight: 600; }
.cs-bow { animation: none; transform: translate(50%,-58%); }

.po-pill { border: 1px solid #fff; }
.po-pill::after { content: none; }


/* =========================================================
   A little love note (Coming Soon books only)
   ========================================================= */
/* The tappable cover: looks exactly like before, it is just a button now. */
.ln-trigger { display: block; padding: 0; margin: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; border-radius: 4px; }
.ln-trigger:focus-visible { outline: 2px solid var(--rose-deep); outline-offset: 6px; }

/* Psst... tap for a little surprise */
.ln-prompt { display: inline-flex; align-items: center; gap: .3rem; max-width: 100%; white-space: nowrap; margin: .7rem auto 0; padding: .35rem .95rem .35rem .85rem; border: 0; border-radius: 999px; background: rgba(255,255,255,.55); box-shadow: inset 0 0 0 1px rgba(234,169,193,.6); font: italic 500 clamp(.95rem, 3.8vw, 1rem)/1.2 "Cormorant Garamond", serif; color: var(--rose-deep); cursor: pointer; -webkit-tap-highlight-color: transparent; animation: ln-float 3.6s ease-in-out infinite; transition: background .3s ease, box-shadow .3s ease; }
.ln-prompt:hover { background: #fff; box-shadow: inset 0 0 0 1px #e48aab, 0 8px 18px -12px rgba(194,85,127,.7); }
.ln-prompt:focus-visible { outline: 2px solid var(--rose-deep); outline-offset: 3px; }
.ln-prompt .ln-beat { display: inline-block; font-style: normal; color: #e2638f; animation: ln-beat 1.8s ease-in-out infinite; }
.inside .ln-prompt { display: flex; width: fit-content; margin: 0 0 .9rem; }
@keyframes ln-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes ln-beat { 0%,60%,100% { transform: scale(1); } 15% { transform: scale(1.3); } 30% { transform: scale(.95); } 45% { transform: scale(1.15); } }

/* Overlay */
.ln { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom)); visibility: hidden; pointer-events: none; }
.ln.is-open, .ln.is-closing { visibility: visible; pointer-events: auto; }
.ln.is-closing { pointer-events: none; }
.ln-backdrop { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 40%, rgba(255,240,246,.92), rgba(255,214,229,.9) 55%, rgba(232,160,190,.88)); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; }
.ln.is-open .ln-backdrop { animation: ln-fade .6s ease forwards; }
.ln.is-closing .ln-backdrop { opacity: 1; animation: ln-fade .55s ease .25s reverse both; }
@keyframes ln-fade { from { opacity: 0; } to { opacity: 1; } }

/* Floating hearts and sparkles */
.ln-fx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.ln-fx i { position: absolute; bottom: -2rem; left: var(--x); font-style: normal; font-size: var(--s); color: var(--c); opacity: 0; animation: ln-rise var(--d) ease-in var(--dl) infinite; }
.ln-fx b { position: absolute; left: var(--x); top: var(--y); font-weight: 400; font-size: var(--s); color: #fff; text-shadow: 0 0 8px rgba(255,180,210,.9); opacity: 0; animation: ln-twinkle var(--d) ease-in-out var(--dl) infinite; }
@keyframes ln-rise { 0% { opacity: 0; transform: translateY(0) rotate(-8deg); } 12% { opacity: .75; } 100% { opacity: 0; transform: translateY(-105vh) translateX(var(--sway)) rotate(12deg); } }
@keyframes ln-twinkle { 0%,100% { opacity: 0; transform: scale(.4) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }

.ln-stage { position: relative; display: grid; place-items: center; width: 100%; max-width: 34rem; max-height: 100%; }
.ln-stage > * { grid-area: 1 / 1; }

/* Envelope */
.ln-env { position: relative; width: min(19rem, 78vw); aspect-ratio: 3 / 2; perspective: 900px; opacity: 0; transform: translateY(30px) scale(.85); }
.ln.is-open .ln-env { animation: ln-env-in .7s var(--ease) .1s forwards, ln-env-out .55s ease-in 2.05s forwards; }
@keyframes ln-env-in { to { opacity: 1; transform: none; } }
@keyframes ln-env-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(70px) scale(.92); } }
.ln-env-back, .ln-env-front, .ln-env-flap { position: absolute; inset: 0; border-radius: 8px; }
.ln-env-back { background: linear-gradient(160deg, #f3a9c2, #e7889f); box-shadow: 0 30px 50px -20px rgba(150,40,90,.45); }
.ln-env-letter { position: absolute; left: 7%; right: 7%; top: 8%; height: 84%; border-radius: 3px; background: #fffaf6 repeating-linear-gradient(transparent 0 13px, rgba(228,138,171,.18) 13px 14px); box-shadow: 0 2px 6px rgba(150,40,90,.15); z-index: 2; }
.ln.is-open .ln-env-letter { animation: ln-peek .8s var(--ease) 1.3s forwards; }
@keyframes ln-peek { to { transform: translateY(-46%); } }
.ln-env-front { z-index: 3; background: linear-gradient(170deg, #ffd3e2, #f6b4ca); clip-path: polygon(0 0, 50% 56%, 100% 0, 100% 100%, 0 100%); }
.ln-env-front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, transparent 48%, rgba(194,85,127,.16) 50%, transparent 52%), linear-gradient(160deg, transparent 48%, rgba(194,85,127,.16) 50%, transparent 52%); }
.ln-env-flap { z-index: 4; height: 60%; border-radius: 8px 8px 0 0; background: linear-gradient(180deg, #f9c2d5, #ee9db8); clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: 50% 0; filter: drop-shadow(0 2px 2px rgba(150,40,90,.25)); }
.ln.is-open .ln-env-flap { animation: ln-flap .75s cubic-bezier(.5,0,.3,1) .85s forwards; }
@keyframes ln-flap { 0% { transform: rotateX(0); z-index: 4; } 49% { z-index: 4; } 50% { z-index: 1; } 100% { transform: rotateX(180deg); z-index: 1; } }
.ln-seal { position: absolute; left: 50%; top: 60%; z-index: 5; width: 2.6rem; height: 2.6rem; margin: -1.3rem 0 0 -1.3rem; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #f07fa6, #c2557f 70%); box-shadow: 0 3px 8px rgba(150,40,90,.45), inset 0 -2px 4px rgba(0,0,0,.15); color: #fff; font-size: 1.15rem; transform: scale(0); }
.ln.is-open .ln-seal { animation: ln-seal 1s ease .2s forwards; }
@keyframes ln-seal { 0% { transform: scale(0); } 30% { transform: scale(1.15); } 45%,60% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }

/* Heart burst when the letter comes out */
.ln-burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.ln-burst i { position: absolute; font-style: normal; color: #e2638f; font-size: .95rem; opacity: 0; }
.ln.is-open .ln-burst i { animation: ln-pop 1.1s ease-out 1.35s forwards; }
@keyframes ln-pop { 0% { opacity: 0; transform: translate(0,0) scale(.4); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--bx), var(--by)) scale(1.1) rotate(var(--br)); } }

/* The letter */
.ln-paper { position: relative; display: flex; flex-direction: column; width: 100%; max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem); border-radius: 6px; text-align: center; color: #5a3445;
  background: radial-gradient(circle at 12% 8%, rgba(255,214,229,.55), transparent 32%), radial-gradient(circle at 92% 96%, rgba(255,214,229,.6), transparent 34%), linear-gradient(180deg, #fffaf6, #fff6f4);
  box-shadow: 0 40px 70px -30px rgba(150,40,90,.55), 0 2px 0 rgba(255,255,255,.8) inset;
  opacity: 0; transform-origin: 50% 70%; transform: perspective(1200px) translateY(40px) rotateX(58deg) scale(.6); }
.ln-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; margin: 11px; padding: clamp(1.7rem, 6vw, 2.5rem) clamp(.9rem, 5vw, 2.5rem) clamp(1.2rem, 4vw, 1.9rem); }
.ln-paper::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(228,138,171,.45); border-radius: 3px; pointer-events: none; }
.ln.is-open .ln-paper { animation: ln-unfold .9s cubic-bezier(.2,.8,.25,1) 2.1s forwards; }
@keyframes ln-unfold { 60% { opacity: 1; } to { opacity: 1; transform: none; } }
.ln.is-closing .ln-paper { opacity: 1; transform: none; animation: ln-fold .5s cubic-bezier(.5,0,.75,0) forwards; }
@keyframes ln-fold { to { opacity: 0; transform: perspective(1200px) translateY(30px) rotateX(-40deg) scale(.8); } }
.ln-crease { position: absolute; left: 0; right: 0; top: 50%; height: 30px; margin-top: -15px; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(194,85,127,.09) 48%, rgba(255,255,255,.7) 52%, transparent); opacity: 0; }
.ln.is-open .ln-crease { animation: ln-crease 1.2s ease 2.1s both; }
@keyframes ln-crease { 0%,40% { opacity: 1; } 100% { opacity: 0; } }

.ln-x { position: absolute; top: 14px; right: 14px; z-index: 2; width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #b07a90; font: 300 1.7rem/1 "Figtree", sans-serif; cursor: pointer; transition: background .25s ease, color .25s ease; }
.ln-x:hover { background: rgba(255,214,229,.7); color: var(--rose-deep); }
.ln-x:focus-visible, .ln-wait:focus-visible { outline: 2px solid var(--rose-deep); outline-offset: 3px; }

.ln-orn { margin: 0 0 .9rem; color: #e48aab; font-size: .8rem; letter-spacing: .5em; }
.ln-for { margin: 0 0 .35rem; font: 500 .72rem/1.4 "Figtree", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ln-title { margin: 0 0 1.4rem; font: 600 clamp(.8rem, 3.2vw, .9rem)/1.5 "Figtree", sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--rose-deep); }
.ln-title span { white-space: nowrap; }
.ln-body p { margin: 0 0 1rem; font: 500 clamp(1.14rem, 4.4vw, 1.3rem)/1.5 "Cormorant Garamond", serif; }
.ln-love { margin: 1.4rem 0 0; font: italic 500 1.2rem/1.2 "Cormorant Garamond", serif; color: #7a4a5e; }
.ln-sign { margin: .15rem 0 0; font-family: "Pinyon Script", "Brush Script MT", cursive; font-size: clamp(2.3rem, 9vw, 2.8rem); line-height: 1.15; color: var(--rose-deep); }
.ln-wait { display: inline-block; margin-top: 1.6rem; padding: .95rem 1.9rem; }

/* Lines of the letter appear one after another */
.ln-paper .ln-in { opacity: 0; transform: translateY(8px); }
.ln.is-open .ln-paper .ln-in { animation: ln-line .7s var(--ease) calc(2.75s + var(--n) * .17s) forwards; }
@keyframes ln-line { to { opacity: 1; transform: none; } }

/* Hearts that float up from the "I'll wait" button */
.ln-thanks { position: fixed; pointer-events: none; z-index: 1001; font-style: normal; color: #e2638f; font-size: 1rem; animation: ln-thanks .9s ease-out forwards; }
@keyframes ln-thanks { from { opacity: 1; transform: translate(0,0) scale(.6); } to { opacity: 0; transform: translate(var(--tx), -90px) scale(1.2); } }

/* Quiet when hidden; gentle when closing */
.ln:not(.is-open):not(.is-closing) .ln-fx { display: none; }
.ln.is-closing .ln-fx { animation: ln-fade .55s ease .2s reverse both; }
.ln.is-closing.is-early .ln-paper { animation: none; opacity: 0; }

/* Reduced motion: no envelope, no particles, the letter is simply there. */
@media (prefers-reduced-motion: reduce) {
  .ln-env, .ln-fx, .ln-burst, .ln-crease, .ln-thanks { display: none !important; }
  .ln.is-open .ln-backdrop, .ln.is-open .ln-paper, .ln.is-open .ln-paper .ln-in { opacity: 1; transform: none; }
  .ln.is-closing { visibility: hidden; }
}
