/* === RESET & BASE === */
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

:root {
	--ink: #0f172a; /* deep text */
	--muted: #64748b; /* secondary text */
	--paper: #f7faf7; /* soft greenish paper */
	--accent-1: #22c55e; /* green */
	--accent-2: #14b8a6; /* teal */
	--accent-3: #0ea5e9; /* cyan (subtle) */
	--ring: rgba(34, 197, 94, 0.35);
}

body {
	font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
		Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji",
		"Segoe UI Emoji", sans-serif;
	background: var(--paper);
	color: var(--ink);
	line-height: 1.75;
	padding: 2rem;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* === CONTAINER === */
.article-container {
	max-width: 760px;
	margin: auto;
	padding-bottom: 1rem;
}

/* === HEADER === */
.article-header {
	text-align: center;
	margin-bottom: 2rem;
}
.header-row-fixed {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 0 1rem;
	text-align: center;
}
.logo-fixed {
	position: absolute;
	left: 0;
	top: 22%;
	transform: translateY(-50%);
	width: 140px;
	height: auto;
	filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.06));
}

/* Multi-line title */
.multi-line-title {
	font-family: "Playfair Display", serif;
	font-size: 2.45rem;
	font-weight: 700;
	color: #15202b;
	line-height: 1.2;
	text-align: center;
	margin-top: 1rem;
}
.gradient-text {
	background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	text-fill-color: transparent;
	animation: gradientGlow 3s ease-in-out infinite alternate;
}

/* Subheadline */
.subheadline {
	margin-top: 0.65rem;
	font-size: 1.12rem;
	color: var(--muted);
}

/* === ARTICLE CONTENT === */
.article-content p {
	margin: 1.15rem 0;
	font-size: 1.08rem;
}
h2 {
	font-family: "Playfair Display", serif;
	font-size: 1.7rem;
	margin-top: 2.4rem;
	color: #113229;
}
ul {
	margin: 1rem 0 1rem 1.5rem;
}
ul li::marker {
	color: var(--accent-1);
}

/* === CODE BLOCKS === */
pre {
	background: #0b1020;
	color: #e2e8f0;
	padding: 1rem 1.1rem;
	border-radius: 12px;
	overflow: auto;
	margin: 1.25rem 0;
	box-shadow: 0 8px 22px rgba(2, 6, 23, 0.35);
}
code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
		"Liberation Mono", "Courier New", monospace;
	font-size: 0.95rem;
}
pre code {
	color: #e2f7ee;
}
pre code .k,
pre code .nt {
	color: #7dd3fc;
} /* fake tiny highlight */
pre code .s {
	color: #bbf7d0;
}
pre code .na {
	color: #86efac;
}

/* === FIGURES === */
figure {
	margin: 2rem 0;
	text-align: center;
}
figure img {
	max-width: 100%;
	border-radius: 14px;
	box-shadow: 0 10px 28px rgba(2, 6, 23, 0.12);
	transition: transform 0.45s ease, box-shadow 0.3s ease, filter 0.3s ease;
}
figure img:hover {
	transform: scale(1.045) rotate(-0.4deg);
	box-shadow: 0 14px 34px rgba(2, 6, 23, 0.16);
	filter: saturate(1.05);
}
figcaption {
	font-size: 0.9rem;
	color: #6b7280;
	margin-top: 0.55rem;
}

/* === BLOCKQUOTE === */
blockquote {
	font-style: italic;
	padding: 18px 20px;
	margin: 30px 0;
	background: #f0fff7;
	border-left: 6px solid transparent;
	border-image: linear-gradient(180deg, var(--accent-1), var(--accent-2));
	border-image-slice: 1;
	border-radius: 10px;
	color: #1f2937;
	animation: fadeInUp 1s ease forwards;
	opacity: 0;
	transform: translateY(20px);
}

/* === ABOUT AUTHOR === */
.about-author {
	text-align: center;
	margin: 2.6rem auto 1.6rem;
	max-width: 420px;
	opacity: 0.95;
}
.about-author img.author-photo {
	width: 90px;
	height: 90px;
	border-radius: 50%;
	margin-bottom: 0.6rem;
	box-shadow: 0 4px 12px rgba(2, 6, 23, 0.12);
	transition: transform 0.3s ease;
}
.about-author img.author-photo:hover {
	transform: scale(1.04);
}
.about-author p {
	font-size: 0.92rem;
	line-height: 1.45;
	color: #6b7280;
	margin: 0 auto;
	padding: 0 8px;
}

/* === CTA BUTTON === */
.cta-wrapper {
	text-align: center;
	margin-top: 2.6rem;
}
.cta-button {
	display: inline-block;
	margin-top: 1.5rem;
	margin-bottom: 1rem;
	background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
	color: #fff;
	text-decoration: none;
	padding: 1rem 2.5rem;
	border-radius: 40px;
	font-weight: 600;
	font-size: 1.08rem;
	box-shadow: 0 6px 18px var(--ring);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
	white-space: nowrap;
	text-align: center;
	animation: pulseAnimation 2.6s infinite;
}
.cta-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 26px rgba(20, 184, 166, 0.45);
}

/* === FOOTER === */
.footer {
	margin-top: 2rem;
	margin-bottom: 0;
	text-align: center;
	font-size: 0.95rem;
	color: #93a3b8;
	border-top: 1px solid #e5efe5;
	padding-top: 2rem;
	padding-bottom: 1rem;
}
.footer p {
	margin: 0.3rem 0;
}
.footer a {
	color: var(--accent-2);
	text-decoration: none;
}
.footer a:hover {
	text-decoration: underline;
}
.footer a.dashdev-link {
	color: var(--accent-1);
	font-weight: 600;
	transition: color 0.25s ease;
}
.footer a.dashdev-link:hover {
	color: var(--accent-2);
	text-decoration: underline;
}

/* === BADGE (optional: for tiny score chips) === */
.badge {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	background: #ecfdf5;
	color: #065f46;
	border: 1px solid #a7f3d0;
	padding: 0.35rem 0.6rem;
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 600;
}

/* === MODERN ANIMATIONS 2025 === */
.fade-in {
	animation: fadeIn 1s ease forwards;
	opacity: 0;
}
.fade-in-delayed {
	animation: fadeIn 1s ease 0.4s forwards;
	opacity: 0;
}
.fade-in-up {
	animation: fadeInUp 0.9s ease forwards;
	opacity: 0;
	transform: translateY(20px);
}
.zoom-in {
	animation: smoothZoom 1s ease forwards;
	opacity: 0;
	transform: scale(0.985);
}

@keyframes pulseAnimation {
	0% {
		transform: scale(1);
		box-shadow: 0 6px 18px var(--ring);
	}
	50% {
		transform: scale(1.03);
		box-shadow: 0 9px 24px rgba(20, 184, 166, 0.5);
	}
	100% {
		transform: scale(1);
		box-shadow: 0 6px 18px var(--ring);
	}
}
@keyframes gradientGlow {
	0% {
		text-shadow: 0 0 5px rgba(34, 197, 94, 0.25),
			0 0 10px rgba(20, 184, 166, 0.22);
	}
	100% {
		text-shadow: 0 0 8px rgba(34, 197, 94, 0.45),
			0 0 16px rgba(20, 184, 166, 0.38);
	}
}
@keyframes fadeIn {
	to {
		opacity: 1;
	}
}
@keyframes fadeInUp {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
@keyframes smoothZoom {
	to {
		opacity: 1;
		transform: scale(1);
	}
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
	.header-row-fixed {
		flex-direction: column;
		align-items: center;
		gap: 1rem;
		padding-top: 1rem;
	}
	.logo-fixed {
		position: static;
		transform: none;
		width: 140px;
		margin-bottom: 0.5rem;
	}
	.cta-button {
		width: 92%;
		padding: 1rem 1rem;
		font-size: 1rem;
	}
	.multi-line-title {
		margin-top: 0.6rem;
		font-size: 2.1rem;
	}
}
@media (min-width: 769px) and (max-width: 1024px) {
	.header-row-fixed {
		flex-direction: column;
		align-items: center;
		gap: 1rem;
		padding-top: 1rem;
	}
	.logo-fixed {
		position: static;
		transform: none;
		width: 130px;
		margin-bottom: 0.3rem;
	}
}
