/**
 * okaidia theme for JavaScript, CSS and HTML
 * Loosely based on Monokai textmate theme by http://www.monokai.nl/
 * @author ocodia
 */

code[class*="language-"],
pre[class*="language-"] {
	color: #f8f8f2;
	background: none;
	text-shadow: 0 1px rgba(0, 0, 0, 0.3);
	font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
	font-size: 1em;
	text-align: left;
	white-space: pre;
	word-spacing: normal;
	word-break: normal;
	word-wrap: normal;
	line-height: 1.5;

	-moz-tab-size: 4;
	-o-tab-size: 4;
	tab-size: 4;

	-webkit-hyphens: none;
	-moz-hyphens: none;
	-ms-hyphens: none;
	hyphens: none;
}

/* Code blocks */
pre[class*="language-"] {
	padding: 1em;
	margin: .5em 0;
	overflow: auto;
	border-radius: 0.3em;
}

:not(pre) > code[class*="language-"],
pre[class*="language-"] {
	background: #272822;
}

/* Inline code */
:not(pre) > code[class*="language-"] {
	padding: .1em;
	border-radius: .3em;
	white-space: normal;
}

.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
	color: #8292a2;
}

.token.punctuation {
	color: #f8f8f2;
}

.token.namespace {
	opacity: .7;
}

.token.property,
.token.tag,
.token.constant,
.token.symbol,
.token.deleted {
	color: #f92672;
}

.token.boolean,
.token.number {
	color: #ae81ff;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
	color: #a6e22e;
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string,
.token.variable {
	color: #f8f8f2;
}

.token.atrule,
.token.attr-value,
.token.function,
.token.class-name {
	color: #e6db74;
}

.token.keyword {
	color: #66d9ef;
}

.token.regex,
.token.important {
	color: #fd971f;
}

.token.important,
.token.bold {
	font-weight: bold;
}
.token.italic {
	font-style: italic;
}

.token.entity {
	cursor: help;
}
/* Must load after prism-okaidia.css, it uses the same selector */
:not(pre) > code[class*="language-"], pre[class*="language-"] {
	background-color: var(--pico-card-sectioning-background-color);
}
/*
 * New diff- syntax
 */

pre[class*="language-diff-"] {
	--eleventy-code-padding: 1.25em;
	padding-left: var(--eleventy-code-padding);
	padding-right: var(--eleventy-code-padding);
}
.token.deleted {
	background-color: hsl(0, 51%, 37%);
	color: inherit;
}
.token.inserted {
	background-color: hsl(126, 31%, 39%);
	color: inherit;
}

/* Make the + and - characters unselectable for copy/paste */
.token.prefix.unchanged,
.token.prefix.inserted,
.token.prefix.deleted {
	-webkit-user-select: none;
	user-select: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding-top: 2px;
	padding-bottom: 2px;
}
.token.prefix.inserted,
.token.prefix.deleted {
	width: var(--eleventy-code-padding);
	background-color: rgba(0,0,0,.2);
}

/* Optional: full-width background color */
.token.inserted:not(.prefix),
.token.deleted:not(.prefix) {
	display: block;
	margin-left: calc(-1 * var(--eleventy-code-padding));
	margin-right: calc(-1 * var(--eleventy-code-padding));
	text-decoration: none; /* override del, ins, mark defaults */
	color: inherit; /* override del, ins, mark defaults */
}
.js main pre[data-copy-ready="true"] {
	position: relative;
	padding-top: 3rem;
}

.js main pre > button[data-copy-code] {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	margin: 0;
	padding: 0.3rem 0.65rem;
	font-size: 0.75rem;
	line-height: 1.2;
}
.appreciation {
	--appreciation-spark: var(--pico-color-yellow-100);
	margin-block: clamp(3rem, 7vw, 4.5rem);
	padding: clamp(2rem, 5vw, 3rem) var(--pico-block-spacing-horizontal);
	border-radius: var(--pico-border-radius);
	background: var(--pico-card-background-color);
	box-shadow: var(--pico-card-box-shadow);
	text-align: center;
}

.appreciation:not([hidden]) {
	margin-block-end: 0;
}

.appreciation:not([hidden]) + footer {
	margin-block-start: calc(var(--pico-spacing) * 0.8);
}

.appreciation:not([hidden]) + footer > hr:first-child {
	display: none;
}

.appreciation:not([hidden]) + footer + .bio {
	margin-block-start: clamp(7rem, 12vw, 10rem);
}

/* This bundle is emitted before Pico. The compound selector keeps Pico's later
   [type="button"] rule from restoring the site's standard filled button. */
.appreciation button.appreciation__button {
	-webkit-appearance: none;
	appearance: none;
	position: relative;
	z-index: 1;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-block-size: 44px;
	margin: 0;
	padding: 0.75rem 1rem;
	overflow: visible;
	border: 0;
	border-radius: 0.5rem;
	background: transparent;
	box-shadow: none;
	color: var(--pico-primary);
	font-family: var(--pico-alt-font-family);
	font-size: 1.08rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.35;
	text-decoration: none;
	transition: color 280ms ease;
}

.appreciation__button > * {
	position: relative;
	z-index: 1;
}

.appreciation__label {
	position: relative;
	display: block;
	min-inline-size: 11.5rem;
	text-align: center;
	transition: color 400ms ease, opacity 280ms ease;
}

.appreciation__label::after {
	position: absolute;
	inset: 0;
	color: var(--pico-primary);
	content: attr(data-appreciated-label);
	opacity: 0;
	transition: opacity 400ms ease;
}

.appreciation__button.is-appreciated .appreciation__label {
	color: transparent;
}

.appreciation__button.is-appreciated .appreciation__label::after {
	opacity: 1;
}

.appreciation button.appreciation__button[aria-disabled="true"] {
	cursor: progress;
}

.appreciation__button[aria-disabled="true"] .appreciation__label {
	opacity: 0.65;
}

.appreciation__heart {
	position: relative;
	display: block;
	inline-size: 2.4rem;
	margin-block-end: 0.35rem;
	overflow: visible;
	transform-origin: center;
	transform: rotate(-8deg);
	transition: transform 340ms cubic-bezier(0.2, 0.9, 0.2, 1.35);
}

.appreciation__button::before {
	position: absolute;
	inset: 1.95rem auto auto 50%;
	z-index: 0;
	inline-size: 3.3rem;
	block-size: 3.3rem;
	border: 2px solid var(--pico-primary);
	border-radius: 50%;
	content: "";
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, -50%);
}

.appreciation__button::after {
	position: absolute;
	inset: 1.95rem auto auto 50%;
	z-index: 2;
	inline-size: 0.36rem;
	block-size: 0.36rem;
	border-radius: 50%;
	box-shadow:
		0 -2.8rem 0 0.04rem var(--appreciation-spark),
		2.4rem -1rem 0 -0.04rem var(--appreciation-spark),
		0.4rem 2.6rem 0 0.02rem var(--appreciation-spark),
		-2.2rem -0.7rem 0 -0.03rem var(--appreciation-spark);
	content: "";
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, -50%) scale(0.15);
}

.appreciation__heart path {
	fill: transparent;
	stroke: currentColor;
	stroke-linejoin: round;
	stroke-width: 1.8;
	transition: fill 310ms ease, stroke 310ms ease, stroke-width 310ms ease;
}

.appreciation__button:focus-visible {
	outline: max(3px, var(--pico-outline-width)) solid var(--pico-primary);
	outline-offset: 3px;
	background: transparent;
	box-shadow: none;
}

.appreciation__button:focus-visible .appreciation__heart {
	transform: rotate(-11deg) scale(1.1);
}

.appreciation__button:focus-visible .appreciation__heart path {
	fill: color-mix(in srgb, var(--pico-primary) 24%, transparent);
	stroke-width: 2.2;
}

.appreciation__button:disabled {
	cursor: default;
	opacity: 1;
}

.appreciation__button.is-appreciated .appreciation__heart path {
	fill: var(--pico-primary);
	stroke: var(--pico-primary);
}

.appreciation__button.is-appreciated .appreciation__heart {
	transform: rotate(0deg) scale(1.18);
}

.appreciation__count {
	margin: 0.7rem 0 0;
	color: var(--pico-muted-color);
	font-family: var(--pico-alt-font-family);
	font-size: 0.9rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.appreciation.is-celebrating .appreciation__heart {
	animation: appreciation-heart-pop 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.appreciation.is-celebrating .appreciation__button::before {
	animation: appreciation-pulse 850ms ease-out;
}

.appreciation.is-celebrating .appreciation__button::after {
	animation: appreciation-spark 870ms cubic-bezier(0.1, 0.75, 0.2, 1) both;
}

@media (hover: hover) {
	.appreciation__button:not(:disabled):hover {
		background: transparent;
		box-shadow: none;
		color: var(--pico-primary-hover);
	}

	.appreciation__button:not(:disabled):hover .appreciation__heart {
		transform: translateY(-2px) rotate(-13deg) scale(1.12);
	}

	.appreciation__button:not(:disabled):hover .appreciation__heart path {
		fill: color-mix(in srgb, var(--pico-primary) 24%, transparent);
		stroke-width: 2.2;
	}
}

@keyframes appreciation-heart-pop {
	0% { transform: translateY(-2px) rotate(-13deg) scale(1.12); }
	45% { transform: rotate(-15deg) scale(1.45); }
	75% { transform: rotate(-2deg) scale(1.22); }
	100% { transform: rotate(0deg) scale(1.18); }
}

@keyframes appreciation-pulse {
	0% { opacity: 0; transform: translate(-50%, -50%) scale(0.65); }
	25% { opacity: 0.45; }
	100% { opacity: 0; transform: translate(-50%, -50%) scale(1.8); }
}

@keyframes appreciation-spark {
	0% { opacity: 0; transform: translate(-50%, -50%) scale(0.15); }
	22% { opacity: 1; }
	72% { opacity: 1; }
	100% { opacity: 0; transform: translate(-50%, -50%) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
	.appreciation__button,
	.appreciation__heart,
	.appreciation__heart path,
	.appreciation__label,
	.appreciation__label::after {
		animation: none !important;
		transition: none !important;
	}

	.appreciation__button::before,
	.appreciation__button::after {
		display: none;
	}
}

@media (forced-colors: active) {
	.appreciation {
		border: 1px solid CanvasText;
		background: Canvas;
		box-shadow: none;
	}

	.appreciation__button,
	.appreciation__button.is-appreciated {
		border: 1px solid ButtonText;
		background: ButtonFace;
		box-shadow: none;
		color: ButtonText;
		forced-color-adjust: auto;
	}

	.appreciation__button:focus-visible {
		outline: 3px solid Highlight;
		box-shadow: none;
	}

	.appreciation__button.is-appreciated .appreciation__heart path {
		fill: ButtonText;
		stroke: ButtonText;
	}

	.appreciation__button.is-appreciated .appreciation__label::after {
		color: ButtonText;
	}

	.appreciation__button.is-appreciated .appreciation__label {
		color: transparent;
		forced-color-adjust: none;
	}

	.appreciation__button::before,
	.appreciation__button::after {
		display: none;
	}
}