:root {
	color-scheme: dark;
	font-family: "Courier New", Courier, monospace;
	background: #000;
	color: #fff;
}
* {
	box-sizing: border-box;
}
body {
	margin: 0;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	isolation: isolate;
}
body::before {
	content: "";
	position: fixed;
	inset-block: 0;
	left: 50%;
	transform: translateX(-50%);
	width: min(100% - 2rem, 880px);
	background: #000;
	box-shadow: 0 0 90px 70px #000;
	pointer-events: none;
	z-index: -1;
}
a {
	color: inherit;
	text-underline-offset: 0.25em;
}
a:hover {
	color: #000;
	background: #fff;
}
button,
input,
textarea,
select {
	font: inherit;
	color: #fff;
	background: #000;
	border: 1px solid #ffffff60;
	border-radius: 0;
	max-width: 100%;
}
button {
	padding: 0.7rem 1rem;
	cursor: pointer;
}
button:hover {
	color: #000;
	background: #fff;
}
button:disabled {
	border-style: dashed;
	cursor: wait;
}
input,
textarea,
select {
	padding: 0.65rem;
}
input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]),
select {
	width: 100%;
}
select {
	appearance: base-select;
	padding-right: 2.5rem;
	cursor: pointer;
}
select::picker(select) {
	appearance: base-select;
	color: #fff;
	background: #000;
	border: 1px solid #ffffff60;
	padding: 0.25rem;
}
select::picker-icon {
	width: 0.45rem;
	height: 0.45rem;
	border: solid #fff;
	border-width: 0 1px 1px 0;
	transform: translateY(-0.1rem) rotate(45deg);
}
select:open::picker-icon {
	transform: translateY(0.1rem) rotate(225deg);
}
select option {
	color: #fff;
	background: #000;
	padding: 0.45rem 0.65rem;
}
select option:checked,
select option:hover,
select option:focus {
	color: #000;
	background: #fff;
}
input[type="radio"],
input[type="checkbox"] {
	appearance: none;
	display: inline-grid;
	place-items: center;
	width: 1.1rem;
	height: 1.1rem;
	margin: 0 0.45rem 0 0;
	padding: 0;
	border: 1px solid #ffffff80;
	vertical-align: -0.2rem;
	cursor: pointer;
}
input[type="radio"] {
	border-radius: 50%;
}
input[type="radio"]:checked {
	background: radial-gradient(circle, #fff 0 40%, transparent 45%);
}
input[type="checkbox"]:checked {
	background: #fff;
}
input[type="checkbox"]:checked::after {
	content: "";
	width: 0.3rem;
	height: 0.6rem;
	border: solid #000;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg) translate(-0.05rem, -0.05rem);
}
input[type="radio"]:disabled,
input[type="checkbox"]:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}
textarea {
	resize: vertical;
	width: 100%;
}
:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 5px;
}
::selection {
	background: #fff;
	color: #000;
}
[hidden] {
	/* biome-ignore lint/complexity/noImportantStyles: Keep hidden controls out of the layout. */
	display: none !important;
}
.skip {
	position: absolute;
	top: -5rem;
	padding: 1rem;
	background: #000;
	z-index: 3;
}
.skip:focus {
	top: 0;
}
.site-header,
main,
.site-footer {
	width: min(100% - 3rem, 800px);
	margin-inline: auto;
	position: relative;
}
.site-header {
	padding-block: 3rem 1.75rem;
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 1.25rem;
	border-bottom: 1px solid #ffffff40;
}
.wordmark {
	font-size: 1.1rem;
	font-weight: 400;
	letter-spacing: -0.04em;
	text-decoration: none;
}
.wordmark span {
	margin-left: 0.6rem;
	font-weight: 400;
}
nav {
	display: flex;
	flex-wrap: wrap;
	gap: 1.4rem;
	font-size: 0.8rem;
}
nav a {
	text-decoration: none;
}
nav a[aria-current="page"] {
	text-decoration: underline;
}
main {
	flex: 1;
	padding-block: 4.5rem 5rem;
}
h1 {
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 400;
	font-size: clamp(2.5rem, 5vw, 3.8rem);
	line-height: 1.15;
	letter-spacing: -0.05em;
	margin-block: 0 3rem;
	overflow-wrap: anywhere;
}
h2 {
	font-size: 1.4rem;
}
.null-mark {
	font-weight: 400;
	color: #aaa;
}
.story-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 1.5rem;
	padding-block: 1.65rem;
	border-top: 1px solid #ffffff30;
	text-decoration: none;
}
.story-row:hover {
	color: #fff;
	background: #ffffff0a;
}
.row-title {
	display: block;
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 400;
	font-size: 1.6rem;
	line-height: 1.25;
	overflow-wrap: anywhere;
}
.story-row:hover .row-title {
	text-decoration: underline;
	text-decoration-thickness: 1px;
}
.row-description {
	display: block;
	margin-top: 0.7rem;
	line-height: 1.6;
	font-size: 0.8rem;
	color: #bdbdbd;
}
.row-status {
	font-size: 0.7rem;
	align-self: start;
	padding-top: 0.25rem;
	white-space: nowrap;
	color: #aaa;
}
.notebook + .notebook {
	margin-top: 3rem;
}
.notebook:has(.story-entry) .empty-writing {
	display: none;
}
.story-entry h3 {
	margin: 0;
}
.story-entry p,
.story-entry li {
	font-size: 0.85rem;
	line-height: 1.8;
}
.section-list .prose {
	font-size: 1.2rem;
	line-height: 1.5;
}
.section-list .prose p,
.section-entry {
	margin: 0;
	border-top: 1px solid #ffffff30;
	padding-block: 1rem;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.2rem;
	font-weight: 400;
	line-height: 1.5;
}
.story-entry .row-title {
	display: block;
	font-size: inherit;
	line-height: inherit;
}
.site-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
	font-size: 0.8rem;
	padding-block: 1.5rem;
	border-top: 1px solid #ffffff40;
	color: #bdbdbd;
}
.reading {
	max-width: 66ch;
	margin-inline: auto;
	min-width: 0;
}
.draft-label,
.empty-writing {
	font:
		0.8rem / 1.7 "Courier New",
		Courier,
		monospace;
	overflow-wrap: anywhere;
}
.draft-label {
	margin-block: 0 1rem;
	color: #aaa;
}
.story-heading h1 {
	font-size: clamp(2rem, 5vw, 3.4rem);
	margin-bottom: 2rem;
}
.prose {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.2rem;
	line-height: 1.85;
	overflow-wrap: anywhere;
}
.prose p {
	margin-block: 1.25em;
}
.prose table {
	display: block;
	width: max-content;
	max-width: 100%;
	overflow-x: auto;
}
.prose th,
.prose td {
	white-space: nowrap;
}
.prose img {
	display: block;
	width: 100%;
	height: auto;
}
.prose h2 {
	margin-top: 2em;
}
.prose hr {
	border: 0;
	text-align: center;
	margin-block: 2rem;
}
.prose hr::after {
	content: "* * *";
	letter-spacing: 0.4em;
}
pre {
	background: #000;
	color: #fff;
	border: 1px solid #fff;
	overflow-x: auto;
	padding: 1rem;
	font-size: 0.85rem;
	line-height: 1.6;
}
.giallo-l {
	display: inline-block;
	min-height: 1lh;
	width: 100%;
}
.giallo-ln {
	display: inline-block;
	user-select: none;
	margin-right: 0.4em;
	padding: 0.4em;
	min-width: 3ch;
	text-align: right;
}
.draft-list {
	border-top: 1px solid #ffffff40;
	margin-top: 4rem;
	padding-top: 1.5rem;
	line-height: 1.6;
}
blockquote {
	border-left: 1px solid #fff;
	padding-left: 1rem;
	margin-inline: 0;
	overflow-wrap: anywhere;
}
.motion-control {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	cursor: pointer;
}
.reference-field {
	position: fixed;
	inset: 0;
	z-index: -2;
	pointer-events: none;
	width: 100%;
	height: 100%;
	display: block;
}
@media (max-width: 640px) {
	.site-header,
	main,
	.site-footer {
		width: calc(100% - 2rem);
	}
	.site-header {
		padding-top: 1.5rem;
	}
	nav {
		gap: 1rem;
	}
	main {
		padding-block: 3rem 4rem;
	}
	.story-row {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.75rem;
	}
	.row-status {
		justify-self: start;
	}
	.prose {
		font-size: 1.1rem;
	}
}
@media (prefers-reduced-motion: reduce) {
	.motion-control {
		display: none;
	}
}
