
:root {
  --ink:#17222d; --muted:#66727d; --navy:#072d4f; --navy2:#0d476f;
  --paper:#f7f4ec; --white:#fff; --gold:#b79b62; --line:rgba(7,45,79,.16);
  --shadow:0 18px 55px rgba(7,45,79,.13);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--sans);line-height:1.65}
a{color:var(--navy2);text-decoration-thickness:1px;text-underline-offset:3px}
img{max-width:100%;display:block}
.skip-link{position:absolute;left:-9999px;top:auto}
.skip-link:focus{left:1rem;top:1rem;background:#fff;padding:.75rem 1rem;z-index:10000}
.site-header{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:100}
.header-inner,.footer-inner,.container{width:min(1180px,calc(100% - 2rem));margin:auto}
.header-inner{display:flex;align-items:center;gap:1.2rem;min-height:158px}
.brand-link{display:flex;align-items:center;margin-right:auto}
.brand-link img{width:236px;height:144px;object-fit:contain}
.nav-toggle{display:none}
.site-nav{display:flex;align-items:center;gap:.8rem;flex-wrap:wrap;justify-content:flex-end}
.site-nav a{color:var(--ink);text-decoration:none;font-weight:650;font-size:.92rem}
.site-nav a:hover,.site-nav a[aria-current="page"]{color:var(--navy2)}
main{min-height:65vh}
.hero{padding:7rem 0 6rem;background:
 radial-gradient(circle at 85% 20%,rgba(183,155,98,.22),transparent 28%),
 linear-gradient(135deg,#f9f6ef,#edf2f5)}
.hero-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:3rem;align-items:center}
.eyebrow{text-transform:uppercase;letter-spacing:.18em;color:var(--gold);font-weight:800;font-size:.78rem}
h1,h2,h3{font-family:var(--serif);line-height:1.12;color:var(--navy);margin-top:0}
h1{font-size:clamp(2.7rem,6vw,5.5rem);margin-bottom:1.2rem}
h2{font-size:clamp(2rem,4vw,3.4rem)}
h3{font-size:1.4rem}
.lede{font-size:1.18rem;color:#40505c;max-width:760px}
.actions{display:flex;gap:.8rem;flex-wrap:wrap;margin-top:1.7rem}
.button,button{appearance:none;border:0;border-radius:999px;background:var(--navy);color:#fff;padding:.85rem 1.25rem;font-weight:800;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}
.button.secondary{background:transparent;border:1px solid var(--navy);color:var(--navy)}
.section{padding:5rem 0}
.section.alt{background:#fff}
.section-head{display:flex;justify-content:space-between;gap:1rem;align-items:end;margin-bottom:2rem}
.grid{display:grid;gap:1.5rem}
.product-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.card{background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:var(--shadow)}
.card-body{padding:1.25rem}
.book-cover{aspect-ratio:2/3;background:#e6e8ea;object-fit:cover;width:100%}
.meta{color:var(--muted);font-size:.92rem}
.badge{display:inline-block;background:#e8eef4;color:var(--navy);border-radius:999px;padding:.25rem .65rem;font-size:.78rem;font-weight:800}
.product-page{display:grid;grid-template-columns:minmax(260px,390px) minmax(0,1fr);gap:3rem;align-items:start}
.product-page .book-cover{border-radius:14px;box-shadow:var(--shadow)}
.credit-list{display:flex;gap:.35rem;flex-wrap:wrap;margin:1rem 0}
.credit-list a{text-decoration:none;font-weight:700}
.features{padding-left:1.2rem}
.purchase-panel{background:#fff;border:1px solid var(--line);padding:1.3rem;border-radius:16px;margin:1.5rem 0}
.retail-links{display:flex;gap:.7rem;flex-wrap:wrap;margin-top:1rem}
.paypal-host{min-height:52px}
.prose{max-width:860px}
.prose h2{margin-top:2.4rem}
.legal-notice{background:#edf3f7;border-left:4px solid var(--navy);padding:1rem 1.2rem;margin:1.2rem 0 2rem}
.form-grid{display:grid;gap:1rem;max-width:760px}
label{font-weight:750}
input,textarea,select{width:100%;padding:.82rem;border:1px solid #b8c0c8;border-radius:10px;background:#fff;font:inherit}
textarea{min-height:170px}
.notice{padding:1rem;border-radius:10px;background:#edf3f7}
.error{background:#ffe9e9;color:#7a1717}
.success{background:#e8f5ec;color:#1b5a2b}
.site-footer{background:#061f36;color:#dce8f2;padding:3rem 0}
.site-footer a{color:#fff}
.footer-grid{display:grid;grid-template-columns:1.2fr .8fr .8fr;gap:2rem}
.footer-logo{width:160px;margin-bottom:1rem}
.footer-links{display:grid;gap:.45rem}
.copyright-line{border-top:1px solid rgba(255,255,255,.15);margin-top:2rem;padding-top:1.4rem;font-size:.9rem}
.reader-shell{background:#111822;color:#eef4fa;min-height:70vh;border-radius:18px;overflow:hidden}
.reader-toolbar{display:flex;gap:.6rem;align-items:center;flex-wrap:wrap;padding:1rem;background:#071f35}
.reader-toolbar button{background:#fff;color:#071f35;padding:.55rem .8rem}
.reader-content{background:#fbf7ed;color:#1d242b;max-width:820px;margin:0 auto;padding:3rem;min-height:60vh;font-family:Georgia,serif;font-size:1.1rem}
.reader-dark .reader-content{background:#151a20;color:#e9edf1}
.reader-sepia .reader-content{background:#efe4c9;color:#352d22}
.table-wrap{overflow:auto}
table{border-collapse:collapse;width:100%;background:#fff}
th,td{border:1px solid var(--line);padding:.75rem;text-align:left;vertical-align:top}
@media(max-width:900px){
 .brand-link img{width:168px;height:102px}
 .header-inner{min-height:112px}
 .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .hero-grid,.product-page,.footer-grid{grid-template-columns:1fr}
 .nav-toggle{display:block}
 .site-nav{display:none;position:absolute;left:1rem;right:1rem;top:108px;background:#fff;border:1px solid var(--line);padding:1rem;border-radius:12px;box-shadow:var(--shadow)}
 .site-nav.open{display:grid}
 .account-details{grid-template-columns:1fr}
 .legal-toc ol{columns:1}
}
@media(max-width:560px){.product-grid{grid-template-columns:1fr}.hero{padding:4rem 0}.section{padding:3.5rem 0}}


.nav-account{
  border:1px solid var(--navy);
  border-radius:999px;
  padding:.48rem .85rem;
  white-space:nowrap;
}
.nav-account:hover,
.nav-account[aria-current="page"]{
  background:var(--navy);
  color:#fff!important;
}
.reader-toolbar img{
  height:42px;
  width:auto;
  max-width:190px;
  object-fit:contain;
}
.reader-empty{
  min-height:70vh;
  display:grid;
  place-items:center;
  gap:1.25rem;
  padding:3rem 1.5rem;
  text-align:center;
  background:
    radial-gradient(circle at 50% 30%,rgba(46,93,148,.38),transparent 34%),
    linear-gradient(145deg,#050a11,#0a1b2e 58%,#08111d);
}
.reader-empty-logo{
  width:min(620px,88vw);
  max-height:260px;
  object-fit:contain;
  margin:0 auto;
}
.reader-empty-message{
  max-width:720px;
  color:#e9f0f7;
}
.reader-empty-message h1{
  color:#fff;
  margin-bottom:.8rem;
}
.reader-empty-message p{
  margin:0 auto 1.4rem;
  font-size:1.08rem;
}
.account-intro{
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  padding:2rem;
  box-shadow:var(--shadow);
}
.account-summary{
  max-width:880px;
  margin:0 auto;
}
.account-details{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:1rem;
  margin:2rem 0;
}
.account-details div{
  border:1px solid var(--line);
  border-radius:12px;
  padding:1rem;
  background:#f8fafb;
}
.account-details dt{
  color:var(--muted);
  font-weight:800;
  font-size:.8rem;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.account-details dd{
  margin:.4rem 0 0;
  font-weight:700;
  overflow-wrap:anywhere;
}
.account-actions{
  display:flex;
  flex-wrap:wrap;
  gap:.75rem;
}
.account-verified{
  background:#e6f5eb;
  color:#1f6a36;
}
.account-unverified{
  background:#fff2d6;
  color:#805b00;
}
.legal-toc{
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  padding:1.4rem 1.6rem;
  margin:1.5rem 0 2.5rem;
}
.legal-toc h2{
  margin:0 0 .75rem;
  font-size:1.35rem;
}
.legal-toc ol{
  columns:2;
  column-gap:2.5rem;
  padding-left:1.25rem;
  margin:0;
}
.legal-toc li{
  break-inside:avoid;
  margin:.28rem 0;
}
.legal-section{
  scroll-margin-top:190px;
}
.legal-contact{
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  padding:1.2rem;
}

/* Author directory and profile media */
.contributor-card-headshot-link{
  display:block;
  color:inherit;
  text-decoration:none;
  background:#e6e8ea;
  overflow:hidden;
}
.contributor-card-headshot{
  width:100%;
  aspect-ratio:4/5;
  object-fit:cover;
  object-position:center top;
  transition:transform .25s ease;
}
.contributor-card-headshot-link:hover .contributor-card-headshot,
.contributor-card-headshot-link:focus-visible .contributor-card-headshot{
  transform:scale(1.025);
}
.contributor-card .card-body h3{
  margin-bottom:.45rem;
}
.contributor-profile-prose{
  max-width:none;
}
.contributor-profile-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(230px,330px);
  gap:3rem;
  align-items:start;
}
.contributor-profile-layout:not(.has-media){
  grid-template-columns:minmax(0,860px);
}
.contributor-profile-copy .lede{
  max-width:none;
}
.contributor-profile-media{
  width:100%;
  justify-self:end;
}
.contributor-profile-headshot{
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:18px;
  background:#e6e8ea;
  box-shadow:var(--shadow);
}
.contributor-profile-headshot img{
  width:100%;
  aspect-ratio:4/5;
  object-fit:cover;
  object-position:center top;
}
.contributor-socials{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:.65rem;
  margin-top:1rem;
}
.contributor-social-link{
  width:44px;
  height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--line);
  border-radius:999px;
  background:#fff;
  color:var(--navy);
  box-shadow:0 8px 22px rgba(7,45,79,.1);
  text-decoration:none;
  transition:transform .18s ease,background-color .18s ease,color .18s ease,border-color .18s ease;
}
.contributor-social-link:hover,
.contributor-social-link:focus-visible{
  transform:translateY(-2px);
  background:var(--navy);
  color:#fff;
  border-color:var(--navy);
}
.contributor-social-link svg{
  width:21px;
  height:21px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
}
.contributor-social-link svg .icon-fill{
  fill:currentColor;
  stroke:none;
}
.social-globe{
  font-size:1.25rem;
  line-height:1;
}
.sr-only{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}
@media(max-width:900px){
  .contributor-profile-layout{
    grid-template-columns:1fr;
    gap:2rem;
  }
  .contributor-profile-media{
    width:min(100%,330px);
    justify-self:start;
  }
}
