/*
 * Lima's Cloud: styles on top of Twenty Twenty.
 * Twenty Twenty sets html { font-size: 62.5% }, so 1rem = 10px.
 */

:root {
	--lc-purple: #2f0c61;
	--lc-purple-soft: #b29bd3;
	--lc-pink: #fa4273;
	--lc-accent: #db0f45;
	--lc-bg: #f4f3e8;
	--lc-card: #fffef8;
	--lc-border: #dcdbc4;
	--lc-muted: #626245;
	--lc-text: #1b1830;
	--lc-code-bg: #1c1530;
	--lc-radius: 1.2rem;
	--lc-wide: 104rem;
	--lc-sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, sans-serif;
	--lc-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

/* ---------------------------------------------------------------------------
 * Post typography (moved from the Customizer's Additional CSS)
 * ------------------------------------------------------------------------ */

.entry-content > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.is-style-wide) {
	max-width: 72rem;
	width: calc(100% - 4rem);
}

h1.entry-title,
h2.entry-title {
	font-size: 2.8rem;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.singular .intro-text {
	font-size: 1.8rem;
	line-height: 1.55;
}

.entry-content h2 {
	font-size: 2.6rem;
	scroll-margin-top: 2.4rem;
}

.entry-content h3 {
	font-size: 2.2rem;
}

@media (min-width: 700px) {
	h1.entry-title,
	h2.entry-title {
		font-size: 4rem;
	}

	.singular .intro-text {
		font-size: 2rem;
		max-width: 64rem;
	}

	.entry-content h2 {
		font-size: 3.2rem;
	}

	.entry-content h3 {
		font-size: 2.6rem;
	}
}

@media (min-width: 1000px) {
	h1.entry-title {
		font-size: 4.8rem;
	}

	.singular .entry-header .entry-title {
		max-width: 88rem;
	}
}

/* ---------------------------------------------------------------------------
 * Post header: left-aligned, lined up with the featured image and the text
 * ------------------------------------------------------------------------ */

.single-post .entry-header {
	text-align: left;
}

.single-post .entry-header-inner.section-inner {
	max-width: var(--lc-wide);
}

.single-post .entry-header .entry-title,
.single-post .intro-text {
	margin-left: 0;
	margin-right: 0;
}

.single-post .intro-text {
	max-width: 72rem;
	opacity: 0.9;
}

.single-post .entry-header .post-meta-wrapper {
	max-width: none;
	margin-left: 0;
}

.single-post .entry-header .post-meta,
.single-post .entry-categories-inner {
	justify-content: flex-start;
}

.single-post .featured-media-inner {
	max-width: var(--lc-wide);
}

.single-post .featured-media img {
	border-radius: var(--lc-radius);
}

/* ---------------------------------------------------------------------------
 * Table of contents: a sticky column beside the text on wide screens,
 * a folding box above the text otherwise
 * ------------------------------------------------------------------------ */

.lc-toc {
	width: calc(100% - 4rem);
	max-width: 72rem;
	margin: 0 auto 4rem;
	font-family: var(--lc-sans);
}

.lc-toc-details {
	border: 1px solid var(--lc-border);
	border-radius: var(--lc-radius);
	background: var(--lc-card);
	padding: 1.4rem 2rem;
}

.lc-toc-title {
	cursor: pointer;
	font-size: 1.3rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--lc-muted);
}

.lc-toc-list {
	list-style: none;
	margin: 1.2rem 0 0;
	padding: 0;
	counter-reset: lc-toc;
}

.lc-toc-list li {
	margin: 0;
	counter-increment: lc-toc;
}

.lc-toc-list a {
	display: block;
	padding: 0.6rem 0 0.6rem 1.4rem;
	border-left: 2px solid transparent;
	color: var(--lc-text);
	font-size: 1.5rem;
	line-height: 1.4;
	text-decoration: none;
}

.lc-toc-list a:hover,
.lc-toc-list a:focus {
	color: var(--lc-accent);
}

.lc-toc-list a[aria-current] {
	border-left-color: var(--lc-accent);
	color: var(--lc-accent);
	font-weight: 600;
}

@media (min-width: 1200px) {
	.post-inner.has-toc {
		display: grid;
		grid-template-columns: 24rem minmax(0, 72rem);
		column-gap: 8rem;
		justify-content: center;
		align-items: start;
	}

	.post-inner.has-toc .entry-content {
		grid-column: 2;
		grid-row: 1;
	}

	.post-inner.has-toc .entry-content > *:not(.alignleft):not(.alignright) {
		width: 100%;
	}

	.lc-toc {
		grid-column: 1;
		grid-row: 1;
		position: sticky;
		top: 3.2rem;
		width: auto;
		max-height: calc(100vh - 6.4rem);
		overflow-y: auto;
		margin: 0;
	}

	.lc-toc-details {
		border: 0;
		background: none;
		padding: 0;
	}

	.lc-toc-title {
		pointer-events: none;
		list-style: none;
	}

	.lc-toc-title::-webkit-details-marker {
		display: none;
	}

	.lc-toc-list {
		border-left: 1px solid var(--lc-border);
	}

	.lc-toc-list a {
		margin-left: -1px;
	}

	/* Line the author box and related posts up with the wider layout. */
	.single-post #site-content .section-inner {
		max-width: var(--lc-wide);
	}
}

/* ---------------------------------------------------------------------------
 * Code
 * ------------------------------------------------------------------------ */

.entry-content :not(pre) > code {
	padding: 0.15em 0.4em;
	border-radius: 0.4rem;
	background: rgba(47, 12, 97, 0.08);
	color: var(--lc-purple);
	font-family: var(--lc-mono);
	font-size: 0.85em;
	font-weight: 500;
}

.entry-content pre,
.entry-content .wp-block-code {
	padding: 2rem 2.4rem;
	border: 0;
	border-radius: var(--lc-radius);
	background: var(--lc-code-bg);
	color: #e9e6f5;
	font-family: var(--lc-mono);
	font-size: 1.45rem;
	line-height: 1.65;
	overflow-x: auto;
	tab-size: 2;
}

.entry-content pre code {
	display: block;
	padding: 0;
	background: none;
	color: inherit;
	font: inherit;
}

.lc-code {
	position: relative;
}

.entry-content .lc-code > pre {
	width: 100%;
	max-width: none;
	margin: 0;
}

.lc-code-copy {
	position: absolute;
	top: 0.8rem;
	right: 0.8rem;
	padding: 0.5rem 1rem;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 0.6rem;
	background: rgba(255, 255, 255, 0.06);
	color: #cfc8e6;
	font-family: var(--lc-sans);
	font-size: 1.2rem;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	opacity: 0;
	transition: opacity 0.15s;
}

.lc-code:hover .lc-code-copy,
.lc-code-copy:focus {
	opacity: 1;
}

.lc-code-copy:hover {
	background: rgba(255, 255, 255, 0.14);
	text-decoration: none;
}

@media (hover: none) {
	.lc-code-copy {
		opacity: 1;
	}
}

/* highlight.js tokens, tuned to the brand purple/pink */
.hljs-comment,
.hljs-quote {
	color: #8c84a8;
	font-style: italic;
}

.hljs-keyword,
.hljs-selector-tag,
.hljs-literal,
.hljs-doctag {
	color: #ff7aa2;
}

.hljs-string,
.hljs-regexp,
.hljs-addition {
	color: #a6e3a1;
}

.hljs-number,
.hljs-symbol,
.hljs-bullet {
	color: #f9c97c;
}

.hljs-title,
.hljs-title.function_,
.hljs-section,
.hljs-built_in {
	color: #89c4ff;
}

.hljs-attr,
.hljs-attribute,
.hljs-property,
.hljs-meta,
.hljs-name {
	color: #c7a6ff;
}

.hljs-variable,
.hljs-template-variable,
.hljs-params,
.hljs-type {
	color: #ffd8a8;
}

.hljs-deletion {
	color: #ff8c8c;
}

/* GitHub Gist embeds: undo Twenty Twenty's table styles and match the code blocks above. */
.entry-content .gist {
	margin-top: 3.2rem;
	margin-bottom: 3.2rem;
}

.entry-content .gist .gist-file {
	margin: 0;
	border: 0;
	border-radius: var(--lc-radius);
	overflow: hidden;
	background: var(--lc-code-bg);
}

.entry-content .gist .gist-data {
	border: 0;
	background: var(--lc-code-bg);
}

.entry-content .gist .blob-wrapper {
	padding: 1.4rem 0;
}

.entry-content .gist .file {
	margin: 0;
}

.entry-content .gist table {
	width: auto;
	margin: 0;
	border: 0;
	background: none;
	font-size: inherit;
}

.entry-content .gist tr,
.entry-content .gist td {
	border: 0;
	background: none;
}

.entry-content .gist td.blob-num,
.entry-content .gist td.blob-code {
	padding: 0 1.6rem;
	font-family: var(--lc-mono);
	font-size: 1.4rem;
	line-height: 1.65;
}

.entry-content .gist td.blob-num {
	min-width: 4.4rem;
	padding-right: 0.8rem;
	color: #6b6385;
	text-align: right;
	user-select: none;
}

.entry-content .gist td.blob-num::before {
	color: inherit;
}

.entry-content .gist td.blob-code {
	color: #e9e6f5;
	white-space: pre;
}

.entry-content .gist .gist-meta {
	padding: 0.9rem 1.6rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	background: #251c3d;
	color: #9d95b8;
	font-family: var(--lc-sans);
	font-size: 1.25rem;
}

.entry-content .gist .gist-meta a {
	color: #cfc8e6;
	font-weight: 600;
	text-decoration: none;
}

.entry-content .gist .gist-meta a:hover {
	text-decoration: underline;
}

.entry-content .gist .pl-c {
	color: #8c84a8;
	font-style: italic;
}

.entry-content .gist .pl-k,
.entry-content .gist .pl-s1 .pl-pse {
	color: #ff7aa2;
}

.entry-content .gist .pl-s,
.entry-content .gist .pl-pds,
.entry-content .gist .pl-sr {
	color: #a6e3a1;
}

.entry-content .gist .pl-c1,
.entry-content .gist .pl-cce {
	color: #f9c97c;
}

.entry-content .gist .pl-en,
.entry-content .gist .pl-e {
	color: #89c4ff;
}

.entry-content .gist .pl-ent,
.entry-content .gist .pl-smi {
	color: #c7a6ff;
}

.entry-content .gist .pl-v,
.entry-content .gist .pl-s1,
.entry-content .gist .pl-smw {
	color: #ffd8a8;
}

/* ---------------------------------------------------------------------------
 * Author box
 * ------------------------------------------------------------------------ */

.lc-author {
	display: flex;
	gap: 2.4rem;
	align-items: flex-start;
	max-width: 72rem;
	margin: 6rem auto 0;
	padding: 3.2rem;
	border: 1px solid var(--lc-border);
	border-radius: var(--lc-radius);
	background: var(--lc-card);
	font-family: var(--lc-sans);
}

.lc-author-photo,
.lc-intro-photo {
	flex: none;
	width: 8.8rem;
	height: 8.8rem;
	border-radius: 50%;
	object-fit: cover;
}

.lc-eyebrow {
	margin: 0 0 0.4rem;
	color: var(--lc-muted);
	font-size: 1.3rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.lc-author-name {
	margin: 0 0 1rem;
	font-size: 2.4rem;
}

.lc-author-bio p {
	margin: 0 0 1.4rem;
	font-size: 1.7rem;
	line-height: 1.55;
}

.lc-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem 2rem;
	align-items: center;
	margin: 0;
	font-size: 1.6rem;
	font-weight: 600;
}

.lc-links a {
	text-decoration: none;
}

.lc-links a:hover,
.lc-links a:focus {
	text-decoration: underline;
}

@media (max-width: 599px) {
	.lc-author {
		flex-direction: column;
		padding: 2.4rem;
	}
}

/* ---------------------------------------------------------------------------
 * Section headings, card grid and cards
 * ------------------------------------------------------------------------ */

.lc-section {
	padding: 5rem 0 2rem;
}

.lc-related {
	padding: 6rem 0 2rem;
}

.lc-section-title {
	margin: 0 0 2.4rem;
	font-size: 2.4rem;
	letter-spacing: -0.01em;
}

.lc-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 2.4rem;
}

@media (min-width: 700px) {
	.lc-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 3.2rem;
	}
}

@media (min-width: 1000px) {
	.lc-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.lc-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--lc-border);
	border-radius: var(--lc-radius);
	background: var(--lc-card);
	font-family: var(--lc-sans);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.lc-card:hover,
.lc-card:focus-within {
	transform: translateY(-2px);
	box-shadow: 0 1.2rem 3rem -1.2rem rgba(47, 12, 97, 0.3);
}

.lc-card-media {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--lc-purple);
}

.lc-card-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
}

.lc-card-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #4a9ff5, #7c55f4 55%, var(--lc-purple));
}

.lc-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 2rem 2.4rem 2.4rem;
}

.lc-card-category {
	margin: 0 0 0.8rem;
	color: var(--lc-accent);
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.lc-card-title {
	margin: 0 0 1rem;
	font-size: 2.1rem;
	line-height: 1.25;
	letter-spacing: -0.01em;
}

.lc-card-title a {
	color: var(--lc-text);
	text-decoration: none;
}

/* The title link covers the whole card. */
.lc-card-title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.lc-card-title a:focus {
	outline: none;
}

.lc-card:focus-within {
	outline: 2px solid var(--lc-accent);
	outline-offset: 2px;
}

.lc-card-excerpt {
	margin: 0 0 1.6rem;
	color: #45423a;
	font-size: 1.55rem;
	line-height: 1.5;
}

.lc-card-meta {
	display: flex;
	gap: 0.6rem;
	margin: auto 0 0;
	color: var(--lc-muted);
	font-size: 1.35rem;
}

@media (min-width: 1000px) {
	.lc-card--featured {
		grid-column: 1 / -1;
		display: grid;
		grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
	}

	.lc-card--featured .lc-card-media {
		aspect-ratio: auto;
		min-height: 36rem;
	}

	.lc-card--featured .lc-card-body {
		justify-content: center;
		padding: 4rem;
	}

	.lc-card--featured .lc-card-title {
		font-size: 2.8rem;
		line-height: 1.15;
		letter-spacing: -0.02em;
	}

	.lc-card--featured .lc-card-excerpt {
		font-size: 1.7rem;
	}

	.lc-card--featured .lc-card-meta {
		margin-top: 0;
	}
}

/* ---------------------------------------------------------------------------
 * Homepage intro
 * ------------------------------------------------------------------------ */

.lc-intro {
	padding: 0;
	background: var(--lc-purple);
	color: #fff;
	font-family: var(--lc-sans);
}

.lc-intro-inner {
	display: flex;
	gap: 2.4rem;
	align-items: center;
	padding: 2.4rem 0 5.6rem;
}

.lc-intro-photo {
	width: 10.4rem;
	height: 10.4rem;
	border: 3px solid rgba(255, 255, 255, 0.85);
}

.lc-intro-title {
	margin: 0 0 0.8rem;
	color: #fff;
	font-size: 3.2rem;
	letter-spacing: -0.02em;
}

.lc-intro-text {
	max-width: 64rem;
	margin: 0 0 1.6rem;
	color: #e6dcf5;
	font-size: 1.8rem;
	line-height: 1.5;
}

.lc-intro .lc-links a {
	color: #fff;
}

.lc-button,
.lc-intro .lc-links .lc-button {
	display: inline-block;
	padding: 0.9rem 1.8rem;
	border-radius: 999px;
	background: var(--lc-pink);
	color: #fff;
	font-size: 1.5rem;
	text-decoration: none;
}

.lc-button:hover,
.lc-button:focus {
	background: #ff5a86;
	text-decoration: none;
}

@media (min-width: 700px) {
	.lc-intro-inner {
		gap: 3.2rem;
		padding: 3.2rem 0 7.2rem;
	}

	.lc-intro-photo {
		width: 13.6rem;
		height: 13.6rem;
	}

	.lc-intro-title {
		font-size: 4.4rem;
	}

	.lc-intro-text {
		font-size: 2rem;
	}
}

@media (max-width: 599px) {
	.lc-intro-inner {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* ---------------------------------------------------------------------------
 * Archive and Blog page headers
 * ------------------------------------------------------------------------ */

.lc-listing .archive-header {
	text-align: left;
}

.lc-listing .archive-header-inner .archive-title {
	margin: 0;
	font-size: 3.2rem;
}

.lc-listing .archive-subtitle {
	max-width: 64rem;
	margin: 1.2rem 0 0;
}

.lc-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin: 2.4rem 0 0;
	padding: 0;
	list-style: none;
	font-family: var(--lc-sans);
}

.lc-chips li {
	margin: 0;
}

.lc-chips a {
	display: inline-flex;
	gap: 0.6rem;
	align-items: center;
	padding: 0.7rem 1.4rem;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 999px;
	color: #fff;
	font-size: 1.5rem;
	font-weight: 600;
	text-decoration: none;
}

.lc-chips a:hover,
.lc-chips a:focus {
	border-color: var(--lc-pink);
	background: rgba(250, 66, 115, 0.15);
}

.lc-chip-count {
	color: var(--lc-purple-soft);
	font-weight: 500;
}

@media (min-width: 700px) {
	.lc-listing .archive-header-inner .archive-title {
		font-size: 4.4rem;
	}
}

.lc-listing .pagination-wrapper {
	padding-bottom: 6rem;
}
