/* The Perfect Library on iPad Pro (2021): 11-inch is 834 x 1194 points, 12.9-inch is 1024 x 1366, in either direction.
   The library fills the whole screen, clear of the status bar and the home indicator. */
@font-face { font-family: 'Jost'; src: url('fonts/Jost.woff2') format('woff2'); font-weight: 300 500; font-display: swap }
@font-face { font-family: 'Cormorant Garamond'; src: url('fonts/CormorantGaramondItalic.woff2') format('woff2'); font-style: italic; font-display: swap }

html, body { margin: 0; height: 100%; overflow: hidden; overscroll-behavior: none; background: var(--lib-top, #F6F1E6); -webkit-text-size-adjust: 100%; text-size-adjust: 100% }
body { position: fixed; inset: 0; -webkit-tap-highlight-color: transparent; touch-action: manipulation }
.ipad-room {
  position: absolute; inset: 0;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  box-sizing: border-box;
}
.ipad-lib { position: relative; width: 100%; height: 100% }

/* Fingers, not a cursor. Small buttons keep their look but get a reach of at least 44 points around them. */
.reader button { touch-action: manipulation }
.reader .r-bar, .reader .r-shelf { -webkit-touch-callout: none }
.reader .r-ic, .reader .r-go, .reader .r-newsec, .reader .r-addbook, .reader .r-secfold, .reader .r-secedit, .reader .r-secmore, .reader .r-txt { position: relative }
.reader .r-ic::after, .reader .r-go::after, .reader .r-newsec::after, .reader .r-addbook::after, .reader .r-secfold::after, .reader .r-secedit::after, .reader .r-secmore::after, .reader .r-more::after, .reader .r-txt::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%)
}

/* With no mouse to hover, what the Mac reveals on hover is always there, and the reading bar stays readable. */
.reader .r-more { opacity: .85 }
.reader .r-secedit { opacity: .6 }
.reader .r-secmore { opacity: 1 }
.reader .r-bar { opacity: .8 }
