@font-face {
	font-family: "Courier Prime";
	src: url("/_static/courier-prime.woff2") format("woff2");
	font-display: swap;
}

:root {
	--ink: #070808;
	--slab: #0b0c0b;
	--seam: #1c1d1b;
	--spine: #111211;
	--band: #222526;
	--band-lit: #353a3c;
	--sheet-bg: #09090a;
	--sheet-control: #060606;
	--sheet-edge: #83796b;
	--sheet-edge-strong: #6e665a;
	--sheet-text: #b5afa5;
	--sheet-muted: #bdb6aa;
	--spine-text: #beb9b0;
	--spine-edge: #857c6e;
	--board: #857b6d;
	--board-shadow: #202324;
	--parchment: #b8b3a5;
	--parchment-dim: #86847a;
	--ash: #5e5c55;
	--rust: #b86a54;
	--lamp: rgba(220, 214, 190, 0.045);
	--mark: #e3c84f;
	--mark-text: #070808;
	--mark-glow: rgba(227, 200, 79, 0.35);
	--pencil: #86847a;
	--pencil-find: #b8b3a5;
	--pencil-find-glow: rgba(184, 179, 165, 0.3);
	--serif: "EB Garamond", Garamond, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
	--mono: "Courier Prime", "Courier New", Courier, monospace;
	--tracking: 0.3em;
	--gutter: clamp(1rem, 3vw, 2rem);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
}

[hidden] {
	display: none !important;
}

body {
	min-height: 100dvh;
	padding-inline: 1rem;
	color: var(--parchment);
	font-family: var(--serif);
	background: var(--ink);
}

.shaft {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.shaft-dim {
	opacity: 0.55;
}

.vestibule {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2rem;
	min-height: 100dvh;
	padding-inline: 0.5rem;
	text-align: center;
	text-shadow: 0 0 1.5rem var(--ink), 0 0 0.5rem var(--ink);
}

.vestibule h1 {
	margin: 0;
	font-size: clamp(1.25rem, 4vw, 2rem);
	font-weight: 400;
	letter-spacing: var(--tracking);
	text-transform: uppercase;
	text-wrap: balance;
}

.inscription {
	margin: 0;
	max-width: 32ch;
	color: var(--parchment-dim);
	font-style: italic;
	line-height: 1.6;
}

.browse {
	padding: 1rem 2rem;
	border: 1px solid var(--parchment-dim);
	background: var(--ink);
	color: var(--parchment);
	font-size: 0.9rem;
	letter-spacing: var(--tracking);
	text-decoration: none;
	text-transform: uppercase;
	transition: border-color 0.6s, box-shadow 0.6s, color 0.6s;
}

.browse:hover,
.browse:focus-visible {
	border-color: var(--parchment);
	box-shadow: 0 0 2rem var(--lamp);
}

.browse:focus-visible {
	outline: 1px solid var(--parchment);
	outline-offset: 0.35rem;
}

.quiet {
	padding-block: 0.25rem;
	border-bottom: 1px dotted var(--ash);
	color: var(--parchment-dim);
	font-size: 0.8rem;
	font-style: italic;
	text-decoration: none;
	transition: color 0.4s, border-color 0.4s;
}

.quiet:hover,
.quiet:focus-visible {
	border-bottom-color: var(--parchment-dim);
	color: var(--parchment);
}

.vestibule .quiets {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.35rem 1.75rem;
	margin: -0.75rem 0 0;
}

.bar .quiet {
	font-size: 0.75rem;
	font-style: normal;
	letter-spacing: var(--tracking);
	text-transform: uppercase;
	text-shadow: 0 0 1rem var(--ink);
}

.bar-end {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.25rem;
}

.reader {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
	max-width: 60rem;
	margin-inline: auto;
	padding-inline: clamp(0.75rem, 3vw, 2rem);
	padding-block: 1.5rem 3rem;
}

.bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.home {
	color: var(--parchment-dim);
	font-size: 0.8rem;
	letter-spacing: var(--tracking);
	text-decoration: none;
	text-transform: uppercase;
	text-shadow: 0 0 1rem var(--ink);
}

.home:hover,
.home:focus-visible {
	color: var(--parchment);
}

.ghost {
	display: inline-block;
	padding: 0.65rem 1.25rem;
	text-align: center;
	border: 1px solid var(--parchment-dim);
	background: var(--ink);
	color: var(--parchment);
	font: inherit;
	font-size: 0.75rem;
	letter-spacing: var(--tracking);
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
	transition: border-color 0.6s, box-shadow 0.6s, opacity 0.3s;
}

.ghost:hover:not([aria-disabled="true"]),
.ghost:focus-visible {
	border-color: var(--parchment);
	box-shadow: 0 0 2rem var(--lamp);
}

.ghost[aria-disabled="true"] {
	opacity: 0.25;
	cursor: default;
}

.ghost:focus-visible,
.home:focus-visible,
.quiet:focus-visible,
.mode:focus-visible,
.link:focus-visible,
.tab:focus-visible,
.jump input:focus-visible,
.page-scroll:focus-visible {
	outline: 1px solid var(--parchment);
	outline-offset: 0.3rem;
}

.spine-head {
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
	text-shadow: 0 0 1.5rem var(--ink), 0 0 0.5rem var(--ink);
}

.address {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35rem 0.8rem;
	margin: 0;
	color: var(--parchment-dim);
	font-size: 0.78rem;
	letter-spacing: var(--tracking);
	text-transform: uppercase;
}

.address .sep {
	color: var(--ash);
}

.link {
	display: inline;
	padding: 0;
	border: 0;
	border-bottom: 1px dotted var(--parchment-dim);
	background: none;
	color: var(--parchment);
	font: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
	cursor: pointer;
	transition: border-color 0.3s;
}

.link:hover {
	border-bottom-color: var(--parchment);
}

.head-line {
	display: flex;
	align-items: center;
	gap: 0.9rem;
}

.hint {
	flex: none;
	width: 1.6rem;
	height: 1.6rem;
	padding: 0;
	border: 1px solid var(--seam);
	border-radius: 50%;
	background: transparent;
	color: var(--ash);
	font: inherit;
	font-size: 0.75rem;
	line-height: 1;
	cursor: pointer;
}

.hint:hover {
	border-color: var(--parchment-dim);
	color: var(--parchment);
}

.title {
	margin: 0;
	font-size: clamp(1.1rem, 3.4vw, 2rem);
	font-weight: 400;
	letter-spacing: var(--tracking);
	text-transform: uppercase;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.leaf {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	align-self: center;
	max-width: 100%;
	padding: 2rem 2rem 1.5rem;
	border: 1px solid var(--seam);
	background: var(--slab);
}

.page-scroll {
	overflow-x: auto;
	scrollbar-color: var(--ash) transparent;
}

.page {
	margin: 0;
	font-family: var(--mono);
	font-size: 15px;
	line-height: 1.5;
	white-space: pre;
	transition: opacity 0.2s 0.1s;
}

.leaf.htmx-request .page {
	opacity: 0.25;
}

mark {
	background: var(--mark);
	color: var(--mark-text);
	box-shadow: 0 0 0.8rem var(--mark-glow);
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

mark.pencil {
	background: var(--pencil);
	box-shadow: none;
}

mark.pencil.find {
	background: var(--pencil-find);
	box-shadow: 0 0 0.8rem var(--pencil-find-glow);
}

.turn {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.jump {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	color: var(--parchment-dim);
	font-size: 0.8rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.jump input {
	width: 4.5ch;
	padding: 0.35rem 0.4rem;
	border: 1px solid var(--parchment-dim);
	background: var(--ink);
	color: var(--parchment);
	font-family: var(--mono);
	font-size: 1rem;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

.jump input[aria-invalid="true"] {
	border-color: var(--rust);
}

.status {
	margin: 0;
	min-height: 1.5em;
	color: var(--parchment-dim);
	font-style: italic;
	font-size: 0.9rem;
}

.status.error {
	color: var(--rust);
}

.status sup {
	font-size: 0.7em;
}

.status b {
	color: var(--parchment);
	font-family: var(--mono);
	font-style: normal;
	font-weight: 400;
}

.search .inscription {
	max-width: 46ch;
}

.modes {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.mode {
	padding: 0.5rem 1rem;
	border: 1px solid var(--seam);
	background: var(--ink);
	color: var(--parchment-dim);
	font-size: 0.72rem;
	letter-spacing: var(--tracking);
	text-decoration: none;
	text-transform: uppercase;
}

.mode:hover {
	color: var(--parchment);
}

.mode[aria-current="page"] {
	border-color: var(--parchment-dim);
	color: var(--parchment);
}

.blank {
	align-self: stretch;
}

.blank:focus-within {
	border-color: var(--ash);
}

.blank.invalid {
	border-color: var(--rust);
}

.write {
	display: block;
	width: 80ch;
	max-width: 100%;
	min-height: calc(7 * 1.5em);
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	resize: vertical;
	background: transparent;
	color: var(--parchment);
	caret-color: var(--parchment);
	font-family: var(--mono);
	font-size: 15px;
	line-height: 1.5;
	word-break: break-all;
}

.write::placeholder {
	color: var(--ash);
}

.reading {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.cleaned {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding-block-start: 1.25rem;
	border-top: 1px solid var(--seam);
}

.cleaned-label,
.field-label {
	margin: 0;
	color: var(--parchment-dim);
	font-size: 0.7rem;
	letter-spacing: var(--tracking);
	text-transform: uppercase;
}

.cleaned-text {
	margin: 0;
	max-height: 9em;
	overflow: auto;
	font-family: var(--mono);
	font-size: 13px;
	line-height: 1.5;
	white-space: pre-wrap;
	word-break: break-all;
	scrollbar-color: var(--ash) transparent;
}

.cleaned-empty {
	color: var(--ash);
	font-family: var(--serif);
	font-style: italic;
}

.cleaned-note,
.field-note {
	margin: 0;
	color: var(--parchment-dim);
	font-size: 0.85rem;
	font-style: italic;
	line-height: 1.6;
	overflow-wrap: anywhere;
}

.cleaned-note code {
	color: var(--parchment);
	font-family: var(--mono);
	font-style: normal;
	white-space: pre-wrap;
}

.count {
	color: var(--parchment-dim);
	font-size: 0.72rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	font-variant-numeric: tabular-nums;
}

.count b {
	color: var(--parchment);
	font-weight: 400;
}

.count.over b {
	color: var(--rust);
}

.spine-field {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	align-self: center;
	width: 100%;
	max-width: 38rem;
}

.spine-band {
	padding: 1.1rem 1.25rem;
	overflow-x: auto;
	scrollbar-color: var(--ash) transparent;
	border: 1px solid var(--spine-edge);
	border-radius: 3px;
	background:
		linear-gradient(to right,
			transparent 0.7rem, var(--band) 0.7rem, var(--band) calc(0.7rem + 1px), transparent calc(0.7rem + 1px),
			transparent calc(100% - 0.7rem - 1px), var(--band) calc(100% - 0.7rem - 1px), var(--band) calc(100% - 0.7rem), transparent calc(100% - 0.7rem)),
		linear-gradient(to bottom, #090a09, #191a18 38%, #151614 62%, #080908);
}

.spine-band:focus-within {
	border-color: var(--sheet-text);
}

.spine-band input {
	display: block;
	width: calc(25ch + 2px);
	margin-inline: auto;
	padding: 0.2rem 0 0.35rem;
	border: 0;
	outline: 0;
	background: repeating-linear-gradient(to right, var(--ash) 0 calc(1ch - 3px), transparent calc(1ch - 3px) 1ch) bottom / 100% 1px no-repeat;
	color: var(--spine-text);
	caret-color: var(--spine-text);
	font-family: var(--mono);
	font-size: clamp(0.95rem, 4.2vw, 1.35rem);
	white-space: pre;
}

.sheet {
	width: min(52rem, calc(100% - 2rem));
	max-height: 88dvh;
	padding: 0;
	border: 1px solid var(--sheet-edge);
	background: var(--sheet-bg);
	color: var(--sheet-text);
	scrollbar-color: var(--sheet-edge-strong) var(--sheet-bg);
}

.sheet.wide {
	width: min(68rem, calc(100% - 2rem));
}

.sheet::backdrop {
	background: rgba(2, 3, 3, 0.82);
}

.sheet .ghost {
	border-color: var(--sheet-edge-strong);
	background: var(--sheet-control);
	color: var(--sheet-text);
}

.sheet .ghost:focus-visible {
	outline-color: var(--sheet-text);
}

.sheet-body {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	padding: 1.5rem var(--gutter) 1.75rem;
}

.sheet-body:focus {
	outline: none;
}

.sheet-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.sheet-head h2 {
	margin: 0;
	color: var(--sheet-muted);
	font-size: 0.8rem;
	font-weight: 400;
	letter-spacing: var(--tracking);
	text-transform: uppercase;
}

.sheet-head h2 b {
	color: var(--sheet-text);
	font-weight: 400;
}

.full-number {
	margin: 0;
	color: var(--sheet-text);
	font-family: var(--mono);
	font-size: 13px;
	line-height: 1.55;
	word-break: break-all;
}

.sheet-foot {
	margin: 0;
	color: var(--sheet-muted);
	font-style: italic;
	line-height: 1.6;
}

.sheet-foot sup {
	font-size: 0.7em;
}

.found-words {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin: 0;
	padding: 1.5rem 0 1.75rem;
	border-top: 1px solid var(--seam);
	border-bottom: 1px solid var(--seam);
	list-style: none;
}

.found-words li {
	color: var(--parchment);
	font-family: var(--mono);
	font-size: clamp(1.5rem, 6.5vw, 2.4rem);
	letter-spacing: 0.32em;
	text-align: center;
	text-indent: 0.32em;
}

.found-prose {
	margin: 0;
	max-width: 46ch;
	align-self: center;
	color: var(--sheet-text);
	font-style: italic;
	line-height: 1.7;
	text-align: center;
}

.found-note {
	margin: 0;
	align-self: center;
	color: var(--sheet-muted);
	font-style: italic;
	line-height: 1.6;
	text-align: center;
}

.found-addr {
	margin: 0;
	align-self: center;
	color: var(--ash);
	font-family: var(--mono);
	font-size: 0.75rem;
	text-align: center;
	word-break: break-all;
}

.found-foot {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
}

.sign {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	align-items: center;
}

.sign-form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
	justify-content: center;
}

.sign-form label {
	color: var(--sheet-muted);
	font-size: 0.72rem;
	letter-spacing: var(--tracking);
	text-transform: uppercase;
}

.sign-form input {
	width: 13ch;
	padding: 0.6rem 0.5rem;
	border: 1px solid var(--sheet-edge);
	background: var(--sheet-control);
	color: var(--parchment);
	font-family: var(--mono);
	font-size: 0.95rem;
	letter-spacing: 0.1em;
	text-align: center;
}

.sign-form input::placeholder {
	color: var(--ash);
	letter-spacing: normal;
}

.sign-form input:focus-visible {
	outline: 1px solid var(--parchment);
	outline-offset: 0.2rem;
}

.sign-form input[aria-invalid="true"] {
	border-color: var(--rust);
}

.sign-error {
	color: var(--rust);
}

.found-signed {
	margin: 0;
	color: var(--sheet-muted);
	font-style: italic;
	text-align: center;
}

.found-signed b {
	color: var(--parchment);
	font-family: var(--mono);
	font-style: normal;
	letter-spacing: 0.16em;
}

.tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.tab {
	padding: 0.5rem 1rem;
	border: 1px solid var(--sheet-edge);
	background: var(--sheet-control);
	color: var(--sheet-muted);
	font: inherit;
	font-size: 0.72rem;
	letter-spacing: var(--tracking);
	text-transform: uppercase;
	cursor: pointer;
}

.tab:hover {
	color: var(--sheet-text);
}

.tab[aria-selected="true"] {
	border-color: var(--sheet-edge-strong);
	color: var(--sheet-text);
}

.wall {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	min-height: 12rem;
	transition: opacity 0.2s;
}

.wall.htmx-request {
	opacity: 0.4;
}

.shelf {
	display: grid;
	grid-template-columns: 4.5rem minmax(0, 1fr);
	align-items: end;
	gap: 0.75rem;
	scroll-margin-block: 1rem;
}

.shelf-label {
	margin: 0;
	padding-block-end: 0.6rem;
	color: var(--sheet-muted);
	font-size: 0.7rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.shelf[data-current="true"] .shelf-label {
	color: var(--sheet-text);
}

.spines {
	position: relative;
	display: grid;
	grid-template-columns: repeat(32, minmax(0, 1fr));
	gap: 1px;
	padding-block-end: 4px;
	border-bottom: 5px solid var(--board);
	box-shadow: 0 1px 0 var(--board-shadow);
}

.book {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 12.5rem;
	padding: 1.4rem 0;
	overflow: hidden;
	border: 1px solid var(--spine-edge);
	border-radius: 3px 3px 1px 1px;
	background:
		linear-gradient(to bottom,
			transparent 0.7rem, var(--band) 0.7rem, var(--band) calc(0.7rem + 1px), transparent calc(0.7rem + 1px),
			transparent calc(0.7rem + 3px), var(--band) calc(0.7rem + 3px), var(--band) calc(0.7rem + 4px), transparent calc(0.7rem + 4px),
			transparent calc(100% - 0.7rem - 4px), var(--band) calc(100% - 0.7rem - 4px), var(--band) calc(100% - 0.7rem - 3px), transparent calc(100% - 0.7rem - 3px),
			transparent calc(100% - 0.7rem - 1px), var(--band) calc(100% - 0.7rem - 1px), var(--band) calc(100% - 0.7rem), transparent calc(100% - 0.7rem)),
		linear-gradient(to right, #090a09, #191a18 38%, #151614 62%, #080908);
	color: var(--spine-text);
	font-family: var(--mono);
	font-size: 10px;
	line-height: 1;
	text-align: center;
	text-decoration: none;
	writing-mode: vertical-rl;
	white-space: pre;
	cursor: pointer;
	transform-origin: 50% 100%;
	transition: transform 0.25s ease-out, box-shadow 0.25s ease-out, color 0.3s, border-color 0.3s;
}

.book.missing {
	visibility: hidden;
	cursor: default;
}

.sheet:not(.still) .book:hover,
.book:focus-visible,
.book.pulled,
.book[aria-current="true"] {
	--band: var(--band-lit);
	color: var(--sheet-text);
	border-color: var(--sheet-edge-strong);
	outline: none;
}

@media (hover: hover) {
	.sheet:not(.still) .book:hover {
		z-index: 2;
		transform: translateY(-0.6rem) scale(1.24);
		box-shadow: 0 0.8rem 1.6rem rgba(0, 0, 0, 0.8), 0 0 2rem rgba(54, 49, 29, 0.06);
	}
}

.book:focus-visible:not([data-resting]),
.book.pulled {
	z-index: 2;
	transform: translateY(-0.6rem) scale(1.24);
	box-shadow: 0 0.8rem 1.6rem rgba(0, 0, 0, 0.8), 0 0 2rem rgba(54, 49, 29, 0.06);
}

.caption {
	position: sticky;
	bottom: 0;
	z-index: 3;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.4rem 1rem;
	min-height: 2.6em;
	margin: 0 calc(-1 * var(--gutter)) -1.75rem;
	padding: 0.75rem var(--gutter) 1rem;
	border-top: 1px solid var(--sheet-edge);
	background: var(--sheet-bg);
	color: var(--sheet-muted);
	font-size: 0.72rem;
	letter-spacing: var(--tracking);
	text-transform: uppercase;
}

.cap-title {
	color: var(--sheet-text);
	font-family: var(--mono);
	font-size: 1rem;
	font-weight: 400;
	letter-spacing: 0.08em;
	text-transform: none;
	white-space: pre-wrap;
}

.take {
	margin-inline-start: auto;
}

.sheet .inscription {
	max-width: 54ch;
	color: var(--sheet-text);
}

.sheet .rates {
	color: var(--sheet-muted);
	opacity: 0.7;
}

.about-body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 14rem;
	align-items: start;
	gap: 1.75rem;
}

.about-text {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.plate {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	margin: 0;
}

.plate-frame {
	aspect-ratio: 3 / 4;
	border: 1px dashed var(--sheet-edge-strong);
	background: var(--sheet-control);
}

.plate figcaption {
	color: var(--sheet-muted);
	font-size: 0.7rem;
	letter-spacing: var(--tracking);
	text-transform: uppercase;
	opacity: 0.55;
}

.tally {
	margin: 0;
	color: var(--parchment-dim);
	font-style: italic;
	line-height: 1.7;
}

.tally b {
	color: var(--parchment);
	font-family: var(--mono);
	font-style: normal;
	font-weight: 400;
}

.rates {
	margin: 0;
	max-width: 60ch;
	color: var(--ash);
	font-size: 0.85rem;
	font-style: italic;
	line-height: 1.6;
}

.sieve {
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
	transition: opacity 0.2s;
}

.sieve.htmx-request {
	opacity: 0.4;
}

.sift {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}

.sift-label {
	margin-inline-end: 0.4rem;
	color: var(--ash);
	font-size: 0.72rem;
	letter-spacing: var(--tracking);
	text-transform: uppercase;
}

.sift a {
	padding: 0.4rem 0.9rem;
	border: 1px solid var(--seam);
	color: var(--ash);
	font-size: 0.72rem;
	letter-spacing: var(--tracking);
	text-decoration: none;
	text-transform: uppercase;
}

.sift a:hover {
	color: var(--parchment);
}

.sift a[aria-current="true"] {
	border-color: var(--parchment-dim);
	color: var(--parchment);
}

.ledger {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--seam);
	list-style: none;
}

.entry {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas:
		"word    hand"
		"letters when"
		"where   where";
	align-items: baseline;
	gap: 0.4rem 1.5rem;
	padding-block: 1.4rem 1.5rem;
	border-bottom: 1px solid var(--seam);
}

.entry-word {
	grid-area: word;
	justify-self: start;
	border-bottom: 1px dotted transparent;
	color: var(--pencil-find);
	font-family: var(--mono);
	font-size: clamp(1.2rem, 4.5vw, 1.7rem);
	letter-spacing: 0.22em;
	text-decoration: none;
	overflow-wrap: anywhere;
	transition: border-color 0.3s;
}

.entry:hover .entry-word {
	border-bottom-color: var(--parchment);
}

.entry-word:focus-visible {
	outline: 1px solid var(--parchment);
	outline-offset: 0.3rem;
}

.entry-letters {
	grid-area: letters;
	margin: 0;
	color: var(--parchment-dim);
	font-size: 0.7rem;
	letter-spacing: var(--tracking);
	text-transform: uppercase;
}

.entry-where {
	grid-area: where;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.2rem 0.7rem;
	margin: 0.45rem 0 0;
	color: var(--parchment-dim);
	font-size: 0.72rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.entry-where b {
	color: var(--parchment);
	font-family: var(--mono);
	font-weight: 400;
	letter-spacing: 0.06em;
}

.entry-where .sep {
	color: var(--ash);
}

.entry-hand {
	grid-area: hand;
	justify-self: end;
	margin: 0;
	color: var(--parchment-dim);
	font-size: 0.7rem;
	letter-spacing: var(--tracking);
	text-align: right;
	text-transform: uppercase;
}

.entry-hand b {
	color: var(--parchment);
	font-family: var(--mono);
	font-weight: 400;
	letter-spacing: 0.16em;
}

.entry-hand.open {
	color: var(--ash);
	font-style: italic;
	letter-spacing: normal;
	text-transform: none;
}

.entry-when {
	grid-area: when;
	justify-self: end;
	margin: 0;
	color: var(--ash);
	font-size: 0.7rem;
	letter-spacing: 0.2em;
	text-align: right;
	text-transform: uppercase;
}

.more {
	display: flex;
	justify-content: center;
	padding-block: 2rem;
}

.more .ghost.htmx-request {
	opacity: 0.35;
}

.ledger-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.5rem;
	padding-block: 4rem 3rem;
	border-top: 1px solid var(--seam);
	text-align: center;
}

.ledger-empty p {
	margin: 0;
	max-width: 34ch;
	color: var(--parchment-dim);
	font-style: italic;
	line-height: 1.7;
}

@media (max-width: 560px) {
	.reader {
		gap: 2rem;
	}

	.sieve {
		gap: 2rem;
	}

	.about-body {
		grid-template-columns: minmax(0, 1fr);
	}

	.plate {
		max-width: 14rem;
	}

	.leaf {
		padding: 1.25rem 1rem 1rem;
	}

	.turn {
		justify-content: center;
	}

	.entry {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "word" "letters" "where" "hand" "when";
		gap: 0.3rem;
	}

	.entry-hand,
	.entry-when {
		justify-self: start;
		text-align: left;
	}

	.entry-hand {
		margin-block-start: 0.6rem;
	}
}

@media (max-width: 640px) {
	.sheet,
	.sheet.wide {
		width: 100%;
		max-width: 100%;
		height: 100%;
		max-height: 100%;
		margin: 0;
		border: 0;
	}

	.sheet-body {
		padding-block-start: 1.25rem;
	}

	.tabs {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}

	.shelf {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	.shelf-label {
		padding: 0;
	}

	.spines {
		grid-template-columns: repeat(32, 1.9rem);
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x proximity;
		scroll-padding-inline: 0.5rem;
		padding: 2rem 0.5rem 4px;
		scrollbar-color: var(--ash) transparent;
	}

	.book {
		scroll-snap-align: start;
	}

	.book:focus-visible:not([data-resting]),
	.book.pulled {
		transform: translateY(-0.3rem) scale(1.12);
	}

	.caption {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas: "label take" "title title";
		align-items: center;
		gap: 0.4rem 0.75rem;
		padding-block-end: calc(1rem + env(safe-area-inset-bottom));
	}

	.cap-label {
		grid-area: label;
	}

	.cap-wall {
		display: none;
	}

	.cap-title {
		grid-area: title;
		overflow-wrap: anywhere;
	}

	.take {
		grid-area: take;
		margin: 0;
		padding: 0.45rem 0.8rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.book,
	.page {
		transition: none;
	}
}
