:root {
	
	--font-family:
		'Inter Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial,
		sans-serif;
	--font-family-monospace:
		'Lilex Variable', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	
	--border-radius-small: 4px;
	--border-radius-medium: 6px;
	--border-radius-large: 10px;

	
	--icon-stroke-width: 1.75;

	
	--editor-font-family: var(--font-family);
	--editor-font-size: 16px;
	--editor-line-height: 1.6;
	--editor-font-weight: 400;

	
	--editor-background: var(--background);
	--editor-foreground: var(--foreground);
	
	--editor-foreground-muted: var(--foreground-muted);
	--editor-border: var(--border);
	--editor-background-muted: var(--background-muted);

	
	--background-active: var(--background-muted);

	
	--overlay-background: rgba(0, 0, 0, 0.3);

	
	--system-bar-background: initial;

	
	--phone-bar-border: transparent;

	
	--box-shadow-medium: 0 1px 2px rgba(15, 15, 15, 0.06), 0 6px 16px rgba(15, 15, 15, 0.12);
	--box-shadow-small: 0 1px 4px rgba(0, 0, 0, 0.2);

	
	--accent: #a04f6e;
	
	--accent-tint: color-mix(in srgb, var(--accent) 16%, transparent);
	--accent-tint-hover: color-mix(in srgb, var(--accent) 8%, transparent);
	
	--accent-foreground: #ffffff;

	
	--heading-font-family: var(--editor-font-family);
	--heading-font-weight: 700;
	--heading-foreground: var(--editor-foreground);
	
	--heading-border: var(--editor-border);
	--heading-border-width: 0;
	--heading-1-font-size: 1.6em;
	--heading-2-font-size: 1.4em;
	--heading-3-font-size: 1.25em;
	--heading-4-font-size: 1.1em;
	--heading-5-font-size: 1em;
	--heading-6-font-size: 1em;
	--heading-1-font-weight: var(--heading-font-weight);
	--heading-2-font-weight: var(--heading-font-weight);
	--heading-3-font-weight: var(--heading-font-weight);
	--heading-4-font-weight: var(--heading-font-weight);
	--heading-5-font-weight: var(--heading-font-weight);
	--heading-6-font-weight: var(--heading-font-weight);
	--heading-1-foreground: var(--heading-foreground);
	--heading-2-foreground: var(--heading-foreground);
	--heading-3-foreground: var(--heading-foreground);
	--heading-4-foreground: var(--heading-foreground);
	--heading-5-foreground: var(--heading-foreground);
	--heading-6-foreground: var(--heading-foreground);
	--heading-1-padding-top: 0;
	--heading-2-padding-top: 0;
	--heading-3-padding-top: 0;
	--heading-4-padding-top: 0;
	--heading-5-padding-top: 0;
	--heading-6-padding-top: 0;
	--heading-1-border: var(--heading-border);
	--heading-2-border: var(--heading-border);
	--heading-3-border: var(--heading-border);
	--heading-4-border: var(--heading-border);
	--heading-5-border: var(--heading-border);
	--heading-6-border: var(--heading-border);
	--heading-1-border-width: var(--heading-border-width);
	--heading-2-border-width: var(--heading-border-width);
	--heading-3-border-width: var(--heading-border-width);
	--heading-4-border-width: var(--heading-border-width);
	--heading-5-border-width: var(--heading-border-width);
	--heading-6-border-width: var(--heading-border-width);

	
	--markup-foreground: var(--editor-foreground-muted);
	--hr-border: var(--editor-border);

	
	--blockquote-foreground: var(--editor-foreground);
	--blockquote-font-style: normal;
	--blockquote-border: color-mix(in srgb, var(--editor-foreground-muted) 28%, var(--editor-border));
	--blockquote-border-width: 3px;

	
	--code-font-family: var(--font-family-monospace);
	--code-font-size: 0.9em;
	--code-background: var(--editor-background-muted);
	--code-inline-background: var(--code-background);
	
	--code-border: transparent;
	
	--syntax-comment: var(--editor-foreground-muted);

	
	--properties-background: var(--editor-background-muted);
	--properties-border: var(--editor-border);

	
	--viewer-background: color-mix(in srgb, var(--editor-background) 95%, var(--editor-foreground));

	
	--table-font-size: 0.95em;
	--table-border: var(--editor-border);
	--table-header-background: var(--editor-background-muted);
	--table-header-font-weight: 700;
	--table-striped-row-background: transparent;

	
	
	--tex-title-font-size: 2.2em;
	--tex-title-font-weight: 400;
	--tex-title-line-height: 1.25;
	--tex-author-font-size: 1.05em;
	--tex-date-font-size: 0.95em;
	--tex-date-foreground: var(--editor-foreground-muted);
	
	--tex-caption-font-size: 0.9em;
	--tex-caption-font-style: italic;
	--tex-caption-foreground: var(--editor-foreground-muted);
	--tex-script-font-size: 0.8em;
}
@media (prefers-color-scheme: light) {
:root {
	color-scheme: light;

	
	--background: #ffffff;
	--background-muted: #f5f5f5;
	--foreground: #1a1a1a;
	--foreground-muted: #6b6b6b;
	--border: #e0e0e0;
	--link: #2b6cb0;

	
	--error: #c0392b;
	--warning: #8f5e00;

	
	--highlight-background: #ffeb3b;

	
	--syntax-keyword: #7c3aed;
	--syntax-string: #2f7d3f;
	--syntax-number: #a84e08;
	--syntax-function: #2b6cb0;
	--syntax-constant: #ad3da4;
	--syntax-type: #0f766e;

	
	--box-shadow-large:
		0 1px 2px rgba(15, 15, 15, 0.04), 0 8px 24px rgba(15, 15, 15, 0.12),
		0 24px 48px rgba(15, 15, 15, 0.08);
}
}
@media (prefers-color-scheme: dark) {
:root {
	color-scheme: dark;

	--background: #1e1e1e;
	--background-muted: #252525;
	--foreground: #e8e8e8;
	--foreground-muted: #9a9a9a;
	--border: #3a3a3a;
	--link: #63b3ed;

	--error: #ec5a5f;
	--warning: #d9a441;

	
	--highlight-background: #8a7a00;

	--syntax-keyword: #c792ea;
	--syntax-string: #9ece6a;
	--syntax-number: #ff9e64;
	--syntax-function: #63b3ed;
	--syntax-constant: #dc7ce0;
	--syntax-type: #4ec9b0;

	--box-shadow-large:
		0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.45), 0 24px 48px rgba(0, 0, 0, 0.35);
}
}
:root {
	--editor-font-size: 17px;
	--editor-line-height: 1.5;

	--border-radius-medium: 8px;

	--heading-font-family: 'Literata Variable', Georgia, serif;
	--heading-font-weight: 500;
	--heading-1-font-size: 2.35em;
	--heading-2-font-size: 1.3em;
	--heading-2-padding-top: 0.4em;
	--heading-3-font-size: 1em;
	--heading-4-font-size: 1em;
	--heading-3-font-weight: 600;
	--heading-4-font-weight: 600;
	--heading-5-font-weight: 600;
	--heading-6-font-weight: 600;

	--code-inline-background: transparent;
	--table-header-background: transparent;
	--table-header-font-weight: 600;
}
.deft-site {
	--site-width: calc(var(--editor-font-size) * 40);
	--site-side: 12rem;
	--site-gutter: max(1.5rem, calc((100% - var(--site-side) - 10rem - var(--site-width)) / 2));
	display: grid;
	grid-template-columns: var(--site-gutter) var(--site-side) 4rem minmax(0, var(--site-width)) minmax(var(--site-gutter), 1fr);
	grid-template-rows: auto 1fr auto;
	max-width: none;
	padding: 0;
}
.deft-site.deft-site-wide {
	--site-width: calc(var(--editor-font-size) * 53);
}
.deft-site.deft-site-full {
	--site-gutter: clamp(1.5rem, 4vw, 3.5rem);
	grid-template-columns: var(--site-gutter) var(--site-side) 4rem minmax(0, 1fr) var(--site-gutter);
	padding-inline: 0;
}
.deft-site-header {
	display: contents;
}
.deft-site-title {
	grid-area: 1 / 2 / auto / 5;
	margin: 3rem 0;
	font-family: var(--editor-font-family);
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 2.25rem;
	letter-spacing: -0.011em;
}
.deft-site-title a {
	color: var(--heading-foreground);
}
.deft-site-nav {
	grid-area: 2 / 2;
	position: sticky;
	top: 2rem;
	align-self: start;
	flex-direction: column;
	flex-wrap: nowrap;
	gap: 0.5rem;
	max-height: calc(100vh - 4rem);
	max-height: calc(100dvh - 4rem);
	padding: 0.6rem 0;
	overflow-y: auto;
	font-size: 0.875rem;
}
.deft-site-nav a[aria-current] {
	color: var(--heading-foreground);
	font-weight: 600;
}
.deft-site-sections {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	margin-bottom: 0.25rem;
	padding-left: 0.75rem;
	border-left: 1px solid var(--editor-border);
}
.rendered-note h2[id] {
	scroll-margin-top: 1.5rem;
}
.deft-site > main {
	grid-area: 2 / 4;
	min-width: 0;
}
.deft-site:not(:has(.deft-site-nav)) > main {
	grid-column: 2 / 5;
	max-width: var(--site-width);
}
.deft-site.deft-site-full:not(:has(.deft-site-nav)) > main {
	max-width: none;
}
.deft-site-page-title {
	margin-top: 0;
	font-size: var(--heading-1-font-size);
	line-height: 1.15;
	letter-spacing: -0.01em;
}
.deft-site-page-title ~ .deft-site-content {
	margin-top: var(--line);
}
.rendered-note :is(h1, h2) {
	letter-spacing: -0.01em;
}
.rendered-note h1 {
	line-height: 1.15;
}
.rendered-note :is(h3, h4, h5, h6) {
	font-family: var(--editor-font-family);
}
.rendered-note :not(pre) > code {
	padding: 0;
}
.rendered-note pre {
	padding: 0.9rem 1rem;
	tab-size: 4;
}
.rendered-note a:not(.deft-pubs a, .footnote-ref a, .footnote-label),
.deft-site-footer-text a {
	text-decoration: underline;
	text-decoration-color: color-mix(in srgb, currentColor 32%, transparent);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.28em;
}
.rendered-note a:not(.deft-pubs a, .footnote-ref a, .footnote-label):hover,
.deft-site-footer-text a:hover {
	text-decoration-color: currentColor;
}
.deft-site-footer {
	grid-area: 3 / 1 / auto / -1;
	padding-inline: var(--site-gutter);
}
@media screen and (max-width: 860px) {
.deft-site,
	.deft-site.deft-site-full {
		grid-template-columns: var(--site-gutter) minmax(0, 1fr) var(--site-gutter);
		grid-template-rows: auto auto 1fr auto;
	}
.deft-site-title {
		grid-area: 1 / 2;
	}
.deft-site-nav {
		grid-area: 2 / 2;
		position: static;
		flex-direction: row;
		flex-wrap: wrap;
		gap: 0.5rem 1.25rem;
		max-height: none;
		margin-bottom: 1.5rem;
		padding: 0 0 0.75rem;
		
		overflow: visible;
		border-bottom: 1px solid var(--editor-border);
	}
.deft-site-sections {
		display: none;
	}
.deft-site-nav:has(> details) {
		grid-area: 1 / 2;
		place-self: center end;
		margin: 0;
		padding: 0;
		border: 0;
	}
.deft-site:has(.deft-site-nav > details) .deft-site-title {
		padding-right: 3rem;
	}
.deft-site-nav details > div {
		max-width: calc(100vw - 3rem);
	}
.deft-site-nav details .deft-site-sections {
		display: flex;
		gap: 0;
		margin: 0.15rem 0 0.35rem 0.9em;
		padding: 0;
	}
.deft-site-nav details .deft-site-sections a {
		color: var(--editor-foreground-muted);
		white-space: normal;
	}
.deft-site > main,
	.deft-site:not(:has(.deft-site-nav)) > main {
		grid-area: 3 / 2;
	}
.deft-site-footer {
		grid-row: 4;
	}
}
@media screen and (max-width: 600px) {
:root {
		--heading-1-font-size: 1.9em;
	}
}
@media (prefers-color-scheme: light) {
:root {
	color-scheme: light;

	--background: #ffffff;
	--background-muted: #f5f5f5;
	--foreground: #3d3d3d;
	--foreground-muted: #6b6b6b;
	--border: #e0e0e0;
	--link: #1a1a1a;
	--accent: #a04f6e;
	
	--heading-foreground: color-mix(in srgb, var(--foreground) 43%, black);
}
}
@media (prefers-color-scheme: dark) {
:root {
	color-scheme: dark;

	--background: #1a1a1c;
	--background-muted: #262629;
	--foreground: #c4c4c4;
	--foreground-muted: #9a9a9a;
	--border: #33333a;
	--link: #e8e8e8;
	--accent: #cd8ca6;
	--heading-foreground: color-mix(in srgb, var(--foreground) 39%, white);
}
}
