/* LadyFly redesign layer on top of the Ruby theme: same palette, navigation and
   motion as the landing (landing_v2). Loaded after built/screen.css. */

:root {
	--lf-coral: #fa6c7a;
	--lf-coral-deep: #f65060;
	--lf-warm: #fff8f6;
	--lf-blush: #ffe3e6;
	--lf-blush-deep: #ffd0d6;
	--lf-rose-text: #b9404d;
	--lf-ink: #171717;
	--lf-muted: #6d6d6d;
	--lf-font: 'Montserrat', system-ui, sans-serif;
	--color-primary-text: var(--lf-ink);
	--ghost-accent-color: var(--lf-coral-deep);
	--font-sans: var(--lf-font);
	--gh-font-heading: var(--lf-font);
	--gh-font-body: var(--lf-font);
}

body,
.gh-site,
.site-content,
.site-main {
	font-family: var(--lf-font);
	color: var(--lf-ink);
	background: #fff;
}

h1,
h2,
h3,
h4,
.gh-article-title,
.post-title {
	font-family: var(--lf-font);
	letter-spacing: -0.02em;
}

/* ---------- reading / scroll progress ---------- */
.lf-progress {
	position: fixed;
	inset: 0 0 auto;
	height: 3px;
	z-index: 100;
	pointer-events: none;
}

.lf-progress i {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, var(--lf-coral), var(--lf-coral-deep));
	transform: scaleX(0);
	transform-origin: left;
}

/* ---------- header ---------- */
.lf-head {
	position: sticky;
	top: 0;
	z-index: 90;
	padding: 16px 16px 0;
}

.lf-head-pill {
	display: flex;
	align-items: center;
	gap: 22px;
	width: fit-content;
	max-width: 100%;
	margin: 0 auto;
	padding: 8px 8px 8px 22px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.82);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border: 1px solid rgba(255, 255, 255, 0.95);
	box-shadow: 0 14px 34px -14px rgba(246, 80, 96, 0.4);
}

.lf-logo img {
	display: block;
	height: 22px;
	width: auto;
}

.lf-nav .nav {
	display: flex;
	gap: 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lf-nav .nav a {
	font-size: 14px;
	font-weight: 600;
	color: var(--lf-ink);
	text-decoration: none;
	transition: color 0.2s;
}

.lf-nav .nav a:hover,
.lf-nav .nav-current a {
	color: var(--lf-coral-deep);
}

/* the landing CTA button replaces the "download" menu item */
.lf-nav .nav li:has(a[href$='/get']) {
	display: none;
}

.lf-icon-btn {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--lf-warm);
	color: var(--lf-ink);
	cursor: pointer;
}

.lf-icon-btn svg {
	width: 18px;
	height: 18px;
}

.lf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 11px 20px;
	border-radius: 999px;
	background: var(--lf-coral-deep);
	color: #fff !important;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	transition: transform 0.2s, box-shadow 0.2s;
}

.lf-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 24px -12px rgba(246, 80, 96, 0.7);
}

.lf-burger {
	display: none;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--lf-warm);
	cursor: pointer;
}

.lf-burger span {
	display: block;
	width: 16px;
	height: 2px;
	margin: 4px auto;
	background: var(--lf-ink);
	border-radius: 2px;
}

@media (max-width: 767px) {
	.lf-head-pill {
		width: 100%;
		gap: 10px;
		padding-left: 16px;
	}

	.lf-logo {
		margin-right: auto;
	}

	.lf-nav {
		display: none;
		position: absolute;
		top: calc(100% + 8px);
		left: 16px;
		right: 16px;
		padding: 18px 20px;
		border-radius: 24px;
		background: rgba(255, 255, 255, 0.96);
		box-shadow: 0 14px 34px -14px rgba(246, 80, 96, 0.4);
	}

	.lf-head.is-open .lf-nav {
		display: block;
	}

	.lf-nav .nav {
		flex-direction: column;
		gap: 14px;
	}

	.lf-nav .nav a {
		font-size: 16px;
	}

	.lf-burger {
		display: block;
	}

	.lf-btn {
		padding: 9px 14px;
		font-size: 13px;
	}
}

/* ---------- blog hero ---------- */
.lf-hero {
	position: relative;
	overflow: hidden;
	margin-top: -110px;
	padding: 170px 16px 64px;
	background: var(--lf-warm);
}

.lf-hero-inner {
	position: relative;
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}

.lf-eyebrow {
	font-family: ui-monospace, Menlo, monospace;
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--lf-coral-deep);
}

.lf-hero-title {
	max-width: 760px;
	margin: 0;
	font-size: clamp(34px, 5vw, 56px);
	font-weight: 800;
	line-height: 1.06;
	letter-spacing: -0.03em;
	color: var(--lf-ink);
	text-wrap: balance;
}

.lf-search {
	display: flex;
	align-items: center;
	gap: 10px;
	width: min(420px, 100%);
	margin-top: 8px;
	padding: 14px 20px;
	border: 1px solid rgba(255, 255, 255, 0.95);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.85);
	box-shadow: 0 14px 34px -18px rgba(246, 80, 96, 0.45);
	color: var(--lf-muted);
	font: 500 15px var(--lf-font);
	text-align: left;
	cursor: pointer;
	transition: box-shadow 0.2s, transform 0.2s;
}

.lf-search:hover {
	transform: translateY(-2px);
	box-shadow: 0 18px 38px -18px rgba(246, 80, 96, 0.6);
}

.lf-search svg {
	width: 18px;
	height: 18px;
	color: var(--lf-coral-deep);
}

/* digital layer */
.lf-grid {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image: linear-gradient(rgba(246, 80, 96, 0.07) 1px, transparent 1px),
		linear-gradient(90deg, rgba(246, 80, 96, 0.07) 1px, transparent 1px);
	background-size: 40px 40px;
	-webkit-mask-image: radial-gradient(ellipse at 40% 40%, #000 30%, transparent 75%);
	mask-image: radial-gradient(ellipse at 40% 40%, #000 30%, transparent 75%);
}

.lf-orb {
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
	animation: lf-drift 14s ease-in-out infinite;
}

.lf-orb-a {
	width: 640px;
	height: 640px;
	right: -200px;
	top: -240px;
	background: radial-gradient(circle, #ffdade 0%, rgba(255, 218, 222, 0) 70%);
}

.lf-orb-b {
	width: 460px;
	height: 460px;
	left: -180px;
	bottom: -260px;
	background: radial-gradient(circle, #ffe3e6 0%, rgba(255, 227, 230, 0) 70%);
	animation-delay: -7s;
}

/* ---------- post feed ---------- */
.site-main.gh-inner,
.gh-inner {
	max-width: 1200px;
}

.post-feed {
	gap: 36px 24px;
	padding-top: 48px;
}

.post-feed .post {
	border-radius: 28px;
	background: #fff;
	box-shadow: none;
	overflow: visible;
	transition: transform 0.3s ease;
}

.post-feed .post .post-link {
	display: flex;
	flex-direction: column;
	gap: 12px;
	height: 100%;
}

.post-feed .post-media {
	margin: 0;
	border-radius: 22px;
	overflow: hidden;
	background: var(--lf-warm);
}

.post-feed .post-image {
	transition: transform 0.6s ease;
}

.post-feed .post:hover {
	transform: translateY(-4px);
}

.post-feed .post:hover .post-image {
	transform: scale(1.05);
}

.post-feed .post-wrapper {
	padding: 0 4px;
}

.post-feed .post-tag {
	font-family: ui-monospace, Menlo, monospace;
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--lf-coral-deep);
}

.post-feed .post-title {
	margin-top: 6px;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--lf-ink);
	transition: color 0.2s;
}

.post-feed .post:hover .post-title {
	color: var(--lf-coral-deep);
}

.post-feed .post-excerpt {
	margin-top: 8px;
	font-size: 14px;
	line-height: 1.55;
	color: var(--lf-muted);
}

.post-feed .post-footer {
	padding: 0 4px;
	border: 0;
}

.post-feed .post-more {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
	color: var(--lf-coral-deep);
}

.post-feed .post-more::after {
	content: ' →';
	display: inline-block;
	transition: transform 0.2s;
}

.post-feed .post:hover .post-more::after {
	transform: translateX(4px);
}

/* ---------- article ---------- */
.lf-back {
	display: inline-flex;
	width: fit-content;
	justify-self: start;
	align-self: flex-start;
	align-items: center;
	gap: 6px;
	margin-bottom: 20px;
	padding: 8px 16px;
	border-radius: 999px;
	background: var(--lf-blush);
	color: var(--lf-rose-text);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	transition: background 0.2s, transform 0.2s;
}

.lf-back:hover {
	background: var(--lf-blush-deep);
	transform: translateX(-3px);
}

.lf-back-bottom {
	margin-top: 32px;
}

.gh-article-header {
	position: relative;
	isolation: isolate;
}

.gh-article-header::before {
	content: '';
	position: absolute;
	inset: -60px -40vw 40% -40vw;
	z-index: -1;
	pointer-events: none;
	background-image: linear-gradient(rgba(246, 80, 96, 0.06) 1px, transparent 1px),
		linear-gradient(90deg, rgba(246, 80, 96, 0.06) 1px, transparent 1px);
	background-size: 40px 40px;
	-webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 65%);
	mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 65%);
}

.gh-article-title {
	font-weight: 800;
	letter-spacing: -0.03em;
}

.gh-article-meta,
.gh-article-meta a {
	color: var(--lf-muted);
}

.gh-article-tag {
	color: var(--lf-coral-deep) !important;
}

.gh-article-image img {
	border-radius: 28px;
}

.gh-content a {
	color: var(--lf-coral-deep);
}

.gh-content blockquote {
	border-left-color: var(--lf-coral);
}

.gh-content ul li::marker {
	color: var(--lf-coral);
}

#table-of-contents,
.table-of-contents {
	border-radius: 24px !important;
	background: var(--lf-warm);
	border-color: var(--lf-blush-deep) !important;
}

.lf-promo {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	margin: 40px 0 8px;
	padding: 28px;
	border-radius: 28px;
	background: linear-gradient(135deg, var(--lf-coral-deep), var(--lf-coral));
	color: #fff;
	position: relative;
	overflow: hidden;
}

.lf-promo .lf-eyebrow {
	color: var(--lf-blush);
}

.lf-promo b {
	font-size: 20px;
	line-height: 1.35;
}

.lf-promo p {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	opacity: 0.92;
}

.lf-promo .lf-btn {
	margin-top: 6px;
	background: #fff;
	color: var(--lf-coral-deep) !important;
}

.lf-promo::after {
	content: '';
	position: absolute;
	width: 320px;
	height: 320px;
	right: -90px;
	top: -140px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	animation: lf-drift 12s ease-in-out infinite;
}

.navigation-item {
	border-radius: 22px;
	background: var(--lf-warm);
	transition: transform 0.2s;
}

.navigation-item:hover {
	transform: translateY(-3px);
}

.navigation-label {
	color: var(--lf-coral-deep);
}

.related-wrapper {
	background: var(--lf-warm);
}

/* ---------- footer ---------- */
.lf-foot {
	margin-top: 64px;
	padding: 48px 16px 32px;
	background: var(--lf-warm);
}

.lf-foot-inner,
.lf-foot-bottom {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 28px;
}

.lf-foot-inner {
	padding-bottom: 28px;
	border-bottom: 1px solid #f6d9dc;
}

.lf-foot-brand {
	max-width: 320px;
}

.lf-foot-brand img {
	height: 24px;
	width: auto;
}

.lf-foot-brand p {
	margin: 12px 0 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--lf-muted);
}

.lf-foot .nav {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 26px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lf-foot .nav a {
	font-size: 14px;
	font-weight: 600;
	color: var(--lf-ink);
	text-decoration: none;
}

.lf-foot .nav a:hover,
.lf-foot-contact a {
	color: var(--lf-coral-deep);
}

.lf-foot-contact a {
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.lf-foot-bottom {
	padding-top: 18px;
	font-size: 12px;
	color: var(--lf-muted);
}

.lf-foot-bottom .nav a {
	font-size: 12px;
	font-weight: 500;
	color: var(--lf-muted);
	text-decoration: underline;
}

/* ---------- motion ---------- */
@keyframes lf-drift {
	0%,
	100% {
		transform: translate(0, 0) scale(1);
	}
	50% {
		transform: translate(-30px, 20px) scale(1.08);
	}
}

.lf-reveal {
	opacity: 0;
	transform: translateY(24px);
	transition:
		opacity 0.7s ease,
		transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
	transition-delay: var(--lf-delay, 0ms);
}

.lf-reveal.is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}

	.lf-reveal {
		opacity: 1;
		transform: none;
	}
}
