/*
	Articles section styles
	Layers on top of templatemo-style.css — same theme, tuned for reading.
*/

.articles-wrap {
	max-width: 760px;
	margin: 0 auto;
	padding: 100px 20px 120px;
}

/* start article list page */
.articles-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	margin-bottom: 50px;
}
.articles-header-text {
	flex: 1;
	min-width: 0;
}
.articles-header h1 {
	border: 4px solid #ffffff;
	display: inline-block;
	letter-spacing: 6px;
	padding: 12px 20px;
	margin-bottom: 0;
	font-size: 28px;
	position: relative;
}
.articles-header h1.glitch {
	cursor: default;
}
.articles-header h1.glitch::before,
.articles-header h1.glitch::after {
	content: attr(data-text);
	position: absolute;
	top: 12px;
	right: 20px;
	bottom: 12px;
	left: 20px;
	opacity: 0;
	pointer-events: none;
}
.articles-header h1.glitch::before {
	color: #D43F52;
}
.articles-header h1.glitch::after {
	color: #4de3ff;
}
.articles-header h1.glitch:hover {
	animation: glitch-jitter 0.35s steps(6, end) 1;
}
.articles-header h1.glitch:hover::before {
	animation: glitch-burst-1 0.35s steps(6, end) 1;
}
.articles-header h1.glitch:hover::after {
	animation: glitch-burst-2 0.35s steps(6, end) 1;
}
@keyframes glitch-burst-1 {
	0%   { opacity: 0; transform: translate(0, 0); clip-path: inset(0 0 100% 0); }
	15%  { opacity: 0.85; transform: translate(-5px, 1px); clip-path: inset(10% 0 55% 0); }
	30%  { opacity: 0.85; transform: translate(4px, -2px); clip-path: inset(45% 0 15% 0); }
	45%  { opacity: 0.7; transform: translate(-4px, 0); clip-path: inset(65% 0 5% 0); }
	60%  { opacity: 0.7; transform: translate(3px, 1px); clip-path: inset(20% 0 65% 0); }
	80%  { opacity: 0.4; transform: translate(-2px, 0); clip-path: inset(0 0 80% 0); }
	100% { opacity: 0; transform: translate(0, 0); clip-path: inset(0 0 100% 0); }
}
@keyframes glitch-burst-2 {
	0%   { opacity: 0; transform: translate(0, 0); clip-path: inset(100% 0 0 0); }
	15%  { opacity: 0.85; transform: translate(5px, -1px); clip-path: inset(50% 0 20% 0); }
	30%  { opacity: 0.85; transform: translate(-4px, 2px); clip-path: inset(10% 0 55% 0); }
	45%  { opacity: 0.7; transform: translate(4px, 0); clip-path: inset(5% 0 70% 0); }
	60%  { opacity: 0.7; transform: translate(-3px, -1px); clip-path: inset(60% 0 15% 0); }
	80%  { opacity: 0.4; transform: translate(2px, 0); clip-path: inset(80% 0 0 0); }
	100% { opacity: 0; transform: translate(0, 0); clip-path: inset(100% 0 0 0); }
}
@keyframes glitch-jitter {
	0%   { transform: translate(0, 0); }
	15%  { transform: translate(-1px, 0); }
	30%  { transform: translate(1px, 0); }
	45%  { transform: translate(-1px, 0); }
	60%  { transform: translate(1px, 0); }
	80%  { transform: translate(-1px, 0); }
	100% { transform: translate(0, 0); }
}
.articles-header p {
	color: #cccccc;
	margin-top: 6px;
	margin-bottom: 0;
}
.articles-header .article-signoff {
	margin-top: 6px;
}
.articles-header-photo {
	flex-shrink: 0;
}
.articles-header-photo img {
	display: block;
	width: 180px;
	height: 180px;
	object-fit: cover;
	border-radius: 12px;
	box-shadow:
		0 0 0 1px rgba(255, 255, 255, 0.15),
		0 0 30px rgba(255, 255, 255, 0.15),
		0 0 55px rgba(212, 63, 82, 0.35);
	transition: box-shadow 0.4s ease-in-out;
}
.articles-header-photo img:hover {
	box-shadow:
		0 0 0 1px rgba(255, 255, 255, 0.2),
		0 0 40px rgba(255, 255, 255, 0.2),
		0 0 70px rgba(212, 63, 82, 0.5);
}
@media (max-width: 767px) {
	.articles-header {
		flex-direction: column-reverse;
		align-items: flex-start;
	}
	.articles-header-photo img {
		width: 160px;
		height: 160px;
	}
	.articles-header p {
		margin-top: 10px;
	}
}

.article-list-item {
	border-bottom: 1px solid #2a2a2a;
	padding: 28px 0;
}
.article-list-item:first-of-type {
	padding-top: 0;
}
.article-list-item a.article-list-link {
	display: block;
	text-decoration: none;
	padding: 16px;
	margin: -16px;
	border-radius: 6px;
	transition: background 0.25s ease-in-out;
}
.article-list-item a.article-list-link:hover {
	background: rgba(212, 63, 82, 0.06);
	text-decoration: none;
}
.article-title-text {
	color: #ffffff;
	position: relative;
	display: inline;
}
.article-title-text::before,
.article-title-text::after {
	content: attr(data-text);
	position: absolute;
	top: 0;
	left: 0;
	opacity: 0;
	pointer-events: none;
	white-space: inherit;
}
.article-title-text::before { color: #D43F52; }
.article-title-text::after  { color: #4de3ff; }
.article-list-item a.article-list-link:hover .article-title-text {
	animation: title-jitter 0.5s steps(8, end) 1;
}
.article-list-item a.article-list-link:hover .article-title-text::before {
	animation: title-glitch-1 0.5s steps(8, end) 1;
}
.article-list-item a.article-list-link:hover .article-title-text::after {
	animation: title-glitch-2 0.5s steps(8, end) 1;
}
@keyframes title-glitch-1 {
	0%   { opacity: 0; transform: translate(0, 0);     clip-path: inset(0 0 100% 0); }
	10%  { opacity: 1; transform: translate(-8px, 2px); clip-path: inset(5% 0 50% 0); }
	20%  { opacity: 1; transform: translate(7px, -3px); clip-path: inset(40% 0 10% 0); }
	30%  { opacity: 1; transform: translate(-6px, 1px); clip-path: inset(70% 0 5% 0); }
	40%  { opacity: 1; transform: translate(9px, -2px); clip-path: inset(15% 0 60% 0); }
	55%  { opacity: 1; transform: translate(-5px, 3px); clip-path: inset(55% 0 20% 0); }
	70%  { opacity: 0.6; transform: translate(4px, 0);  clip-path: inset(80% 0 2% 0); }
	85%  { opacity: 0.3; transform: translate(-3px, 1px); clip-path: inset(0 0 90% 0); }
	100% { opacity: 0; transform: translate(0, 0);     clip-path: inset(0 0 100% 0); }
}
@keyframes title-glitch-2 {
	0%   { opacity: 0; transform: translate(0, 0);     clip-path: inset(100% 0 0 0); }
	10%  { opacity: 1; transform: translate(8px, -2px); clip-path: inset(45% 0 25% 0); }
	20%  { opacity: 1; transform: translate(-7px, 3px); clip-path: inset(10% 0 55% 0); }
	30%  { opacity: 1; transform: translate(6px, -1px); clip-path: inset(5% 0 75% 0); }
	40%  { opacity: 1; transform: translate(-9px, 2px); clip-path: inset(60% 0 10% 0); }
	55%  { opacity: 1; transform: translate(5px, -3px); clip-path: inset(20% 0 50% 0); }
	70%  { opacity: 0.6; transform: translate(-4px, 0); clip-path: inset(2% 0 80% 0); }
	85%  { opacity: 0.3; transform: translate(3px, -1px); clip-path: inset(90% 0 0 0); }
	100% { opacity: 0; transform: translate(0, 0);     clip-path: inset(100% 0 0 0); }
}
@keyframes title-jitter {
	0%   { transform: translate(0, 0); }
	10%  { transform: translate(-2px, 0); }
	20%  { transform: translate(2px, 1px); }
	30%  { transform: translate(-2px, -1px); }
	40%  { transform: translate(3px, 0); }
	55%  { transform: translate(-2px, 1px); }
	70%  { transform: translate(1px, 0); }
	85%  { transform: translate(-1px, 0); }
	100% { transform: translate(0, 0); }
}
.article-date {
	color: #D43F52;
	font-size: 13px;
	font-weight: bold;
	letter-spacing: 1px;
	text-transform: uppercase;
	margin-bottom: 10px;
	display: block;
}
.article-list-item h2 {
	font-size: 22px;
	margin-bottom: 6px;
}
.article-title-text {
	color: #ffffff;
	transition: color 0.25s ease-in-out;
}
.article-list-item .article-excerpt {
	color: #cccccc;
	line-height: 1.7;
}
/* end article list page */

/* start single article page */
.article-back-link {
	display: inline-block;
	margin-bottom: 40px;
	color: #999999;
	font-size: 14px;
	text-decoration: none;
	transition: color 0.3s ease-in-out;
}
.article-back-link:hover {
	color: #D43F52;
	text-decoration: none;
}
.article-back-link .fa {
	margin-right: 6px;
}

.article-title h1 {
	font-size: 32px;
	line-height: 1.3;
	margin-bottom: 14px;
}
.article-title-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	margin-bottom: 14px;
}
.article-title-row .article-title {
	flex: 1;
	min-width: 0;
}
.article-title-row .article-title h1 {
	margin-bottom: 0;
}
.article-meta {
	color: #D43F52;
	font-size: 13px;
	font-weight: bold;
	letter-spacing: 1px;
	text-transform: uppercase;
	margin-bottom: 40px;
	display: block;
}

.article-body {
	color: #e0e0e0;
	font-size: 17px;
	line-height: 1.8;
}
.article-body p {
	margin-bottom: 24px;
}
.article-body h2 {
	font-size: 24px;
	margin: 40px 0 16px;
}
.article-body h3 {
	font-size: 20px;
	margin: 32px 0 14px;
}
.article-body a {
	color: #D43F52;
	text-decoration: underline;
}
.article-body a:hover {
	color: #ffffff;
}
.article-body blockquote {
	border-left: 3px solid #D43F52;
	padding-left: 20px;
	margin: 30px 0;
	color: #cccccc;
	font-style: italic;
}
.article-signoff {
	margin-top: 40px;
	font-size: 18px;
}
.article-signoff .attribution {
	display: inline-block;
	margin-left: 6px;
	font-size: 13px;
	font-style: normal;
	color: #999999;
	letter-spacing: 1px;
	text-transform: uppercase;
}
.article-body code {
	background: #1a1a1a;
	color: #D43F52;
	padding: 2px 6px;
	border-radius: 3px;
	font-size: 15px;
}
.article-body pre {
	background: #1a1a1a;
	padding: 20px;
	border-radius: 4px;
	overflow-x: auto;
	margin-bottom: 24px;
}
.article-body pre code {
	background: none;
	padding: 0;
	color: #e0e0e0;
}
.article-body img {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
	margin: 10px 0 30px;
}
.article-body ul,
.article-body ol {
	margin-bottom: 24px;
	padding-left: 24px;
}
.article-body li {
	margin-bottom: 10px;
}

.article-footer {
	margin-top: 60px;
	padding-top: 30px;
	border-top: 1px solid #2a2a2a;
}
/* end single article page */

/* start author photo */
.article-author-photo {
	flex-shrink: 0;
	width: 180px;
}
.article-author-photo img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 4px;
	-webkit-mask-image: linear-gradient(to left, #000 60%, transparent 100%);
	mask-image: linear-gradient(to left, #000 60%, transparent 100%);
}
/* end author photo */

@media (max-width: 767px) {
	.articles-wrap { padding: 60px 20px 80px; }
	.article-title h1 { font-size: 26px; }
	.article-body { font-size: 16px; }
	.article-title-row {
		flex-direction: column-reverse;
		align-items: flex-start;
	}
	.article-author-photo {
		width: 140px;
	}
	.article-author-photo img {
		-webkit-mask-image: none;
		mask-image: none;
	}
}