/* Home's new objects share the established rug, ink and Cormorant type. */
.home-chapter{position:relative;isolation:isolate;padding:90px 64px;color:var(--paper);background:#361018;background-image:linear-gradient(90deg,#2c0b17bf,#2c0b17ed 45%,#2c0b17bf),url('./assets/red-rug.jpg');background-size:auto,clamp(640px,100vw,1440px) auto;background-position:center top}
.home-chapter:before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(#361018,transparent 150px,transparent calc(100% - 150px),#361018);pointer-events:none}
.chapter-intro h2{font:400 clamp(54px,6vw,80px)/1.02 Cormorant,Georgia,serif;letter-spacing:-1.8px;margin:22px 0}.chapter-intro h2 em{font-weight:400}.chapter-intro>p:not(.overline):not(.study-caption){font:25px/1.45 Cormorant,Georgia,serif;color:var(--quiet);margin:0}.home-chapter .overline{font-size:10px;letter-spacing:2.4px}.study-caption{display:block;font:11px/1.6 Arial,sans-serif;color:#d9c2a4;margin-top:25px;letter-spacing:.2px}.artifact-hint{font:italic 20px/1.5 Cormorant,Georgia,serif;color:var(--quiet);text-align:center;margin:25px 0 0;min-height:30px}
.invitation-chapter{display:grid;grid-template-columns:1fr 1.25fr;align-items:center;gap:12px 75px;max-width:none;padding-top:95px;padding-bottom:70px}.invitation-chapter>.chapter-intro{max-width:400px;justify-self:end}.invitation-chapter>.artifact-hint{grid-column:2}.letter-stage{position:relative;width:min(100%,510px);height:365px;perspective:1200px}.letter-envelope{position:absolute;inset:32px 0 12px;background:repeating-linear-gradient(18deg,#a6865910 0 1px,transparent 1px 4px),#e7d7b9;color:#5d302d;box-shadow:0 24px 35px #13060b66,inset 0 0 0 1px #bb9f78;transform:rotate(-3deg);transition:transform .5s,opacity .35s;overflow:hidden}.letter-envelope:before{content:'';position:absolute;inset:0;background:linear-gradient(145deg,transparent 49.8%,#aa8a6133 50%,transparent 50.3%),linear-gradient(215deg,transparent 49.8%,#aa8a6133 50%,transparent 50.3%);pointer-events:none}.letter-envelope:after{content:'';position:absolute;left:0;right:0;top:0;height:59%;clip-path:polygon(0 0,100% 0,50% 100%);background:linear-gradient(#eddec2,#d6bf98);filter:drop-shadow(0 3px 1px #5b352b44)}.envelope-address{position:absolute;bottom:24px;left:28px;font:23px/1.25 Cormorant,Georgia,serif;z-index:1}.envelope-postmark{position:absolute;right:20px;bottom:22px;text-align:center;border:1px solid #995a3a70;border-radius:50%;padding:13px 8px;font:8px/1.7 Arial,sans-serif;letter-spacing:1px;transform:rotate(-14deg)}
.letter-seal{position:absolute;z-index:2;left:50%;top:46%;translate:-50% -50%;width:82px;height:82px;border:1px solid #c0845e;border-radius:47% 53% 48% 52%;background:radial-gradient(circle at 35% 25%,#a94d39,#6d241f 73%);color:#efd3a3;box-shadow:0 5px 10px #38141466,inset 0 0 0 5px #72251c,inset 0 0 0 6px #c9875866;transition:transform .25s}.letter-seal:hover{transform:rotate(-7deg) scale(1.04)}.letter-seal>span{font:23px/1.7 Nastaliq,serif}.letter-seal small{position:absolute;white-space:nowrap;left:50%;top:100%;translate:-50% 0;font:italic 18px/1.5 Cormorant,Georgia,serif;color:#5d302d;padding-top:12px}
.invitation-letter{position:absolute;inset:0;background:repeating-linear-gradient(0deg,#b29b7110 0 1px,transparent 1px 4px),#f0e3c9;color:#502b2b;box-shadow:0 22px 44px #15080d66,inset 0 0 0 8px #f0e3c9,inset 0 0 0 9px #b59a7166;text-align:center;padding:26px 30px;animation:letter-unfold .5s ease both}.letter-close{position:absolute;top:12px;right:12px;width:44px;height:44px;border:0;background:none;color:inherit;font:28px/1 Cormorant,Georgia,serif}.paper-eyebrow{font:9px/1.6 Arial,sans-serif;letter-spacing:1.6px;color:#805847;margin:0}.invitation-letter h3{font:400 37px/1.03 Cormorant,Georgia,serif;letter-spacing:-.6px;margin:14px 0}.invitation-letter h3 em{font-weight:400}.invitation-letter>p:not(.paper-eyebrow):not(.letter-signature){font:20px/1.3 Cormorant,Georgia,serif;margin:0}.invitation-details{display:flex;flex-direction:column;gap:5px;border-block:1px solid #ae8e6160;margin:17px auto 8px;padding:10px 0;max-width:340px}.invitation-details span{font:9px/1.5 Arial,sans-serif;text-transform:uppercase;letter-spacing:1.3px}.invitation-details strong{font:400 20px/1.25 Cormorant,Georgia,serif}.paper-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;font:italic 19px/1.35 Cormorant,Georgia,serif;border:0;border-bottom:1px solid #9e775b88;background:none;color:#632f31;text-decoration:none;padding:5px 0}.letter-signature{font:italic 19px/1.1 Cormorant,Georgia,serif;margin:9px 0 0}.letter-is-open .letter-envelope{transform:rotate(-6deg) scale(.96);opacity:.35}.invitation-letter:focus{outline:none}
.book-chapter{padding-top:100px;padding-bottom:40px}.book-layout{display:grid;grid-template-columns:.9fr 1.1fr;align-items:center;gap:110px;max-width:1000px;margin:auto}.book-intro{order:2}.book-margin-note{margin-top:38px;border-left:1px solid #b99a7066;padding-left:20px;color:var(--quiet);font:22px/1.4 Cormorant,Georgia,serif;display:flex;flex-direction:column}.book-intro .study-caption{margin-top:30px}
.keepsake{position:relative;order:1;width:100%;max-width:410px;height:540px;isolation:isolate;background:#d6c19e;border-radius:4px 9px 9px 4px;box-shadow:14px 20px 40px #14070a80,7px 0 0 #bcaa8c,10px 1px 0 #6d453b;transform:rotate(-2deg)}.keepsake:after{content:'';position:absolute;inset:5px -6px 5px auto;width:8px;background:repeating-linear-gradient(#d8c9ab 0 1px,#b5a383 1px 2px);z-index:-1;border-radius:0 5px 5px 0}.book-ribbon{position:absolute;top:0;right:35px;width:21px;height:calc(100% + 30px);background:linear-gradient(90deg,#8b392e,#b15e43 50%,#7c302a);clip-path:polygon(0 0,100% 0,100% 100%,50% calc(100% - 10px),0 100%);z-index:-1}.book-cover{position:absolute;inset:0;border:0;border-left:13px solid #2b1017;border-radius:4px 7px 7px 4px;width:100%;padding:38px 30px 24px;color:#dfc398;background:repeating-linear-gradient(0deg,#d5b27b0b 0 1px,transparent 1px 3px),repeating-linear-gradient(90deg,#0f050d15 0 1px,transparent 1px 3px),linear-gradient(100deg,#471c2b,#632536 45%,#3b1724);display:flex;flex-direction:column;align-items:center;text-align:center;box-shadow:inset 5px 0 10px #17081266,inset 0 0 0 12px #50202e,inset 0 0 0 13px #b8965e80;transition:filter .25s,transform .25s}.book-cover:before{content:'';position:absolute;inset:25px 24px 22px 26px;border:1px solid #c8a36e70;pointer-events:none}.book-cover:hover{filter:brightness(1.1);transform:rotate(1deg)}.cover-edition{font:8px/1.5 Arial,sans-serif;letter-spacing:2px}.cover-ornament{font:32px/1 Cormorant,Georgia,serif;margin:33px 0 19px}.cover-title{font:400 62px/.98 Cormorant,Georgia,serif;letter-spacing:-1px}.cover-rule{width:45px;height:1px;background:#c29e676b;margin:24px 0 20px}.cover-subtitle{font:18px/1.4 Cormorant,Georgia,serif}.cover-brand{--brand-width:80px;--brand-ink:#d8b988;margin-top:24px}.cover-open{font:italic 18px/1.4 Cormorant,Georgia,serif;margin-top:auto;padding-top:18px}.cover-open>span{padding-left:16px}
.book-pages{position:absolute;inset:0;padding:24px 29px 20px 36px;color:#54302b;background:linear-gradient(90deg,#b29b7355,transparent 9%),repeating-linear-gradient(0deg,#baa0740c 0 1px,transparent 1px 4px),#f0e4cd;border-radius:3px 7px 7px 3px;box-shadow:inset 0 0 0 8px #e1d0ac55;display:flex;flex-direction:column;animation:book-reveal .4s ease both}.book-is-open{transform:rotate(0);transition:transform .35s}.book-running-head{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ad8d6155;padding-bottom:10px;gap:12px}.book-running-head>span{font:8px/1.6 Arial,sans-serif;letter-spacing:1.3px}.book-running-head button{border:0;background:none;min-width:38px;min-height:38px;color:#54302b;font-size:26px}.book-page{flex:1;padding-top:25px}.book-page h3{font:400 36px/1.05 Cormorant,Georgia,serif;letter-spacing:-.5px;margin:16px 0 20px;min-height:76px}.book-page h3:focus{outline:none}.book-passage{font:23px/1.4 Cormorant,Georgia,serif;margin:0;min-height:192px;text-wrap:pretty}.book-passage:first-letter{font-size:43px;float:left;line-height:.9;padding:5px 5px 0 0}.book-byline{font:italic 15px/1.4 Cormorant,Georgia,serif;color:#805c47;margin:18px 0 12px}.book-pagination{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #ad8d6155}.book-pagination>span{font:10px/1.5 Arial,sans-serif;letter-spacing:1.5px}.book-pagination button{min-width:44px;min-height:44px;border:0;background:none;color:#643831;font-size:26px}.book-pagination button:disabled{opacity:.28}.leave-line{align-self:center;font-size:18px}.book-pages :focus-visible,.invitation-letter :focus-visible,.line-dialog :focus-visible{outline:2px solid #783e36;outline-offset:3px}
.line-dialog{color-scheme:light;background:#f0e4cd;color:#54302b;border:1px solid #a7865f;width:min(520px,calc(100% - 28px));max-height:calc(100dvh - 30px);padding:38px 30px;box-shadow:0 25px 70px #10050899}.line-dialog::backdrop{background:#1c0b15d9}.line-dialog h2{font:400 46px/1.05 Cormorant,Georgia,serif;margin:18px 0}.line-dialog>p:not(.paper-eyebrow){font:21px/1.4 Cormorant,Georgia,serif}.line-dialog label{display:flex;flex-direction:column;font:18px/1.4 Cormorant,Georgia,serif;margin-top:20px;gap:8px}.line-dialog label span{font-style:italic}.line-dialog textarea,.line-dialog input{width:100%;border:1px solid #a88c6966;border-radius:0;background:#fff8e9;color:#54302b;font:20px/1.4 Cormorant,Georgia,serif;padding:12px}.line-dialog textarea{resize:vertical;min-height:125px}.line-count{display:flex;justify-content:space-between;gap:12px;font:10px/1.6 Arial,sans-serif;color:#765642;margin-top:8px}.line-preview-notice{font:12px/1.6 Arial,sans-serif;color:#765642;margin:22px 0}.line-dialog .paper-button{width:100%}.line-dialog blockquote{font:italic 28px/1.4 Cormorant,Georgia,serif;margin:25px 0;white-space:pre-wrap;overflow-wrap:anywhere}.line-dialog #line-preview-name{font:18px/1.4 Cormorant,Georgia,serif}
@keyframes letter-unfold{from{opacity:0;transform:translateY(12px) rotate(-2deg)}to{opacity:1;transform:none}}@keyframes book-reveal{from{opacity:.3;transform:rotateY(-8deg)}to{opacity:1;transform:none}}
@media(min-width:1500px){.invitation-chapter{padding-inline:max(64px,calc((100vw - 1140px)/2))}}
@media(max-width:760px){.home-chapter{padding:65px 36px}.chapter-intro h2{font-size:54px;margin:18px 0}.chapter-intro>p:not(.overline):not(.study-caption){font-size:23px}.home-chapter .overline{font-size:9px;letter-spacing:2px}.invitation-chapter{display:flex;flex-direction:column;gap:30px;padding-top:60px}.invitation-chapter>.chapter-intro{text-align:center}.letter-stage{height:365px;width:100%;max-width:390px}.envelope-address{font-size:20px;bottom:30px;left:20px}.envelope-postmark{display:none}.letter-envelope{inset:35px 0 25px}.letter-seal{top:47%;width:74px;height:74px}.invitation-chapter .artifact-hint{margin:-12px 0 0;font-size:18px}.invitation-letter{padding:30px 18px 22px}.invitation-letter h3{font-size:34px}.invitation-letter .paper-link{font-size:17px}.invitation-details strong{font-size:19px}.study-caption{font-size:10px;margin-top:19px}.book-chapter{padding-top:60px;padding-bottom:25px}.book-layout{display:flex;flex-direction:column;gap:38px}.book-intro{order:0;text-align:center}.book-intro h2 br{display:none}.book-intro h2 em:before{content:' '}.book-margin-note{display:none}.book-intro .study-caption{margin-top:18px}.keepsake{height:525px;width:100%;max-width:355px}.book-cover{padding:35px 24px 24px;border-left-width:10px}.cover-title{font-size:57px}.cover-ornament{margin-top:30px}.book-pages{padding:18px 22px 16px 28px}.book-running-head>span{font-size:7px;letter-spacing:1px}.book-page{padding-top:22px}.book-page h3{font-size:32px;min-height:68px;margin-top:14px;margin-bottom:15px}.book-passage{font-size:21px;line-height:1.4;min-height:205px}.book-byline{font-size:14px;margin-top:14px}.leave-line{font-size:17px}.book-chapter .chapter-end{margin-top:65px}.line-dialog{padding:35px 23px}.line-dialog h2{font-size:40px}}
@media(max-width:360px){.home-chapter{padding-inline:29px}.keepsake{height:545px}.book-pages{padding-inline:22px}.book-passage{font-size:20px;min-height:225px}.book-page h3{font-size:30px}.book-running-head>span{letter-spacing:.5px}.invitation-letter h3{font-size:31px}.invitation-letter .paper-link{font-size:16px}}
.letter-stage{height:420px}.letter-envelope{inset:50px 0}.keepsake{height:590px}.book-cover .cover-ornament{margin-top:43px}.book-pages .book-page{min-height:0}.book-page .book-passage{min-height:0}.book-page .book-byline{margin-top:18px}.book-pagination,.leave-line{flex-shrink:0}
@media(max-width:760px){.letter-stage{height:420px}.letter-envelope{inset:70px 0}.letter-seal{top:49%}.keepsake{height:590px}.cover-title{font-size:60px}.cover-ornament{margin-bottom:28px}.book-passage{font-size:21px;line-height:1.42}}
@media(max-width:360px){.keepsake{height:620px}.book-passage{font-size:20px}}
@media(prefers-reduced-motion:reduce){.invitation-letter,.book-pages{animation:none}.letter-envelope,.book-cover,.book-is-open,.letter-seal{transition:none}}
/* A comfortable reader, rather than a miniature page inside a moving object. */
.keepsake{max-width:335px;height:490px;justify-self:center}.book-cover{padding:30px 25px 22px}.book-cover .cover-ornament{margin:25px 0 21px}.cover-title{font-size:58px}.cover-rule{margin:19px 0 17px}.cover-brand{margin-top:18px;--brand-width:68px}.cover-open{padding-top:14px}
.book-reader{color-scheme:light;width:min(580px,calc(100% - 24px));max-height:calc(100dvh - 32px);padding:0;border:1px solid #b59a71;background:#f0e4cd;color:#54302b;box-shadow:0 25px 70px #10050899;overflow:auto;overscroll-behavior:contain;border-radius:2px}
.book-reader::backdrop{background:#1c0b15e8}.book-reader .book-pages{position:relative;inset:auto;min-height:610px;padding:24px 38px 24px 42px;animation:none;display:flex;flex-direction:column;border-radius:0}.book-reader .book-running-head{min-height:52px}.book-reader .book-running-head>span{font-size:9px;letter-spacing:1.3px}.book-reader .book-running-head button{min-height:44px;min-width:44px}.book-reader .book-page{padding-top:25px;flex:1}.book-reader .book-page h3{font-size:42px;line-height:1.06;min-height:0;margin:16px 0 25px}.book-reader .book-passage{font-size:26px;line-height:1.5;min-height:0}.book-reader .book-passage:first-letter{float:none;font-size:inherit;padding:0;line-height:inherit}.book-reader .book-byline{font-size:19px;line-height:1.4;margin:25px 0}.book-reader .book-pagination{margin-top:15px}.book-reader .leave-line{font-size:20px;margin-top:5px}.book-reader :focus-visible{outline:2px solid #783e36;outline-offset:3px}.invitation-letter{overflow-y:auto;overscroll-behavior:contain}.invitation-letter h3{overflow-wrap:anywhere;font-size:clamp(28px,3vw,37px)}.invitation-letter .invitation-venue{font:19px/1.3 Cormorant,Georgia,serif;text-transform:none;letter-spacing:0;overflow-wrap:anywhere}.invitation-venue:empty{display:none}.line-dialog{overscroll-behavior:contain}
@media(max-width:760px){.book-layout{gap:28px}.book-chapter{padding-top:45px}.keepsake{width:270px;max-width:100%;height:430px}.book-cover{padding:27px 24px 22px}.book-cover .cover-ornament{font-size:26px;margin:22px 0 20px}.cover-title{font-size:52px}.cover-rule{margin:18px 0 16px}.cover-subtitle{font-size:17px;line-height:1.35}.cover-brand{display:none}.cover-open{margin-top:auto;font-size:18px;padding-top:20px}.cover-edition{font-size:7px;letter-spacing:1.6px}.book-reader{max-height:calc(100dvh - 24px)}.book-reader .book-pages{padding:18px 24px 23px;min-height:570px}.book-reader .book-page h3{font-size:35px;line-height:1.1;margin:15px 0 22px}.book-reader .book-passage{font-size:23px;line-height:1.48}.book-reader .book-running-head>span{font-size:8px;letter-spacing:1px}.book-reader .book-byline{font-size:18px}.book-reader .book-pagination>span{font-size:10px}.book-reader .leave-line{font-size:19px}.book-chapter .chapter-end{margin-top:46px}.invitation-chapter{gap:22px}.invitation-letter .paper-eyebrow{padding-right:15px}.invitation-letter h3{font-size:32px}.invitation-letter #invitation-copy{font-size:20px}.invitation-details strong{font-size:20px}}
@media(max-width:360px){.keepsake{height:420px;width:255px}.book-reader .book-pages{padding-inline:22px}.book-reader .book-page h3{font-size:32px}.book-reader .book-passage{font-size:22px}}
.book-reader .book-passage,.book-reader .book-byline,.book-reader .book-page h3,.invitation-letter #invitation-copy{overflow-wrap:anywhere}
#kitaab .book-intro-note{font:italic 18px/1.5 Cormorant,Georgia,serif;max-width:28ch;margin-top:24px;color:var(--quiet)}
@media(max-width:760px){#kitaab .book-intro-note{font-size:17px;margin:18px auto 0}}
@keyframes paper-arrives{from{opacity:.5;transform:translateY(6px)}to{opacity:1;transform:none}}
.book-reader[open],.line-dialog[open]{animation:paper-arrives .2s ease-out}.invitation-letter{animation-duration:.28s}.book-reader::backdrop,.line-dialog::backdrop{backdrop-filter:none}
@media(prefers-reduced-motion:reduce){.book-reader[open],.line-dialog[open]{animation:none}}
/* A stable paper size prevents the reader moving between short and long pages. */
.book-reader{height:min(760px,calc(100dvh - 32px))}.book-reader .book-pages{min-height:100%}.book-reader .book-page{flex:1 0 auto}
.home-colophon{text-align:center;padding:25px 28px 145px;background:#361018;color:var(--quiet)}.home-colophon p{font:italic 25px/1.4 Cormorant,Georgia,serif;margin:0 0 20px}.home-colophon nav{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:10px 30px}.home-colophon a{display:inline-flex;align-items:center;min-height:44px;font:18px/1.4 Cormorant,Georgia,serif;text-decoration:none;border-bottom:1px solid #c8a57a40}.home-colophon a:hover{color:var(--paper);border-color:var(--gold)}.home-colophon small{display:block;margin-top:24px;font:11px/1.6 Arial,sans-serif;letter-spacing:.3px}
@media(max-width:760px){.book-reader{height:min(730px,calc(100dvh - 24px))}.home-colophon{padding-bottom:135px}.home-colophon nav{gap:8px 23px}.home-colophon a{font-size:17px}}
/* These two objects share a single rug layer, with no seam at the footer. */
.memory-and-footer{position:relative;isolation:isolate;background:#361018}
.memory-and-footer:before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background-image:linear-gradient(90deg,#250b1160,#2c0b17cf 25%,#2c0b17cf 75%,#250b1160),url('./assets/red-rug.jpg');background-size:auto,clamp(640px,100vw,1440px) auto;background-position:center top;mask-image:linear-gradient(transparent,#000 160px)}
.memory-and-footer .memory-section,.memory-and-footer .home-colophon{background:none}
.memory-and-footer .memory-section:before{content:none}
