/* St. Celia's scriptorium — no scripts, images, or fetched fonts. */
:root {
  color-scheme: dark;
  --night: #101512;
  --ink: #30261c;
  --faded-ink: #6e593c;
  --red: #923b2e;
  --dark-red: #6e2925;
  --blue: #193e4c;
  --gold: #b58a3e;
  --bright-gold: #e2bd65;
  --vellum: #e5d2a4;
  --edge: #8c6c3c;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background:
    radial-gradient(ellipse at 50% -10%, #30332a 0, #191e19 38%, transparent 68%),
    linear-gradient(115deg, #111713, #090e0e 70%, #111410);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.65;
}

::selection {
  background: #b58a3e;
  color: #171b17;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--bright-gold);
  outline-offset: 5px;
}

.desk-grain,
.night-tint,
.candle-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.desk-grain {
  z-index: 0;
  opacity: .42;
  background:
    repeating-linear-gradient(91deg, transparent 0 5px, #b39a6807 6px, transparent 7px 17px),
    repeating-linear-gradient(2deg, transparent 0 47px, #00000012 48px, transparent 49px 96px);
}

.night-tint {
  z-index: 4;
  background: rgb(6 13 24 / 0);
}

.candle-glow {
  z-index: 5;
  opacity: .75;
  background: radial-gradient(circle at calc(100% - 66px) 43%, #ffc15c2b 0, #e7a53a12 14%, transparent 42%);
  mix-blend-mode: screen;
  animation: room-flicker 4.6s ease-in-out infinite;
}

.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  border-bottom: 1px solid #b698532d;
  background: #0d120ee8;
  color: #c6b283;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9px;
  letter-spacing: .19em;
  line-height: 1;
  backdrop-filter: blur(12px);
}

.abbey {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.abbey-mark {
  color: var(--bright-gold);
  font-family: Georgia, serif;
  font-size: 23px;
  line-height: 1;
}

.abbey-sub {
  color: #837a60;
}

.office {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #837a60;
}

.office i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #8f7543;
}

.folio b {
  margin-left: 8px;
  color: var(--bright-gold);
  font-weight: 400;
}

.reading-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, #74502a, #e2bd65 72%, #fff0af);
  box-shadow: 0 0 9px #e9b84f66;
}

/* The fixed candle is also the night's clock. */
.candle {
  position: fixed;
  z-index: 8;
  top: calc(50% - 93px);
  right: clamp(12px, 2vw, 32px);
  width: 92px;
  height: 235px;
  pointer-events: none;
  color: #a79366;
  text-align: center;
}

.candle-label {
  margin: 0 0 20px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 8px;
  letter-spacing: .16em;
  line-height: 1.5;
}

.candle-label span {
  display: block;
  margin-top: 4px;
  color: #746d57;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10px;
  font-style: italic;
  letter-spacing: 0;
}

.candle-object {
  position: relative;
  width: 92px;
  height: 190px;
  filter: drop-shadow(0 12px 11px #0008);
}

.wax {
  position: absolute;
  left: 25px;
  bottom: 10px;
  width: 43px;
  height: 145px;
  transform-origin: center bottom;
  border-radius: 5px 5px 3px 3px;
  background:
    linear-gradient(90deg, #8e7349 0, #d5bd7d 13%, #f0dca0 40%, #c5a767 76%, #725837 100%);
  box-shadow:
    inset 0 5px 5px #5b3d2180,
    inset 0 -8px 12px #69512d55,
    0 0 20px #d6a04714;
}

.wax::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 100%;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(ellipse, #38291b 0 16%, #9b7c48 20%, #e3cb8b 63%, #a48752 100%);
}

.wax-drip {
  position: absolute;
  top: 2px;
  width: 7px;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(90deg, #b89b60, #e4cd8d 60%, #a0814c);
}

.drip-one {
  left: 5px;
  height: 29px;
}

.drip-two {
  right: 8px;
  height: 18px;
}

.drip-three {
  left: 19px;
  height: 10px;
}

.flame-travel {
  position: absolute;
  z-index: 2;
  top: -3px;
  left: 31px;
  width: 31px;
  height: 38px;
}

.flame {
  position: absolute;
  inset: 0;
  display: block;
  transform-origin: 50% 100%;
  clip-path: polygon(51% 0, 71% 24%, 91% 55%, 96% 72%, 83% 90%, 51% 100%, 17% 90%, 4% 71%, 12% 48%, 29% 22%);
  background: radial-gradient(ellipse at 50% 77%, #fff6bc 0 12%, #ffd76b 27%, #ee8c2d 58%, #b94a1d 80%, #683323 100%);
  filter: drop-shadow(0 0 7px #ffb437) drop-shadow(0 0 20px #e58c2d99);
  animation: flame-flicker 1.9s ease-in-out infinite alternate;
}

.flame-core {
  position: absolute;
  left: 11px;
  bottom: 3px;
  width: 9px;
  height: 20px;
  border-radius: 50% 50% 45% 45%;
  background: linear-gradient(#fffbd900, #fffbd9 55%, #c9e4e1);
}

.wick {
  position: absolute;
  left: 15px;
  bottom: -8px;
  width: 2px;
  height: 12px;
  border-radius: 2px;
  background: #251b15;
  transform: rotate(-8deg);
}

.candle-saucer {
  position: absolute;
  left: 3px;
  bottom: 1px;
  width: 86px;
  height: 17px;
  border: 1px solid #806238;
  border-radius: 50%;
  background: radial-gradient(ellipse, #191c16 25%, #645137 50%, #a08044 66%, #342d23 78%);
  box-shadow: 0 5px 7px #0009;
}

/* A quill, forever halfway through a word. */
.quill {
  position: fixed;
  z-index: 7;
  left: max(18px, calc(50% - 565px));
  bottom: 9vh;
  width: 140px;
  height: 213px;
  pointer-events: none;
  transform-origin: 35px 192px;
  animation: quill-write 3.2s ease-in-out infinite;
}

.quill::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -12px;
  bottom: -13px;
  width: 121px;
  height: 44px;
  transform: rotate(-5deg);
  background: #bda572;
  box-shadow: 0 5px 12px #0007, inset 0 0 15px #70563255;
  clip-path: polygon(2% 8%, 97% 0, 100% 86%, 6% 100%, 0 70%);
}

.quill svg {
  display: block;
  width: 100%;
  height: 205px;
  overflow: visible;
  filter: drop-shadow(3px 5px 3px #0007);
}

.feather {
  transform-origin: 47px 151px;
  animation: feather-breathe 3.2s ease-in-out infinite;
}

.quill-scratch {
  position: absolute;
  left: 16px;
  bottom: 3px;
  width: 44px;
  height: 8px;
  border-top: 1.5px solid #493822;
  border-radius: 50%;
  transform: rotate(-7deg) scaleX(.2);
  transform-origin: left;
  animation: scratch 3.2s ease-in-out infinite;
}

.scratch-two {
  left: 33px;
  bottom: -3px;
  width: 30px;
  animation-delay: -.18s;
}

/* One continuous leaf of vellum. */
.sheet {
  position: relative;
  z-index: 2;
  width: min(820px, calc(100% - 320px));
  margin: 86px auto 72px;
  background-color: var(--vellum);
  background-image:
    radial-gradient(ellipse at 12% 5%, #fff4c65c, transparent 31%),
    radial-gradient(ellipse at 95% 44%, #7f52221c, transparent 24%),
    radial-gradient(ellipse at 8% 81%, #8a5c2526, transparent 22%),
    repeating-linear-gradient(93deg, transparent 0 3px, #74572a08 4px, transparent 5px 9px),
    repeating-linear-gradient(2deg, transparent 0 6px, #fff7d50a 7px, transparent 8px 13px);
  border-left: 1px solid #ead7a85c;
  border-right: 1px solid #6e512c80;
  box-shadow:
    0 32px 100px #000a,
    3px 3px 0 #aa9366,
    5px 5px 0 #56482f,
    inset 0 0 90px #7955252e;
}

.sheet::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 19px;
  border: 1px solid #8d3c2c61;
  outline: 1px solid #b58a3e38;
  outline-offset: 4px;
  pointer-events: none;
}

.sheet::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  opacity: .55;
  background:
    radial-gradient(circle at 7% 23%, #83512338 0 1px, transparent 2px),
    radial-gradient(circle at 92% 71%, #6a411c40 0 1px, transparent 2px),
    radial-gradient(ellipse at 50% 0, transparent 60%, #6e4a2224 100%);
  background-size: 117px 103px, 139px 151px, 100% 100%;
  mix-blend-mode: multiply;
}

.corner {
  position: absolute;
  z-index: 3;
  width: 42px;
  height: 42px;
  pointer-events: none;
  color: var(--red);
  border-color: #9c6b32;
  border-style: solid;
}

.corner::after {
  content: "✦";
  position: absolute;
  color: #9a7134;
  font-size: 13px;
  line-height: 1;
}

.corner-tl { top: 13px; left: 13px; border-width: 2px 0 0 2px; }
.corner-tr { top: 13px; right: 13px; border-width: 2px 2px 0 0; }
.corner-bl { bottom: 13px; left: 13px; border-width: 0 0 2px 2px; }
.corner-br { right: 13px; bottom: 13px; border-width: 0 2px 2px 0; }
.corner-tl::after { top: 5px; left: 5px; }
.corner-tr::after { top: 5px; right: 5px; }
.corner-bl::after { bottom: 5px; left: 5px; }
.corner-br::after { right: 5px; bottom: 5px; }

.hero,
.chapter,
.colophon {
  position: relative;
  z-index: 1;
}

.hero {
  min-height: calc(100svh - 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 84px 54px;
  text-align: center;
}

.rubric {
  margin: 0 0 18px;
  color: var(--red);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2em;
  line-height: 1.5;
}

.hero-rubric {
  margin-bottom: 13px;
  font-size: 9px;
}

.hero-rubric span {
  padding: 0 10px;
  color: var(--gold);
}

.flourish {
  display: block;
  color: var(--gold);
}

.hero-flourish {
  width: 240px;
  height: 21px;
  margin-bottom: 20px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  width: 100%;
  margin-bottom: 17px;
  color: var(--ink);
  font-weight: 400;
  line-height: .98;
}

h1 span {
  display: block;
  margin-bottom: 9px;
  font-size: 27px;
  font-style: normal;
  letter-spacing: .08em;
}

h1 em {
  display: block;
  color: var(--dark-red);
  font-size: clamp(54px, 5.1vw, 73px);
  font-weight: 400;
  letter-spacing: -.045em;
}

.hero-deck {
  max-width: 460px;
  margin-bottom: 24px;
  color: #59472f;
  font-size: 15px;
  font-style: italic;
  line-height: 1.65;
}

.miniature {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2px 0 11px;
}

.arch {
  position: relative;
  width: 218px;
  height: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 5px double #c39a4c;
  border-radius: 110px 110px 4px 4px;
  outline: 1px solid #743129;
  outline-offset: 3px;
  background:
    radial-gradient(circle at 50% 65%, #b88b3630, transparent 42%),
    radial-gradient(circle at 30% 20%, #d5bc6926 0 1px, transparent 2px),
    radial-gradient(circle at 70% 35%, #d5bc6926 0 1px, transparent 2px),
    linear-gradient(145deg, #234c58, #102d3b 70%, #0c2530);
  background-size: auto, 29px 31px, 37px 41px, auto;
  box-shadow: inset 0 0 32px #0007, 0 3px 0 #6d4d2833;
}

.arch::after {
  content: "";
  position: absolute;
  left: 17px;
  right: 17px;
  bottom: 31px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c5a65b, transparent);
}

.arch-kicker,
.arch-caption {
  position: relative;
  z-index: 1;
  color: #d8bd76;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 8px;
  letter-spacing: .28em;
  line-height: 1;
}

.arch strong {
  position: relative;
  z-index: 1;
  margin: 4px 0 7px;
  background: linear-gradient(145deg, #fff0a5 0, #c7973e 35%, #f0ce73 55%, #9d6e28 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-size: 91px;
  font-weight: 400;
  letter-spacing: -.09em;
  line-height: 1;
  text-shadow: 0 3px 12px #e1b64b18;
  transform: translateX(-3px);
}

.arch-caption {
  position: absolute;
  bottom: 14px;
  font-size: 7px;
  letter-spacing: .24em;
}

.arch-star {
  position: absolute;
  color: #d9b761;
  line-height: 1;
}

.star-one { top: 37px; left: 35px; font-size: 11px; }
.star-two { top: 65px; right: 29px; font-size: 20px; }
.star-three { top: 25px; right: 50px; font-size: 13px; }

.mini-vine {
  width: 44px;
  color: var(--red);
  font-size: 51px;
  line-height: 1;
  text-shadow: 13px 16px 0 #b18a43, -5px -19px 0 #6d773f;
}

.vine-left { transform: rotate(-24deg); }
.vine-right { transform: rotate(156deg); }

.miniature-caption {
  margin-bottom: 25px;
  color: #715b39;
  font-size: 11px;
  font-style: italic;
  letter-spacing: .04em;
}

.miniature-caption span {
  padding: 0 8px;
  color: var(--red);
  font-style: normal;
}

.begin-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 10px 2px;
  border-bottom: 1px solid #9a773d80;
  color: #5b472c;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9px;
  letter-spacing: .17em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .2s, border-color .2s;
}

.begin-link b {
  color: var(--red);
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 400;
  animation: beckon 2s ease-in-out infinite;
}

.begin-link:hover {
  border-color: var(--red);
  color: var(--red);
}

.chapter {
  min-height: 96svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 115px 96px;
}

.chapter::before {
  content: "";
  position: absolute;
  top: 0;
  left: 96px;
  right: 96px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #9a713a80 18%, #9a713a80 82%, transparent);
}

.chapter-header {
  margin-bottom: 34px;
}

.chapter-number {
  display: inline-block;
  min-width: 32px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 20px;
  color: var(--ink);
  font-size: 45px;
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.08;
}

.rubric-rule {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 118px;
  color: var(--gold);
  font-size: 9px;
}

.rubric-rule::before,
.rubric-rule::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #a7804299;
}

.text-column p {
  margin-bottom: 24px;
  font-size: 18px;
  line-height: 1.75;
}

.text-column p:last-child {
  margin-bottom: 0;
}

.text-column em {
  color: var(--dark-red);
}

.text-column .opening {
  font-size: 19px;
  line-height: 1.78;
}

.drop-cap {
  float: left;
  width: 80px;
  height: 80px;
  margin: 8px 16px 6px 0;
  border: 4px double #d1ab5d;
  outline: 1px solid var(--red);
  outline-offset: 2px;
  background:
    radial-gradient(circle at 25% 25%, #d6b95d55 0 1px, transparent 2px),
    linear-gradient(145deg, #254f58, #102f3b);
  background-size: 13px 13px, auto;
  box-shadow: inset 0 0 15px #0005, 2px 3px 0 #60432626;
  color: #e5c269;
  font-size: 66px;
  line-height: 72px;
  text-align: center;
  text-shadow: 1px 2px 0 #6d4b22;
}

.blue-cap {
  background-color: var(--blue);
}

.red-cap {
  outline-color: var(--blue);
  background:
    radial-gradient(circle at 25% 25%, #e1c06844 0 1px, transparent 2px),
    linear-gradient(145deg, #a64b38, #672923);
  background-size: 13px 13px, auto;
}

.error-slip {
  width: 82%;
  margin: 33px auto 35px;
  padding: 13px 20px 15px;
  transform: rotate(-1deg);
  border-top: 1px solid #8b352a;
  border-bottom: 1px solid #8b352a;
  background: #a9814512;
  color: var(--dark-red);
  text-align: center;
}

.error-slip strong {
  display: block;
  font-size: 42px;
  font-weight: 400;
  letter-spacing: .12em;
  line-height: 1.15;
}

.error-slip span {
  display: block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 8px;
  letter-spacing: .23em;
}

.rubric-note {
  position: absolute;
  top: 44%;
  right: -130px;
  width: 119px;
  margin: 0;
  transform: rotate(2deg);
  color: #863c2f;
  font-size: 12px;
  font-style: italic;
  line-height: 1.55;
}

.rubric-note::before {
  content: "↤";
  display: block;
  margin-bottom: 8px;
  color: #a17b3c;
  font-size: 26px;
  font-style: normal;
  line-height: 1;
}

.rubric-note b {
  display: block;
  margin-bottom: 5px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 8px;
  font-style: normal;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.search-list {
  margin: 30px 0 33px;
  padding: 0;
  list-style: none;
  border-top: 1px solid #96733f55;
}

.search-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid #96733f55;
  font-size: 14px;
  line-height: 1.5;
}

.search-list li::before {
  content: "✦";
  flex: 0 0 auto;
  color: var(--red);
  font-size: 8px;
}

.search-list li span {
  flex: 1;
}

.search-list li b {
  color: var(--red);
  font-size: 12px;
  font-style: italic;
  font-weight: 400;
  white-space: nowrap;
}

/* A real, keyboard-accessible marginal note. */
.margin-note {
  position: absolute;
  z-index: 6;
  top: 53%;
  right: -155px;
  width: 145px;
  color: #43331f;
  font-size: 12px;
  line-height: 1.55;
  perspective: 500px;
}

.margin-note summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 11px 10px;
  transform: rotate(2deg);
  border: 1px solid #9a773f;
  background: #d5bd86;
  box-shadow: 3px 4px 8px #3e2a2040;
  cursor: pointer;
  font-size: 12px;
  font-style: italic;
  line-height: 1.3;
  list-style: none;
  transition: transform .2s, background .2s;
}

.margin-note summary::-webkit-details-marker {
  display: none;
}

.margin-note summary::marker {
  content: "";
}

.margin-note summary b {
  display: grid;
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  place-items: center;
  border: 1px solid #9b4433;
  border-radius: 50%;
  color: #8b382b;
  font-family: Georgia, serif;
  font-size: 17px;
  font-style: normal;
  font-weight: 400;
  transition: transform .25s;
}

.margin-note summary:hover {
  transform: rotate(-1deg) translateX(-3px);
  background: #e1cb98;
}

.margin-note[open] {
  width: 190px;
}

.margin-note[open] summary {
  transform: rotate(0);
  border-bottom-style: dashed;
}

.margin-note[open] summary b {
  transform: rotate(45deg);
}

.note-body {
  padding: 13px 13px 12px;
  transform-origin: top center;
  border: 1px solid #9a773f;
  border-top: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0 21px, #8a6a3818 22px),
    #ddc895;
  box-shadow: 3px 5px 9px #3e2a2040;
  animation: unfold-note .35s ease-out both;
}

.note-body p {
  margin-bottom: 11px;
}

.note-body em {
  color: var(--red);
}

.note-signature {
  display: block;
  color: var(--red);
  font-size: 10px;
  font-style: italic;
  text-align: right;
}

.night-verse {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 36px 0;
  padding: 22px 8px;
  border-top: 1px solid #a17b3c66;
  border-bottom: 1px solid #a17b3c66;
  color: var(--blue);
  font-size: 23px;
  font-style: italic;
  line-height: 1.3;
  text-align: center;
}

.night-verse i {
  color: var(--gold);
  font-size: 9px;
  font-style: normal;
}

.marginal-snail {
  position: absolute;
  top: 52%;
  left: -143px;
  width: 132px;
  margin: 0;
  color: #665235;
  text-align: center;
  animation: snail-wander 9s ease-in-out infinite alternate;
}

.marginal-snail svg {
  display: block;
  width: 130px;
  overflow: visible;
}

.snail-feelers {
  transform-origin: 110px 47px;
  animation: feeler-wiggle 2.4s ease-in-out infinite alternate;
}

.marginal-snail figcaption {
  margin-top: 6px;
  font-size: 11px;
  font-style: italic;
  line-height: 1.45;
  transform: rotate(-3deg);
}

.found-miniature {
  position: relative;
  width: 100%;
  height: 174px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 35px 0;
  border: 5px double #bc954d;
  outline: 1px solid #8a352b;
  outline-offset: 3px;
  background:
    radial-gradient(ellipse at 50% 50%, #c69b3f25, transparent 52%),
    linear-gradient(135deg, #153947, #0c2835);
  box-shadow: inset 0 0 35px #0006;
  color: #d9ba6c;
  text-align: center;
}

.found-miniature::before,
.found-miniature::after {
  content: "❧";
  position: absolute;
  top: 53px;
  color: #a74b36;
  font-size: 44px;
}

.found-miniature::before { left: 40px; transform: rotate(-25deg); }
.found-miniature::after { right: 40px; transform: rotate(155deg); }

.found-miniature strong {
  position: relative;
  z-index: 1;
  font-size: 64px;
  font-weight: 400;
  letter-spacing: .08em;
  line-height: 1;
  text-shadow: 0 2px 12px #e8bd4b33;
}

.found-miniature strong span {
  display: inline-block;
  margin: 0 8px;
  color: #f0cf77;
  font-size: 46px;
  animation: star-breathe 3s ease-in-out infinite;
}

.found-miniature small {
  position: relative;
  z-index: 1;
  margin-top: 13px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 7px;
  letter-spacing: .3em;
}

.found-rays {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 190px;
  height: 190px;
  transform: translate(-50%, -50%);
  opacity: .22;
  background: repeating-conic-gradient(from 0deg, #e5c163 0deg 2deg, transparent 2deg 20deg);
  border-radius: 50%;
  animation: rays-turn 40s linear infinite;
}

.miracle-note {
  top: 58%;
}

.colophon {
  min-height: 88svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 110px 80px 90px;
  text-align: center;
}

.colophon::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22%;
  right: 22%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #9a713a80, transparent);
}

.colophon-cross {
  margin-bottom: 25px;
  color: var(--gold);
  font-size: 47px;
  line-height: 1;
  text-shadow: 1px 2px 0 #8b3a2c;
}

.colophon .rubric {
  margin-bottom: 24px;
}

.colophon h2 {
  margin-bottom: 30px;
  color: var(--dark-red);
  font-size: 43px;
}

.colophon-copy {
  margin-bottom: 27px;
  color: #58462e;
  font-size: 16px;
  line-height: 1.8;
}

.last-line {
  margin-bottom: 36px;
  font-size: 19px;
  line-height: 1.65;
}

.last-line em {
  color: var(--red);
}

.return-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  border: 1px solid #95713b;
  color: #493822;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9px;
  letter-spacing: .15em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .25s, color .25s;
}

.return-link span {
  color: var(--red);
  font-family: Georgia, serif;
  font-size: 17px;
}

.return-link:hover {
  background: var(--blue);
  color: #ead7a8;
}

.return-link:hover span {
  color: var(--bright-gold);
}

.explicit {
  margin: 43px 0 0;
  color: #856a40;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 7px;
  letter-spacing: .25em;
}

/* Native CSS scroll timelines: Chrome turns reading into the animation clock. */
@supports (animation-timeline: view()) {
  .ink {
    animation-name: ink-in;
    animation-duration: 1s;
    animation-timing-function: linear;
    animation-fill-mode: both;
    animation-timeline: view(block);
    animation-range: entry 5% cover 27%;
  }
}

@supports (animation-timeline: scroll()) {
  .reading-progress {
    animation: reading-progress linear both;
    animation-timeline: scroll(root block);
  }

  .wax {
    animation: candle-burn linear both;
    animation-timeline: scroll(root block);
  }

  .flame-travel {
    animation: flame-descends linear both;
    animation-timeline: scroll(root block);
  }

  .night-tint {
    animation: night-falls linear both;
    animation-timeline: scroll(root block);
  }

  .sheet {
    animation: vellum-cools linear both;
    animation-timeline: scroll(root block);
  }

  .candle-label {
    animation: label-fades linear both;
    animation-timeline: scroll(root block);
  }
}

@keyframes ink-in {
  0% {
    opacity: .08;
    clip-path: inset(0 100% 0 0);
    filter: blur(.5px);
  }
  55% { opacity: .88; }
  100% {
    opacity: 1;
    clip-path: inset(0 -4% 0 0);
    filter: blur(0);
  }
}

@keyframes reading-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes candle-burn {
  0%, 8% { transform: scaleY(1); }
  92%, 100% { transform: scaleY(.25); }
}

@keyframes flame-descends {
  0%, 8% { transform: translateY(0); }
  92%, 100% { transform: translateY(109px); }
}

@keyframes night-falls {
  0%, 12% { background-color: rgb(6 13 24 / 0); }
  88%, 100% { background-color: rgb(6 13 24 / .22); }
}

@keyframes vellum-cools {
  0%, 15% { background-color: #e5d2a4; }
  90%, 100% { background-color: #c7bb9d; }
}

@keyframes label-fades {
  0%, 65% { opacity: 1; }
  100% { opacity: .35; }
}

@keyframes flame-flicker {
  0% { transform: rotate(-2deg) scale(.96, 1.02); filter: drop-shadow(0 0 6px #ffb437) drop-shadow(0 0 17px #e58c2d88); }
  24% { transform: rotate(3deg) scale(1.04, .94) skewX(2deg); }
  51% { transform: rotate(-1deg) scale(.93, 1.08); }
  76% { transform: rotate(4deg) scale(1.02, .98) skewX(-3deg); }
  100% { transform: rotate(-3deg) scale(.98, 1.05); filter: drop-shadow(0 0 9px #ffb437) drop-shadow(0 0 23px #e58c2daa); }
}

@keyframes room-flicker {
  0%, 100% { opacity: .66; }
  18% { opacity: .8; }
  43% { opacity: .7; }
  68% { opacity: .85; }
  82% { opacity: .72; }
}

@keyframes quill-write {
  0%, 100% { transform: rotate(-15deg) translate(0, 0); }
  20% { transform: rotate(-13deg) translate(5px, -2px); }
  42% { transform: rotate(-17deg) translate(10px, 1px); }
  58% { transform: rotate(-14deg) translate(6px, 3px); }
  78% { transform: rotate(-16deg) translate(-2px, 0); }
}

@keyframes feather-breathe {
  0%, 100% { transform: rotate(0); }
  45% { transform: rotate(1.5deg); }
  65% { transform: rotate(-1deg); }
}

@keyframes scratch {
  0%, 10% { transform: rotate(-7deg) scaleX(0); opacity: 0; }
  22% { opacity: .8; }
  70%, 100% { transform: rotate(-7deg) scaleX(1); opacity: .65; }
}

@keyframes beckon {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(4px); }
}

@keyframes unfold-note {
  from { opacity: 0; transform: rotateX(-75deg) translateY(-5px); }
  to { opacity: 1; transform: rotateX(0) translateY(0); }
}

@keyframes snail-wander {
  from { transform: translateX(-5px) rotate(-2deg); }
  to { transform: translateX(13px) rotate(1deg); }
}

@keyframes feeler-wiggle {
  from { transform: rotate(-4deg); }
  to { transform: rotate(7deg); }
}

@keyframes star-breathe {
  0%, 100% { transform: scale(.9) rotate(0); filter: brightness(.9); }
  50% { transform: scale(1.12) rotate(15deg); filter: brightness(1.3); }
}

@keyframes rays-turn {
  from { transform: translate(-50%, -50%) rotate(0); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@media (max-width: 1280px) {
  .quill {
    left: 24px;
    transform: scale(.85);
  }

  .margin-note,
  .rubric-note {
    position: relative;
    top: auto;
    right: auto;
    width: auto;
    margin: 34px 0 0;
  }

  .margin-note[open] {
    width: auto;
  }

  .margin-note summary {
    max-width: 260px;
  }

  .note-body {
    max-width: 410px;
  }

  .rubric-note {
    padding: 15px 18px;
    border-left: 1px solid #a13d2d66;
    background: #a77c3210;
  }

  .rubric-note::before {
    display: none;
  }

  .marginal-snail {
    position: relative;
    top: auto;
    left: auto;
    margin: 32px 0 0 auto;
  }
}

@media (max-width: 1200px) {
  .quill {
    display: none;
  }

  .sheet {
    width: min(820px, calc(100% - 220px));
  }
}

@media (max-width: 1050px) {
  .sheet {
    width: min(820px, calc(100% - 150px));
  }

  .candle {
    right: 5px;
    transform: scale(.78);
    transform-origin: center center;
  }

  .candle-label {
    display: none;
  }

  .candle-glow {
    background: radial-gradient(circle at 96% 45%, #ffc15c26, transparent 37%);
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 65px;
  }

  .topbar {
    height: 50px;
    padding: 0 15px;
    font-size: 8px;
    letter-spacing: .13em;
  }

  .office {
    display: none;
  }

  .abbey {
    gap: 8px;
  }

  .abbey-mark {
    font-size: 20px;
  }

  .sheet {
    width: calc(100% - 72px);
    margin: 72px 64px 50px 8px;
  }

  .sheet::before {
    inset: 12px;
  }

  .corner-tl { top: 8px; left: 8px; }
  .corner-tr { top: 8px; right: 8px; }
  .corner-bl { bottom: 8px; left: 8px; }
  .corner-br { right: 8px; bottom: 8px; }

  .hero {
    min-height: calc(100svh - 95px);
    padding: 52px 36px 45px;
  }

  .hero-flourish {
    width: 200px;
  }

  h1 span {
    font-size: 22px;
  }

  h1 em {
    font-size: clamp(47px, 9vw, 64px);
  }

  .hero-deck {
    max-width: 390px;
  }

  .chapter {
    min-height: 90svh;
    padding: 88px 44px;
  }

  .chapter::before {
    left: 44px;
    right: 44px;
  }

  h2 {
    font-size: 38px;
  }

  .text-column p,
  .text-column .opening {
    font-size: 17px;
  }

  .drop-cap {
    width: 69px;
    height: 69px;
    font-size: 56px;
    line-height: 62px;
  }

  .candle {
    top: auto;
    right: 1px;
    bottom: 25px;
    transform: scale(.58);
    transform-origin: right bottom;
  }

  .candle-glow {
    background: radial-gradient(circle at 98% 90%, #ffc15c26, transparent 42%);
  }

  .colophon {
    padding: 90px 40px 75px;
  }

  .colophon h2 {
    font-size: 37px;
  }
}

@media (max-width: 520px) {
  .abbey-sub {
    display: none;
  }

  .sheet {
    width: calc(100% - 52px);
    margin-right: 44px;
  }

  .hero {
    padding: 46px 25px 40px;
  }

  .hero-rubric {
    font-size: 7px;
    letter-spacing: .14em;
  }

  .hero-rubric span {
    padding: 0 4px;
  }

  .hero-flourish {
    width: 175px;
    margin-bottom: 17px;
  }

  h1 span {
    font-size: 19px;
  }

  h1 em {
    font-size: clamp(36px, 12vw, 57px);
  }

  .hero-deck {
    font-size: 13px;
  }

  .arch {
    width: 180px;
    height: 166px;
  }

  .arch strong {
    font-size: 77px;
  }

  .mini-vine {
    display: none;
  }

  .miniature-caption {
    font-size: 10px;
  }

  .miniature-caption span {
    padding: 0 3px;
  }

  .begin-link {
    gap: 9px;
    font-size: 8px;
    letter-spacing: .1em;
  }

  .chapter {
    padding: 78px 28px;
  }

  .chapter::before {
    left: 28px;
    right: 28px;
  }

  .rubric {
    font-size: 8px;
    letter-spacing: .15em;
  }

  h2 {
    font-size: 34px;
  }

  .drop-cap {
    width: 60px;
    height: 60px;
    margin-right: 12px;
    border-width: 3px;
    font-size: 48px;
    line-height: 54px;
  }

  .search-list li {
    flex-wrap: wrap;
    gap: 2px 10px;
  }

  .search-list li b {
    width: 100%;
    padding-left: 18px;
  }

  .night-verse {
    gap: 8px;
    font-size: 19px;
  }

  .found-miniature {
    height: 155px;
  }

  .found-miniature::before,
  .found-miniature::after {
    display: none;
  }

  .found-miniature strong {
    font-size: 55px;
  }

  .found-miniature strong span {
    font-size: 38px;
  }

  .candle {
    right: 0;
    bottom: 18px;
    transform: scale(.43);
  }

  .colophon {
    padding: 80px 28px 70px;
  }

  .colophon h2 {
    font-size: 32px;
  }

  .last-line {
    font-size: 17px;
  }

  .return-link {
    padding: 12px 14px;
    font-size: 8px;
    letter-spacing: .1em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .ink {
    opacity: 1 !important;
    clip-path: none !important;
    filter: none !important;
  }

  .reading-progress {
    transform: scaleX(1);
  }

  .wax,
  .flame-travel {
    transform: none;
  }
}
