/* ==========================================================================
   Blog (/blogi): archive, category archives, single post.
   Loaded after style.css on blog views only (see inc/blog.php).
   Tokens follow the theme: bg #1D2939, text #F2F2F2, accent #F6E75A,
   hairlines rgba(255,255,255,.2), Satoshi-Variable.
   ========================================================================== */

:root {
	--up-line: rgba(255, 255, 255, 0.2);
	--up-accent: #F6E75A;
	--up-text: #F2F2F2;
	--up-muted: rgba(242, 242, 242, 0.7);
}

/* Screen-reader helper (pagination labels) */
.blog-main .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
	border: 0;
}

/* --------------------------------------------------------------------------
   Header: solid backdrop once scrolled, so article text never runs under it
   -------------------------------------------------------------------------- */
.blog-view #masthead {
	transition: background-color .3s ease, box-shadow .3s ease;
}
.blog-view #masthead.shrink {
	background-color: rgba(29, 41, 57, 0.92);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}
.blog-view #masthead .head--wrap {
	transition: padding .3s ease;
}
.blog-view #masthead.shrink .head--wrap {
	padding: 18px 0;
}

/* --------------------------------------------------------------------------
   Shared pieces
   -------------------------------------------------------------------------- */
.blog-main .back-link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-size: 12px;
	line-height: 20px;
	color: var(--up-muted);
	margin-bottom: 40px;
	transition: color .2s ease;
}
.blog-main .back-link .arrow {
	width: 28px;
	transform: rotate(180deg);
}
.blog-main .back-link .arrow path {
	fill: currentColor;
}
.blog-main .back-link:hover {
	color: var(--up-accent);
}

.post-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	line-height: 20px;
	color: var(--up-muted);
}
.post-meta a {
	color: var(--up-text);
	transition: color .2s ease;
}
.post-meta a:hover {
	color: var(--up-accent);
}
.post-meta .sep {
	opacity: .6;
}

.blog-note {
	display: block;
	font-size: 12px;
	line-height: 20px;
	color: var(--up-muted);
	margin-top: 8px;
}

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-weight: 500;
	color: var(--up-text);
	transition: color .2s ease;
}
.link-arrow .arrow {
	transition: transform .3s ease;
}
.link-arrow .arrow path {
	fill: currentColor;
}
.link-arrow:hover {
	color: var(--up-accent);
}
.link-arrow:hover .arrow {
	transform: translateX(6px);
}

/* --------------------------------------------------------------------------
   Archive hero
   -------------------------------------------------------------------------- */
.blog--hero {
	padding-top: 177px;
}
.blog--hero .content {
	padding-bottom: 96px;
	border-bottom: 1px solid var(--up-line);
}
.blog--hero h1 {
	margin: 0;
}
.blog--hero .desc {
	margin: 40px 0 0;
	max-width: 560px;
}
.blog--hero .blog-note + .desc {
	margin-top: 32px;
}

/* --------------------------------------------------------------------------
   Post cards
   -------------------------------------------------------------------------- */
.blog--list {
	padding: 80px 0 140px;
}
.post-cards {
	list-style: none;
	margin: 0 -12px;
	padding: 0;
}
.post-card {
	padding-bottom: 48px;
	margin-bottom: 48px;
	border-bottom: 1px solid var(--up-line);
}
.post-card__inner {
	padding-right: 48px;
}
.post-card__image {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: 12px;
	margin-bottom: 24px;
	background: #151f2c url(../img/dots.png) center / cover no-repeat;
}
.post-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .6s ease;
}
.post-card__image.is-placeholder img {
	width: 45%;
	height: auto;
	object-fit: contain;
	opacity: .9;
}
.post-card:hover .post-card__image img {
	transform: scale(1.03);
}
.post-card:hover .post-card__image.is-placeholder img {
	transform: none;
}
.post-card .post-meta {
	margin-bottom: 12px;
}
.post-card__title {
	font-size: 28px;
	line-height: 36px;
	margin: 0 0 12px;
}
.post-card__title a {
	transition: color .2s ease;
}
.post-card__title a:hover {
	color: var(--up-accent);
}
.post-card__excerpt {
	margin: 0 0 20px;
	font-size: 16px;
	line-height: 26px;
	font-weight: 400;
	color: rgba(242, 242, 242, 0.85);
}

/* Empty state */
.blog--empty .desc {
	margin-bottom: 32px;
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */
.blog-pagination,
.blog-main .pagination {
	margin-top: 16px;
}
.blog-pagination .nav-links,
.blog-main .pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}
.blog-main .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-width: 44px;
	height: 44px;
	padding: 0 16px;
	border: 1px solid var(--up-line);
	border-radius: 65px;
	font-weight: 500;
	transition: border-color .2s ease, color .2s ease;
}
.blog-main a.page-numbers:hover {
	border-color: var(--up-accent);
	color: var(--up-accent);
}
.blog-main .page-numbers.current {
	background: var(--up-accent);
	border-color: var(--up-accent);
	color: #333;
}
.blog-main .page-numbers.dots {
	border: 0;
	min-width: auto;
	padding: 0 4px;
}
.blog-main .page-numbers .arrow path {
	fill: currentColor;
}
.blog-main .page-numbers.prev .arrow {
	transform: rotate(180deg);
}

/* --------------------------------------------------------------------------
   Single post
   -------------------------------------------------------------------------- */
.post--hero {
	padding-top: 177px;
}
.post--hero .content {
	padding-bottom: 64px;
	border-bottom: 1px solid var(--up-line);
}
.post--hero .post-meta {
	margin-bottom: 20px;
}
.post--hero h1 {
	font-size: 56px;
	line-height: 64px;
	margin: 0;
	max-width: 900px;
}
.post--hero .desc {
	margin: 24px 0 0;
	max-width: 700px;
}

.post--image {
	padding-top: 64px;
}
.post--image figure {
	margin: 0;
}
.post--image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 2 / 1;
	object-fit: cover;
	border-radius: 16px;
}
.post--image figcaption {
	font-size: 12px;
	line-height: 18px;
	color: var(--up-muted);
	margin-top: 12px;
}

.post--body {
	padding: 64px 0 120px;
}

/* Article typography (classic editor output) */
.post--body .entry-content {
	font-size: 18px;
	line-height: 30px;
	font-weight: 400;
}
.post--body .entry-content > *:first-child {
	margin-top: 0;
}
.post--body .entry-content p {
	margin: 0 0 24px;
}
.post--body .entry-content h2 {
	font-size: 32px;
	line-height: 40px;
	font-weight: 700;
	margin: 56px 0 16px;
}
.post--body .entry-content h3 {
	font-size: 24px;
	line-height: 32px;
	font-weight: 700;
	margin: 40px 0 12px;
}
.post--body .entry-content h4,
.post--body .entry-content h5,
.post--body .entry-content h6 {
	font-size: 20px;
	line-height: 28px;
	font-weight: 700;
	margin: 32px 0 8px;
}
.post--body .entry-content a {
	color: var(--up-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
	transition: color .2s ease;
}
.post--body .entry-content a:hover {
	color: #fff;
}
.post--body .entry-content strong,
.post--body .entry-content b {
	font-weight: 700;
}
.post--body .entry-content ul,
.post--body .entry-content ol {
	margin: 0 0 24px;
	padding-left: 24px;
}
.post--body .entry-content ul {
	list-style: disc;
}
.post--body .entry-content ol {
	list-style: decimal;
}
.post--body .entry-content ul li,
.post--body .entry-content ol li {
	list-style: inherit;
	margin-bottom: 8px;
	padding-left: 4px;
}
.post--body .entry-content li::marker {
	color: var(--up-accent);
}
.post--body .entry-content blockquote {
	margin: 32px 0;
	padding: 8px 0 8px 24px;
	border-left: 2px solid var(--up-accent);
	font-size: 22px;
	line-height: 34px;
	font-weight: 500;
}
.post--body .entry-content blockquote p:last-child {
	margin-bottom: 0;
}
.post--body .entry-content blockquote cite {
	display: block;
	margin-top: 8px;
	font-size: 14px;
	font-style: normal;
	font-weight: 400;
	color: var(--up-muted);
}
.post--body .entry-content img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
}
.post--body .entry-content figure,
.post--body .entry-content .wp-caption {
	max-width: 100%;
	margin: 32px 0;
}
.post--body .entry-content figcaption,
.post--body .entry-content .wp-caption-text {
	font-size: 12px;
	line-height: 18px;
	color: var(--up-muted);
	margin-top: 8px;
}
.post--body .entry-content .alignleft {
	float: left;
	margin: 8px 24px 16px 0;
}
.post--body .entry-content .alignright {
	float: right;
	margin: 8px 0 16px 24px;
}
.post--body .entry-content .aligncenter {
	display: block;
	margin: 32px auto;
}
.post--body .entry-content .alignnone {
	margin: 32px 0;
}
.post--body .entry-content hr {
	border: 0;
	border-top: 1px solid var(--up-line);
	margin: 40px 0;
}
.post--body .entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 24px;
	font-size: 16px;
	line-height: 24px;
}
.post--body .entry-content th,
.post--body .entry-content td {
	padding: 12px 12px 12px 0;
	border-bottom: 1px solid var(--up-line);
	text-align: left;
	vertical-align: top;
}
.post--body .entry-content th {
	font-weight: 700;
}
.post--body .entry-content iframe,
.post--body .entry-content video {
	max-width: 100%;
}
.post--body .entry-content pre,
.post--body .entry-content code {
	font-size: 15px;
}
.post--body .entry-content pre {
	padding: 16px 20px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.06);
	overflow-x: auto;
}
.post--body .entry-content .page-links {
	margin-top: 32px;
	font-size: 14px;
}
.post--body .entry-content .page-links a {
	margin-left: 6px;
}
.post--body .entry-content::after {
	content: "";
	display: table;
	clear: both;
}

/* Sidebar */
.post--aside {
	padding-left: 36px;
}
.post--aside-inner {
	position: sticky;
	top: 120px;
}
.aside-block {
	padding: 16px 0;
	border-bottom: 1px solid var(--up-line);
	font-size: 16px;
	line-height: 24px;
}
.aside-block:first-child {
	border-top: 1px solid var(--up-line);
}
.aside-block .label {
	display: block;
	font-size: 12px;
	line-height: 18px;
	color: var(--up-muted);
	margin-bottom: 4px;
}
.aside-block a {
	transition: color .2s ease;
}
.aside-block a:hover {
	color: var(--up-accent);
}
.aside-block .share {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}
.post--aside .button {
	margin-top: 32px;
}

/* Related */
.blog--related {
	padding-top: 96px;
	border-top: 1px solid var(--up-line);
}
.blog--related h2 {
	line-height: 48px;
	margin-bottom: 40px;
}

/* --------------------------------------------------------------------------
   Closing CTA
   -------------------------------------------------------------------------- */
.blog--cta {
	padding: 120px 0;
	border-top: 1px solid var(--up-line);
}
.blog--cta h2 {
	line-height: 48px;
	margin-bottom: 16px;
}
.blog--cta .desc {
	margin: 0;
	max-width: 520px;
}
.blog--cta .action {
	display: flex;
	justify-content: flex-start;
	padding-left: 24px;
}

/* --------------------------------------------------------------------------
   Mobile / tablet (same breakpoint as style.css)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 990px) {
	.blog-view #masthead.shrink .head--wrap {
		padding: 16px 0;
	}
	.blog--hero,
	.post--hero {
		padding-top: 128px;
	}
	.blog--hero .content,
	.post--hero .content {
		padding-bottom: 48px;
	}
	.blog--hero .desc {
		margin-top: 24px;
	}
	.blog-main .back-link {
		margin-bottom: 28px;
	}
	.blog--list {
		padding: 48px 0 96px;
	}
	.post-card {
		padding-bottom: 32px;
		margin-bottom: 32px;
	}
	.post-card__inner {
		padding-right: 0;
	}
	.post-card__title {
		font-size: 24px;
		line-height: 32px;
	}
	.post--hero h1 {
		font-size: 32px;
		line-height: 40px;
	}
	.post--image {
		padding-top: 40px;
	}
	.post--image img {
		border-radius: 12px;
		aspect-ratio: 16 / 10;
	}
	.post--body {
		padding: 40px 0 96px;
	}
	.post--body .entry-content {
		font-size: 17px;
		line-height: 28px;
	}
	.post--body .entry-content h2 {
		font-size: 26px;
		line-height: 34px;
		margin-top: 40px;
	}
	.post--body .entry-content h3 {
		font-size: 22px;
		line-height: 30px;
	}
	.post--body .entry-content blockquote {
		font-size: 19px;
		line-height: 30px;
	}
	.post--aside {
		padding-left: 12px;
		margin-top: 48px;
	}
	.post--aside-inner {
		position: static;
	}
	.blog--related {
		padding-top: 64px;
	}
	.blog--related h2 {
		margin-bottom: 24px;
	}
	.blog--cta {
		padding: 80px 0;
	}
	.blog--cta .action {
		padding-left: 12px;
		margin-top: 32px;
	}
}
