/* @font-face { font-family: "Quattrocento"; font-style: normal; src: url("Quattrocento-Regular.ttf"); } @font-face { font-family: "Quattrocento"; font-weight: bold; src: url("Quattrocento-Bold.ttf"); } @font-face { font-family: "Open Sans"; font-style: normal; src: url("OpenSans-VariableFont_wdth,wght.ttf"); } @font-face { font-family: "Open Sans"; font-style: italic; src: url("OpenSans-Italic-VariableFont_wdth,wght.ttf"); } */ @font-face { font-family: "EB Garamond"; font-style: normal; src: url("../fonts/EBGaramond12-Regular.otf"); } @font-face { font-family: "EB Garamond"; font-style: italic; src: url("../fonts/EBGaramond12-Italic.otf"); } /* @font-face { font-family: "EB Garamond"; font-style: normal; font-weight: normal; src: url("../fonts/EBGaramond-Regular.otf") format("opentype"); } @font-face { font-family: "EB Garamond"; font-style:italic; font-weight: normal; src: url("../fonts/EBGaramond-Italic.otf") format("opentype"); } */ /* @font-face { font-family: "EB Garamond"; font-style: normal; font-weight: bold; src: url("../fonts/EBGaramond-Bold.otf") format("opentype"); } @font-face { font-family: "EB Garamond"; font-style: italic; font-weight: bold; src: url("../fonts/EBGaramond-BoldItalic.otf") format("opentype"); } */ html { font-family: 'EB Garamond', sans-serif; /* font-kerning: normal; */ /* font-variant-ligatures: common-ligatures historical-ligatures; */ /* font-variant-numeric: oldstyle-nums; */ font-feature-settings: 'kern' on, 'liga' on, 'onum' on, 'dlig' on, 'clig' on, 'calt' on, 'hlig' off, 'swsh' on, 'locl' off; -webkit-font-smoothing: antialiased; } sup { font-feature-settings: "sup" on; /* vertical-align: inherit; */ font-size: inherit; } /* sub { font-feature-settings: "subs" on; } */ double { font-size: 2rem; vertical-align: -10%; opacity: 0.8; } double.separator { display: block; margin: 2rem auto 3rem auto; } html, body { height: 100%; margin: 0; display: flex; align-items: center; justify-content: center; } body { overflow: hidden; background-image: url('../images/mat.png'); background-position: center center; background-size: cover; background-repeat: no-repeat; } body.switched { transition: color 0.6s, background-color 0.6s; } :root { --book-width: 1421px; --book-height: 799px; --book-scale: 1; --page-line-count: 25; --book-page-top: 7.35%; --book-page-bottom: 14.15%; --book-page-height: calc(100% - var(--book-page-top) - var(--book-page-bottom)); --book-left-page-left: 10.7%; --book-left-page-width: 33.75%; --book-right-page-right: 14.85%; --book-right-page-width: 32.65%; --book-page-perspective: 3200px; --book-left-page-transform: none; --book-right-page-transform: none; --story-line-height: calc((var(--book-height) * 0.785) / var(--page-line-count)); --story-font-size: calc(var(--story-line-height) / 1.45); font-size: calc(var(--book-height)/(34 * 1.5)); --img-aspect-ratio: 1.779; --aspect-ratio: min(var(--viewport-aspect-ratio), var(--img-aspect-ratio)); } h1 { font-size: 2rem; margin-bottom: 0.8rem; text-align: center; text-transform:uppercase; font-weight: normal; } h2 { font-size: 1.2rem; text-align: center; font-weight: normal; } h2.chapter-heading { font-style: italic; margin: 2rem auto 3rem auto; } h3 { font-size: 1.2rem; text-align: center; font-weight: normal; } .header { padding-top: 3rem; padding-bottom: 3rem; } /* Built-in class: # author: Name */ .byline { font-feature-settings: "smcp"; } .subtitle { font-feature-settings: "scmp" off; } .separator { text-align: center; } /* Enables