/* /resources: the "why I give it away" note with a lock that opens as you reach it, then the guides shelf.
   Icons are Lucide (ISC), 1.5 stroke, set in round seals to match the guide covers (guides.css). */
.rs-why,.rs-shelf{padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
.rs-why{background:#1b1b1b;color:#ece8e6;padding-block:104px 112px}
.rs-why-w{max-width:1040px;margin:0 auto;display:grid;grid-template-columns:220px minmax(0,1fr);gap:72px}
.rs-lockcol{position:relative}
.rs-lock{position:sticky;top:120px;width:176px;height:176px;border-radius:50%;border:1px solid #cfa964;display:grid;place-items:center;color:#cfa964;background:rgba(207,169,100,.05)}
.rs-lock::after{content:"";position:absolute;inset:8px;border-radius:50%;border:1px solid #cfa964;opacity:.35}
.rs-lock svg{width:76px;height:76px;fill:none;stroke:currentColor;stroke-width:1.2;stroke-linecap:round;stroke-linejoin:round;overflow:visible}
.rs-shackle{transform-box:view-box;transform-origin:7px 10px}
.rs-why.open .rs-shackle{animation:rs-unlock 1.1s cubic-bezier(.3,1.25,.5,1) .15s both}
.rs-why.open .rs-lock{animation:rs-glow 1.4s ease-out .5s both}
@keyframes rs-unlock{0%{transform:none}35%{transform:translateY(-3px)}100%{transform:translateY(-3px) rotate(-32deg)}}
@keyframes rs-glow{from{box-shadow:0 0 0 0 rgba(207,169,100,.35)}to{box-shadow:0 0 0 26px rgba(207,169,100,0)}}
.rs-h{font:500 clamp(30px,3.6vw,44px)/1.05 'Aspekta','Inter Tight',system-ui,sans-serif;letter-spacing:-.03em;margin:0 0 26px;text-wrap:balance}
.rs-why .rs-h{color:#fff}
.rs-text{min-width:0;max-width:62ch}
.rs-text p{font-size:18px;line-height:1.7;margin:0 0 20px;color:#c9c3bd}
.rs-text .rs-lead{font:500 clamp(22px,2.3vw,27px)/1.4 'Aspekta','Inter Tight',system-ui,sans-serif;color:#fff;letter-spacing:-.015em;margin-bottom:30px}
.rs-sign{display:flex;align-items:center;gap:14px;margin-top:34px;padding-top:24px;border-top:1px solid #3a3836}
.rs-sign img{width:48px;height:48px;border-radius:50%;object-fit:cover}
.rs-sign b{display:block;color:#fff;font-weight:500}.rs-sign span{font-size:14px;color:#a8a29c}

.rs-shelf{background:#faf8f6;padding-block:100px 40px}
.rs-shelf-w{max-width:1040px;margin:0 auto}
.rs-intro{font-size:18px;line-height:1.6;color:#5b5650;max-width:52ch;margin:-8px 0 48px}
.rs-guide{display:grid;grid-template-columns:220px minmax(0,1fr);gap:72px;padding-block:52px;border-top:1px solid #e1dbd4;align-items:start}
.rs-cover{aspect-ratio:8.5/11;border-radius:2px 6px 6px 2px;padding:22px 18px 18px 26px;display:flex;flex-direction:column;box-shadow:inset 7px 0 0 rgba(0,0,0,.18),0 22px 40px -20px rgba(40,30,20,.5);transform:rotate(-2deg)}
.rs-guide:nth-of-type(2) .rs-cover{transform:rotate(1.5deg)}
.rs-cover small{font-size:11px;opacity:.75}
.rs-cover strong{font:500 22px/1.08 'Aspekta','Inter Tight',system-ui,sans-serif;letter-spacing:-.02em;margin-top:auto}
.rs-cover i{display:block;width:30px;height:2px;margin:14px 0 10px}
.rs-cover em{font-style:normal;font-size:12px;opacity:.75}
.rs-cover.ink{background:#1b1b1b;color:#faf8f6}.rs-cover.ink i{background:#b8924f}.rs-cover.ink .rs-seal{color:#cfa964}
.rs-cover.blue{background:#3b5b8c;color:#faf8f6}.rs-cover.blue i{background:#f3efeb}.rs-cover.blue .rs-seal{color:#f3efeb}
.rs-cover.gold{background:#b8924f;color:#1b1b1b}.rs-cover.gold i{background:#1b1b1b}.rs-cover.gold .rs-seal{color:#1b1b1b}
.rs-seal{position:relative;width:70px;height:70px;margin-top:18px;border-radius:50%;border:1px solid currentColor;display:grid;place-items:center}
.rs-seal::after{content:"";position:absolute;inset:4px;border-radius:50%;border:1px solid currentColor;opacity:.4}
.rs-seal svg,.rs-inside li::before{fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.rs-seal svg{width:34px;height:34px}
.rs-body{min-width:0}
.rs-body h3{font:500 clamp(24px,2.4vw,30px)/1.15 'Aspekta','Inter Tight',system-ui,sans-serif;letter-spacing:-.02em;margin:4px 0 10px}
.rs-for{font-size:17px;line-height:1.6;color:#5b5650;margin:0 0 24px;max-width:56ch}
.rs-inside{list-style:none;padding:0;margin:0 0 30px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 32px}
.rs-inside li{position:relative;padding-left:30px;font-size:16px;line-height:1.45;color:#1b1b1b}
.rs-inside li::before{content:"";position:absolute;left:0;top:1px;width:20px;height:20px;background:no-repeat center/14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b5b8c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"),#e8eef6;border-radius:50%}
.rs-next{display:grid;grid-template-columns:220px minmax(0,1fr) auto;gap:72px;align-items:center;padding-block:44px 64px;border-top:1px solid #e1dbd4}
.rs-ghosts{position:relative;height:110px}
.rs-ghosts span{position:absolute;left:40px;top:0;width:80px;aspect-ratio:8.5/11;border:1.5px dashed #cfc8c1;border-radius:2px 5px 5px 2px}
.rs-ghosts span+span{left:80px;top:6px;transform:rotate(6deg)}
.rs-next p{margin:0;font-size:17px;line-height:1.6;color:#5b5650;max-width:52ch}.rs-next b{color:#1b1b1b;font-weight:500}
.rs-shelf a.btn:focus-visible{outline:2px solid #3b5b8c;outline-offset:3px}
@media (max-width:860px){
 .rs-why{padding-block:64px 72px}
 .rs-why-w{grid-template-columns:minmax(0,1fr);gap:28px}
 .rs-lock{position:relative;top:0;width:112px;height:112px}.rs-lock svg{width:48px;height:48px}
 .rs-text p{font-size:17px}
 .rs-shelf{padding-block:64px 24px}
 .rs-guide{grid-template-columns:120px minmax(0,1fr);gap:22px;padding-block:36px}
 .rs-cover{padding:12px 10px 10px 14px}.rs-cover small,.rs-cover em,.rs-cover i{display:none}.rs-cover strong{font-size:13px}
 .rs-seal{width:44px;height:44px;margin-top:4px}.rs-seal svg{width:22px;height:22px}.rs-seal::after{inset:3px}
 .rs-inside{grid-template-columns:minmax(0,1fr)}
 .rs-next{grid-template-columns:minmax(0,1fr);gap:18px}.rs-ghosts{display:none}
}
@media (max-width:520px){.rs-guide{grid-template-columns:minmax(0,1fr)}.rs-cover{width:150px}}
@media (prefers-reduced-motion:reduce){.rs-why.open .rs-shackle{animation:none;transform:translateY(-3px) rotate(-32deg)}.rs-why.open .rs-lock{animation:none}}

/* Real covers (renders of page 1 of each PDF) and the prompt card */
.rs-cover.real{padding:0;background:none;box-shadow:none;aspect-ratio:auto}
.rs-cover.real img{display:block;width:100%;height:auto;border-radius:2px 5px 5px 2px;box-shadow:inset 6px 0 0 rgba(0,0,0,.2),0 2px 5px rgba(0,0,0,.18),0 26px 44px -22px rgba(40,30,20,.55)}
.rs-cover.chat{background:#ece8e6;color:#1b1b1b;border-radius:10px;box-shadow:0 26px 44px -22px rgba(40,30,20,.45);transform:rotate(1.5deg);padding:22px 20px}
.rs-cover.chat .rs-seal{color:#1b1b1b;margin-top:0}
.rs-cover.chat em{margin-top:8px}
.rs-lib{background:#f3efeb;padding-block:88px 96px;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
.rs-lib-w{max-width:1040px;margin:0 auto;display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:64px;align-items:start}
.rs-lib-copy{min-width:0}.rs-lib-copy p{font-size:17px;line-height:1.6;color:#5b5650;margin:0}
.rs-lib-form{min-width:0;background:#fff;border-radius:16px;padding:26px;box-shadow:0 24px 48px -28px rgba(40,30,20,.35)}
@media (max-width:860px){.rs-lib{padding-block:56px 64px}.rs-lib-w{grid-template-columns:minmax(0,1fr);gap:24px}.rs-lib-form{padding:18px}.rs-cover.chat strong{font-size:14px}.rs-cover.chat{padding:12px}}

/* "Why I give it away": lead with the lock, three points, then a signed closing note */
.rs-why-w{display:block;max-width:1100px}
.rs-why-top{display:grid;grid-template-columns:176px minmax(0,1fr);gap:56px;align-items:center;margin-bottom:72px}
.rs-why-top .rs-lock{position:relative;top:0}
.rs-why-top .rs-text{max-width:780px}
.rs-why-top .rs-text .rs-lead{margin:0;font-size:clamp(24px,2.6vw,32px);line-height:1.3;max-width:34ch}
.rs-three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;border-top:1px solid #3a3836;border-bottom:1px solid #3a3836}
.rs-pt{padding:36px 32px 40px;min-width:0}
.rs-pt+.rs-pt{border-left:1px solid #3a3836}
.rs-pt:first-child{padding-left:0}.rs-pt:last-child{padding-right:0}
.rs-pico{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;border:1px solid #cfa964;color:#cfa964;margin-bottom:22px}
.rs-pico svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.rs-pt h3{font:500 21px/1.2 'Aspekta','Inter Tight',system-ui,sans-serif;letter-spacing:-.015em;color:#fff;margin:0 0 12px}
.rs-pt p{font-size:16px;line-height:1.65;color:#c9c3bd;margin:0}
.rs-note{max-width:640px;margin:64px auto 0;padding:40px 44px 36px;background:#24221f;border-radius:16px;box-shadow:inset 0 0 0 1px #3a3836;position:relative}
.rs-note::before{content:"";position:absolute;left:44px;top:0;width:56px;height:2px;background:#cfa964}
.rs-note .rs-note-h{font:500 24px/1.2 'Aspekta','Inter Tight',system-ui,sans-serif;color:#fff;letter-spacing:-.015em;margin:0 0 16px}
.rs-note p{font-size:17px;line-height:1.7;color:#d6d0ca;margin:0 0 16px}
.rs-note .rs-sign{margin-top:26px}
@media (max-width:860px){
 .rs-why-top{grid-template-columns:minmax(0,1fr);gap:24px;margin-bottom:40px}
 .rs-three{grid-template-columns:minmax(0,1fr)}
 .rs-pt,.rs-pt:first-child,.rs-pt:last-child{padding:28px 0}
 .rs-pt+.rs-pt{border-left:0;border-top:1px solid #3a3836}
 .rs-note{margin-top:40px;padding:30px 22px 26px}.rs-note::before{left:22px}
}
.rs-topic{margin:0 0 4px;font-size:14px;font-weight:500;color:#3b5b8c}

/* Three points as tiles stacked top to bottom, alternating left and right (Connor, 29 Nov) */
.rs-three{display:flex;flex-direction:column;gap:28px;border:0;grid-template-columns:none}
.rs-pt,.rs-pt:first-child,.rs-pt:last-child{width:min(640px,100%);padding:34px 38px 36px;background:#24221f;border-radius:18px;box-shadow:inset 0 0 0 1px #3a3836;border:0}
.rs-pt+.rs-pt{border-left:0}
.rs-pt:nth-child(2){align-self:flex-end}
.rs-pt .rs-pico{margin-bottom:18px}
.rs-pt h3{font-size:23px}
.rs-pt p{font-size:17px;line-height:1.7}
@media (max-width:860px){.rs-pt,.rs-pt:first-child,.rs-pt:last-child{width:100%;padding:26px 22px}.rs-pt+.rs-pt{border-top:0}}

/* Guides shelf: one guide per screen. The shelf takes the colour of the guide in view, and each cover stands on a mirror. */
.rs-shelf{transition:background-color .7s ease,color .7s ease;background:#faf8f6}
.rs-shelf[data-tone="dark"]{color:#f3efeb}
.rs-shelf[data-tone="dark"] .rs-h,.rs-shelf[data-tone="dark"] .rs-body h3{color:#fff}
.rs-shelf[data-tone="dark"] .rs-for,.rs-shelf[data-tone="dark"] .rs-intro{color:#cfc8c0}
.rs-shelf[data-tone="dark"] .rs-inside li{color:#f3efeb}
.rs-shelf[data-tone="dark"] .rs-topic{color:#e7c98f}
.rs-shelf[data-tone="dark"] .btn.ink{background:#faf8f6;color:#1b1b1b}
.rs-shelf[data-tone="dark"] .rs-guide{border-color:transparent}
.rs-guide{min-height:88vh;align-items:center;border-top:0 !important;padding-block:6vh;will-change:opacity,transform}
.rs-guide .rs-cover.real{position:relative;transform:none}
.rs-cover.real img{transform:perspective(1200px) rotateY(10deg)}
.rs-cover.real .refl{position:absolute;left:0;top:100%;margin-top:6px;transform:perspective(1200px) rotateY(10deg) scaleY(-1);opacity:.28;box-shadow:none;
  -webkit-mask-image:linear-gradient(to top,rgba(0,0,0,.9),transparent 45%);mask-image:linear-gradient(to top,rgba(0,0,0,.9),transparent 45%)}
.rs-guide .rs-cover.real::after{content:"";position:absolute;left:-30%;right:-30%;top:100%;height:1px;background:linear-gradient(90deg,transparent,currentColor,transparent);opacity:.18}
.rs-prompt .rs-cover.chat{transform:none}
@media (max-width:860px){.rs-guide{min-height:auto;padding-block:48px}.rs-cover.real img,.rs-cover.real .refl{transform:none}.rs-cover.real .refl{transform:scaleY(-1)}}
@media (prefers-reduced-motion:reduce){.rs-shelf{transition:none}}
@media (min-width:861px){.rs-guide{grid-template-columns:300px minmax(0,1fr);gap:80px}.rs-cover.real img{box-shadow:0 2px 6px rgba(0,0,0,.25),0 40px 70px -24px rgba(0,0,0,.55)}}

/* ---- 29 Nov rework (Connor): ---- */
/* Why: three sections split by lines; each row a words tile and an icon tile, swapping sides every row */
.rs-three{display:block;gap:0;border-top:1px solid #3a3836;border-bottom:0}
.rs-pt,.rs-pt:first-child,.rs-pt:last-child{width:auto;display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:20px;padding:40px 0;background:none;border-radius:0;box-shadow:none;border:0;border-bottom:1px solid #3a3836;align-self:auto}
.rs-pt:nth-child(2){grid-template-columns:minmax(0,1fr) minmax(0,1.4fr)}
.rs-pt:nth-child(2) .rs-vis{order:-1}
.rs-txt{min-width:0;background:#24221f;border-radius:18px;padding:36px 40px;box-shadow:inset 0 0 0 1px #3a3836;display:flex;flex-direction:column;justify-content:center}
.rs-vis{background:#24221f;border-radius:18px;box-shadow:inset 0 0 0 1px #3a3836;display:grid;place-items:center;min-height:220px}
.rs-vis .rs-pico{width:120px;height:120px;margin:0;border-width:1px;position:relative}
.rs-vis .rs-pico::after{content:"";position:absolute;inset:8px;border-radius:50%;border:1px solid #cfa964;opacity:.35}
.rs-vis .rs-pico svg{width:50px;height:50px;stroke-width:1.2}
@media (max-width:860px){.rs-pt,.rs-pt:first-child,.rs-pt:last-child,.rs-pt:nth-child(2){grid-template-columns:minmax(0,1fr);padding:28px 0}.rs-pt:nth-child(2) .rs-vis{order:0}.rs-vis{min-height:150px}.rs-txt{padding:26px 22px}}

/* Guides: back to rows split by lines. The row nearest the middle of the screen is solid; the rest sit at about half opacity, like a slot wheel */
.rs-shelf,.rs-shelf[data-tone]{background:#faf8f6 !important;color:inherit;transition:none}
.rs-guide{min-height:0 !important;padding-block:52px !important;border-top:1px solid #e1dbd4 !important;transition:opacity .35s ease,transform .35s ease}
@media (min-width:861px){.rs-guide{grid-template-columns:240px minmax(0,1fr);gap:72px}}
/* the middle row mirrors the others: words on the left, icon on the right */
.rs-pt:nth-child(2) .rs-vis{order:2}
@media (max-width:860px){.rs-pt:nth-child(2) .rs-vis{order:0}}

/* From the blog: six posts that go with the guides */
.rs-blog{background:#faf8f6;padding-block:80px 96px;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px));border-top:1px solid #e1dbd4}
.rs-blog-w{max-width:1040px;margin:0 auto}
.rs-blog-top{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:28px}
.rs-blog-top .rs-h{margin:0}
.rs-blog-all{color:#1b1b1b;font-weight:500;text-underline-offset:4px;text-decoration-color:#b8924f;white-space:nowrap}
.rs-posts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid #e1dbd4}
.rs-post{display:flex;flex-direction:column;gap:10px;padding:26px 24px 28px 0;border-bottom:1px solid #e1dbd4;color:#1b1b1b;text-decoration:none;min-width:0}
.rs-post:not(:nth-child(3n+1)){padding-left:24px;border-left:1px solid #e1dbd4}
.rs-ptag{font-size:13.5px;color:#8a6a2f}
.rs-post b{font:500 19px/1.3 'Aspekta','Inter Tight',system-ui,sans-serif;letter-spacing:-.01em}
.rs-pgo{margin-top:auto;font-size:14px;color:#6b6560;text-decoration:underline;text-underline-offset:3px;text-decoration-color:transparent;transition:text-decoration-color .2s}
.rs-post:hover .rs-pgo{text-decoration-color:#b8924f;color:#1b1b1b}
.rs-post:focus-visible{outline:2px solid #3b5b8c;outline-offset:2px}
@media (max-width:860px){.rs-posts{grid-template-columns:minmax(0,1fr)}.rs-post,.rs-post:not(:nth-child(3n+1)){padding:22px 0;border-left:0}}
