:root{color-scheme:light;--ink:#182c3d;--muted:#526271;--accent:#956a3a;--paper:#fffdfa;--line:#d9d7d1}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:17px/1.65 Georgia,serif}a{color:#16517a}a:hover,a:focus{text-decoration-thickness:2px}header{padding:18px max(20px,calc((100vw - 1200px)/2));border-bottom:1px solid var(--line);background:#f8f3e9}.brand{font-size:1.3rem;font-weight:bold;letter-spacing:.1em;text-decoration:none;color:var(--ink)}nav{display:flex;flex-wrap:wrap;gap:8px 20px;margin-top:12px}nav a{font:600 .78rem/1.6 Arial,sans-serif;letter-spacing:.07em;text-decoration:none}main{max-width:1200px;margin:auto;padding:32px 22px 70px;min-height:60vh}h1,h2,h3{line-height:1.25}h1{font-size:clamp(2rem,4vw,3.3rem);margin:.2em 0 .5em}h2{font-size:1.35rem;margin-top:1.5em}.eyebrow{font:700 .78rem Arial,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}.subtitle{font-size:1.3rem;color:var(--accent)}.muted{color:var(--muted)}.catalog{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:24px}.tile{padding:18px;border:1px solid var(--line);border-radius:8px;background:white}.tile h2{margin:.4em 0;font-size:1.25rem}.catalog-cover{display:block;width:100%;max-height:320px;object-fit:contain;object-position:center}.catalog-placeholder{height:270px;background:#eee9df;display:grid;place-items:center;color:#69665f}.book{display:grid;grid-template-columns:minmax(210px,340px) minmax(0,1fr);gap:clamp(20px,5vw,70px);align-items:start}.book-cover{width:100%;height:auto;display:block}.tag{display:inline-block;border:1px solid #d6c8b5;border-radius:999px;padding:4px 11px;margin:3px;font:14px Arial,sans-serif}footer{padding:24px;text-align:center;background:#f8f3e9;border-top:1px solid var(--line);font-size:.9rem}.skip-link{position:absolute;left:-9999px;top:0;background:#fff;padding:10px}.skip-link:focus{left:10px;z-index:10}img{max-width:100%}a:focus-visible{outline:3px solid #a56513;outline-offset:3px}@media(max-width:650px){.book{grid-template-columns:1fr}.book-cover{max-width:320px;margin:auto}nav{gap:7px 14px}main{padding:25px 17px 50px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.source-note{font-size:.82rem;color:#555;line-height:1.45;margin-top:.45rem}

/* V8: Italian translation presented as a distinct published edition */
.translated-edition{margin:1.5rem 0;padding:1rem 0;border-top:1px solid #d4d0c7;border-bottom:1px solid #d4d0c7}
.translated-edition .edition-cover{display:block;width:min(220px,70%);height:auto;margin:.8rem 0 1rem}

/* V10: approved Nelly Frank author portraits */
.author-identity-feature{display:grid;grid-template-columns:minmax(190px,310px) minmax(0,1fr);gap:clamp(20px,4vw,48px);align-items:center;margin:2.2rem 0;padding:1.5rem;background:#f8f3e9;border-radius:12px}
.author-identity-feature h2{margin-top:0}
.author-photo{width:100%;height:auto;display:block;border-radius:10px;box-shadow:0 6px 20px #182c3d19}
.author-photo-closeup{aspect-ratio:867/719;object-fit:cover}
@media(max-width:650px){.author-identity-feature{grid-template-columns:1fr;padding:1rem}.author-photo{max-width:350px;margin:auto}}

/* Clickable book covers */
a.catalog-cover-link{display:block;text-decoration:none;border-radius:8px;}
a.catalog-cover-link:focus-visible{outline:3px solid #1769aa;outline-offset:4px;}
a.catalog-cover-link:hover img{transform:translateY(-3px);box-shadow:0 9px 22px rgba(0,0,0,.16);}
a.catalog-cover-link img{transition:transform .15s ease,box-shadow .15s ease;}

.reader-benefits{margin:1.5rem 0;padding:1.25rem 1.5rem;border-left:3px solid currentColor;background:rgba(125,125,125,.045);border-radius:0.4rem}.reader-benefits h2{margin-top:0}.reader-benefits p{line-height:1.7}

/* V15: consistent width of every section on individual book pages */
.book-detail-layout{grid-template-columns:minmax(210px,300px) minmax(0,1fr);gap:clamp(22px,4vw,54px)}
.book-detail-content{min-width:0;width:100%;}
.book-detail-content>.reader-benefits{width:100%;max-width:none;margin:1.8rem 0;padding:1.25rem 1.5rem;}
@media(max-width:650px){.book-detail-layout{grid-template-columns:minmax(0,1fr)}.book-detail-content{width:100%}}

/* V17 synopsis hooks */
.book-detail-content .synopsis-hook{font-weight:700;font-size:1.15em;line-height:1.5;margin-top:.7em;}

/* V19: author-led homepage and prominent library call to action */
.homepage-welcome{margin-top:0}
.homepage-welcome h2{font-size:clamp(1.75rem,3.2vw,2.65rem);line-height:1.18}
.homepage-welcome p{line-height:1.7}
.browse-books-cta{display:inline-block!important;background:#b3262e!important;color:#fff!important;border:2px solid #941c23!important;border-radius:8px!important;padding:16px 24px!important;font-size:clamp(1.15rem,2vw,1.4rem)!important;font-weight:800!important;line-height:1.3!important;text-decoration:none!important;box-shadow:0 5px 14px #7b12152e}
.browse-books-cta:hover{background:#8e1720!important;transform:translateY(-1px)}
.browse-books-cta:focus-visible{outline:3px solid #142c44;outline-offset:4px}
@media(max-width:650px){.browse-books-cta{display:block!important;text-align:center}}

/* V21: unified personal homepage with portrait aligned to first two paragraphs */
.homepage-unified{max-width:1100px;margin:0 auto;padding:clamp(22px,4vw,52px) 0;}
.homepage-unified>.eyebrow{margin-bottom:8px;}
.homepage-unified>h1{margin:0 0 5px;}
.homepage-unified>.welcome-subtitle{margin:0 0 24px;font-size:clamp(1.35rem,2.8vw,2.15rem);line-height:1.2;}
.welcome-intro-grid{display:grid;grid-template-columns:minmax(180px,32%) minmax(0,1fr);gap:clamp(18px,3vw,36px);align-items:stretch;margin-bottom:22px;}
.welcome-intro-grid .author-photo{display:block;width:100%;height:100%;max-height:100%;min-height:0;aspect-ratio:auto;object-fit:cover;object-position:center 35%;border-radius:12px;}
.welcome-intro-copy{align-self:start;}
.welcome-intro-copy p:first-child{margin-top:0;}
.welcome-intro-copy p:last-child{margin-bottom:0;}
.welcome-full-copy{width:100%;text-align:left;}
.welcome-full-copy p{max-width:none;}
.homepage-unified .browse-books-cta{display:inline-block;margin-top:12px;}
@media(max-width:640px){.welcome-intro-grid{grid-template-columns:1fr;}.welcome-intro-grid .author-photo{width:min(100%,360px);height:auto;max-height:330px;object-fit:cover;}.homepage-unified{padding:24px 0;}}

/* V23 bottom navigation */
.page-bottom-navigation{text-align:center;padding:1.25rem 1rem;margin:2rem auto 0;border-top:1px solid #e7e1dc;}
.page-bottom-navigation a{font-size:1.08rem;font-weight:700;text-decoration:underline;text-underline-offset:4px;}
.page-bottom-navigation a:focus-visible{outline:3px solid #aa2525;outline-offset:4px;}

/* V24: clear inline library navigation */
a.library-inline-link {color:#a6212b;font-weight:800;text-decoration:underline;text-underline-offset:3px;}
a.library-inline-link:hover,a.library-inline-link:focus-visible {color:#76141c;text-decoration-thickness:2px;}

/* V30: book covers beside opening text; subsequent text uses full page width. */
.book.book-flow-layout{display:block;flow-root:normal;text-align:left;}
.book-flow-layout::after{content:"";display:block;clear:both;}
.book-flow-layout .book-cover-float{float:left;width:min(32%,320px);margin:0 clamp(20px,4vw,54px) 22px 0;}
.book-flow-layout .book-cover{width:100%;height:auto;}
.book-flow-layout h1,.book-flow-layout h2,.book-flow-layout p,.book-flow-layout li{text-align:left;}
@media(max-width:650px){.book-flow-layout .book-cover-float{float:none;width:min(100%,320px);margin:0 auto 24px;}}

/* V36: planned newsletter, inactive */
.newsletter-preview{max-width:900px;margin:3rem auto;padding:2rem;border:1px solid #d9d1c4;border-radius:12px;background:#fffdf9;color:#29251e}
.newsletter-preview h1,.newsletter-preview h2{line-height:1.25}
.newsletter-preview p{line-height:1.7}
@media(max-width:600px){.newsletter-preview{margin:1.5rem 0;padding:1.25rem}}

/* V37: mobile-first pathways for visitors arriving from printed book QR codes. */
.reader-pathways{margin:2.5rem 0 1rem;padding-top:1.5rem;border-top:1px solid var(--line)}
.reader-pathway-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.reader-pathway{display:flex;flex-direction:column;gap:.6rem;padding:1.25rem;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);text-decoration:none;min-height:190px}
.reader-pathway:hover,.reader-pathway:focus-visible{border-color:var(--accent);box-shadow:0 2px 12px rgba(0,0,0,.07)}
.reader-pathway strong{font-size:1.1rem;line-height:1.35}.reader-pathway span{font-size:.94rem;line-height:1.5}.reader-pathway .pathway-action{margin-top:auto;color:#16517a;font-weight:bold}
@media(max-width:760px){.reader-pathway-grid{grid-template-columns:1fr}.reader-pathway{min-height:0;padding:1rem}header{padding:14px 17px}nav a{display:inline-block;padding:8px 3px;min-height:40px}main{padding:22px 17px 45px}.brand{font-size:1.05rem;letter-spacing:.05em}}
@media(max-width:380px){nav{gap:3px 11px}nav a{font-size:.72rem}}

.edition-switch{font-weight:600;margin:1rem 0;line-height:1.8}.edition-switch a{white-space:nowrap}

/* V42: reader-focused typography and reduced homepage whitespace */
.homepage-unified{padding-top:clamp(4px,1.1vw,12px)}
.homepage-unified>h1{font-size:clamp(1.9rem,3vw,2.55rem);line-height:1.17;margin:0 0 7px}
.homepage-unified>.welcome-subtitle{font-size:clamp(1.15rem,2vw,1.65rem);margin-bottom:19px}
.library-heading{font-size:clamp(1.75rem,2.7vw,2.4rem);margin-bottom:.3em}
.catalog .tile{display:flex;flex-direction:column;gap:0}
.catalog .tile .catalog-title{font-size:1.08rem;line-height:1.34;margin:13px 0 5px}
.catalog .tile .catalog-subtitle{font-size:1.02rem;line-height:1.48;color:#354b5b;font-weight:600;margin:0 0 13px}
.catalog .tile .edition-switch{font-size:.9rem;margin:0 0 12px}
.catalog .tile>a:last-child{margin-top:auto}
@media(max-width:650px){.homepage-unified{padding-top:3px}.catalog .tile .catalog-title{font-size:1.08rem}}

/* V43: reader pathways immediately follow welcome copy */
.homepage-unified{padding-bottom:0}
.welcome-full-copy p:last-child{margin-bottom:0}
.reader-pathways{margin:.55rem 0 1.2rem;padding-top:.65rem}
.reader-pathways-heading{text-align:center;font-size:clamp(1.65rem,3vw,2.3rem);line-height:1.2;margin:.15rem 0 .35rem;color:var(--ink)}
.reader-pathways-intro{text-align:center;margin:0 auto 1.35rem;max-width:650px;color:var(--muted)}
@media(max-width:650px){.reader-pathways{margin-top:.35rem;padding-top:.6rem}.reader-pathways-heading{font-size:1.6rem}}

/* V44: selective editorial justification for comfortable desktop reading. */
@media (min-width: 800px) {
  .book-flow-layout p:not(.eyebrow):not(.subtitle):not(.synopsis-hook):not(.muted):not(.edition-switch):not(.author-review-notice),
  .book-detail-content > p:not(.eyebrow):not(.subtitle):not(.synopsis-hook):not(.muted):not(.edition-switch):not(.author-review-notice),
  .welcome-full-copy p,
  .welcome-intro-copy p,
  .author-identity-feature p {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    overflow-wrap: break-word;
  }
}
@media (max-width: 799px) {
  .book-flow-layout p, .book-detail-content p, .welcome-full-copy p,
  .welcome-intro-copy p, .author-identity-feature p { text-align: left; }
}

/* V45: slightly smaller portrait, retaining aspect ratio and mobile readability */
@media(min-width:641px){.welcome-intro-grid{grid-template-columns:minmax(170px,27%) minmax(0,1fr);align-items:center}.welcome-intro-grid .author-photo{height:auto;max-height:310px;object-fit:contain}}
@media(max-width:640px){.welcome-intro-grid .author-photo{width:min(100%,285px);max-height:none;height:auto}}

/* V46: reader-values feature */
.values-feature{border:1px solid var(--line);border-radius:12px;background:#faf5ec;padding:22px 26px;margin:24px 0 34px}.values-feature h2{margin-top:0}.values-signature{font-weight:bold;color:var(--accent);font-style:italic}
