/* Lunar Letter / ornamental maximalism and category worlds. */
:root{
  --world-bg:#f1ead9;--world-primary:#181615;--world-secondary:#f0a8c4;--world-decor:#c9c9cc;
  --world-paper:#f8f4eb;--world-dark:#181615
}
body.archive-zine[data-archive-section="astrology"]{--world-bg:#e4ebf3;--world-primary:#4967ae;--world-secondary:#ded14e;--world-decor:#bbc5d2;--world-paper:#f3f5f3;background-color:var(--world-bg);background-image:radial-gradient(circle at 12% 8%,rgba(255,255,255,.82) 0 3px,transparent 4px),linear-gradient(rgba(73,103,174,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(73,103,174,.05) 1px,transparent 1px);background-size:94px 94px,52px 52px,52px 52px}
body.archive-zine[data-archive-section="tarot"]{--world-bg:#efbfd1;--world-primary:#a62f59;--world-secondary:#181615;--world-decor:#d3cbd2;--world-paper:#f8ede5;background-color:var(--world-bg);background-image:radial-gradient(circle at 15px 15px,rgba(166,47,89,.08) 0 2px,transparent 2.5px);background-size:30px 30px}
body.archive-zine[data-archive-section="bazi"]{--world-bg:#e5dfbc;--world-primary:#667b59;--world-secondary:#b45843;--world-decor:#d1b858;--world-paper:#f0ead3;background-color:var(--world-bg);background-image:linear-gradient(rgba(102,123,89,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(102,123,89,.06) 1px,transparent 1px);background-size:42px 42px}
body.archive-zine[data-archive-section="manifestation"]{--world-bg:#ddd2ee;--world-primary:#dd579b;--world-secondary:#785a9e;--world-decor:#efb9d2;--world-paper:#f7edf5;background-color:var(--world-bg);background-image:linear-gradient(rgba(120,90,158,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(120,90,158,.04) 1px,transparent 1px),radial-gradient(circle at 30% 20%,rgba(255,255,255,.45),transparent 28%);background-size:34px 34px,34px 34px,100% 100%}
body.archive-zine h1,body.archive-zine h2,body.archive-zine h3{letter-spacing:0}
body.archive-zine .archive-shell{position:relative;isolation:isolate}
body.archive-zine .ll-zine-landing,body.archive-zine .archive-document{position:relative}

/* Lace, paper lace and scallops. */
.ll-lace-strip{--lace-color:var(--world-primary);position:relative;height:40px;overflow:hidden;color:var(--lace-color);pointer-events:none}
.ll-lace-strip::before{position:absolute;inset:0;content:"";background:radial-gradient(circle at 13px 0,transparent 8px,var(--lace-color) 8.5px 10px,transparent 10.5px) 0 0/26px 20px repeat-x,radial-gradient(circle at 13px 16px,var(--lace-color) 0 2px,transparent 2.6px) 0 0/26px 20px repeat-x,repeating-linear-gradient(90deg,transparent 0 6px,var(--lace-color) 7px 8px,transparent 9px 13px);opacity:.76}
.ll-lace-strip span{position:absolute;right:0;bottom:0;left:0;height:9px;border-top:1px solid currentColor;border-bottom:1px dotted currentColor}
.ll-lace-strip--blue{--lace-color:#4967ae}.ll-lace-strip--pink{--lace-color:#d84f95}.ll-lace-strip--black{--lace-color:#181315}.ll-lace-strip--cream{--lace-color:#f8f1e5}
.ll-scallop{position:relative}.ll-scallop::after{position:absolute;right:0;bottom:-13px;left:0;height:26px;background:radial-gradient(circle at 13px 0,currentColor 12px,transparent 13px);background-size:26px 26px;background-repeat:repeat-x;content:""}
.ll-doily{width:clamp(112px,13vw,190px);aspect-ratio:1;border-radius:50%;background:radial-gradient(circle,transparent 0 26%,rgba(255,255,255,.96) 27% 35%,transparent 36% 42%,rgba(255,255,255,.94) 43% 46%,transparent 47%),repeating-conic-gradient(rgba(255,255,255,.95) 0deg 5deg,transparent 5deg 10deg);filter:drop-shadow(2px 3px 0 rgba(0,0,0,.16));opacity:.9}

/* Pearls, bows, charms and collected objects. */
.ll-pearls{display:flex;width:max-content;gap:2px;transform:rotate(-4deg);filter:drop-shadow(2px 2px 0 rgba(24,22,21,.16))}
.ll-pearls i{display:block;width:11px;height:11px;border:1px solid rgba(24,22,21,.22);border-radius:50%;background:radial-gradient(circle at 28% 22%,#fff 0 15%,#e9e4e6 34%,#bbb7bf 69%,#85838a 100%)}
.ll-bow{display:block;width:clamp(78px,8vw,132px);color:#e269a5;filter:drop-shadow(4px 5px 0 rgba(24,22,21,.22));transform:rotate(-4deg)}.ll-bow svg{display:block;width:100%}.ll-bow path,.ll-bow ellipse{fill:currentColor;stroke:#181615;stroke-width:2}.ll-bow--wine{color:#9e304e}.ll-bow--lilac{color:#a887ca}.ll-bow--black{color:#1b1718}
.ll-butterfly{display:block;width:clamp(58px,6vw,98px);color:#d45193;transform:rotate(5deg)}.ll-butterfly svg{display:block;width:100%;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.ll-butterfly--blue{color:#4967ae}.ll-butterfly--chrome{color:#96989f}
.ll-charm{display:flex;width:48px;flex-direction:column;align-items:center;transform-origin:top center}.ll-charm>i{width:1px;height:48px;background:repeating-linear-gradient(to bottom,#666 0 3px,transparent 3px 6px)}.ll-charm>b{display:grid;width:42px;height:42px;place-items:center;border:1px solid #181615;border-radius:50%;background:linear-gradient(145deg,#fafafa,#a7a8ad 43%,#f2f2f3 53%,#888a92);box-shadow:3px 4px 0 rgba(24,22,21,.26)}.ll-charm svg{width:28px;height:28px;fill:none;stroke:#181615;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.ll-charm--moon svg,.ll-charm--star svg,.ll-charm--heart svg{fill:#f1cf63;stroke:#181615}
.ll-charm:hover{transform:rotate(3deg)}
.ll-pressed-flower{display:block;width:clamp(76px,8vw,126px);height:auto;filter:drop-shadow(3px 4px 0 rgba(24,22,21,.13));transform:rotate(-7deg)}
.ll-postage-stamp{display:grid;width:104px;min-height:126px;padding:13px;place-items:center;border:5px dotted currentColor;outline:1px solid currentColor;outline-offset:-8px;color:var(--world-primary);background:var(--world-paper);font-family:var(--ll-mono);text-align:center;transform:rotate(4deg)}.ll-postage-stamp i{display:grid;width:44px;height:44px;place-items:center;border:1px solid currentColor;border-radius:50%;font:700 24px var(--ll-serif)}.ll-postage-stamp b{font-size:9px;letter-spacing:.08em}.ll-postage-stamp small{font-size:8px}
.ll-ticket{display:inline-grid;grid-template-columns:auto 1fr auto;gap:9px;align-items:center;padding:9px 12px;border:1px dashed currentColor;color:#181615;background:#f4b7cf;box-shadow:3px 3px 0 rgba(24,22,21,.28);font-family:var(--ll-mono);text-transform:uppercase;transform:rotate(-2deg)}.ll-ticket i,.ll-ticket small{font-size:7px}.ll-ticket b{font-size:10px;letter-spacing:.08em}
.ll-ornamental-divider{display:grid;grid-template-columns:1fr auto 1fr;gap:12px;align-items:center;width:100%;color:var(--world-primary)}.ll-ornamental-divider span{height:1px;background:currentColor}.ll-ornamental-divider svg{width:27px;height:27px;fill:currentColor;stroke:currentColor;stroke-width:1}

/* World decoration layer. Large enough to survive screenshots. */
.ll-world-decor{position:absolute;inset:-18px -18px auto;z-index:4;height:190px;pointer-events:none}.ll-world-decor>*{position:absolute}.ll-world-lace--top{top:0;right:5%;left:5%}.ll-world-lace--side{top:108px;right:-63px;width:220px;transform:rotate(90deg)}.ll-world-pearls{top:76px;right:7%}.ll-world-bow--one{top:70px;left:1%}.ll-world-bow--two{top:90px;right:14%;transform:rotate(8deg) scale(.78)}.ll-world-butterfly{top:82px;left:19%}.ll-world-flower{top:62px;right:1%}.ll-world-charm{top:0;right:2%}.ll-world-charm--two{right:auto;left:22%}.ll-world-ticket{top:112px;left:31%}.ll-world-stamp{top:49px;right:1%}.ll-world-divider{right:8%;bottom:0;left:8%;width:auto}.ll-world-seal{top:55px;left:3%;display:grid;width:74px;height:74px;place-items:center;border:4px double #a33e35;color:#a33e35;font:700 18px/1.05 var(--ll-serif);text-align:center;transform:rotate(-4deg)}.ll-world-seal i{font:8px var(--ll-mono)}.ll-world-element-dots{top:70px;right:10%;display:flex;gap:8px}.ll-world-element-dots i{display:grid;width:38px;height:38px;place-items:center;border:1px solid #181615;border-radius:50%;font:700 17px var(--ll-serif);font-style:normal}.ll-world-element-dots i:nth-child(1){background:#90a46d}.ll-world-element-dots i:nth-child(2){background:#c45e48}.ll-world-element-dots i:nth-child(3){background:#d2b45a}.ll-world-element-dots i:nth-child(4){background:linear-gradient(145deg,#fff,#999,#eee)}.ll-world-element-dots i:nth-child(5){background:#7ea2b8}.ll-world-beads{top:128px;right:28%}.ll-world-beads i{border-radius:2px;background:#516348}.ll-world-library-rule{right:9%;left:9%;width:auto}
.ll-world-decor--document{height:128px}.ll-world-decor--document .ll-world-lace--top{right:10%;left:10%;height:30px}.ll-world-decor--document .ll-world-pearls{top:52px;right:2%;transform:rotate(5deg) scale(.76)}.ll-world-decor--document .ll-world-bow{top:45px;left:2%;transform:rotate(-5deg) scale(.65)}.ll-world-decor--document .ll-world-bow--two,.ll-world-decor--document .ll-world-lace--side,.ll-world-decor--document .ll-world-ticket,.ll-world-decor--document .ll-world-stamp,.ll-world-decor--document .ll-world-charm--two{display:none}.ll-world-decor--document .ll-world-butterfly{top:51px;left:9%;transform:scale(.62)}.ll-world-decor--document .ll-world-flower{top:34px;right:0;transform:rotate(8deg) scale(.65)}.ll-world-decor--document .ll-world-charm{top:0;right:1%;transform:scale(.72)}.ll-world-decor--document .ll-world-divider{bottom:0}

/* Category entry is a room change, not a color switch. */
body[data-archive-section="astrology"] .site-header{border-bottom:3px double #4967ae;background:rgba(243,245,243,.92)}
body[data-archive-section="tarot"] .site-header{border-bottom:9px solid transparent;border-image:repeating-linear-gradient(90deg,#181315 0 12px,transparent 12px 18px) 9;background:rgba(248,237,229,.94)}
body[data-archive-section="bazi"] .site-header{border-bottom:5px double #667b59;background:rgba(240,234,211,.94)}
body[data-archive-section="manifestation"] .site-header{border-bottom:4px dotted #dd579b;background:rgba(247,237,245,.92)}
body[data-archive-section="astrology"] .nav-link:hover::after{display:inline-block;width:8px;height:8px;margin-left:5px;background:#ded14e;clip-path:polygon(50% 0,61% 39%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 39%);content:""}
body[data-archive-section="tarot"] .nav-link:hover{border-bottom:3px double #a62f59}
body[data-archive-section="bazi"] .nav-link:hover::after{display:inline-block;width:8px;height:8px;margin-left:5px;background:#b45843;content:""}
body[data-archive-section="manifestation"] .nav-link:hover::after{display:inline-block;width:9px;height:9px;margin-left:5px;border-radius:50% 50% 0;background:#dd579b;content:"";transform:rotate(45deg)}
.ll-zine-landing>.archive-breadcrumbs,.archive-document>.archive-document-rail,.archive-document>.archive-document-copy{position:relative;z-index:5}
.ll-zine-hero{position:relative;z-index:3;margin-top:105px;border-top:1px solid var(--world-primary);border-bottom:1px solid var(--world-primary)}
.ll-category-wordmark{text-shadow:3px 2px 0 var(--world-secondary)}
.ll-landing-divider{margin:20px 0 0;padding:0 4%}
body[data-archive-section="astrology"] .ll-zine-hero{background:linear-gradient(120deg,rgba(255,255,255,.5),transparent 55%),#dbe5ee}
body[data-archive-section="tarot"] .ll-zine-hero{background:linear-gradient(135deg,#f4d0dc 0 48%,#181315 48% 51%,#f8ede5 51%)}
body[data-archive-section="bazi"] .ll-zine-hero{background:repeating-linear-gradient(0deg,rgba(102,123,89,.07) 0 1px,transparent 1px 32px),#e8dfb9}
body[data-archive-section="manifestation"] .ll-zine-hero{background:linear-gradient(120deg,rgba(255,255,255,.44),transparent 60%),#d8c8e8}
body[data-archive-section="astrology"] .ll-zine-image{background:#d7e3ee}body[data-archive-section="astrology"] .ll-zine-image img{filter:grayscale(1) sepia(.24) hue-rotate(174deg) saturate(2.1) contrast(1.18);mix-blend-mode:normal;opacity:.82}
body[data-archive-section="tarot"] .ll-zine-image{background:#e45d9c}body[data-archive-section="tarot"] .ll-zine-image img{filter:grayscale(.16) saturate(.72) contrast(1.2);mix-blend-mode:normal;opacity:1}
body[data-archive-section="bazi"] .ll-zine-image{background:#d9ddb6}body[data-archive-section="bazi"] .ll-zine-image img{filter:grayscale(.58) sepia(.3) hue-rotate(35deg) saturate(1.45) contrast(1.2);mix-blend-mode:normal;opacity:.88}
body[data-archive-section="manifestation"] .ll-zine-image{background:#e2d7ed}body[data-archive-section="manifestation"] .ll-zine-image img{filter:grayscale(.34) sepia(.16) hue-rotate(228deg) saturate(1.35) contrast(1.12);mix-blend-mode:normal;opacity:.9}
.ll-zine-image::after{position:absolute;inset:0;background-image:radial-gradient(rgba(24,22,21,.22) .7px,transparent .8px);background-size:5px 5px;mix-blend-mode:multiply;opacity:.22;pointer-events:none;content:""}.ll-zine-image{position:relative}
body[data-archive-section="tarot"] .ll-card-fan .ll-zine-image img,body[data-archive-section="tarot"] .archive-document-rail .scan-figure img{filter:contrast(1.12) saturate(.78);mix-blend-mode:normal;opacity:1}
.archive-document{margin-top:102px;padding-top:28px}.archive-document-rail .scan-figure{position:relative}.archive-document-rail .scan-figure::after{position:absolute;inset:6px;border:1px solid var(--world-primary);pointer-events:none;content:""}
body[data-archive-section="astrology"] .archive-reference-section:nth-child(odd){border-left:3px double #4967ae;padding-left:20px}
body[data-archive-section="tarot"] .archive-reference-section:nth-child(odd){border-left:5px double #181315;padding-left:20px}
body[data-archive-section="bazi"] .archive-reference-section:nth-child(odd){border-left:8px solid transparent;border-image:repeating-linear-gradient(0deg,#667b59 0 8px,#b45843 8px 13px,#d1b858 13px 18px) 8;padding-left:20px}
body[data-archive-section="manifestation"] .archive-reference-section:nth-child(odd){border-left:4px dotted #dd579b;padding-left:20px}
body[data-archive-section="manifestation"] .manifest-tool-shell,body[data-archive-section="manifestation"] .vision-board-studio,body[data-archive-section="manifestation"] .manifest-journal,body[data-archive-section="manifestation"] .manifest-intention-page{position:relative;border:1px solid #785a9e;background:linear-gradient(rgba(255,255,255,.36),rgba(255,255,255,.18)),repeating-linear-gradient(0deg,transparent 0 31px,rgba(120,90,158,.15) 31px 32px);box-shadow:9px 10px 0 rgba(120,90,158,.22)}
body[data-archive-section="manifestation"] .manifest-tool-shell::before{position:absolute;top:-25px;left:7%;width:95px;height:30px;background:rgba(244,231,188,.72);content:"";transform:rotate(-3deg)}

/* Homepage ornamental layer. */
.ll-home-zine{position:relative}.ll-home-ornaments{position:absolute;inset:0 0 auto;z-index:6;height:220px;pointer-events:none}.ll-home-ornaments>*{position:absolute}.ll-home-ornaments .ll-lace-strip{top:0;right:3%;left:3%}.ll-home-ornaments .ll-pearls{top:92px;right:7%}.ll-home-ornaments .ll-bow{top:650px;left:4%}.ll-home-ornaments .ll-charm{top:0;right:1%}.ll-home-ornaments .ll-pressed-flower{top:870px;left:48%}.ll-home-ornaments .ll-ticket{top:145px;right:22%}.ll-home-ornaments .ll-postage-stamp{top:62px;right:43%;transform:rotate(-7deg) scale(.78)}
.ll-cover-spread{padding-top:210px}.ll-cover-moon figure{background:#dce5ef}.ll-cover-moon figure img{object-fit:contain;filter:none;mix-blend-mode:normal}.ll-cover-moon::after,.ll-today-moon::after,.ll-index-image figure::after,.ll-category-piece figure::after,.home-manifestation figure::after{position:absolute;inset:0;background-image:radial-gradient(rgba(24,22,21,.22) .7px,transparent .8px);background-size:5px 5px;mix-blend-mode:multiply;opacity:.24;pointer-events:none;content:""}.ll-cover-moon,.ll-today-moon,.ll-index-image figure,.ll-category-piece figure,.home-manifestation figure{position:relative}
.ll-today-collage{color:#181615;background:#f0a8c4}.ll-today-collage::after{position:absolute;right:0;bottom:-13px;left:0;height:26px;background:radial-gradient(circle at 13px 0,#f8f4eb 12px,transparent 13px);background-size:26px 26px;content:""}.ll-today-collage{position:relative;margin-bottom:20px}.ll-today-collage::before{position:absolute;top:12px;right:5%;width:72px;height:48px;background:url('/assets/ornaments/pressed-rose.svg') center/contain no-repeat;content:"";transform:rotate(12deg)}
.ll-category-piece--astrology figure{background:#d7e3ee}.ll-category-piece--astrology figure img{filter:grayscale(1) sepia(.24) hue-rotate(174deg) saturate(2.1) contrast(1.18);opacity:.84}.ll-category-piece--bazi figure{background:#d9ddb6}.ll-category-piece--bazi figure img{filter:grayscale(.58) sepia(.3) hue-rotate(35deg) saturate(1.45) contrast(1.2);opacity:.9}.ll-category-piece--manifestation figure,.home-manifestation figure{background:#e2d7ed}.ll-category-piece--manifestation figure img,.home-manifestation figure img{filter:grayscale(.34) sepia(.16) hue-rotate(228deg) saturate(1.35) contrast(1.12);opacity:.92}
.ll-category-wall::before{display:block;height:36px;margin:0 0 28px;background:radial-gradient(circle at 13px 0,transparent 8px,#181615 8.5px 10px,transparent 10.5px) 0 0/26px 20px repeat-x,radial-gradient(circle at 13px 16px,#181615 0 2px,transparent 2.6px) 0 0/26px 20px repeat-x;content:"";opacity:.66}

/* Print imperfections without harming reading text. */
.ll-category-wordmark--astrology{text-shadow:3px 2px 0 #ded14e}.ll-category-wordmark--tarot{text-shadow:3px 2px 0 #f8ede5}.ll-category-wordmark--bazi{text-shadow:3px 2px 0 #b45843}.ll-category-wordmark--manifestation{text-shadow:3px 2px 0 #f0a8c4}
.ll-world-decor--astrology .ll-world-ticket{background:#ded14e}.ll-world-decor--tarot .ll-world-ticket{color:#f8ede5;background:#181315}.ll-world-decor--bazi .ll-world-ticket{background:#d1b858}.ll-world-decor--manifestation .ll-world-ticket{background:#f0a8c4}

@media(max-width:900px){.ll-world-decor{inset:-8px 0 auto;height:150px}.ll-world-lace--top{right:1%;left:1%}.ll-world-flower,.ll-world-butterfly,.ll-world-ticket,.ll-world-stamp,.ll-world-element-dots i:nth-child(even){display:none}.ll-world-pearls{top:65px;right:5%;transform:scale(.75)}.ll-world-bow--one{top:60px;left:1%;transform:scale(.72) rotate(-5deg)}.ll-world-charm{right:3%;transform:scale(.8)}.ll-world-divider{bottom:2px}.ll-zine-hero{margin-top:82px}.archive-document{margin-top:80px}.ll-home-ornaments{height:165px}.ll-home-ornaments .ll-postage-stamp,.ll-home-ornaments .ll-ticket,.ll-home-ornaments .ll-pressed-flower{display:none}.ll-home-ornaments .ll-pearls{top:70px;right:4%;transform:scale(.7)}.ll-home-ornaments .ll-bow{top:580px;left:2%}.ll-cover-spread{padding-top:155px}}
@media(max-width:460px){.ll-lace-strip{height:30px}.ll-pearls i{width:9px;height:9px}.ll-world-decor{height:125px}.ll-world-decor .ll-world-bow{top:48px;left:0}.ll-world-decor .ll-world-pearls{top:52px;right:-8%;transform:scale(.58)}.ll-world-decor .ll-world-charm{top:-4px;right:0;transform:scale(.66)}.ll-world-seal{top:42px;transform:scale(.72) rotate(-4deg)}.ll-world-element-dots{top:55px;right:2%}.ll-world-element-dots i{width:32px;height:32px}.ll-zine-hero{margin-top:70px}.archive-document{margin-top:66px}.ll-home-ornaments{height:130px}.ll-home-ornaments .ll-lace-strip{right:0;left:0}.ll-home-ornaments .ll-charm{right:0;transform:scale(.7)}.ll-home-ornaments .ll-pearls{top:50px;right:-9%;transform:scale(.5)}.ll-home-ornaments .ll-bow{top:48px;left:-10px;transform:scale(.65)}.ll-cover-spread{padding-top:120px}.ll-cover-moon figure img{object-fit:contain}.archive-reference-section:nth-child(odd){padding-left:12px!important}}
@media(prefers-reduced-motion:no-preference){.ll-charm{transition:transform .2s ease}.ll-butterfly{animation:ll-float 6s ease-in-out infinite}.ll-world-bow--two{animation:ll-float 7s ease-in-out infinite reverse}@keyframes ll-float{50%{transform:translateY(-5px) rotate(3deg)}}}
