@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root{color-scheme:light;--paper:#f7f6f2;--white:#fff;--ink:#1c2925;--muted:#6e7771;--line:#e4e6df;--green:#456b58;--green-dark:#2d4c3c;--pale:#e9eee7;--gold:#c69a48;--shadow:0 14px 45px rgba(25,43,34,.08)}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:90px}
body{margin:0;background:var(--paper);color:var(--ink);font-family:"DM Sans",sans-serif;line-height:1.6;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
button{font:inherit}
.site-header{height:82px;padding:0 clamp(22px,6vw,88px);display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(28,41,37,.09);background:rgba(247,246,242,.92)}
.wordmark{display:flex;align-items:center;gap:12px}.mark{width:37px;height:37px;border-radius:11px;background:var(--green);color:white;display:grid;place-items:center;font-family:Manrope,sans-serif;font-weight:800;font-size:20px}
.wordmark-copy{display:flex;flex-direction:column;line-height:1.3}.wordmark-copy strong{font-size:13px;letter-spacing:-.2px}.wordmark-copy small{font-size:11px;color:var(--muted);margin-top:4px}
.header-link{font-size:12px;font-weight:700;color:var(--green-dark)}.header-link span{margin-left:6px}
.hero{position:relative;overflow:hidden;padding:clamp(70px,10vw,132px) clamp(22px,12vw,170px) 88px;max-width:1440px;margin:auto}
.hero:after{content:"";position:absolute;right:9%;top:19%;width:clamp(140px,20vw,270px);height:clamp(140px,20vw,270px);border:1px solid #dce2d8;border-radius:50%;box-shadow:0 0 0 26px rgba(233,238,231,.45),0 0 0 54px rgba(233,238,231,.28);pointer-events:none}
.eyebrow{font-size:10px;letter-spacing:2px;font-weight:700;color:var(--green);margin:0 0 19px;display:flex;align-items:center;gap:9px}.eyebrow-dot{width:7px;height:7px;border-radius:50%;background:var(--gold)}
.hero h1{font-family:Manrope,sans-serif;font-size:clamp(48px,7.5vw,91px);line-height:1.06;letter-spacing:-.065em;font-weight:600;margin:0;max-width:790px;position:relative;z-index:1}.hero h1 span{color:var(--green)}
.hero-copy{max-width:435px;color:var(--muted);font-size:16px;margin:26px 0 30px;position:relative;z-index:1}
.primary-link{display:inline-flex;gap:24px;align-items:center;background:var(--green);color:white;padding:13px 18px;border-radius:7px;font-size:12px;font-weight:700;transition:background .2s,transform .2s}.primary-link:hover{background:var(--green-dark);transform:translateY(-2px)}
.hero-note{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:11px;margin-top:53px}.note-line{width:28px;height:1px;background:var(--gold)}
.library-section{background:#fff;padding:82px clamp(22px,8vw,112px) 78px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.section-heading{max-width:1200px;margin:0 auto 32px;display:flex;align-items:end;justify-content:space-between;gap:20px}.section-heading .eyebrow{margin-bottom:7px}.section-heading h2,.about-copy h2{font-family:Manrope,sans-serif;letter-spacing:-.045em;font-size:clamp(30px,4vw,43px);line-height:1.2;margin:0;font-weight:600}.book-count{font-size:12px;color:var(--muted);margin:0 0 5px}
.status{max-width:1200px;margin:0 auto 20px;color:var(--muted);font-size:13px}.status:empty{display:none}
.book-grid{max-width:1200px;margin:0 auto;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:25px 20px}
.book-card{min-width:0}.cover-wrap{aspect-ratio:3/4.1;background:#f0f1ec;border:1px solid var(--line);border-radius:7px;overflow:hidden;position:relative;display:flex;align-items:center;justify-content:center;transition:transform .25s,box-shadow .25s}.book-card:hover .cover-wrap{transform:translateY(-4px);box-shadow:var(--shadow)}
.cover-canvas{display:block;width:100%;height:100%;object-fit:contain;background:#f5f2e9}.cover-fallback{padding:22px;display:flex;flex-direction:column;justify-content:space-between;width:100%;height:100%;background:linear-gradient(145deg,#e8eee7,#f8f5eb);color:var(--green-dark)}.cover-fallback .fallback-label{font-size:9px;letter-spacing:1.8px;font-weight:700}.cover-fallback strong{font-family:Manrope,sans-serif;font-size:clamp(19px,2vw,28px);line-height:1.1;letter-spacing:-1px;overflow-wrap:anywhere}.cover-fallback .fallback-author{font-size:10px;color:var(--muted)}
.book-info{padding:15px 2px 0}.book-info h3{font-size:14px;font-weight:700;letter-spacing:-.25px;line-height:1.45;margin:0 0 6px;overflow-wrap:anywhere}.book-meta{font-size:11px;color:var(--muted);margin:0 0 13px}.read-button{width:100%;display:flex;justify-content:space-between;align-items:center;padding:10px 12px;border:1px solid #dce3dc;background:white;border-radius:6px;color:var(--green-dark);font-size:11px;font-weight:700;cursor:pointer;transition:background .2s,border-color .2s}.read-button:hover{background:var(--pale);border-color:#b9c9bc}.read-button span{font-size:15px}
.empty-state{grid-column:1/-1;padding:45px 20px;border:1px dashed var(--line);border-radius:8px;text-align:center;color:var(--muted);font-size:13px}
.library-footnote{max-width:1200px;margin:30px auto 0;color:#858d86;font-size:11px}.library-footnote code{font-size:10px;background:#f1f3ef;padding:2px 5px;border-radius:3px}
.about-section{max-width:1100px;margin:auto;padding:90px clamp(22px,8vw,90px);display:grid;grid-template-columns:.8fr 1.5fr;gap:70px}.about-label{font-size:10px;letter-spacing:1.7px;font-weight:700;color:var(--green);padding-top:8px}.tiny-star{font-size:17px;margin-right:9px;color:var(--gold)}.about-copy h2{max-width:500px;font-size:clamp(29px,3.5vw,40px)}.about-copy>p{max-width:620px;color:var(--muted);font-size:14px;margin:20px 0 0}.about-copy .copyright-note{font-size:11px;line-height:1.8;border-top:1px solid var(--line);padding-top:18px;margin-top:23px}
.site-footer{padding:22px clamp(22px,6vw,88px);border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:16px;color:var(--muted);font-size:10px;letter-spacing:.2px}
.reader-dialog{padding:0;border:0;border-radius:12px;width:min(1000px,calc(100% - 24px));max-width:none;max-height:94vh;background:#f4f4f0;color:var(--ink);box-shadow:0 30px 100px rgba(0,0,0,.28)}.reader-dialog::backdrop{background:rgba(15,25,20,.72);backdrop-filter:blur(4px)}
.reader-topbar{display:flex;justify-content:space-between;align-items:center;padding:19px 23px;background:white;border-bottom:1px solid var(--line)}.reader-title-wrap .eyebrow{font-size:9px;margin-bottom:3px}.reader-title-wrap h2{font-size:18px;margin:0;line-height:1.35;overflow-wrap:anywhere}.icon-button{width:38px;height:38px;border:1px solid var(--line);border-radius:50%;background:white;font-size:25px;line-height:1;cursor:pointer;color:var(--ink)}
.reader-actions{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;padding:13px 15px;border-bottom:1px solid var(--line);background:#fff}.reader-button{border:1px solid var(--line);background:white;border-radius:5px;padding:8px 11px;font-size:11px;font-weight:700;cursor:pointer}.reader-button:disabled{opacity:.4;cursor:not-allowed}#page-indicator{font-size:11px;color:var(--muted);min-width:70px;text-align:center}.reader-download{font-size:11px;font-weight:700;color:var(--green);margin-left:10px}.reader-status{text-align:center;color:var(--muted);font-size:12px;padding:10px 15px}.reader-status:empty{display:none}.pdf-stage{padding:15px;overflow:auto;max-height:calc(94vh - 145px);display:flex;justify-content:center;align-items:flex-start}.pdf-stage canvas{display:block;max-width:100%;height:auto;background:white;box-shadow:0 4px 20px rgba(0,0,0,.08)}
@media(max-width:900px){.book-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.hero:after{right:5%;opacity:.55}.about-section{gap:35px}}
@media(max-width:620px){.site-header{height:72px}.wordmark-copy strong{font-size:11px}.wordmark-copy small{font-size:10px}.header-link{font-size:11px}.hero{padding-top:75px;padding-bottom:65px}.hero:after{top:12%;right:-80px;opacity:.35}.hero-copy{font-size:14px}.hero-note{margin-top:38px}.library-section{padding-top:60px;padding-bottom:60px}.book-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:25px 14px}.cover-wrap{aspect-ratio:3/4.15}.cover-fallback{padding:15px}.book-info h3{font-size:12px}.section-heading{align-items:start}.book-count{max-width:100px;text-align:right}.about-section{grid-template-columns:1fr;gap:17px;padding-top:65px;padding-bottom:65px}.site-footer{font-size:9px}.reader-topbar{padding:14px}.reader-actions{gap:7px}.reader-download{margin-left:0}.pdf-stage{padding:8px;max-height:calc(94vh - 180px)}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}
