@charset "UTF-8";

:root {
  color-scheme: light;
  --rdoc-ground: #ece0f7;
  --rdoc-ink: #20202f;
  --rdoc-accent: #282a71;
  --rdoc-support: #ebcac6;
  --rdoc-surface: #fbfafc;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body {
  margin: 0;
  background: var(--rdoc-surface);
  color: var(--rdoc-ink);
  font-family: "Lusitana", Georgia, serif;
  font-size: 20px;
  line-height: 1.58;
  overflow-wrap: break-word;
}
a { color: var(--rdoc-accent); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { background-color: var(--rdoc-ground); text-decoration-thickness: 2px; }
a:focus-visible, select:focus-visible { outline: 3px solid var(--rdoc-accent); outline-offset: 5px; }
::selection { background: var(--rdoc-support); color: var(--rdoc-ink); }
.rdoc-icon { display: inline-block; flex: 0 0 auto; width: 22px; height: 22px; vertical-align: -.2em; color: currentColor; }
.rdoc-icon svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.rdoc-skip-sheet { position: absolute; left: 18px; top: -100px; z-index: 10; padding: 12px 18px; background: var(--rdoc-surface); }
.rdoc-skip-sheet:focus { top: 12px; }

/* A filename at the scale of a publication, then one quiet working control. */
.rdoc-filename-mast { padding: 25px max(48px, calc((100% - 1280px) / 2)) 0; background: var(--rdoc-ground); }
.rdoc-file-title { display: block; width: fit-content; max-width: 100%; color: var(--rdoc-accent); font: 400 clamp(36px, 6.45vw, 96px)/1.06 "Federo", "Trebuchet MS", sans-serif; letter-spacing: -.025em; text-decoration: none; white-space: nowrap; }
.rdoc-file-title:hover { background: transparent; text-decoration: none; color: var(--rdoc-ink); }
.rdoc-file-controls { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 17px 0 19px; }
.rdoc-page-jump { display: flex; align-items: center; gap: 17px; }
.rdoc-jump-label { display: flex; align-items: center; gap: 9px; }
.rdoc-jump-label, .rdoc-file-address { font-size: 17px; line-height: 1.3; }
.rdoc-file-address { color: var(--rdoc-accent); }
.rdoc-jump-select { width: 294px; max-width: 100%; min-height: 42px; padding: 7px 30px 7px 13px; border: 1px solid var(--rdoc-accent); border-radius: 5px; background-color: var(--rdoc-surface); color: var(--rdoc-accent); font: 17px "Lusitana", Georgia, serif; }
.rdoc-jump-select:hover { background-color: var(--rdoc-support); }
.rdoc-link-fallback { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0 0 20px; font-size: 17px; }

/* A loose reading leaf over the real archive table. The photograph stays full bleed. */
.rdoc-document-face { width: 100%; }
.rdoc-opening-scene { position: relative; isolation: isolate; padding: 46px max(48px, calc((100% - 1280px) / 2)); background: var(--rdoc-ground); }
.rdoc-home-scene { min-height: 634px; display: flex; align-items: center; }
.rdoc-scene-photo { position: absolute; z-index: -2; inset: 0; margin: 0; }
.rdoc-scene-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }
.rdoc-scene-photo figcaption { position: absolute; right: max(48px, calc((100% - 1280px) / 2)); bottom: 23px; width: 258px; padding: 12px 15px; background: var(--rdoc-surface); color: var(--rdoc-accent); border-radius: 5px; font-size: 17px; line-height: 1.35; box-shadow: 7px 7px 0 var(--rdoc-support); }
.rdoc-opening-leaf { position: relative; width: 700px; max-width: 63%; padding: 32px 36px 28px; background: var(--rdoc-surface); box-shadow: 10px 10px 0 var(--rdoc-ground), 20px 24px 30px #20202f26; }

h1, h2 { font-family: "Federo", "Trebuchet MS", sans-serif; font-weight: 400; }
h1 { margin: 0; font-size: clamp(42px, 4.1vw, 59px); line-height: 1.035; letter-spacing: -.025em; }
.rdoc-owner-opening { margin: 19px 0 0; font-size: 22px; line-height: 1.4; }
.rdoc-endnote { position: relative; margin: 23px -36px -28px; padding: 19px 25px 20px 66px; background: var(--rdoc-support); color: var(--rdoc-ink); cursor: auto; }
.rdoc-endnote-star { position: absolute; top: 12px; left: 21px; font: 400 72px/1 "Federo", "Trebuchet MS", sans-serif; }
.rdoc-endnote p { margin: 0; font-size: 17px; line-height: 1.42; }
.rdoc-inner-scene { min-height: 406px; display: flex; align-items: center; padding-block: 36px 43px; }
.rdoc-inner-scene .rdoc-opening-leaf { width: 760px; max-width: 64%; }
.rdoc-inner-scene h1 { font-size: clamp(38px, 3.65vw, 53px); }
.rdoc-inner-scene .rdoc-scene-photo img { object-position: center 56%; }
.rdoc-inner-scene .rdoc-scene-photo figcaption { bottom: 27px; width: 236px; }
.rdoc-trail { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 20px; margin-bottom: 20px; font-size: 16px; line-height: 1.4; }
.rdoc-trail a { display: flex; align-items: center; gap: 7px; }
.rdoc-trail span[aria-current] { flex: 1 1 100%; }
.rdoc-text-opening { padding: 46px max(48px, calc((100% - 1100px) / 2)) 39px; background: var(--rdoc-ground); }
.rdoc-text-opening .rdoc-opening-leaf { width: 960px; max-width: 100%; padding: 0; background: transparent; box-shadow: none; }
.rdoc-text-opening .rdoc-opening-leaf { box-shadow: none; }
.rdoc-text-opening .rdoc-owner-opening { max-width: 740px; }

/* Findings cut into the argument. Context occupies the quieter half of the sheet. */
.rdoc-leaf-body { width: min(960px, calc(100% - 160px)); margin: 82px auto 0; }
.rdoc-leaf-body > .rdoc-paragraph { max-width: 680px; margin: 28px 60px 28px auto; }
.rdoc-section-heading { position: relative; max-width: 800px; margin: 78px 0 29px 36px; font-size: 39px; line-height: 1.16; color: var(--rdoc-accent); }
.rdoc-leaf-body > .rdoc-section-heading:first-child { margin-top: 0; }
.rdoc-heading-number { position: absolute; right: calc(100% + 23px); top: -12px; color: var(--rdoc-accent); font-size: 76px; line-height: 1; }
.rdoc-source-window { position: relative; width: calc(100% + 80px); margin: 48px -40px 0; padding: 0 36px 32px; border-radius: 5px; background: #ffffff; box-shadow: 12px 12px 0 var(--rdoc-ground), 15px 18px 24px #20202f0d; }
.rdoc-source-caption { position: relative; display: flex; align-items: center; gap: 11px; width: fit-content; max-width: 100%; top: -15px; margin: 0 0 7px -14px; padding: 10px 17px; border-radius: 5px; color: var(--rdoc-accent); background: var(--rdoc-ground); font-size: 17px; line-height: 1.35; }
.rdoc-window-reading { display: grid; grid-template-columns: 1.2fr 1fr; gap: 38px; align-items: start; }
.rdoc-window-finding { margin: 0; font-size: 28px; line-height: 1.42; }
.rdoc-window-context { margin: 0; padding: 6px 0 4px 26px; border-left: 3px solid var(--rdoc-support); font-size: 20px; line-height: 1.5; }
.rdoc-owner-margin { position: relative; max-width: 610px; margin: 29px -38px 48px auto; padding: 18px 26px 20px 55px; color: var(--rdoc-accent); background: var(--rdoc-ground); border-radius: 5px; font-size: 21px; font-style: italic; line-height: 1.45; transform: rotate(-.65deg); }
.rdoc-owner-margin::before { content: ""; position: absolute; left: 20px; top: 20px; width: 23px; height: 27px; background: url("./fold-mark.svg") center / contain no-repeat; }
.rdoc-archive-plate { position: relative; width: calc(100% + 80px); margin: 60px -40px; }
.rdoc-archive-photo { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 5px; }
.rdoc-archive-plate figcaption { max-width: 540px; margin: -25px 24px 0 auto; padding: 16px 24px; position: relative; background: var(--rdoc-support); font-size: 18px; }
.rdoc-reference-entry { max-width: 820px; margin: 0 0 31px 35px; padding: 0 0 28px 24px; border-left: 3px solid var(--rdoc-support); }
.rdoc-reference-title { margin: 0 0 9px; font-size: 24px; line-height: 1.35; font-weight: 700; }
.rdoc-reference-note { max-width: 720px; margin: 0; font-size: 19px; }
.rdoc-last-leaf { margin: 96px 0 0; padding: 37px max(48px, calc((100% - 1280px) / 2)) 31px; background: var(--rdoc-ground); }
.rdoc-footer-paths { display: flex; flex-wrap: wrap; gap: 13px 34px; margin-bottom: 28px; font-size: 19px; }
.rdoc-footer-paths a { display: flex; align-items: center; gap: 8px; padding-block: 5px; }
.rdoc-footer-paths a:hover { background: var(--rdoc-support); }
.rdoc-footer-scope { max-width: 720px; margin: 0 0 12px; font-size: 18px; }
.rdoc-copyright { margin: 0; font-size: 16px; }
.rdoc-error-copy { max-width: 680px; margin: 32px 0 0; }
.rdoc-document-face > h1, .rdoc-document-face > .rdoc-error-copy { margin: 48px auto 0; width: min(960px, calc(100% - 64px)); }

/* One entrance, all words opaque from first paint. */
@keyframes rdoc-leaf-settle { from { transform: translateY(9px); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: no-preference) and (min-width: 701px) {
  .rdoc-home-scene .rdoc-opening-leaf { animation: rdoc-leaf-settle 650ms cubic-bezier(.2,.7,.3,1) both; }
}
@media (min-width: 1700px) { .rdoc-home-scene { min-height: 690px; } }
@media (max-width: 1050px) {
  .rdoc-filename-mast { padding-inline: 32px; }
  .rdoc-opening-scene { padding-inline: 32px; }
  .rdoc-opening-leaf { max-width: 70%; padding: 27px 28px 24px; }
  .rdoc-owner-opening { font-size: 20px; }
  .rdoc-endnote { margin-inline: -28px; margin-bottom: -24px; }
  .rdoc-scene-photo figcaption, .rdoc-inner-scene .rdoc-scene-photo figcaption { right: 28px; width: 190px; font-size: 16px; }
  .rdoc-inner-scene .rdoc-opening-leaf { max-width: 71%; }
  .rdoc-leaf-body { width: calc(100% - 112px); }
  .rdoc-window-reading { gap: 25px; }
  .rdoc-window-finding { font-size: 25px; }
  .rdoc-window-context { font-size: 19px; padding-left: 20px; }
  .rdoc-owner-margin { margin-right: -15px; }
  .rdoc-leaf-body > .rdoc-paragraph { margin-right: 0; }
}
@media (max-width: 700px) {
  body { font-size: 18px; line-height: 1.55; }
  .rdoc-filename-mast { padding: 17px 18px 0; }
  .rdoc-file-title { font-size: 7.14vw; line-height: 1.12; }
  .rdoc-file-address { display: none; }
  .rdoc-file-controls { padding: 13px 0 15px; }
  .rdoc-page-jump { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
  .rdoc-jump-label { font-size: 16px; gap: 6px; }
  .rdoc-jump-label .rdoc-icon { width: 18px; height: 18px; }
  .rdoc-jump-select { width: 100%; font-size: 16px; padding-left: 9px; }
  .rdoc-opening-scene, .rdoc-home-scene, .rdoc-inner-scene { display: flex; flex-direction: column; min-height: 0; padding: 0; }
  .rdoc-opening-leaf, .rdoc-inner-scene .rdoc-opening-leaf { width: 100%; max-width: 100%; padding: 25px 20px 0; }
  .rdoc-opening-leaf { box-shadow: none; }
  h1, .rdoc-inner-scene h1 { font-size: 32px; line-height: 1.1; letter-spacing: -.014em; }
  .rdoc-owner-opening { margin-top: 17px; font-size: 18px; line-height: 1.4; }
  .rdoc-endnote { margin: 21px -20px 0; padding: 17px 18px 20px 49px; }
  .rdoc-endnote-star { top: 13px; left: 13px; font-size: 54px; }
  .rdoc-endnote p { font-size: 16px; line-height: 1.4; }
  .rdoc-scene-photo { position: relative; z-index: 0; inset: auto; width: 100%; margin: 0; }
  .rdoc-scene-photo img { height: 300px; object-position: center; }
  .rdoc-scene-photo figcaption, .rdoc-inner-scene .rdoc-scene-photo figcaption { position: relative; right: auto; bottom: auto; width: calc(100% - 56px); margin: -23px 18px 0 auto; padding: 12px 17px; box-shadow: 7px 7px 0 var(--rdoc-support); font-size: 16px; }
  .rdoc-inner-scene .rdoc-opening-leaf { padding-bottom: 25px; }
  .rdoc-inner-scene .rdoc-scene-photo img { height: 220px; }
  .rdoc-trail { margin-bottom: 20px; font-size: 16px; gap: 8px; }
  .rdoc-trail span[aria-current] { flex-basis: 100%; }
  .rdoc-text-opening { padding: 25px 20px 29px; }
  .rdoc-text-opening .rdoc-opening-leaf { padding: 0; }
  .rdoc-leaf-body { width: calc(100% - 40px); margin-top: 56px; }
  .rdoc-section-heading { margin: 56px 0 29px; font-size: 29px; line-height: 1.2; }
  .rdoc-section-heading:has(.rdoc-heading-number) { padding-left: 43px; }
  .rdoc-heading-number { left: 0; right: auto; top: -4px; font-size: 43px; }
  .rdoc-leaf-body > .rdoc-paragraph { margin: 23px 0; }
  .rdoc-source-window { width: 100%; margin: 38px 0 0; padding: 0 20px 24px; box-shadow: 7px 7px 0 var(--rdoc-ground), 9px 11px 20px #20202f0d; }
  .rdoc-source-caption { font-size: 16px; margin: 0 -7px 5px; padding: 9px 12px; }
  .rdoc-source-caption .rdoc-icon { width: 20px; height: 20px; }
  .rdoc-window-reading { grid-template-columns: minmax(0, 1fr); gap: 23px; }
  .rdoc-window-finding { font-size: 24px; line-height: 1.4; }
  .rdoc-window-context { padding: 0 0 0 17px; font-size: 18px; line-height: 1.5; }
  .rdoc-owner-margin { max-width: calc(100% - 10px); margin: 26px -1px 35px auto; padding: 15px 17px 17px 42px; font-size: 18px; transform: rotate(-.65deg); }
  .rdoc-owner-margin::before { left: 14px; top: 18px; width: 18px; height: 21px; }
  .rdoc-archive-plate { width: 100%; margin: 40px 0; }
  .rdoc-archive-plate figcaption { margin-inline: 18px 0; padding: 12px 16px; font-size: 16px; }
  .rdoc-reference-entry { margin-left: 0; padding-left: 17px; }
  .rdoc-reference-title { font-size: 21px; }
  .rdoc-reference-note { font-size: 18px; }
  .rdoc-last-leaf { margin-top: 62px; padding: 26px 20px; }
  .rdoc-footer-paths { gap: 10px 20px; font-size: 17px; }
  .rdoc-footer-scope { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
