/**
 * Editorial content: post/page bodies, blog cards, pagination.
 *
 * Styles the raw HTML the block editor produces, which is why selectors here
 * are element-based rather than class-based.
 */

/* ---- Entry header ------------------------------------------------------ */
.entry-head {
	display: flex;
	flex-direction: column;
	gap: var(--s-4);
	margin-bottom: var(--s-7);
}

.entry-media {
	margin-bottom: var(--s-7);
	border: 1px solid var(--c-line);
	border-radius: var(--r-2xl);
	overflow: hidden;
}

.entry-media img {
	width: 100%;
}

/* ---- Entry body -------------------------------------------------------- */
.entry-content {
	font-size: var(--t-lead);
	color: var(--c-muted-1);
	line-height: 1.75;
}

.entry-content > * + * {
	margin-top: var(--s-5);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin-top: var(--s-8);
	color: var(--c-ink);
}

.entry-content h2 {
	font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
}

.entry-content h3 {
	font-size: 1.375rem;
}

.entry-content a {
	text-decoration: underline;
	text-decoration-color: rgb(227 204 165 / 0.4);
	text-underline-offset: 3px;
}

.entry-content strong {
	color: var(--c-ink);
}

.entry-content ul,
.entry-content ol {
	padding-inline-start: var(--s-5);
}

.entry-content ul {
	list-style: disc;
}

.entry-content ol {
	list-style: decimal;
}

.entry-content li + li {
	margin-top: var(--s-2);
}

.entry-content li::marker {
	color: var(--c-copper-text);
}

.entry-content blockquote {
	padding: var(--s-2) 0 var(--s-2) var(--s-5);
	border-inline-start: 2px solid var(--c-copper);
	color: var(--c-ink);
	font-size: 1.1875rem;
}

.entry-content img,
.entry-content figure {
	border-radius: var(--r-xl);
	overflow: hidden;
}

.entry-content figcaption {
	margin-top: var(--s-3);
	font-size: var(--t-xs);
	color: var(--c-muted-3);
	text-align: center;
}

.entry-content code {
	padding: 0.125em 0.375em;
	border: 1px solid var(--c-line-soft);
	border-radius: var(--r-sm);
	background: var(--c-surface);
	font-family: var(--f-mono);
	font-size: 0.875em;
	color: var(--c-sand);
}

.entry-content pre {
	padding: var(--s-5);
	border: 1px solid var(--c-line);
	border-radius: var(--r-xl);
	background: rgb(0 0 0 / 0.3);
	overflow-x: auto;
}

.entry-content pre code {
	padding: 0;
	border: 0;
	background: none;
	color: var(--c-muted-1);
}

.entry-content hr {
	height: 1px;
	border: 0;
	background: var(--c-line-soft);
}

.entry-content table {
	display: block;
	overflow-x: auto;
	font-size: var(--t-sm);
}

.entry-content th,
.entry-content td {
	padding: var(--s-3);
	border: 1px solid var(--c-line-soft);
	text-align: start;
}

/* ---- Blog card --------------------------------------------------------- */
.post-card {
	padding: 0;
	overflow: hidden;
}

.post-card > *:not(.post-card__media) {
	padding-inline: var(--s-5);
}

.post-card > .card__label {
	padding-top: var(--s-5);
}

.post-card > .card__foot {
	padding-bottom: var(--s-5);
}

.post-card__media {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-bottom: 1px solid var(--c-line-soft);
}

.post-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--dur-slow) var(--ease);
}

.post-card:hover .post-card__media img {
	transform: scale(1.04);
}

.post-card .card__title a {
	color: var(--c-ink);
}

.post-card:hover .card__title a {
	color: var(--c-sand);
}

/* ---- Pagination -------------------------------------------------------- */
.pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--s-2);
	margin-top: var(--s-8);
}

.pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding-inline: var(--s-3);
	border: 1px solid var(--c-line);
	border-radius: var(--r-md);
	color: var(--c-muted-1);
	font-size: var(--t-sm);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
	border-color: var(--c-sand);
	background: var(--c-sand-wash);
	color: var(--c-ink);
}
