@font-face {
  font-family: Bookerly;
  src: url('/fonts/bookerly-regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Bookerly;
  src: url('/fonts/bookerly-italic.ttf') format('truetype');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Bookerly;
  src: url('/fonts/bookerly-bold.ttf') format('truetype');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Garamond;
  src: url('/fonts/garamond-regular.otf') format('opentype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Garamond;
  src: url('/fonts/garamond-italic.otf') format('opentype');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Garamond;
  src: url('/fonts/garamond-bold.otf') format('opentype');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Bembo;
  src: url('/fonts/bembo-regular.otf') format('opentype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Bembo;
  src: url('/fonts/bembo-italic.otf') format('opentype');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Bembo;
  src: url('/fonts/bembo-bold.otf') format('opentype');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Caslon;
  src: url('/fonts/caslon-regular.otf') format('opentype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Caslon;
  src: url('/fonts/caslon-italic.otf') format('opentype');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Caslon;
  src: url('/fonts/caslon-bold.otf') format('opentype');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Baskerville;
  src: url('/fonts/baskerville-regular.otf') format('opentype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Baskerville;
  src: url('/fonts/baskerville-italic.otf') format('opentype');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Baskerville;
  src: url('/fonts/baskerville-bold.otf') format('opentype');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Minion;
  src: url('/fonts/minion-regular.otf') format('opentype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Minion;
  src: url('/fonts/minion-italic.otf') format('opentype');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Minion;
  src: url('/fonts/minion-bold.otf') format('opentype');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Sabon;
  src: url('/fonts/sabon-regular.otf') format('opentype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Sabon;
  src: url('/fonts/sabon-italic.otf') format('opentype');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Sabon;
  src: url('/fonts/sabon-bold.otf') format('opentype');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Chareink;
  src: url('/fonts/chareink-regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Chareink;
  src: url('/fonts/chareink-italic.ttf') format('truetype');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Chareink;
  src: url('/fonts/chareink-bold.ttf') format('truetype');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Futura;
  src: url('/fonts/futura-regular.otf') format('opentype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Futura;
  src: url('/fonts/futura-italic.otf') format('opentype');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Futura;
  src: url('/fonts/futura-bold.otf') format('opentype');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Literata;
  src: url('/fonts/literata-regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Literata;
  src: url('/fonts/literata-italic.ttf') format('truetype');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Literata;
  src: url('/fonts/literata-bold.ttf') format('truetype');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
:root {
  --paper: #fff;
  --ink: #000;
  --background: var(--ink);
  --foreground: var(--paper);
  --muted: color-mix(in srgb, var(--foreground) 60%, var(--background));
  --rule: color-mix(in srgb, var(--foreground) 28%, var(--background));
  --surface: color-mix(in srgb, var(--foreground) 6%, var(--background));
  --font-size: 18px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  color-scheme: dark;
  background: var(--background);
  color: var(--foreground);
}
:root[data-warm="true"] { --paper: #e8d8b8; }
:root[data-inverted="true"] { --background: var(--paper); --foreground: var(--ink); color-scheme: light; }
* { box-sizing: border-box; }
body { margin: 0; font-family: Bembo, Georgia, serif; font-size: var(--font-size); line-height: 1.85; }
main { width: min(390px, calc(100% - 64px)); margin: 0 auto; padding: 84px 0 110px; overflow-wrap: anywhere; }
article > :first-child { margin-top: 0; }
article > :last-child { margin-bottom: 0; }
article { scroll-margin-top: 32px; }
article + article { margin-top: 80px; }
.story-end {
  --separator-size: 4px;
  --separator-opacity: .65;
  margin-top: 48px;
  height: 16px;
  color: var(--foreground);
  font-size: 0;
  opacity: var(--separator-opacity);
  background: radial-gradient(circle closest-side, currentColor 20%, transparent 100%) center / var(--separator-size) var(--separator-size) no-repeat;
}
p, ul, ol, blockquote, pre, table { margin: 0 0 1.5em; }
h1, h2, h3, h4, h5, h6 { line-height: 1.4; margin: 1.8em 0 .8em; }
h1 { font-size: 1.65em; }
h2 { font-size: 1.4em; }
h3 { font-size: 1.2em; }
.file-title { color: var(--muted); font-size: .8em; font-weight: 400; line-height: 1.5; margin: 0 0 1.8em; font-variant-numeric: lining-nums tabular-nums; }
.file-title a { text-decoration: none; }
.file-title a:hover { text-decoration: underline; }
.file-title a:focus-visible { outline: 1px solid var(--foreground); outline-offset: 4px; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2.7em 0; }
a { color: inherit; text-decoration-color: var(--muted); text-underline-offset: .2em; }
a:hover { text-decoration-color: var(--foreground); }
blockquote { margin-left: 0; padding-left: 1em; border-left: 1px solid var(--rule); }
ul, ol { padding-left: 1.4em; }
code { font-size: .85em; }
pre { overflow-x: auto; padding: 1em; background: var(--surface); }
img { display: block; max-width: 100%; height: auto; }
table { display: block; overflow-x: auto; border-collapse: collapse; }
td, th { padding: .4em .7em; border: 1px solid var(--rule); }
::selection { background: var(--foreground); color: var(--background); }
#status, noscript { display: block; width: min(390px, calc(100% - 64px)); margin: 0 auto; color: var(--muted); }
#status[hidden], #minimap[hidden] { display: none; }
#minimap { position: fixed; top: calc(24px + var(--safe-top)); bottom: calc(104px + var(--safe-bottom)); right: calc(16px + var(--safe-right)); width: 68px; cursor: pointer; touch-action: none; }
#minimap canvas { display: block; width: 100%; height: 100%; }
#viewport { position: absolute; left: 0; right: 0; top: 0; border-top: 1px solid var(--foreground); border-bottom: 1px solid var(--foreground); opacity: .65; pointer-events: none; }
#minimap:focus-visible { outline: 1px solid var(--foreground); outline-offset: 8px; }
.reading-menu { position: fixed; bottom: calc(16px + var(--safe-bottom)); right: calc(16px + var(--safe-right)); width: 68px; z-index: 2; font: 13px/1.5 system-ui, sans-serif; }
.reading-menu summary { display: grid; place-items: center; width: 32px; height: 32px; margin: 0 auto; list-style: none; background: var(--background); color: var(--muted); font-size: 18px; cursor: pointer; }
.reading-menu summary::-webkit-details-marker { display: none; }
.settings-mark { width: 9px; height: 9px; border: 1px solid currentColor; transform: rotate(45deg); }
.index-mark { width: 12px; height: 10px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat; }
.piece-index { bottom: calc(56px + var(--safe-bottom)); }
.reading-menu summary:hover { color: var(--foreground); }
.reading-menu[open] summary { color: var(--foreground); }
.settings-panel { position: absolute; right: 0; bottom: 84px; width: min(256px, calc(100vw - 48px - var(--safe-left) - var(--safe-right))); max-height: calc(100dvh - 140px - var(--safe-top) - var(--safe-bottom)); overflow-y: auto; overscroll-behavior: contain; padding: 16px; background: var(--background); border: 1px solid var(--rule); }
.index-panel { bottom: 44px; max-height: min(60dvh, calc(100dvh - 140px - var(--safe-top) - var(--safe-bottom))); padding: 8px 16px; font: 16px/1.5 Bembo, Georgia, serif; }
#piece-list { list-style: none; padding: 0; margin: 0; }
#piece-list li + li { border-top: 1px solid var(--rule); }
#piece-list a { position: relative; display: block; padding: 12px 0 12px 12px; text-decoration: none; overflow-wrap: anywhere; font-variant-numeric: lining-nums tabular-nums; }
#piece-list a[aria-current="location"]::before { content: ''; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--foreground); box-shadow: 0 0 5px color-mix(in srgb, var(--foreground) 50%, transparent); transform: translateY(-50%); }
#piece-list a:hover { color: var(--muted); }
.settings-panel fieldset { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.settings-panel legend { padding: 0; margin-bottom: 8px; color: var(--muted); }
.font-switcher { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.font-switcher button { padding: 8px; border: 1px solid var(--rule); border-radius: 0; background: var(--background); color: var(--muted); font: inherit; text-align: left; cursor: pointer; }
.font-switcher button:hover, .font-switcher button[aria-pressed="true"] { border-color: var(--foreground); color: var(--foreground); }
.reading-menu :focus-visible { outline: 2px solid var(--foreground); outline-offset: 2px; }
.size-label { display: flex; justify-content: space-between; gap: 12px; }
#font-size { width: 100%; margin: 12px 0 20px; accent-color: var(--foreground); }
.setting-option { display: flex; align-items: center; gap: 8px; padding: 8px 0; cursor: pointer; }
.setting-option input { margin: 0; accent-color: var(--foreground); }
@media (max-width: 650px), (pointer: coarse) {
  main { width: auto; max-width: 390px; margin-left: auto; margin-right: auto; padding: calc(64px + var(--safe-top)) 0 calc(72px + var(--safe-bottom)); }
  body { padding-left: calc(24px + var(--safe-left)); padding-right: calc(56px + var(--safe-right)); }
  .reading-menu { right: calc(4px + var(--safe-right)); width: 44px; }
  .reading-menu summary { width: 44px; height: 44px; margin: 0; }
  .piece-index { bottom: calc(64px + var(--safe-bottom)); }
  .settings-panel { bottom: 104px; max-height: calc(100dvh - 156px - var(--safe-top) - var(--safe-bottom)); }
  .index-panel { bottom: 56px; max-height: min(60dvh, calc(100dvh - 156px - var(--safe-top) - var(--safe-bottom))); }
  .font-switcher button, .setting-option, #font-size { min-height: 44px; }
  #minimap { width: 20px; right: calc(16px + var(--safe-right)); top: calc(16px + var(--safe-top)); bottom: calc(120px + var(--safe-bottom)); }
}
