/* KNIGO R5: site layout; reader styles live only in reader.css. */
:root{
  --green: #093e2d;
  --green-hover: #1d5b42;
  --gold: #ac7c32;
  --gold-light: #d7b467;
  --paper: #f8f2e1;
  --paper-raised: #fcf8ed;
  --ink: #201d17;
  --muted: #776d5e;
  --line: #d7c7a5;
  --line-light: #e6dbc1;
  --shadow: 0 .18rem .7rem #4f36121b;
  --serif: "Times New Roman",Georgia,"Liberation Serif",serif;
  font-size: 16px;
  color-scheme: light;
}
*{
  box-sizing: border-box;
}
html{
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}
body{
  margin: 0;
  background: var(--paper) url("../textures/paper.webp") repeat;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.45;
}
h1,h2,h3,p{
  margin-top: 0;
}
h1,h2,h3{
  font-weight: 400;
  line-height: 1.1;
}
h1{
  letter-spacing: -.045em;
}
h2{
  font-size: 2rem;
  letter-spacing: -.025em;
  margin-bottom: 1rem;
}
h3{
  font-size: 1.16rem;
}
p{
  margin-bottom: 1rem;
}
a{
  color: var(--green);
  text-decoration: none;
}
a:hover{
  text-decoration: underline;
  text-underline-offset: .22em;
}
button,input,select,textarea{
  font: inherit;
  color: inherit;
}
button,a,input,select,textarea{
  -webkit-tap-highlight-color: transparent;
}
button{
  cursor: pointer;
}
input,textarea{
  border: 1px solid var(--line);
  background: #fffaf1;
  border-radius: .22rem;
  padding: .6rem .8rem;
  min-width: 0;
  max-width: 100%;
}
input[type=checkbox]{
  accent-color: var(--green);
  margin: 0;
  width: .88rem;
  height: .88rem;
  flex-shrink: 0;
}
input[type=range]{
  accent-color: var(--green);
  padding: 0;
  border: 0;
}
select{
  border: 1px solid var(--line);
  background: #fffaf1;
  border-radius: .2rem;
  padding: .36rem .65rem;
  max-width: 100%;
}
button{
  border: 0;
  background: none;
}
img{
  display: block;
  max-width: 100%;
  height: auto;
}
svg{
  max-width: 100%;
}
[hidden]{
  display: none !important;
}
a,button,input,select,textarea{
  touch-action: manipulation;
}
:focus-visible{
  outline: 3px solid #bc8c3c;
  outline-offset: 3px;
}
button:disabled{
  opacity: .4;
  cursor: not-allowed;
}
.icon{
  width: 1.16rem;
  height: 1.16rem;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
.sr-only{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link{
  position: absolute;
  top: -8rem;
  left: 1rem;
  z-index: 100;
  background: var(--green);
  color: white;
  padding: .8rem 1.2rem;
}
.skip-link:focus{
  top: 1rem;
}
.page-width{
  width: 85%;
  margin-inline: auto;
}
.wide-width{
  width: 94%;
  margin-inline: auto;
}
.content-section{
  padding-block: 2.3rem 3.6rem;
}
em{
  font-weight: 400;
}
.eyebrow{
  font-size: .71rem;
  font-weight: 600;
  letter-spacing: .19em;
  color: var(--green);
}
.text-link{
  text-decoration: underline;
  text-underline-offset: .2em;
  font-size: .94rem;
}
.text-button{
  display: inline-flex;
  gap: .4rem;
  align-items: center;
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: .22em;
  padding: .15rem 0;
}
.subtle-note,.data-note{
  font-size: .78rem;
  line-height: 1.55;
  color: var(--muted);
}
.data-note{
  padding: .9rem 1rem;
  border: 1px solid var(--line-light);
  background: #fcf8ec8f;
  border-radius: .25rem;
  margin: 1.2rem 0;
}
.button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 2.35rem;
  padding: .56rem 1.2rem;
  border: 1px solid var(--green);
  border-radius: .23rem;
  background: #fffcf200;
  color: var(--green);
  line-height: 1.15;
  transition: background-color .15s,box-shadow .15s;
}
.button:hover{
  text-decoration: none;
  background: #eae2ca;
  box-shadow: var(--shadow);
}
.button.primary{
  color: #fffaf0;
  background: linear-gradient(#124b37,#063323);
  border-color: #073726;
}
.button.primary:hover{
  background: var(--green-hover);
}
.button.primary:active{
  background: #06251b;
  box-shadow: inset 0 2px 4px #0003;
}
.button .icon{
  width: 1.05rem;
  height: 1.05rem;
}
.button.quiet{
  border-color: #7f9482;
}
.icon-button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.05rem;
  height: 2.05rem;
  border-radius: .18rem;
  padding: .3rem;
  line-height: 1;
  border: 1px solid transparent;
}
.icon-button:hover{
  border-color: var(--line);
  background: #eddfc488;
}
.icon-button[aria-pressed=true]{
  color: var(--green);
  background: #e8e4d1;
}
.icon-button[data-save][aria-pressed=true] .icon{
  fill: var(--green);
}
button[data-save][aria-pressed=true] .icon{
  fill: var(--green);
}
.selected{
  color: var(--green);
}
.ornamented{
  position: relative;
}
.ornamented::before,.ornamented::after{
  content: "";
  position: absolute;
  z-index: 1;
  pointer-events: none;
  width: 2.1rem;
  height: 2.1rem;
  background: url("../decor/corner.svg") center/contain no-repeat;
}
.ornamented::before{
  top: 0;
  left: 0;
}
.ornamented::after{
  right: 0;
  bottom: 0;
  transform: rotate(180deg);
}
.divider{
  object-fit: contain;
  width: 32rem;
  height: 2.8rem;
  margin-inline: auto;
  pointer-events: none;
}
.motto{
  text-align: center;
  padding: 1.8rem 0 1.1rem;
  color: var(--green);
}
.motto>span{
  font-size: .65rem;
  letter-spacing: .34em;
  display: block;
  margin-bottom: .25rem;
}
.motto .divider{
  width: 72%;
  height: 2.65rem;
}
.section-title{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}
.section-title h2{
  margin: 0;
}
.section-title>a{
  font-size: .95rem;
  white-space: nowrap;
}
.section-title h2:after{
  content: "";
  display: block;
  width: 4rem;
  height: 1px;
  background: var(--gold);
  margin-top: .6rem;
}
.scene{
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}
.home-scene{
  background-image: url("../backgrounds/reader-room-hd.png");
}
.site-header{
  position: relative;
  z-index: 5;
  width: 82%;
  height: 5.7rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 0 1.4rem;
  background: var(--paper-raised) url("../textures/paper.webp");
  border: 1px solid var(--gold);
  border-top: 0;
  box-shadow: 0 .16rem .1rem #684d1726,0 .45rem 1rem #241c0816;
}
.site-header::before{
  top: auto;
  bottom: 0;
  transform: rotate(-90deg);
}
.site-header .brand{
  flex-shrink: 0;
}
.brand{
  display: flex;
  gap: .38rem;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover{
  text-decoration: none;
}
.brand>img{
  width: 4.6rem;
  height: 4.6rem;
  object-fit: contain;
}
.brand strong{
  display: block;
  font-weight: 400;
  font-size: 3.18rem;
  line-height: .96;
  color: #a27831;
  text-shadow: 0 1px #e3cf8e,1px 0 #68461e;
  letter-spacing: -.055em;
}
.brand small{
  display: block;
  font-size: .63rem;
  letter-spacing: .052em;
  margin-top: .28rem;
  color: #625740;
}
.desktop-nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  min-width: 0;
  gap: 1.28rem;
  margin-left: 1.35rem;
  white-space: nowrap;
}
.desktop-nav>a{
  font-size: .98rem;
  color: #251f16;
  display: flex;
  align-items: center;
  gap: .3rem;
  padding: .8rem 0;
  border-bottom: 1px solid transparent;
}
.desktop-nav>a[aria-current=page]{
  color: var(--green);
  border-color: var(--gold);
}
.desktop-nav .icon{
  width: .98rem;
  height: .98rem;
}
.account-actions{
  display: flex;
  gap: .5rem;
  margin-left: 1.3rem;
}
.account-actions .button{
  font-size: .85rem;
  min-height: 2.2rem;
  padding: .45rem 1.3rem;
}
.menu-toggle,.mobile-menu{
  display: none;
}
.home-hero{
  height: 29rem;
  width: 72%;
  margin-left: 19.4%;
  padding-top: 2.6rem;
  display: grid;
  grid-template-columns: 52% 30% 18%;
  position: relative;
  align-items: start;
}
.home-copy h1{
  font-size: 4.32rem;
  line-height: .99;
  margin: 2rem 0 1.35rem;
  letter-spacing: -.04em;
  white-space: nowrap;
}
.home-copy h1 em{
  color: #123e2d;
}
.home-copy>p{
  font-size: 1.22rem;
  white-space: nowrap;
  line-height: 1.4;
  margin-bottom: 1.75rem;
}
.crest-stage{
  padding-top: 0;
}
.crest-stage>img{
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 .15rem .15rem #43331d18);
}
.hero-quote{
  padding: 5.1rem 0 0 .55rem;
  margin-right: -.1rem;
}
.hero-quote p{
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.55;
}
.hero-quote small{
  font-size: .64rem;
  display: block;
  border-top: 1px solid var(--gold);
  padding-top: .6rem;
  letter-spacing: .025em;
}
.search-form{
  display: flex;
  gap: .55rem;
  align-items: stretch;
  margin: 0;
  max-width: 100%;
}
.search-input{
  display: flex;
  align-items: center;
  gap: .8rem;
  min-width: 0;
  flex: 1;
  background: #fffcf5;
  border: 1px solid #c7b899;
  border-radius: .3rem;
  box-shadow: 0 .12rem .18rem #674e2a1f;
  padding: 0 1rem;
}
.search-input:focus-within{
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
.search-input>.icon{
  color: #171811;
  flex-shrink: 0;
  width: 1.3rem;
  height: 1.3rem;
}
.search-input input{
  background: none;
  border: 0;
  padding: .88rem 0;
  width: 100%;
  font-size: .95rem;
  outline: none;
  min-height: 3.05rem;
}
.search-form>.button{
  padding: .7rem 1.35rem;
  font-size: .98rem;
  min-width: 7.45rem;
  box-shadow: 0 0 0 1px #bb953f55,0 .1rem .2rem #44250020;
}
.hero-meta{
  display: flex;
  justify-content: space-between;
  font-size: .76rem;
  margin-top: .63rem;
}
.hero-meta>span{
  color: #655b4c;
}
.hero-motto{
  position: absolute;
  bottom: 2.75rem;
  left: 21%;
  width: 62%;
  text-align: center;
  white-space: nowrap;
  font-size: .6rem;
  letter-spacing: .25em;
  color: var(--green);
}
.discovery{
  display: grid;
  grid-template-columns: 48% 46%;
  gap: 6%;
  padding-top: 2rem;
  padding-bottom: .4rem;
}
.discovery .section-title{
  margin-bottom: 1.2rem;
}
.discovery .section-title h2{
  font-size: 2.05rem;
}
.alphabet{
  display: grid;
  grid-template-columns: repeat(14,minmax(0,1fr));
  gap: .25rem;
  margin-bottom: 1.3rem;
}
.alphabet>a{
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  min-height: 2.6rem;
  color: var(--ink);
  background: #fffcf533;
  font-size: 1rem;
  border-radius: .1rem;
}
.alphabet>a:hover{
  background: var(--green);
  color: white;
  text-decoration: none;
}
.author-line{
  display: flex;
  align-items: center;
  gap: 1.15rem;
  min-height: 4.35rem;
  color: var(--ink);
  border-bottom: 1px solid var(--line-light);
}
.author-line:last-child{
  border-bottom: 0;
}
.avatar{
  width: 3.65rem;
  height: 3.65rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  mix-blend-mode: multiply;
}
.initials{
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold);
  background: var(--green);
  color: #e8cd8f;
  font-size: 1.2rem;
}
.author-line>span{
  font-size: 1.07rem;
  min-width: 0;
}
.author-line small{
  display: flex;
  gap: .6rem;
  margin-left: auto;
  align-items: center;
  color: var(--muted);
  font-size: .76rem;
}
.author-line small .icon{
  width: .9rem;
}
.genre-lines{
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.genre-row{
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: .22rem;
  min-height: 3.55rem;
  background: #fffaf030;
  color: var(--ink);
  overflow: hidden;
  gap: 1.4rem;
}
.genre-row>img{
  width: 7.7rem;
  height: 3.25rem;
  object-fit: cover;
  align-self: stretch;
}
.genre-row>span{
  font-size: 1.2rem;
}
.genre-row>small{
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: .45rem;
  padding-right: 1rem;
  font-size: .85rem;
  color: #655c4e;
}
.genre-row>small .icon{
  width: .9rem;
}
.site-footer{
  padding: .75rem 3.3% .55rem;
  background: linear-gradient(95deg,#093929,#142f21);
  color: #e4dac1;
  border-top: 2px solid var(--gold);
  font-size: .78rem;
}
.footer-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: .35rem;
}
.site-footer .brand>img{
  width: 2.65rem;
  height: 2.65rem;
}
.site-footer .brand strong{
  font-size: 1.95rem;
  color: #d3b475;
  text-shadow: none;
}
.site-footer .brand small{
  color: #c7bd9b;
  font-size: .39rem;
  margin-top: .1rem;
}
.footer-top nav{
  display: flex;
  gap: 2.4rem;
  flex-wrap: wrap;
}
.footer-top nav a{
  color: #ece1c6;
}
.footer-top>em{
  font-size: .91rem;
  color: #dcc589;
  line-height: 1.1;
}
.footer-bottom{
  border-top: 1px solid #c29b4566;
  padding-top: .35rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: .56rem;
  color: #c3b793;
}
.footer-bottom>a{
  color: inherit;
}
.compact-scene{
  background-image: url("../backgrounds/reader-room-hd.png");
  background-size: cover;
  border-bottom: 2px solid #b69b68;
  min-height: 16.4rem;
}
.compact-scene>.divider{
  position: absolute;
  width: 14rem;
  height: 2.4rem;
  bottom: -.8rem;
  left: calc(50% - 7rem);
}
.masthead{
  width: 51%;
  margin-left: 24.5%;
  padding-top: 1.1rem;
  padding-bottom: 1.75rem;
}
.breadcrumbs{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  font-size: .75rem;
  line-height: 1.4;
  color: #5f5139;
}
.breadcrumbs a{
  color: #344333;
}
.masthead h1{
  font-size: 4.2rem;
  margin: .65rem 0 .38rem;
}
.masthead>p{
  font-size: 1.05rem;
  margin: 0;
}
.catalog-layout{
  display: grid;
  grid-template-columns: 21% minmax(0,1fr);
  gap: 1.6rem;
  background: #fcf8eeaa;
  border: 1px solid var(--gold);
  border-radius: .2rem;
  margin-top: -.1rem;
  position: relative;
  padding: 1.15rem 1.45rem 0;
  box-shadow: var(--shadow);
}
.filter-panel{
  min-width: 0;
  border-right: 1px solid var(--line);
  padding: .15rem 1.55rem .6rem 0;
}
.filter-panel.ornamented::before,.filter-panel.ornamented::after{
  display: none;
}
.filter-heading{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .4rem;
  padding: .1rem 0 .8rem;
  border-bottom: 1px solid var(--gold);
  margin-bottom: .5rem;
}
.filter-heading h2{
  font-size: 1.36rem;
  font-weight: bold;
  margin: 0;
}
.filter-heading .text-button{
  font-size: .72rem;
}
.filter-panel fieldset{
  border: 0;
  border-bottom: 1px solid var(--line);
  margin: 0 0 .7rem;
  padding: 0 0 .7rem;
  min-width: 0;
}
.filter-panel legend{
  font-size: .91rem;
  font-weight: 600;
  padding: .5rem 0 .45rem;
}
.check-label{
  display: flex;
  align-items: flex-start;
  gap: .48rem;
  font-size: .76rem;
  line-height: 1.4;
  padding: .22rem 0;
  cursor: pointer;
}
.check-label>input{
  margin-top: .15rem;
}
.mini-search{
  display: flex;
  gap: .45rem;
  align-items: center;
  padding: .36rem .5rem;
  border: 1px solid var(--line);
  border-radius: .2rem;
  background: #fffcf4;
  margin: .25rem 0 .4rem;
}
.mini-search>.icon{
  width: .9rem;
  height: .9rem;
}
.mini-search>input{
  padding: 0;
  font-size: .75rem;
  border: 0;
  background: none;
  width: 100%;
  min-width: 0;
}
.year-range{
  display: flex;
  gap: .4rem;
}
.year-range>label{
  display: flex;
  align-items: center;
  gap: .3rem;
  min-width: 0;
  font-size: .72rem;
}
.year-range input{
  width: 5rem;
  min-width: 0;
  padding: .25rem .4rem;
}
.filter-panel .subtle-note{
  font-size: .69rem;
}
.filter-toggle,.close-filter{
  display: none;
}
.catalog-main{
  min-width: 0;
}
.results-toolbar{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .7rem;
  margin-bottom: .65rem;
  font-size: .8rem;
  min-height: 1.9rem;
}
.results-toolbar p{
  margin: 0;
}
.results-toolbar>div{
  display: flex;
  align-items: center;
  gap: 1.3rem;
}
.sort-label{
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .75rem;
}
.sort-label select{
  font-size: .75rem;
  max-width: 12.5rem;
}
.view-switch{
  display: flex;
  gap: .18rem;
}
.view-switch .icon-button{
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid var(--line);
  background: #fffaf0;
}
.view-switch .selected{
  background: var(--green);
  color: white;
}
.book-grid{
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: .85rem;
}
.book-card{
  position: relative;
  padding: .55rem .9rem .65rem;
  border: 1px solid var(--line-light);
  border-radius: .2rem;
  background: #fffaf12b;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.cover-link{
  display: block;
  height: 9.65rem;
  margin-bottom: .5rem;
  padding-right: 1.5rem;
}
.cover-link img{
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(.18rem .22rem .19rem #45300f36);
}
.save-heart{
  position: absolute;
  right: .35rem;
  top: .2rem;
  width: 1.65rem;
  height: 1.65rem;
  padding: .22rem;
}
.save-heart .icon{
  width: 1.1rem;
  height: 1.1rem;
}
.card-copy{
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.book-card h3{
  font-size: .97rem;
  margin: 0 0 .25rem;
  line-height: 1.15;
  min-height: 1.15em;
  font-weight: 600;
  letter-spacing: -.02em;
}
.book-card h3>a{
  color: var(--ink);
}
.book-author{
  font-size: .78rem;
  line-height: 1.25;
  color: #4b4237;
  margin-bottom: .25rem;
  min-height: 2.5em;
}
.book-year{
  font-size: .69rem;
  color: #5f5445;
  display: block;
  margin-bottom: .28rem;
}
.tags{
  display: flex;
  flex-wrap: wrap;
  gap: .22rem;
  margin-top: auto;
  margin-bottom: .5rem;
  min-height: 1.1rem;
}
.tags>span{
  font-size: .62rem;
  line-height: 1.1;
  display: inline-block;
  padding: .15rem .4rem;
  border: 1px solid #decfab;
  border-radius: .2rem;
  color: #675b48;
}
.read-button{
  width: 100%;
  min-height: 1.88rem;
  padding: .3rem .4rem;
  font-size: .76rem;
  gap: .6rem;
}
.read-button .icon{
  width: 1rem;
  height: 1rem;
}
.active-filters{
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: .5rem;
}
.active-filters:empty{
  display: none;
}
.filter-chip{
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: .25rem .65rem;
  background: #ebe4ce;
  font-size: .74rem;
}
.book-grid.list-view{
  grid-template-columns: 1fr;
}
.list-view .book-card{
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1.2rem;
  padding: 1rem;
}
.list-view .cover-link{
  height: 9rem;
  margin: 0;
  padding: 0;
}
.list-view .card-copy{
  max-width: 44rem;
}
.list-view h3{
  font-size: 1.25rem;
}
.list-view .read-button{
  align-self: start;
  width: auto;
  padding: .45rem 2rem;
}
.pagination{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 1rem 0 0;
}
.pagination button{
  border: 1px solid var(--line);
  border-radius: .2rem;
  min-width: 1.8rem;
  min-height: 1.85rem;
  padding: .3rem .6rem;
  background: #fffaf0;
  font-size: .77rem;
}
.pagination button[aria-current=page]{
  background: var(--green);
  color: #fff;
}
.catalog-main .motto{
  padding: 1.1rem 0 0;
}
.catalog-main .motto .divider{
  height: 2rem;
}
.catalog-main .motto>span{
  font-size: .48rem;
}
.standalone-search{
  display: flex;
  align-items: center;
  gap: .7rem;
  border: 1px solid var(--line);
  border-radius: .2rem;
  background: #fffaf1;
  padding: .5rem 1rem;
  width: 40rem;
  max-width: 100%;
  margin-bottom: 1.1rem;
}
.standalone-search>input{
  border: 0;
  background: none;
  flex: 1;
  padding: .4rem 0;
  width: 100%;
}
.author-alphabet{
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin: 1rem 0 1.3rem;
}
.letter{
  min-height: 2.4rem;
  min-width: 2.4rem;
  border: 1px solid var(--line);
  border-radius: .2rem;
}
.letter.selected{
  background: var(--green);
  color: white;
}
.author-grid{
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 1.4rem;
}
.author-card{
  border: 1px solid var(--line);
  padding: 1.4rem;
  text-align: center;
  border-radius: .2rem;
}
.author-portrait{
  width: 9rem;
  height: 9rem;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 1rem;
  box-shadow: 0 0 0 .2rem #d2b57866;
}
.author-portrait.initials{
  display: flex;
  font-size: 2.5rem;
}
.author-card h2{
  font-size: 1.6rem;
  margin-bottom: .5rem;
}
.author-card p{
  font-size: .9rem;
  margin-bottom: .6rem;
}
.author-card small{
  color: var(--muted);
  font-size: .78rem;
  display: block;
  margin-bottom: .8rem;
}
.author-scene{
  background-image: url("../backgrounds/reader-room-hd.png");
}
.author-breadcrumb{
  padding-top: .8rem;
}
.author-intro{
  width: 74%;
  margin-left: 13.1%;
  display: grid;
  grid-template-columns: 27% 55%;
  gap: 3%;
  padding: 1.2rem 0 1.3rem;
  min-height: 24.4rem;
}
.portrait-frame{
  align-self: start;
  padding: .1rem 0 0;
}
.portrait-frame>img{
  width: 100%;
  height: 20rem;
  object-fit: cover;
  box-shadow: .1rem .18rem .45rem #2e210f44;
}
.portrait-frame .initials.big{
  width: 13rem;
  height: 13rem;
  margin-top: 3rem;
  font-size: 3rem;
}
.author-heading h1{
  font-size: 2.7rem;
  line-height: 1.03;
  letter-spacing: -.032em;
  margin: 1.25rem 0 .6rem;
}
.author-heading h1 strong{
  font-size: 3.9rem;
  font-weight: 400;
}
.author-heading .lifespan{
  font-size: 1.5rem;
  margin-bottom: .65rem;
}
.author-heading>p:not(.lifespan){
  font-size: .93rem;
  line-height: 1.4;
  max-width: 32rem;
  margin-bottom: .5rem;
}
.chips{
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: .85rem;
}
.chips>a{
  border: 1px solid var(--line);
  border-radius: 2rem;
  padding: .3rem .8rem;
  font-size: .73rem;
  color: #665844;
  background: #fff8e64d;
}
.author-body{
  display: grid;
  grid-template-columns: minmax(0,3.5fr) minmax(0,1fr);
  gap: 1.2rem;
  padding-top: .5rem;
}
.author-main{
  min-width: 0;
}
.author-statistics{
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  padding: .75rem 1.3rem;
  margin-bottom: 1.3rem;
  min-height: 5rem;
}
.author-statistics>div{
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 0 .9rem;
  border-right: 1px solid var(--line);
}
.author-statistics>div:last-child{
  border-right: 0;
}
.author-statistics .icon{
  width: 2.4rem;
  height: 2.4rem;
  color: var(--gold);
}
.author-statistics b{
  font-weight: 400;
  font-size: 1.35rem;
  display: block;
}
.author-statistics small{
  font-size: .72rem;
  color: #645a49;
  display: block;
}
.tab-list,.search-tabs{
  display: flex;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.15rem;
  overflow-x: auto;
}
.tab-list>button,.search-tabs>button{
  padding: .6rem 1.1rem;
  font-size: .86rem;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.tab-list>[aria-selected=true],.search-tabs>[aria-selected=true]{
  border-color: var(--green);
  color: var(--green);
  background: #e8e0c744;
}
.author-works{
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 1.65rem;
}
.author-works .book-card{
  border: 0;
  background: none;
  padding: 0;
}
.author-works .cover-link{
  padding: 0;
  height: 13.8rem;
}
.author-works .save-heart{
  background: #fcf7e8dd;
  opacity: 0;
  right: .05rem;
}
.author-works .book-card:hover .save-heart,.author-works .save-heart:focus-visible{
  opacity: 1;
}
.author-works .book-author{
  display: none;
}
.author-works .book-card h3{
  font-size: .94rem;
  min-height: 2.3em;
  font-weight: 400;
  margin-top: .35rem;
}
.author-works .tags>span{
  border: 0;
  padding: 0;
  font-size: .66rem;
}
.author-works .tags>span:last-child{
  display: none;
}
.author-works .tags{
  margin-top: .2rem;
}
.author-works .book-year{
  display: none;
}
.timeline{
  border: 1px solid var(--line);
  padding: 1.15rem 1.2rem;
  height: fit-content;
}
.timeline h2{
  font-size: 1.35rem;
}
.timeline ol{
  list-style: none;
  padding: 0;
  margin: 0;
}
.timeline li{
  display: flex;
  align-items: start;
  gap: 1.1rem;
  font-size: .8rem;
  margin-bottom: 1rem;
}
.timeline time{
  width: 2.9rem;
  flex-shrink: 0;
}
.timeline li>span{
  border-left: 1px solid var(--green);
  padding-left: 1.1rem;
  position: relative;
}
.timeline li>span:before{
  content: "";
  position: absolute;
  left: -.2rem;
  top: .25rem;
  width: .35rem;
  height: .35rem;
  border-radius: 50%;
  background: var(--green);
}
.timeline .divider{
  width: 100%;
  height: 2.2rem;
}
.timeline p,.timeline>a{
  font-size: .88rem;
}
.tab-list~[role=tabpanel]>p{
  line-height: 1.8;
  font-size: 1.15rem;
  max-width: 55rem;
}
.book-scene{
  background-image: url("../backgrounds/reader-room-hd.png");
}
.book-breadcrumb{
  margin: 1.2rem 0 .7rem 27.6%;
  width: 64%;
}
.book-intro{
  display: grid;
  grid-template-columns: 26% minmax(0,42%) minmax(0,25%);
  gap: 3.5%;
  width: 84%;
  margin-left: 8.5%;
  padding: .4rem 0 2rem;
  min-height: 29rem;
}
.large-cover img{
  width: 100%;
  height: 28rem;
  max-height: 100%;
  object-fit: contain;
  object-position: left top;
  filter: drop-shadow(.18rem .3rem .2rem #4f310d40);
}
.book-summary{
  min-width: 0;
  padding-top: .65rem;
}
.book-summary h1{
  font-size: 4rem;
  line-height: 1.04;
  margin: 0 0 .5rem;
}
.main-author{
  font-size: 1.7rem;
  line-height: 1.2;
  color: #272117;
  display: block;
  margin-bottom: 1rem;
}
.metadata{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  font-size: .86rem;
  margin-bottom: 1.6rem;
}
.metadata>span{
  display: flex;
  gap: .55rem;
  align-items: center;
  margin-left: 1rem;
}
.metadata .icon{
  color: #8f6d36;
}
.book-summary .synopsis{
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.45;
  margin: 0 0 1rem;
}
.book-summary>p:not(.synopsis):not(.subtle-note){
  font-size: .99rem;
  line-height: 1.5;
  margin-bottom: 1.3rem;
}
.book-actions{
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: .6rem;
}
.book-actions .button{
  font-size: .89rem;
  min-height: 2.8rem;
  padding: .6rem .75rem;
  gap: .45rem;
}
.book-actions .button:first-child{
  padding-inline: 1rem;
}
.book-summary .subtle-note{
  font-size: .65rem;
}
.book-facts{
  border: 1px solid var(--line);
  padding: 1rem 1.4rem;
  background: #fcf7e8bb;
  height: fit-content;
  margin-top: .3rem;
}
.book-facts h2{
  font-size: 1.5rem;
  margin: 0;
}
.book-facts .divider{
  height: 1.6rem;
  width: 100%;
  margin: .25rem 0 .6rem;
}
.book-facts dl{
  display: grid;
  grid-template-columns: 34% minmax(0,1fr);
  margin: 0;
  font-size: .83rem;
  line-height: 1.3;
}
.book-facts dt,.book-facts dd{
  margin: 0;
  padding: .5rem 0;
  border-bottom: 1px solid var(--line-light);
}
.book-facts dd{
  padding-left: .6rem;
}
.fact-note{
  margin: 1.2rem 0 0;
  padding: 1.1rem .7rem;
  border: 1px solid var(--line);
  text-align: center;
}
.fact-note>em{
  display: block;
  font-size: 1.07rem;
  line-height: 1.6;
}
.fact-note>small{
  font-size: .6rem;
  display: block;
  margin-top: .6rem;
}
.book-below{
  display: grid;
  grid-template-columns: 43% minmax(0,1fr);
  gap: 5%;
  border-top: 2px solid var(--gold-light);
  padding-top: 1.3rem;
}
.book-below .section-title h2{
  font-size: 1.55rem;
}
.toc-preview{
  border: 1px solid var(--line);
  border-radius: .2rem;
  overflow: hidden;
}
.toc-preview>a{
  display: flex;
  align-items: center;
  gap: .8rem;
  color: var(--ink);
  font-size: .96rem;
  padding: .75rem .9rem;
  border-bottom: 1px solid var(--line);
  min-height: 2.65rem;
}
.toc-preview>a:last-child{
  border-bottom: 0;
}
.toc-preview small{
  margin-left: auto;
  font-size: .72rem;
  color: var(--muted);
}
.related-grid{
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 1.2rem;
}
.related-grid .book-card{
  border: 0;
  padding: 0;
  background: none;
}
.related-grid .cover-link{
  padding: 0;
  height: 11.4rem;
}
.related-grid .book-card h3{
  font-weight: 400;
  font-size: .91rem;
  min-height: 2.2em;
}
.related-grid .book-author{
  font-size: .7rem;
  min-height: 2.5em;
}
.related-grid .book-year,.related-grid .tags,.related-grid .read-button{
  display: none;
}
.related-grid .save-heart{
  display: none;
}
.contents-layout{
  display: grid;
  grid-template-columns: 18rem minmax(0,1fr);
  gap: 4rem;
}
.toc-cover{
  width: 15rem;
  max-height: 23rem;
  object-fit: contain;
  margin-bottom: 1.2rem;
  filter: drop-shadow(.2rem .3rem .3rem #21160026);
}
.contents-layout .standalone-search{
  width: 100%;
}
.search-scene{
  background-image: url("../backgrounds/reader-room-hd.png");
}
.search-hero{
  width: 50%;
  margin: 0 auto;
  padding: 1.6rem 0 2.35rem;
  text-align: center;
  min-height: 17rem;
}
.search-hero h1{
  font-size: 3.5rem;
  margin: 1rem 0 .25rem;
  white-space: nowrap;
}
.search-hero>p{
  font-size: 1.45rem;
  margin-bottom: 1.3rem;
}
.search-hero>.eyebrow{
  font-size: .6rem;
}
.search-hero .search-form{
  margin-inline: -5%;
  width: 110%;
  max-width: 110%;
}
.search-hero .search-input input{
  min-height: 3.1rem;
}
.search-layout{
  display: grid;
  grid-template-columns: 18% minmax(0,1fr) 18%;
  gap: 2.5%;
  padding-top: 1.5rem;
}
.search-layout .filter-panel{
  border: 1px solid var(--line);
  padding: .9rem 1.1rem;
  height: fit-content;
}
.search-layout .filter-panel .filter-heading{
  flex-wrap: wrap;
  gap: .35rem;
}
.search-layout .filter-panel .filter-heading h2{
  font-size: 1.22rem;
}
.search-main{
  min-width: 0;
}
.search-main .section-title{
  padding: .35rem 0 1rem;
  margin-bottom: 0;
  border-bottom: 1px solid var(--line);
}
.search-main .section-title h2{
  font-size: 1.75rem;
}
.search-main .section-title>span{
  font-size: .8rem;
}
.search-tabs{
  gap: .4rem;
  margin-top: .5rem;
  margin-bottom: .2rem;
}
.search-tabs>button{
  font-size: .88rem;
  padding: .55rem .4rem;
}
.search-result{
  display: grid;
  grid-template-columns: 6.7rem minmax(0,1fr) 8.5rem;
  gap: 1.3rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}
.search-result>a>img{
  width: 6.3rem;
  height: 8.9rem;
  object-fit: cover;
  object-position: top;
  filter: drop-shadow(.2rem .2rem .2rem #573a191a);
}
.search-result h2{
  font-size: 1.5rem;
  margin: .1rem 0 .3rem;
  line-height: 1.15;
  letter-spacing: -.025em;
}
.search-result h2>a{
  color: var(--ink);
}
.search-result small{
  display: block;
  color: var(--muted);
  font-size: .73rem;
  margin-top: .28rem;
}
.search-result>div>a{
  font-size: .88rem;
}
.search-result p{
  font-size: .9rem;
  line-height: 1.5;
  margin: .6rem 0 .2rem;
}
.result-actions{
  display: flex;
  flex-direction: column;
  gap: .4rem;
  justify-content: center;
}
.result-actions .button{
  font-size: .77rem;
  min-height: 2rem;
  padding: .5rem .6rem;
}
.result-actions .icon{
  width: .85rem;
  height: .85rem;
}
.search-suggestions{
  min-width: 0;
}
.paper-quote{
  text-align: center;
  padding: 1.4rem 1rem;
  background: linear-gradient(90deg,#f6eeddee,#f8f1dcee),url("../backgrounds/reader-room-hd.png") center/cover;
  border: 1px solid var(--line);
  margin-bottom: .65rem;
}
.paper-quote em{
  display: block;
  font-size: 1.25rem;
  line-height: 1.5;
}
.paper-quote small{
  font-size: .6rem;
  display: block;
  margin-top: 1rem;
}
.suggestions-box{
  padding: .9rem 1rem;
  border: 1px solid var(--line);
  margin-bottom: .7rem;
}
.suggestions-box h2{
  font-size: 1.2rem;
  line-height: 1.2;
  margin-bottom: .6rem;
}
.suggestions-box>a{
  display: flex;
  gap: .5rem;
  align-items: center;
  font-size: .85rem;
  color: var(--ink);
  padding: .32rem 0;
}
.suggestions-box>a>.icon{
  width: .9rem;
  height: .9rem;
}
.mini-author .avatar{
  width: 2.35rem;
  height: 2.35rem;
}
.suggestions-box .mini-author{
  font-size: .78rem;
}
mark{
  background: #eedcaf;
  color: inherit;
  padding: 0 .1rem;
}
.collections-grid{
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 1rem;
}
.collection-card{
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gold);
  box-shadow: inset 0 0 0 3px #e7ba6255;
  min-height: 17rem;
  background: #292012;
  color: #f8eddb;
  border-radius: .25rem;
}
.collection-card>img{
  position: absolute;
  right: 0;
  top: 0;
  width: 65%;
  height: 100%;
  object-fit: cover;
}
.collection-card:after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,#271c0efc 8%,#271c0ede 35%,transparent 76%);
  pointer-events: none;
}
.collection-card>div{
  position: relative;
  z-index: 1;
  width: 53%;
  padding: 1.9rem 2.1rem;
}
.collection-card h2{
  font-size: 2.6rem;
  line-height: 1.05;
  color: #fff8ed;
}
.collection-card p{
  font-size: 1.07rem;
  line-height: 1.5;
  color: #e3d5bb;
}
.collection-card .button{
  border-color: var(--gold);
  background: #0b2f22;
  color: #edd99e;
  font-size: .9rem;
  padding: .6rem .85rem;
  white-space: nowrap;
}
.genres-grid{
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 1.4rem;
}
.genre-tile{
  border: 1px solid var(--line);
  padding: 2.1rem 1.4rem;
  color: var(--ink);
  text-align: center;
}
.genre-tile h2{
  font-size: 1.55rem;
  margin: 1.2rem 0 .9rem;
}
.genre-tile>.icon:first-child{
  color: var(--gold);
  width: 2.4rem;
  height: 2.4rem;
}
.genre-tile p{
  font-size: .9rem;
  color: var(--muted);
}
.empty-state{
  text-align: center;
  padding: 3rem 1rem;
}
.empty-state>.icon{
  width: 3rem;
  height: 3rem;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.empty-state h2{
  font-size: 2rem;
}
.empty-state p{
  color: var(--muted);
  font-size: 1.1rem;
}
.empty-state .search-form{
  max-width: 44rem;
  margin: 1.7rem auto;
}
.error-number{
  font-size: 6rem;
  color: var(--gold);
  display: block;
}
.shelf-summary{
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.3rem;
}
.shelf-summary>span{
  font-size: 1.1rem;
}
.shelf-summary>div{
  display: flex;
  gap: .6rem;
}
.shelf-summary .button{
  font-size: .85rem;
}
.shelf-summary input[type=file]{
  position: absolute;
}
.history-card{
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border: 1px solid var(--line);
  padding: 1.2rem;
  margin: 1rem 0;
}
.history-card img{
  width: 4.5rem;
  height: 6rem;
  object-fit: contain;
}
.history-card h3{
  font-size: 1.4rem;
  margin: .1rem 0 .6rem;
}
.history-card p{
  font-size: .95rem;
  margin: 0;
}
.history-card>.button{
  margin-left: auto;
}
.editorial-panel,.profile-panel{
  background: #fcf8ef9c;
  border: 1px solid var(--line);
  padding: 2.2rem 2.8rem;
  max-width: 56rem;
  margin-inline: auto;
}
.editorial-panel h2,.profile-panel h2{
  font-size: 1.7rem;
  margin-top: 1.4rem;
}
.editorial-panel>p,.profile-panel>p{
  font-size: 1.13rem;
  line-height: 1.85;
}
.editorial-panel details{
  border-bottom: 1px solid var(--line);
  padding: .9rem 0;
}
.editorial-panel summary{
  font-size: 1.15rem;
  color: var(--green);
  cursor: pointer;
}
.editorial-panel details p{
  padding-top: 1rem;
  line-height: 1.8;
}
.profile-panel{
  max-width: 38rem;
}
.profile-panel h2:first-child{
  margin-top: 0;
}
form#profile-form>label,form#contact-form>label{
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin: 1.3rem 0;
}
form#profile-form>label.check-label{
  flex-direction: row;
  align-items: start;
  font-size: .9rem;
}
form#contact-form textarea{
  resize: vertical;
  min-height: 8rem;
}
#contact-output{
  display: block;
  margin: 1rem 0;
  white-space: pre-wrap;
  background: #efe5cd;
  border: 1px solid var(--line);
  padding: 1rem;
  overflow-wrap: anywhere;
}
.profile-panel .subtle-note{
  font-size: .83rem;
}
.toast{
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  border: 1px solid #c29b51;
  background: #113c2d;
  color: #fcf5e2;
  box-shadow: 0 .2rem 1.3rem #0003;
  max-width: calc(100vw - 2rem);
  font-size: 16px;
  line-height: 1.4;
  padding: 12px 20px;
  border-radius: 6px;
  text-align: center;
}
.drawer-shade{
  display: none;
}
dialog{
  border: 1px solid var(--gold);
  border-radius: 5px;
  background: var(--paper);
  max-width: min(30rem,calc(100vw - 2rem));
  color: var(--ink);
  padding: 1.8rem;
}
dialog::backdrop{
  background: #17191277;
}
.dialog-buttons{
  display: flex;
  justify-content: end;
  gap: .7rem;
}
.noscript-note{
  padding: 1rem;
  text-align: center;
  background: #eee3c9;
  border: 1px solid var(--line);
  font-size: 1rem;
}
@media  (max-width:1200px) and (min-width:1041px) {
.site-header{
    width: 88%;
    padding: 0 .9rem;
    gap: .6rem;
  }
.desktop-nav{
    margin-left: .4rem;
    gap: .9rem;
  }
.account-actions{
    margin-left: .4rem;
    gap: .4rem;
  }
.account-actions .button{
    padding: .45rem .8rem;
  }
.hero-quote p{
    font-size: 1.05rem;
  }
.home-copy h1{
    font-size: 4.12rem;
  }
.book-summary h1{
    font-size: 3.3rem;
  }
.search-hero h1{
    font-size: 3.2rem;
  }
}
@media  (max-width:1040px) {
:root{
    font-size: 16px;
  }
.page-width{
    width: 92%;
  }
.wide-width{
    width: 94%;
  }
.site-header{
    width: 94%;
    height: 82px;
    padding: 0 16px;
    justify-content: space-between;
  }
.brand>img{
    width: 63px;
    height: 63px;
  }
.brand strong{
    font-size: 39px;
  }
.brand small{
    font-size: 8px;
  }
.desktop-nav,.account-actions{
    display: none;
  }
.menu-toggle{
    display: flex;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
  }
.mobile-menu:not([hidden]){
    display: grid;
    position: absolute;
    z-index: 30;
    top: 81px;
    left: 3%;
    width: 94%;
    padding: 12px 20px;
    background: var(--paper);
    border: 1px solid var(--gold);
    box-shadow: 0 10px 15px #0003;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 3px 20px;
  }
.mobile-menu>a{
    padding: 11px 6px;
    border-bottom: 1px solid var(--line);
    font-size: 17px;
  }
.mobile-menu .icon{
    width: 17px;
    height: 17px;
  }
.button{
    min-height: 44px;
    font-size: 15px;
  }
.icon-button{
    min-width: 40px;
    min-height: 40px;
  }
.home-scene{
    background-size: auto 100%;
    background-position: center top;
  }
.home-hero{
    width: 77%;
    margin-left: 16%;
    height: auto;
    min-height: 430px;
    padding-top: 35px;
    grid-template-columns: minmax(0,1fr) 210px;
    gap: 16px;
  }
.home-copy h1{
    font-size: 47px;
    line-height: 1.06;
    margin: 28px 0 18px;
    white-space: normal;
  }
.home-copy>p{
    font-size: 17px;
    white-space: normal;
    margin-bottom: 24px;
  }
.eyebrow{
    font-size: 10px;
  }
.crest-stage{
    padding-top: 30px;
  }
.hero-quote{
    display: none;
  }
.hero-motto{
    left: 5%;
    width: 90%;
    font-size: 8px;
    bottom: 30px;
  }
.search-input{
    padding: 0 12px;
  }
.search-input>input{
    font-size: 15px;
    height: 50px;
  }
.search-form>.button{
    font-size: 15px;
    min-width: 80px;
    padding: .6rem .8rem;
  }
.hero-meta{
    font-size: 11px;
  }
.discovery{
    padding-top: 30px;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: 28px;
  }
.discovery .section-title h2{
    font-size: 27px;
  }
.discovery .section-title>a{
    font-size: 12px;
  }
.alphabet{
    grid-template-columns: repeat(7,minmax(0,1fr));
  }
.alphabet>a{
    min-height: 38px;
    font-size: 16px;
  }
.author-line{
    gap: 10px;
    min-height: 66px;
  }
.avatar{
    width: 42px;
    height: 42px;
  }
.author-line>span{
    font-size: 16px;
    line-height: 1.3;
  }
.author-line small{
    font-size: 12px;
  }
.genre-row{
    gap: 14px;
    min-height: 58px;
  }
.genre-row>img{
    width: 70px;
    height: 58px;
  }
.genre-row>span{
    font-size: 17px;
  }
.genre-row>small{
    font-size: 12px;
    padding-right: 8px;
  }
.genre-row>small .icon{
    width: 12px;
  }
.compact-scene{
    min-height: 240px;
    background-size: cover;
  }
.masthead{
    width: 66%;
    margin-left: 24%;
    padding-top: 18px;
    padding-bottom: 28px;
  }
.masthead h1{
    font-size: 52px;
    margin: 14px 0 6px;
  }
.masthead>p{
    font-size: 17px;
  }
.breadcrumbs{
    font-size: 12px;
  }
.catalog-layout{
    width: 94%;
    grid-template-columns: minmax(0,1fr);
    padding: 18px;
    border: 1px solid var(--line);
    gap: 15px;
  }
.filter-toggle{
    display: flex;
    width: max-content;
  }
.filter-panel{
    display: none;
  }
.filter-panel.is-open{
    display: block;
    position: fixed;
    z-index: 61;
    inset: 0 auto 0 0;
    width: min(370px,90vw);
    overflow: auto;
    background: var(--paper);
    border: 0;
    border-right: 1px solid var(--gold);
    padding: 20px 24px;
    box-shadow: 10px 0 30px #0004;
  }
.filter-heading h2{
    font-size: 24px;
  }
.filter-heading .text-button{
    font-size: 12px;
  }
.close-filter{
    display: flex;
    margin-left: auto;
  }
.filter-panel legend{
    font-size: 17px;
  }
.check-label{
    font-size: 15px;
    min-height: 34px;
    align-items: center;
  }
.check-label>input{
    width: 17px;
    height: 17px;
    margin: 0;
  }
.mini-search>input{
    font-size: 14px;
    min-height: 30px;
  }
.year-range input{
    width: 95px;
    min-height: 40px;
  }
.drawer-shade:not([hidden]){
    display: block;
    position: fixed;
    inset: 0;
    z-index: 60;
    background: #20190f77;
  }
.drawer-open{
    overflow: hidden;
  }
.results-toolbar{
    font-size: 13px;
  }
.results-toolbar>div{
    gap: 10px;
  }
.sort-label{
    font-size: 0;
  }
.sort-label select{
    font-size: 13px;
    max-width: 180px;
    min-height: 38px;
  }
.view-switch .icon-button{
    min-width: 38px;
    min-height: 38px;
  }
.book-grid{
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 15px;
  }
.book-card{
    padding: 12px;
  }
.cover-link{
    height: 170px;
    padding-right: 22px;
  }
.book-card h3{
    font-size: 17px;
  }
.book-author{
    font-size: 14px;
    line-height: 1.3;
    min-height: 2.6em;
  }
.book-year{
    font-size: 12px;
  }
.tags>span{
    font-size: 11px;
  }
.tags{
    min-height: 25px;
    gap: 5px;
  }
.read-button{
    font-size: 14px;
    min-height: 42px;
  }
.save-heart{
    right: 5px;
    top: 5px;
    min-width: 32px;
    min-height: 32px;
  }
.save-heart .icon{
    width: 18px;
    height: 18px;
  }
.pagination button{
    min-width: 38px;
    min-height: 40px;
    font-size: 14px;
  }
.author-grid{
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
.author-intro{
    width: 86%;
    margin: 20px auto 0;
    grid-template-columns: 210px minmax(0,1fr);
    gap: 28px;
    padding-bottom: 28px;
    min-height: 0;
  }
.author-scene{
    background-size: cover;
  }
.portrait-frame>img{
    height: auto;
    max-height: 260px;
  }
.author-heading h1{
    font-size: 30px;
    line-height: 1.15;
    margin: 20px 0 12px;
  }
.author-heading h1 strong{
    font-size: 41px;
  }
.author-heading .lifespan{
    font-size: 23px;
  }
.author-heading>p:not(.lifespan){
    font-size: 16px;
    line-height: 1.5;
  }
.author-body{
    grid-template-columns: minmax(0,1fr);
    gap: 25px;
    padding-top: 20px;
  }
.author-statistics{
    padding: 16px;
  }
.author-statistics>div{
    padding: 0 10px;
    gap: 10px;
  }
.author-statistics b{
    font-size: 19px;
  }
.author-statistics small{
    font-size: 12px;
  }
.author-works{
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 25px;
  }
.author-works .cover-link{
    height: 230px;
  }
.author-works .book-card h3{
    font-size: 18px;
  }
.author-works .save-heart{
    opacity: 1;
  }
.timeline{
    max-width: 100%;
    padding: 24px;
  }
.timeline h2{
    font-size: 25px;
  }
.timeline li{
    font-size: 15px;
  }
.book-breadcrumb{
    margin: 20px 4%;
    width: 92%;
  }
.book-intro{
    width: 88%;
    margin: 0 auto;
    grid-template-columns: 220px minmax(0,1fr);
    gap: 25px;
    min-height: 0;
  }
.large-cover img{
    height: 320px;
  }
.book-summary h1{
    font-size: 43px;
  }
.main-author{
    font-size: 24px;
  }
.metadata{
    font-size: 14px;
    gap: 8px;
    margin-bottom: 20px;
  }
.book-summary .synopsis{
    font-size: 17px;
  }
.book-summary>p:not(.synopsis):not(.subtle-note){
    font-size: 16px;
  }
.book-actions .button{
    font-size: 14px;
    min-height: 44px;
  }
.book-summary .subtle-note{
    font-size: 12px;
  }
.book-facts{
    grid-column: 1/-1;
    margin-top: 0;
    display: block;
    padding: 20px 26px;
  }
.book-facts h2{
    font-size: 25px;
  }
.book-facts dl{
    font-size: 15px;
    grid-template-columns: 25% minmax(0,1fr);
  }
.book-facts dt,.book-facts dd{
    padding: 8px;
  }
.fact-note{
    display: none;
  }
.book-below{
    grid-template-columns: minmax(0,1fr);
    padding-top: 25px;
    gap: 25px;
  }
.book-below .section-title h2{
    font-size: 25px;
  }
.related-grid{
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 15px;
  }
.related-grid .cover-link{
    height: 200px;
  }
.related-grid .book-card h3{
    font-size: 16px;
  }
.related-grid .book-author{
    font-size: 13px;
  }
.contents-layout{
    grid-template-columns: 180px minmax(0,1fr);
    gap: 30px;
  }
.toc-cover{
    width: 160px;
  }
.toc-preview>a{
    font-size: 16px;
    flex-wrap: wrap;
  }
.toc-preview small{
    font-size: 12px;
  }
.search-scene{
    background-size: auto 100%;
    background-position: center;
  }
.search-hero{
    width: 72%;
    padding: 32px 0;
    min-height: 280px;
  }
.search-hero h1{
    font-size: 43px;
    white-space: normal;
  }
.search-hero>p{
    font-size: 22px;
  }
.search-layout{
    grid-template-columns: minmax(0,1fr) 210px;
    gap: 22px;
    padding-top: 22px;
  }
.search-layout .filter-toggle{
    grid-column: 1/-1;
  }
.search-layout .filter-panel{
    display: none;
  }
.search-layout .filter-panel.is-open{
    display: block;
    padding: 24px;
  }
.search-main .section-title h2{
    font-size: 28px;
  }
.search-result{
    grid-template-columns: 84px minmax(0,1fr);
    gap: 16px;
    padding: 20px 0;
  }
.search-result>a>img{
    width: 84px;
    height: 120px;
  }
.search-result h2{
    font-size: 22px;
  }
.search-result small{
    font-size: 12px;
  }
.search-result p{
    font-size: 15px;
  }
.search-result>div>a{
    font-size: 14px;
  }
.result-actions{
    grid-column: 2;
    flex-direction: row;
    justify-content: flex-start;
  }
.result-actions .button{
    font-size: 13px;
    min-height: 40px;
  }
.paper-quote em{
    font-size: 22px;
  }
.suggestions-box h2{
    font-size: 19px;
  }
.suggestions-box>a{
    font-size: 14px;
  }
.suggestions-box .mini-author{
    font-size: 13px;
  }
.collections-grid{
    gap: 18px;
  }
.collection-card{
    min-height: 310px;
  }
.collection-card>div{
    padding: 24px;
    width: 70%;
  }
.collection-card h2{
    font-size: 33px;
  }
.collection-card p{
    font-size: 17px;
  }
.collection-card .button{
    font-size: 13px;
    padding: 10px;
  }
.genres-grid{
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
.genre-tile h2{
    font-size: 23px;
  }
.genre-tile p{
    font-size: 14px;
  }
.shelf-summary{
    align-items: start;
  }
.shelf-summary>div{
    flex-wrap: wrap;
    justify-content: end;
  }
.footer-top{
    gap: 20px;
  }
.footer-top nav{
    gap: 18px;
  }
.footer-bottom{
    font-size: 10px;
    line-height: 1.5;
  }
.site-footer .brand strong{
    font-size: 31px;
  }
.site-footer .brand small{
    font-size: 7px;
  }
.site-footer .brand>img{
    width: 45px;
    height: 45px;
  }
.site-footer{
    padding: 16px 4% 12px;
  }
.site-footer nav{
    font-size: 13px;
  }
.footer-top>em{
    font-size: 15px;
  }
.motto>span{
    font-size: 8px;
    letter-spacing: .18em;
  }
.motto{
    padding: 25px 0 18px;
  }
}
@media  (max-width:640px) {
:root{
    font-size: 16px;
  }
.page-width,.wide-width{
    width: 92%;
  }
body{
    font-size: 16px;
  }
.content-section{
    padding-block: 26px 35px;
  }
.site-header{
    width: 100%;
    height: 76px;
    border-left: 0;
    border-right: 0;
    padding: 0 14px;
  }
.site-header .brand>img{
    width: 58px;
    height: 58px;
  }
.site-header .brand strong{
    font-size: 34px;
  }
.site-header .brand small{
    font-size: 7px;
    letter-spacing: .02em;
  }
.site-header .ornamented:before{
    display: none;
  }
.mobile-menu:not([hidden]){
    top: 75px;
    left: 0;
    width: 100%;
    grid-template-columns: 1fr 1fr;
    padding: 12px 18px;
  }
.home-scene{
    background-size: auto 680px;
    background-position: center top;
    background-image: linear-gradient(#f8f2e185,#f8f2e1b0),url("../backgrounds/reader-room-hd.png");
    border-bottom: 1px solid var(--gold);
  }
.home-hero{
    width: 88%;
    margin: 0 auto;
    display: block;
    padding: 32px 0 48px;
    min-height: 0;
    height: auto;
  }
.home-copy .eyebrow{
    font-size: 9px;
    letter-spacing: .15em;
  }
.home-copy h1{
    font-size: clamp(37px,10.4vw,52px);
    line-height: 1.04;
    letter-spacing: -.04em;
    white-space: normal;
    margin: 22px 0 20px;
  }
.home-copy>p{
    font-size: 17px;
    line-height: 1.5;
    max-width: 350px;
    margin-bottom: 22px;
  }
.search-form{
    gap: 8px;
  }
.search-input{
    gap: 8px;
    padding: 0 10px;
  }
.search-input>.icon{
    width: 18px;
    height: 18px;
  }
.search-input input{
    height: 48px;
    min-height: 48px;
    font-size: 15px;
  }
.search-form>.button{
    min-width: 72px;
    font-size: 15px;
    padding: 10px 13px;
    gap: 3px;
  }
.search-form>.button>.icon{
    display: none;
  }
.hero-meta{
    font-size: 11px;
    gap: 8px;
  }
.crest-stage{
    width: 180px;
    max-width: 49vw;
    margin: 20px auto 0;
    padding: 0;
  }
.hero-motto{
    width: 100%;
    left: 0;
    bottom: 18px;
    font-size: 7px;
    letter-spacing: .11em;
  }
.discovery{
    display: block;
    padding-top: 24px;
  }
.discovery>div+div{
    margin-top: 30px;
  }
.discovery .section-title{
    gap: 10px;
  }
.discovery .section-title h2{
    font-size: 28px;
  }
.alphabet{
    grid-template-columns: repeat(7,minmax(0,1fr));
    gap: 5px;
    margin: 15px 0;
  }
.alphabet>a{
    min-height: 44px;
    font-size: 17px;
  }
.author-line{
    gap: 11px;
    min-height: 68px;
  }
.avatar{
    width: 46px;
    height: 46px;
  }
.author-line>span{
    font-size: 17px;
  }
.author-line small{
    font-size: 11px;
    gap: 4px;
  }
.genre-row{
    gap: 14px;
    min-height: 60px;
  }
.genre-row>img{
    width: 81px;
    height: 58px;
  }
.genre-row>span{
    font-size: 18px;
    line-height: 1.25;
  }
.genre-row>small{
    font-size: 12px;
    padding-right: 9px;
    gap: 3px;
  }
.motto .divider{
    width: 86%;
    height: 35px;
  }
.footer-top{
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 15px;
  }
.footer-top nav{
    grid-column: 1/-1;
    order: 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
.footer-top nav>a{
    min-height: 34px;
    font-size: 14px;
  }
.footer-top>em{
    font-size: 16px;
  }
.footer-bottom{
    flex-direction: column;
    gap: 5px;
    padding-top: 12px;
    font-size: 10px;
  }
.compact-scene{
    background-size: auto 400px;
    background-position: center top;
    background-image: linear-gradient(#f8f2e190,#f8f2e1b0),url("../backgrounds/reader-room-hd.png");
    min-height: 0;
  }
.masthead{
    width: 88%;
    margin: 0 auto;
    padding: 22px 0 27px;
  }
.masthead h1{
    font-size: 43px;
    line-height: 1.05;
    margin: 15px 0 10px;
    overflow-wrap: break-word;
  }
.masthead>p{
    font-size: 17px;
    line-height: 1.4;
  }
.breadcrumbs{
    font-size: 11px;
    gap: 6px;
    line-height: 1.5;
  }
.compact-scene>.divider{
    width: 150px;
    height: 26px;
    left: calc(50% - 75px);
    bottom: -9px;
  }
.catalog-layout{
    padding: 20px 12px;
    width: 96%;
    border-left: 0;
    border-right: 0;
    gap: 13px;
  }
.book-grid{
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
  }
.book-card{
    padding: 10px 9px;
  }
.cover-link{
    height: 164px;
    padding-right: 16px;
    margin-bottom: 9px;
  }
.book-card h3{
    font-size: 17px;
    line-height: 1.2;
    min-height: 2.4em;
    font-weight: 600;
  }
.book-author{
    font-size: 13px;
    line-height: 1.35;
    min-height: 3.8em;
    margin-bottom: 6px;
  }
.book-year{
    font-size: 12px;
    margin-bottom: 8px;
  }
.tags{
    gap: 3px;
    min-height: 25px;
    margin-bottom: 8px;
  }
.tags>span{
    font-size: 10px;
    padding: 3px 5px;
  }
.tags>span:nth-child(2){
    display: none;
  }
.read-button{
    font-size: 14px;
    min-height: 44px;
  }
.save-heart{
    background: #faf4e6b0;
    right: 3px;
    top: 4px;
    min-width: 32px;
    min-height: 32px;
  }
.results-toolbar{
    align-items: start;
    gap: 10px;
    margin-bottom: 15px;
  }
.results-toolbar p{
    font-size: 12px;
    line-height: 1.4;
    max-width: 110px;
  }
.results-toolbar>div{
    gap: 6px;
    align-items: center;
  }
.sort-label select{
    font-size: 12px;
    max-width: 136px;
    padding: 8px 7px;
  }
.view-switch{
    gap: 2px;
  }
.view-switch .icon-button{
    min-width: 32px;
    min-height: 38px;
    padding: 4px;
  }
.view-switch .icon{
    width: 18px;
  }
.active-filters{
    margin-top: -7px;
  }
.filter-chip{
    font-size: 12px;
    padding: 5px 8px;
    min-height: 32px;
  }
.pagination button{
    min-width: 38px;
    min-height: 44px;
  }
.list-view .book-card{
    grid-template-columns: 82px minmax(0,1fr);
    padding: 13px;
    gap: 15px;
  }
.list-view .cover-link{
    height: 118px;
  }
.list-view h3{
    font-size: 19px;
    min-height: 0;
  }
.list-view .book-author{
    min-height: 0;
    font-size: 14px;
  }
.list-view .tags{
    display: none;
  }
.list-view .read-button{
    min-height: 40px;
    font-size: 14px;
  }
.author-grid{
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px;
  }
.author-card{
    padding: 20px 10px;
  }
.author-portrait{
    width: 100px;
    height: 100px;
    margin-bottom: 16px;
  }
.author-card h2{
    font-size: 23px;
    line-height: 1.15;
    min-height: 2.3em;
  }
.author-card p{
    font-size: 13px;
  }
.author-card small{
    font-size: 12px;
    min-height: 2.8em;
  }
.author-card>.text-link{
    font-size: 13px;
  }
.letter{
    font-size: 15px;
    min-width: 38px;
    min-height: 44px;
  }
.author-scene{
    background-size: auto 620px;
    background-position: center top;
    background-image: linear-gradient(#f8f2e1a0,#f8f2e1bd),url("../backgrounds/reader-room-hd.png");
  }
.author-breadcrumb{
    padding-top: 16px;
  }
.author-intro{
    width: 88%;
    grid-template-columns: minmax(0,1fr);
    gap: 23px;
    padding-top: 0;
  }
.portrait-frame{
    width: 185px;
    margin: 0 auto;
  }
.portrait-frame>img{
    height: auto;
    max-height: 225px;
    width: 185px;
  }
.author-heading h1{
    font-size: 30px;
    line-height: 1.15;
    margin: 18px 0 15px;
  }
.author-heading h1 strong{
    font-size: 42px;
  }
.author-heading>.eyebrow{
    font-size: 9px;
  }
.author-heading .lifespan{
    font-size: 23px;
  }
.author-heading>p:not(.lifespan){
    font-size: 17px;
    line-height: 1.65;
  }
.chips>a{
    font-size: 13px;
    padding: 8px 12px;
  }
.author-body{
    width: 92%;
    padding-top: 25px;
  }
.author-statistics{
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 13px;
    margin-bottom: 20px;
  }
.author-statistics>div{
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 13px;
    gap: 18px;
  }
.author-statistics>div:last-child{
    border-bottom: 0;
    padding: 0;
  }
.author-statistics .icon{
    width: 30px;
    height: 30px;
  }
.author-statistics b{
    font-size: 21px;
  }
.author-statistics small{
    font-size: 13px;
  }
.tab-list{
    gap: 4px;
    overflow-x: auto;
  }
.tab-list>button{
    font-size: 15px;
    padding: 13px 11px;
    min-height: 44px;
  }
.author-works{
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 22px 14px;
  }
.author-works .cover-link{
    height: 208px;
  }
.author-works .book-card h3{
    font-size: 18px;
    min-height: 2.3em;
  }
.author-works .tags>span{
    font-size: 12px;
  }
.author-works .read-button{
    font-size: 15px;
  }
.timeline{
    padding: 22px;
  }
.timeline li{
    font-size: 16px;
  }
.timeline h2{
    font-size: 27px;
  }
.timeline>p{
    font-size: 17px;
  }
.book-scene{
    background-image: linear-gradient(#f8f2e1aa,#f8f2e1c9),url("../backgrounds/reader-room-hd.png");
    background-size: auto 760px;
    background-position: center top;
  }
.book-breadcrumb{
    width: 92%;
    margin: 17px auto 24px;
  }
.book-intro{
    grid-template-columns: minmax(0,1fr);
    width: 88%;
    gap: 24px;
  }
.large-cover{
    width: 205px;
    margin: auto;
  }
.large-cover img{
    height: auto;
    max-height: 310px;
  }
.book-summary{
    padding: 0;
  }
.book-summary h1{
    font-size: 43px;
    line-height: 1.07;
    margin-bottom: 15px;
  }
.main-author{
    font-size: 24px;
  }
.metadata{
    font-size: 13px;
    margin: 18px 0;
  }
.metadata>span{
    margin-left: 2px;
    gap: 5px;
  }
.book-summary .synopsis{
    font-size: 18px;
    line-height: 1.6;
  }
.book-summary>p:not(.synopsis):not(.subtle-note){
    font-size: 17px;
    line-height: 1.65;
  }
.book-actions{
    gap: 8px;
    margin-top: 24px;
  }
.book-actions .button{
    font-size: 14px;
    min-height: 46px;
    padding: 10px 14px;
  }
.book-actions .button:first-child{
    width: 100%;
    font-size: 17px;
  }
.book-summary .subtle-note{
    font-size: 12px;
    line-height: 1.6;
    margin-top: 13px;
  }
.book-facts{
    padding: 22px 18px;
    grid-column: auto;
  }
.book-facts dl{
    grid-template-columns: 33% minmax(0,1fr);
    font-size: 15px;
  }
.book-facts dd{
    padding-left: 12px;
  }
.book-below{
    width: 92%;
    padding-top: 26px;
  }
.book-below .section-title>a{
    font-size: 13px;
  }
.related-grid{
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 24px 17px;
  }
.related-grid .cover-link{
    height: 218px;
  }
.related-grid .book-card h3{
    font-size: 19px;
    line-height: 1.2;
    min-height: 2.4em;
  }
.related-grid .book-author{
    font-size: 14px;
    min-height: 2.5em;
  }
.contents-layout{
    grid-template-columns: minmax(0,1fr);
    gap: 30px;
  }
.contents-layout>div:first-child{
    text-align: center;
  }
.contents-layout .toc-cover{
    margin: 0 auto 16px;
    width: 170px;
  }
.contents-layout h2{
    font-size: 27px;
  }
.toc-preview>a{
    font-size: 16px;
    padding: 14px 12px;
  }
.toc-preview small{
    width: 100%;
    margin: 0;
    padding-left: 28px;
  }
.standalone-search{
    padding: 8px 12px;
  }
.standalone-search input{
    min-height: 38px;
    font-size: 16px;
  }
.search-scene{
    background-image: linear-gradient(#f8f2e1ae,#f8f2e1cc),url("../backgrounds/reader-room-hd.png");
    background-size: auto 500px;
    background-position: center;
  }
.search-hero{
    width: 88%;
    padding: 25px 0 32px;
    min-height: 0;
    text-align: left;
  }
.search-hero h1{
    font-size: 43px;
    line-height: 1.08;
    margin: 18px 0 15px;
  }
.search-hero>p{
    font-size: 21px;
    line-height: 1.4;
    margin-bottom: 22px;
  }
.search-hero .search-form{
    width: 100%;
    max-width: 100%;
    margin: 0;
  }
.search-layout{
    grid-template-columns: minmax(0,1fr);
    gap: 22px;
  }
.search-suggestions{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
.search-suggestions .paper-quote{
    grid-column: 1/-1;
    margin: 0;
    padding: 22px;
  }
.search-suggestions .paper-quote em{
    font-size: 24px;
  }
.suggestions-box{
    padding: 14px;
    margin: 0;
  }
.suggestions-box h2{
    font-size: 21px;
    line-height: 1.15;
  }
.suggestions-box>a{
    font-size: 13px;
    min-height: 36px;
  }
.mini-author .avatar{
    width: 32px;
    height: 32px;
  }
.suggestions-box .mini-author{
    font-size: 13px;
    line-height: 1.2;
    gap: 7px;
    min-height: 52px;
  }
.search-main .section-title h2{
    font-size: 26px;
  }
.search-main .section-title>span{
    font-size: 12px;
    text-align: right;
  }
.search-tabs{
    gap: 3px;
    justify-content: space-between;
  }
.search-tabs>button{
    font-size: 14px;
    padding: 12px 3px;
    min-height: 44px;
  }
.search-result{
    grid-template-columns: 72px minmax(0,1fr);
    gap: 13px;
  }
.search-result>a>img{
    width: 72px;
    height: 106px;
  }
.search-result h2{
    font-size: 23px;
    line-height: 1.15;
  }
.search-result p{
    font-size: 15px;
    line-height: 1.6;
  }
.search-result small{
    font-size: 11px;
  }
.result-actions .button{
    font-size: 13px;
    min-height: 42px;
    padding: 8px 13px;
  }
.collections-grid{
    grid-template-columns: minmax(0,1fr);
    gap: 18px;
  }
.collection-card{
    min-height: 286px;
  }
.collection-card>div{
    width: 70%;
    padding: 25px;
  }
.collection-card h2{
    font-size: 34px;
  }
.collection-card p{
    font-size: 16px;
  }
.collection-card .button{
    font-size: 14px;
    white-space: normal;
    padding: 10px 12px;
  }
.genres-grid{
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px;
  }
.genre-tile{
    padding: 28px 12px;
  }
.genre-tile h2{
    font-size: 23px;
    line-height: 1.15;
  }
.genre-tile p{
    font-size: 13px;
  }
.shelf-summary{
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
.shelf-summary>div{
    justify-content: start;
    gap: 8px;
  }
.shelf-summary .button{
    font-size: 13px;
    padding: 10px 12px;
  }
.shelf-summary>span{
    font-size: 18px;
  }
.data-note{
    font-size: 13px;
    padding: 14px;
    line-height: 1.65;
  }
.history-card{
    gap: 12px;
    flex-wrap: wrap;
    padding: 16px;
  }
.history-card img{
    width: 62px;
    height: 88px;
  }
.history-card>div{
    flex: 1;
  }
.history-card h3{
    font-size: 20px;
  }
.history-card p{
    font-size: 13px;
  }
.history-card>.button{
    width: 100%;
    margin: 0;
    font-size: 15px;
  }
.editorial-panel,.profile-panel{
    padding: 25px 20px;
  }
.editorial-panel>p,.profile-panel>p{
    font-size: 17px;
    line-height: 1.8;
  }
.editorial-panel h2,.profile-panel h2{
    font-size: 27px;
  }
.editorial-panel summary{
    font-size: 18px;
    line-height: 1.5;
  }
.editorial-panel details>p{
    font-size: 16px;
    line-height: 1.8;
  }
form#profile-form>label,form#contact-form>label{
    font-size: 16px;
  }
form#profile-form>label.check-label{
    font-size: 14px;
    line-height: 1.5;
  }
#profile-form .button{
    width: 100%;
    min-height: 48px;
    font-size: 16px;
    white-space: normal;
  }
.profile-panel .subtle-note{
    font-size: 13px;
  }
.profile-panel>p>a{
    font-size: 15px;
  }
.empty-state{
    padding: 32px 7px;
  }
.empty-state h2{
    font-size: 29px;
  }
.empty-state p{
    font-size: 17px;
  }
.empty-state .button{
    font-size: 15px;
  }
.error-number{
    font-size: 100px;
  }
.toast{
    bottom: 15px;
    font-size: 14px;
  }
.dialog-buttons{
    flex-wrap: wrap;
  }
.dialog-buttons .button{
    min-height: 44px;
  }
dialog{
    padding: 22px;
  }
dialog h2{
    font-size: 27px;
  }
}
@media  (max-width:360px) {
.home-copy h1{
    font-size: 36px;
  }
.book-grid{
    gap: 7px;
  }
.book-card{
    padding: 9px 7px;
  }
.cover-link{
    height: 143px;
  }
.book-card h3{
    font-size: 16px;
  }
.book-author{
    font-size: 12px;
  }
.genre-row>img{
    width: 66px;
  }
.genre-row>span{
    font-size: 17px;
  }
.genre-row{
    gap: 11px;
  }
.view-switch{
    display: none;
  }
.related-grid .cover-link{
    height: 194px;
  }
.author-card h2{
    font-size: 21px;
  }
.author-works .cover-link{
    height: 190px;
  }
}
@media  (prefers-reduced-motion:reduce) {
html{
    scroll-behavior: auto;
  }
*,*::before,*::after{
    transition: none !important;
    animation: none !important;
  }
}
@media  print {
.site-header,.mobile-menu,.site-footer,.toast,.motto,.skip-link{
    display: none !important;
  }
body,.scene{
    background: white !important;
    color: black;
  }
.ornamented::before,.ornamented::after{
    display: none;
  }
}
@media  (min-width:1041px) {
.compact-scene{
    background-image: url("../backgrounds/reader-room-hd.png");
  }
.search-scene{
    background-image: url("../backgrounds/reader-room-hd.png");
  }
.book-scene{
    background-image: url("../backgrounds/reader-room-hd.png");
  }
}
.book-facts{
  background: #faf5e8f5;
}
.motto .divider,.compact-scene>.divider,.book-facts>.divider,.timeline>.divider{
  content: url("../decor/fleur.png");
  object-fit: contain;
  position: relative;
  z-index: 1;
  max-width: 100%;
  height: 2.7rem;
  width: 7rem;
}
.motto{
  position: relative;
}
.motto:after{
  content: "";
  position: absolute;
  left: 25%;
  right: 25%;
  bottom: 2.5rem;
  border-top: 1px solid var(--gold);
  pointer-events: none;
}
.motto>.divider{
  background: var(--paper);
  padding-inline: .4rem;
}
.compact-scene>.divider{
  position: absolute;
  bottom: -.4rem;
  left: calc(50% - 3.5rem);
  height: 2rem;
}
.book-facts>.divider{
  height: 1.3rem;
  width: 3.5rem;
  margin: .45rem auto .6rem;
}
.timeline>.divider{
  height: 2rem;
  width: 5rem;
}
.home-hero:after{
  content: "";
  position: absolute;
  bottom: -.1rem;
  left: calc(41% - 3rem);
  width: 6.5rem;
  height: 2.7rem;
  background: url("../decor/fleur.png") center/contain no-repeat;
  pointer-events: none;
}
@media  (max-width:640px) {
.motto .divider{
    height: 35px;
    width: 90px;
  }
.motto:after{
    bottom: 35px;
    left: 18%;
    right: 18%;
  }
.home-hero:after{
    display: none;
  }
.compact-scene>.divider{
    height: 26px;
    width: 70px;
    left: calc(50% - 35px);
  }
}
@media  (min-width:1041px) {
.catalog-main .book-author{
    min-height: 1.25em;
  }
.catalog-main .cover-link{
    height: 9.35rem;
  }
.filter-panel .check-label{
    padding: .14rem 0;
  }
.book-facts dt,.book-facts dd{
    padding-block: .32rem;
  }
.author-statistics{
    margin-bottom: .65rem;
  }
.author-main .tab-list{
    margin-bottom: .7rem;
  }
}
.extra-filter-options summary{
  font-size: .76rem;
  color: var(--green);
  text-decoration: underline;
  cursor: pointer;
  padding: .25rem 0;
}
@media  (max-width:1040px) {
.extra-filter-options summary{
    font-size: 14px;
    padding: 9px 0;
    min-height: 34px;
  }
}
.catalog-main .motto:after{
  bottom: 1rem;
}
@media  (max-width:640px) {
.catalog-main .motto:after{
    bottom: 17px;
  }
}
/* R5 common desktop audit: bounded typography and explicit breakpoints. */
.site-header{margin-block:0;width:min(90%,2160px);height:94px;padding-inline:18px;gap:14px}
.brand>img{width:70px;height:70px}
.brand strong{font-size:49px}
.brand small{font-size:10px}
.desktop-nav{gap:18px;margin-left:15px}
.desktop-nav>a{font-size:16px;line-height:1.3}
.account-actions{gap:8px;margin-left:14px}
.account-actions .button{font-size:14px;min-height:42px;padding:10px 16px}
.home-copy h1{white-space:normal}
.home-copy>p{white-space:normal}
.home-hero{height:auto;min-height:29rem;padding-bottom:6rem}
.book-card h3{font-size:max(16px,1rem);line-height:1.25;overflow-wrap:break-word}
.book-author{font-size:max(14px,.8rem);line-height:1.4}
.book-year{font-size:12px}
.tags>span{font-size:11px}
.check-label{font-size:14px;line-height:1.4;min-height:28px}
.filter-panel legend{font-size:16px}
.filter-heading .text-button{font-size:13px}
.read-button{font-size:14px;min-height:40px}
.sort-label,.sort-label select{font-size:14px}
.results-toolbar{font-size:14px;flex-wrap:wrap}
.search-result p{font-size:max(16px,.95rem)}
.search-result small{font-size:13px}
.search-result>div>a{font-size:16px}
.result-actions .button{font-size:14px;min-height:42px}
.hero-meta{font-size:13px}
.breadcrumbs{font-size:13px}
.site-footer{font-size:14px;padding-top:14px;padding-bottom:12px;position:relative}
.footer-bottom{font-size:12px;line-height:1.5;padding-top:10px}
.footer-top nav{gap:22px}
.footer-top nav a{min-height:40px;display:inline-flex;align-items:center;font-size:14px}
.footer-top>em{font-size:17px}
.site-footer .brand small{font-size:8px}
.site-footer .brand strong{font-size:32px}
.book-actions .button{min-height:44px;font-size:14px}
@media(min-width:1181px){
 .page-width{width:min(88%,2080px)}
 .wide-width{width:min(94%,2160px)}
 .scene{background-position:center top}
 .catalog-layout{gap:22px;padding:22px 24px 0;grid-template-columns:minmax(235px,21%) minmax(0,1fr)}
 .filter-panel{padding-right:18px}
 .cover-link{height:172px}
 .author-heading>p:not(.lifespan){font-size:16px}
 .book-summary>p:not(.synopsis):not(.subtle-note){font-size:17px}
 .book-facts dl{font-size:14px}
 .search-hero h1{white-space:normal}
}
@media(min-width:1181px) and (max-width:1359px){
 .site-header{width:94%;padding-inline:14px;gap:10px}
 .brand strong{font-size:43px}
 .brand>img{width:64px;height:64px}
 .brand small{font-size:9px}
 .desktop-nav{margin-left:10px;gap:13px}
 .desktop-nav>a{font-size:15px}
 .account-actions{margin-left:10px}
 .account-actions .button{padding:10px 12px;font-size:13px}
 .home-copy h1{font-size:59px;letter-spacing:-.04em}
 .home-copy>p{font-size:18px}
 .hero-quote p{font-size:18px}
 .catalog-layout{grid-template-columns:230px minmax(0,1fr);width:94%;padding:20px 18px 0;gap:20px}
 .book-summary h1{font-size:54px}
 .book-intro{width:92%;margin-inline:auto;grid-template-columns:25% minmax(0,44%) minmax(0,25%);gap:3%}
 .book-facts{padding:16px}
 .book-facts dl{font-size:14px}
 .book-summary .synopsis{font-size:17px}
 .main-author{font-size:25px}
 .search-result{grid-template-columns:90px minmax(0,1fr);gap:16px}
 .search-result>a>img{width:90px;height:127px}
 .result-actions{grid-column:2;flex-direction:row;justify-content:flex-start}
 .search-layout{grid-template-columns:18% minmax(0,1fr) 18%;gap:2.5%}
}
@media(min-width:1360px) and (max-width:1759px){
 .site-header{width:90%}
 .home-copy h1{font-size:clamp(63px,4.8vw,74px)}
 .book-intro{width:88%;margin-inline:auto;grid-template-columns:25% minmax(0,44%) minmax(0,25%);gap:3%}
 .book-summary h1{font-size:61px}
 .main-author{font-size:27px}
}
@media(min-width:1760px){
 .site-header{height:100px}
 .brand strong{font-size:54px}
 .brand>img{width:80px;height:80px}
 .desktop-nav>a{font-size:18px}
 .home-hero{width:72%;min-height:31rem}
 .home-copy h1{font-size:80px}
 .home-copy>p{font-size:22px}
 .hero-meta{font-size:15px}
 .cover-link{height:192px}
 .book-card h3{font-size:20px}
 .book-author{font-size:16px}
 .filter-panel .check-label{font-size:16px}
 .search-result h2{font-size:29px}
 .read-button{min-height:44px;font-size:16px}
}
@media(min-width:2600px){
 .home-hero{width:65%;margin-left:22%;min-height:36rem;grid-template-columns:52% 30% 18%}
 .home-copy h1{font-size:90px}
 .crest-stage>img{max-height:490px}
 .home-copy>p{font-size:26px}
 .hero-quote p{font-size:25px}
 .search-hero{max-width:1200px}
 .masthead{max-width:1240px}
 .book-intro,.author-intro{max-width:2080px;margin-inline:auto}
}
@media(max-width:1180px){
 .site-header{width:94%;height:82px;justify-content:space-between;padding-inline:16px}
 .desktop-nav,.account-actions{display:none}
 .menu-toggle{display:flex;width:44px;height:44px;border:1px solid var(--line)}
 .mobile-menu:not([hidden]){display:grid;position:absolute;top:81px;left:3%;width:94%;z-index:40;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 20px;background:var(--paper);border:1px solid var(--gold);padding:12px 20px}
 .mobile-menu a{font-size:16px;min-height:44px;padding:11px 5px}
}
@media(max-width:640px){
 .site-header{width:100%;height:76px;padding-inline:14px}
 .mobile-menu:not([hidden]){top:75px;left:0;width:100%}
 .home-copy h1{font-size:clamp(37px,10.4vw,52px)}
 .home-hero{min-height:0;padding:32px 0 48px}
 .results-toolbar{align-items:center}
 .results-toolbar>div{gap:5px;max-width:100%;flex-wrap:wrap}
 .results-toolbar p{font-size:13px;max-width:100%}
 .sort-label{font-size:0}
 .sort-label select{font-size:13px}
 .result-actions{flex-wrap:wrap}
 .search-result p{font-size:16px}
 .site-footer .brand strong{font-size:29px}
 .footer-bottom{font-size:11px}
 .hero-meta{font-size:11px}
}
.data-note,.profile-panel p,.editorial-panel p,.footer-bottom span{overflow-wrap:break-word}
/* Remove mismatched raster paper rectangles around existing ornamental dividers. */
.motto .divider,.compact-scene>.divider,.book-facts>.divider,.timeline>.divider{content:normal;background:transparent;padding:0;object-fit:contain}
.motto .divider{width:min(480px,80%);height:44px}
.motto::after{display:none}
.compact-scene>.divider{width:180px;height:34px;left:calc(50% - 90px);bottom:-12px}
.book-facts>.divider,.timeline>.divider{width:100%;height:26px}
.home-hero::after{background-image:url('../decor/divider.svg');width:180px;left:calc(41% - 90px)}

