/* ===== Typography (experiment): EB Garamond is the one face of the site — reading, headings and interface.
   Labels use its true small capitals (font-variant-caps) instead of shouted capitals; asides use the italic.
   The name stays in Times New Roman capitals (home.css). ===== */
:root{--ui:"EB Garamond",Garamond,Georgia,serif!important;--text:"EB Garamond",Garamond,Georgia,serif}
body{font-family:var(--text);font-variant-numeric:oldstyle-nums proportional-nums;-webkit-font-smoothing:antialiased}
/* headings: Times New Roman, regular weight, the same face as the name (Tinos, metric-identical, where Times isn't installed).
   Reading text and the interface stay in EB Garamond. */
:root{--display:"Times New Roman",Times,Tinos,serif}
main h1,main h2,main h3,.khead h1,.chead h1,.toprow .row h2,.crow .rh h2{font-family:var(--display)!important;font-weight:400!important;letter-spacing:-.005em!important}
main h1,.khead h1,.chead h1{font-size:clamp(34px,3.2vw,46px)!important}
main h2,.toprow .row h2,.crow .rh h2{font-size:clamp(25px,2vw,30px)!important}
/* small labels → true small caps, lightly tracked */
.abpill,.vit-hint,.kicker,.abview button,.pl-count,.ccount,.tabbar a,.siderail a span,.abtop,.vit-ess,.btn,.kseg a,.wfbar button{
  font-family:var(--text)!important;text-transform:none!important;font-variant-caps:all-small-caps;letter-spacing:.05em!important}
.btn,.kseg a{font-size:16px!important;font-weight:500!important}
/* numbers in the interface: lining, so counts and percentages line up */
.abpct,.pl-count,.ccount,.cpct,.abtop,.vit-range{font-variant-numeric:lining-nums tabular-nums}
/* the Garamond's x-height is small: lift the interface sizes that were set for Inter */
.top,.siderail,.tabbar,.finder,.abview,.resume .c,.row2 .rw,.meta,.ca{font-size-adjust:.5}
/* small caps run small: lift the tiny labels so they read */
.abpill{font-size:14px!important;padding:3px 9px 4px!important}
.abview button{font-size:15px!important;padding:6px 14px 8px!important}
.pl-count,.ccount{font-size:15px!important}
.vit-hint{font-size:14px!important}
.abtop{font-size:14px!important}

/* ===== display type everywhere: every title and heading in Times New Roman, regular — no bold Garamond left.
   #app prefix so it outranks the older heading rules (some carry !important). ===== */
#app :is(h1,h2,h3,.abt,.abh,.pl-name,.cname-ed,.kick,.kicker,.subt,.chh,.nh,.ph2,.big),
#app .bookp .bi h1,#app .ahead h1,#app .ahead .kick,#app .ahead .subt,
#kmodal h2,#cpanel h2,.onboard h1{
  font-family:var(--display)!important;font-weight:400!important;font-synthesis:none}
#app .ahead h1,#app .bookp .bi h1{letter-spacing:-.01em!important}
/* the book name above a chapter title: Times capitals, lightly tracked */
#app .ahead .kick{font-variant-caps:normal!important;text-transform:uppercase;letter-spacing:.06em!important}
/* body text inside the reader keeps its Garamond subheads */
#app .text h3{font-family:var(--text)!important}
/* chapter titles in the reader: Times capitals, like the name */
#app .ahead h1{text-transform:uppercase;letter-spacing:.005em!important;font-variant-caps:normal!important}
/* Study: a placeholder until the study paths are ready */
#app .studyp .soon{margin:10px 0 0;font:italic 400 22px/1.4 var(--text);color:var(--ink3)}
/* All books: the columns are narrower than Recently viewed's, so long titles need a third or fourth line; never cut a title */
html body #app main.booksp a.lb .lbt{-webkit-line-clamp:4!important;line-clamp:4}
/* Book page, table of contents: hovering a chapter only colours its title. No tile behind the row or the link
   (they stacked into two grey boxes) */
html body #app#app .bookp .chl li:not(.part):hover,html body #app#app .bookp .chl li > a:hover,html body #app#app .bookp .chl li:hover > a{background:none!important;box-shadow:none!important}
/* Book page: Begin and Add to a shelf stacked flush left, one under the other (the column was centring each, pushing the wider one sideways) */
html body #app#app main.bookp .btns{align-items:flex-start!important}
@media (min-width:901px){html body #app#app main.bookp .btns > *{margin-left:0!important;align-self:flex-start!important}}
/* Shelf page: the search reads like the library search, magnifier and text together at the left (the text was centred, adrift from its icon) */
html body #app#app main .shv-search input,html body #app#app main .shv-search input::placeholder{text-align:left!important}
/* the shelf taglines are gone: no empty line left where they were */
html body #app#app main :is(.sc-line,.shv-line):empty{display:none!important}
/* Book page: the book (cover, title, Begin) stays put while the table of contents scrolls past it (the user, 2026-11-17) */
@media (min-width:901px){
  html body #app#app main.bookp .bklay{align-items:start!important;overflow:visible!important}
  html body #app#app main.bookp .bklay > .bk{position:sticky!important;top:96px!important;align-self:start!important}
}
