/*
 * Article page (views/blog.php). Mobile first, Bootstrap breakpoints (576/768/992/1200).
 */
@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

/* ---------- Hero (a .brand-panel in the article's colour variant, as its card) ---------- */
.article-hero__inner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	padding-top: 40px;
	padding-bottom: 48px;
}
.article-hero .brand-panel__blob {
	top: -140px;
	right: -120px;
	width: 360px;
	height: 360px;
	opacity: .45;
}
.article-hero .brand-panel__dot,
.article-hero .brand-panel__lines {
	display: none;
}
.article-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
	color: var(--color-text-on-dark-subtle);
}
.article-breadcrumb li + li::before {
	content: '/';
	margin-right: 8px;
}
.article-breadcrumb a {
	color: var(--color-teal-glow);
	text-decoration: none;
}
.article-breadcrumb a:hover {
	text-decoration: underline;
}
.article-hero__note {
	font-size: 22px;
	color: var(--color-orange-glow);
	transform: rotate(-3deg);
}
.article-hero__title {
	max-width: 900px;
	margin: 0;
	font-size: 36px;
	line-height: 1.1;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: var(--color-white);
	text-wrap: balance;
}
.article-hero .article-description {
	margin: 0;
	max-width: 760px;
	font-size: 18px;
	line-height: 1.6;
	color: var(--color-text-on-dark-muted);
}
.article-hero .article-description a {
	color: var(--color-teal-glow);
}
.article-byline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
	margin-top: 8px;
	font-size: 14px;
	color: var(--color-text-on-dark-muted);
}
.article-byline img {
	width: 48px;
	height: 48px;
	border: 2px solid var(--color-peach);
	border-radius: 50%;
	object-fit: cover;
}
.article-byline__who {
	display: flex;
	flex-direction: column;
	line-height: 1.4;
}
.article-byline__who strong {
	color: var(--color-white);
}
.article-byline__dates {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 14px;
	width: 100%;
	margin: 0;
	color: var(--color-text-on-dark-subtle);
}

/* ---------- Body ---------- */
.article-page {
	padding: 28px 0 56px;
	background: var(--color-cream);
}
.post {
	padding: 28px 20px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	background: var(--color-white);
	color: var(--color-text);
	font-size: 18px;
}
/* Contents list beside a readable text column (~70 characters per line) */
.article-layout {
	display: grid;
	grid-template-columns: minmax(0, 46rem);
	justify-content: center;
	gap: 24px;
}
.post h2 {
	margin: 40px 0 18px;
	font-size: 26px;
	line-height: 1.2;
	scroll-margin-top: calc(var(--site-header-height) + 24px);
}
.post .article_area > h2:first-child {
	margin-top: 0;
}
.post h3 {
	margin: 32px 0 12px;
	font-size: 22px;
	line-height: 1.3;
}
.post h4 {
	margin: 24px 0 8px;
	font-family: var(--font-body);
	font-size: 20px;
	font-weight: 700;
}
.post p {
	margin-bottom: 22px;
	line-height: 1.75;
}
.post ul {
	padding-left: 1.25em;
	line-height: 1.75;
}
.post ul li {
	margin-bottom: 10px;
}
.post ul li::marker {
	color: var(--color-orange);
}
.article_area a {
	text-decoration: underline !important;
	text-decoration-color: var(--color-link-underline) !important;
	text-underline-offset: 3px;
	color: var(--color-teal) !important;
}
.article_area a:hover {
	text-decoration-color: currentColor !important;
}
/* The call to action's button keeps its own look inside the content */
.article_area .workspace-cta .btn-cta {
	color: var(--color-navy) !important;
	text-decoration: none !important;
}
.article_area div.section-video {
	position: relative;
	width: 100%;
	height: 0;
	margin: 1em 0;
	padding-bottom: 56.25%;
}
.article_area div.section-video iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}
.article_area img {
	display: block;
	width: 100%;
	margin: 0 auto 15px;
}

/* Contents list: collapsible above the text on narrow screens, a sticky sidebar on wide ones */
.article-toc {
	border-radius: var(--radius-sm);
	background: var(--color-mist);
	font-size: 15px;
}
.article-toc summary {
	display: list-item;
	padding: 14px 18px;
	font-weight: 700;
	cursor: pointer;
}
.article-toc nav {
	padding: 0 18px 14px;
}
.article-toc ol {
	margin: 0;
	padding: 0;
	border-left: 2px solid var(--color-border);
	list-style: none;
}
.article-toc li {
	margin: 0;
}
.article-toc a {
	display: block;
	margin-left: -2px;
	padding: 7px 14px;
	border-left: 2px solid transparent;
	color: var(--color-text-muted);
	line-height: 1.4;
	text-decoration: none;
}
.article-toc a:hover {
	color: var(--color-navy);
}
.article-toc a[aria-current] {
	border-left-color: var(--color-orange);
	color: var(--color-navy);
	font-weight: 600;
}

.reading-progress {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1050;
	height: 4px;
	pointer-events: none;
}
.reading-progress span {
	display: block;
	height: 100%;
	background: var(--color-orange);
	transform: scaleX(0);
	transform-origin: left;
}

/* Callouts in the article content, classified by ArticleContent::classifyCallouts() */
.article_area .article-tip {
	position: relative;
	margin: 28px 0;
	padding: 18px 22px;
	border-radius: var(--radius-md);
	background: var(--color-mist);
	font-size: 17px;
	line-height: 1.65;
}
.article_area .article-tip--tip {
	padding-top: 78px;
	background: var(--color-peach);
}
.article_area .article-tip--tip::before {
	content: '';
	position: absolute;
	left: 22px;
	top: 18px;
	width: 48px;
	height: 48px;
	border: 3px solid var(--color-white);
	border-radius: 50%;
	background: url('../images/Karolina-Sieler-profile-picture.jpg') center / cover;
	box-shadow: var(--shadow-sm);
}
.article_area .article-tip--read {
	padding-right: 56px;
	background: var(--color-mint);
}
.article_area .article-tip--read::after {
	content: '→';
	position: absolute;
	right: 22px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 22px;
	color: var(--color-teal);
}

/* ---------- About the author ---------- */
.author-box {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px 24px;
	max-width: 46rem;
	margin: 32px auto 0;
	padding: 24px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	background: var(--color-white);
}
.author-box img {
	width: 88px;
	height: 88px;
	border: 4px solid var(--color-peach);
	border-radius: 50%;
	object-fit: cover;
}
.author-box__text {
	flex: 1 1 320px;
	margin: 0;
	font-size: 16px;
	line-height: 1.65;
	color: var(--color-text-muted);
}
.author-box__label {
	display: block;
	margin-bottom: 4px;
	color: var(--color-teal);
}
.author-box__text a {
	color: var(--color-teal);
	font-weight: 600;
}

/* ---------- Larger screens ---------- */
@media (min-width: 768px) {
	.article-hero__inner {
		gap: 18px;
		padding-top: 56px;
		padding-bottom: 64px;
	}
	.article-hero__title {
		font-size: 48px;
	}
	.article-hero .article-description {
		font-size: 20px;
	}
	.article-hero .brand-panel__blob {
		top: -160px;
		right: -80px;
		width: 520px;
		height: 520px;
	}
	.article-hero .brand-panel__dot,
	.article-hero .brand-panel__lines {
		display: block;
	}
	.article-hero .brand-panel__dot {
		top: auto;
		bottom: 48px;
		right: 300px;
		width: 72px;
		height: 72px;
	}
	.article-hero .brand-panel__lines {
		top: 56px;
		right: 56px;
		width: 140px;
		height: 110px;
		background: repeating-linear-gradient(0deg, var(--color-border-on-dark) 0 8px, transparent 8px 20px);
	}
	.article-page {
		padding-top: 40px;
	}
	.post {
		padding: 48px 48px 40px;
		font-size: 20px;
	}
	.post h2 {
		margin-top: 56px;
		font-size: 32px;
	}
	.post h3 {
		font-size: 25px;
	}
	.article_area .article-tip {
		font-size: 18px;
	}
	.article_area .article-tip--tip {
		padding-top: 18px;
		padding-left: 88px;
	}
	.article_area div.section-video {
		display: flex;
		justify-content: center;
		height: auto;
		margin: 0 0 15px;
		padding-bottom: 0;
	}
	.article_area div.section-video iframe {
		position: static;
		width: auto;
		height: auto;
	}
	.author-box {
		padding: 28px 32px;
	}
}
@media (min-width: 992px) {
	.article-hero__title {
		font-size: 56px;
	}
	.post {
		padding: 56px 64px 48px;
	}
	.article-layout {
		grid-template-columns: 230px minmax(0, 46rem);
		gap: 56px;
		align-items: start;
	}
	.article-toc {
		position: sticky;
		top: calc(var(--site-header-height) + 24px);
		background: none;
	}
	.article-toc summary {
		display: none;
	}
	.article-toc nav {
		padding: 0;
	}
	.article-toc nav::before {
		content: 'On this page';
		display: block;
		margin: 0 0 10px 14px;
		font-size: 12px;
		font-weight: 700;
		letter-spacing: .08em;
		text-transform: uppercase;
		color: var(--color-text-muted);
	}
}
