/* Single-post layout, header and sidebar. Loaded only for posts. */
.single-post-layout {
	--post-content-offset: 3.25rem;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(15rem, 19rem);
	gap: clamp(.75rem, 1.5vw, 1.5rem);
	align-items: start;
}

.single-post-layout .site-main {
	position: relative;
	min-width: 0;
	padding-top: var(--post-content-offset);
	overflow: visible;
}

.single-post-layout .article-sidebar { padding: var(--post-content-offset) 0 3rem; }
.article-sidebar-inner { position: sticky; top: 1.5rem; }

.post-sidebar { padding-top: 2rem; }
.post-sidebar__card {
	padding: 1.1rem;
	border: 1px solid rgba(108, 89, 82, .09);
	border-radius: 1rem;
	background: rgba(255, 255, 255, .78);
	box-shadow: 0 .45rem 1.6rem rgba(75, 53, 41, .055);
}
.post-sidebar__card + .post-sidebar__card,
.post-sidebar__card + .post-sidebar__quote { margin-top: 1rem; }
.post-sidebar h2 { margin: 0; color: var(--cp-palette-text); font-family: var(--cp-font-display); font-size: 1.15rem; line-height: 1.15; letter-spacing: -.025em; }
.post-sidebar__about { display: grid; grid-template-columns: 5.15rem minmax(0, 1fr); gap: .8rem; align-items: start; }
.post-sidebar__avatar { width: 5.15rem; height: 5.15rem; overflow: hidden; border-radius: 50%; background: #f5ded3; }
.post-sidebar__avatar-image, .post-sidebar__post-image img { width: 100%; height: 100%; object-fit: cover; }
.post-sidebar__about-copy p { margin: .45rem 0 0; color: var(--cp-color-muted); font-size: .72rem; line-height: 1.45; }
.post-sidebar__about-link { display: inline-flex; gap: .35rem; align-items: center; margin-top: .72rem; padding: .55rem .85rem; border-radius: 999px; background: #fde3e3; color: var(--cp-palette-text); font-size: .73rem; font-weight: 800; text-decoration: none; }
.post-sidebar__popular h2, .post-sidebar__newsletter h2, .post-sidebar__categories h2 { display: flex; gap: .45rem; align-items: center; }
.post-sidebar__post-list { display: grid; gap: .7rem; margin-top: .9rem; }
.post-sidebar__post { display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: .7rem; align-items: center; color: inherit; text-decoration: none; }
.post-sidebar__post-image { display: block; width: 4rem; height: 3.45rem; overflow: hidden; border-radius: .45rem; background: #f3e9df; }
.post-sidebar__post-placeholder { display: grid; width: 100%; height: 100%; place-items: center; font-size: 1.35rem; }
.post-sidebar__post-copy { display: grid; gap: .15rem; }
.post-sidebar__post-copy strong { color: var(--cp-palette-text); font-family: var(--cp-font-display); font-size: .8rem; line-height: 1.18; }
.post-sidebar__post-copy time { color: var(--cp-color-muted); font-size: .69rem; line-height: 1.2; }
.post-sidebar__post:hover strong { color: var(--cp-color-link); }
.post-sidebar__newsletter { background: linear-gradient(135deg, rgba(255,255,255,.94), #fff7f4); }
.post-sidebar__newsletter p { margin: .65rem 0 .85rem; color: var(--cp-color-muted); font-size: .75rem; line-height: 1.5; }
.post-sidebar__newsletter-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; overflow: hidden; border: 1px solid rgba(108, 89, 82, .16); border-radius: .5rem; background: #fff; }
.post-sidebar__newsletter-form input { min-width: 0; padding: .58rem .65rem; border: 0; border-radius: 0; background: transparent; font-size: .67rem; }
.post-sidebar__newsletter-form button { padding: .58rem .68rem; border-radius: .42rem; background: #ec7782; font-size: .67rem; }
.post-sidebar__category-clusters { display: grid; gap: .65rem; margin-top: .8rem; }
.post-sidebar__category-cluster { padding-top: .1rem; }
.post-sidebar__category-cluster + .post-sidebar__category-cluster { padding-top: .65rem; border-top: 1px solid color-mix(in srgb, var(--post-category-accent, #7b86c5) 18%, transparent); }
.post-sidebar__categories ul { display: grid; gap: .2rem; margin: .35rem 0 0; padding: 0 0 0 .4rem; list-style: none; }
.post-sidebar__category-parent, .post-sidebar__categories a { display: grid; grid-template-columns: 1.35rem minmax(0, 1fr) auto; gap: .55rem; align-items: center; padding: .22rem 0; color: var(--cp-color-muted); font-size: .73rem; line-height: 1.2; text-decoration: none; }
.post-sidebar__category-parent { padding: .45rem .5rem; border-radius: .55rem; background: var(--post-category-surface, #f4f2f0); color: var(--post-category-accent, var(--cp-palette-text)); font-weight: 800; }
.post-sidebar__category-parent b { background: rgba(255, 255, 255, .62); color: var(--post-category-accent, var(--cp-color-muted)); }
.post-sidebar__category-cluster li a:hover { color: var(--post-category-accent, var(--cp-palette-text)); }
.post-sidebar__category-cluster :is(.post-sidebar__category-parent, li a) img { width: 1.28rem; height: 1.28rem; padding: .16rem; border-radius: 50%; background: rgba(255, 255, 255, .56); }
.post-sidebar__categories img { width: 1.1rem; height: 1.1rem; object-fit: contain; }
.post-sidebar__categories b { min-width: 1.45rem; padding: .16rem .3rem; border-radius: 999px; background: #f4f2f0; color: var(--cp-color-muted); font-size: .65rem; font-weight: 700; text-align: center; }
.post-sidebar__categories a:hover { color: var(--cp-palette-text); }
.post-sidebar__quote { position: relative; display: block; min-height: 11.8rem; overflow: hidden; border-radius: .75rem; color: #fff; isolation: isolate; text-decoration: none; }
.post-sidebar__quote::after { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(21, 48, 61, .02), rgba(21, 48, 61, .52)); content: ""; }
.post-sidebar__quote img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.post-sidebar__quote span { position: absolute; right: 1rem; bottom: .9rem; left: 1rem; font-family: cursive; font-size: 1.7rem; font-weight: 700; line-height: .95; text-shadow: 0 .1rem .45rem rgba(0,0,0,.22); }
.post-sidebar__quote i { font: inherit; font-size: .8rem; vertical-align: middle; }

.entry-singular { padding: clamp(1.25rem, 3vw, 2.25rem); border: 1px solid rgba(108, 89, 82, .1); border-radius: 1.5rem; background: rgba(255, 255, 255, .78); box-shadow: 0 .75rem 2.4rem rgba(75, 53, 41, .06); }
.entry-singular .entry-header { gap: .55rem; width: 100%; margin-bottom: 1.35rem; }
.entry-singular .entry-title { width: 100%; max-width: none; font-size: clamp(2rem, 3.4vw, 3.15rem); line-height: 1.02; }
.entry-singular .entry-content > .alignfull { width: calc(100% + 2 * clamp(1.25rem, 3vw, 2.25rem)); margin-right: calc(clamp(1.25rem, 3vw, 2.25rem) * -1); margin-left: calc(clamp(1.25rem, 3vw, 2.25rem) * -1); }

.post-breadcrumbs { overflow: hidden; color: var(--cp-color-muted); font-size: clamp(.7rem, .95vw, .84rem); font-weight: 600; letter-spacing: .035em; line-height: 1.3; text-transform: uppercase; }
.post-breadcrumbs--top { position: absolute; top: 0; left: 0; z-index: 1; width: min(calc(100vw - 2rem), 90rem); max-width: none; margin: 0; padding: .7rem 1rem; }
.post-breadcrumbs ol { display: flex; flex-wrap: nowrap; gap: .35rem .5rem; align-items: center; width: 100%; min-width: 0; margin: 0; padding: 0; list-style: none; }
.post-breadcrumbs li { display: inline-flex; gap: .5rem; align-items: center; white-space: nowrap; }
.post-breadcrumbs li:not(:last-child)::after { content: '›'; color: currentColor; font-size: 1.15em; font-weight: 500; }
.post-breadcrumbs a { color: inherit; text-decoration: none; }
.post-breadcrumbs__category, .post-breadcrumbs li:last-child { text-transform: none; }
.post-breadcrumbs__category { font-weight: 400; }
.post-breadcrumbs a:hover { color: var(--cp-color-link); }
.post-breadcrumbs li:last-child { flex: 1 1 auto; min-width: 0; overflow: hidden; color: inherit; font-weight: 500; white-space: nowrap; }
.post-breadcrumbs li:last-child > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body:has(.single-post-layout) .site-shell { padding-top: .65rem; }

.post-category-pill { width: fit-content; padding: .28rem .55rem; border-radius: 999px; background: color-mix(in srgb, var(--cp-color-accent) 16%, white); color: var(--cp-color-accent); font-size: .62rem; font-weight: 800; line-height: 1.15; text-decoration: none; text-transform: uppercase; }
.post-category-pill:hover { color: var(--cp-color-accent); background: color-mix(in srgb, var(--cp-color-accent) 24%, white); }
.post-byline { display: flex; flex-wrap: wrap; gap: .45rem .85rem; align-items: center; margin-top: .25rem; color: var(--cp-color-muted); font-size: .68rem; line-height: 1.2; }
.post-byline > span { display: inline-flex; gap: .3rem; align-items: center; }
.post-byline > span:not(:last-child)::after { width: .22rem; height: .22rem; margin-left: .45rem; border-radius: 50%; background: color-mix(in srgb, var(--cp-color-muted) 50%, transparent); content: ''; }
.post-byline__author { display: inline-flex; gap: .35rem; align-items: center; color: inherit; font-weight: 700; text-decoration: none; }
.post-byline__author img { width: 1.5rem; height: 1.5rem; border-radius: 50%; }

/* Comments */
.comments-area {
	display: grid;
	gap: 1.1rem;
	margin-top: clamp(1.75rem, 4vw, 3rem);
	padding: clamp(1rem, 2.2vw, 1.5rem);
	border: 1px solid color-mix(in srgb, var(--cp-color-accent) 16%, transparent);
	border-radius: 1rem;
	background: rgba(255, 255, 255, .78);
	box-shadow: 0 .5rem 1.5rem rgba(75, 53, 41, .045);
}

.comments-area__header {
	display: grid;
	gap: .2rem;
}

.comments-area__header .comments-title {
	margin: 0;
	color: var(--cp-color-text);
	font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.comments-area__header p {
	margin: 0;
	color: var(--cp-color-muted);
	font-size: .86rem;
	line-height: 1.5;
}

.comments-area__closed {
	margin: 0;
	padding: .85rem 1rem;
	border-radius: .7rem;
	background: color-mix(in srgb, var(--cp-category-surface, #fde1e4) 48%, white);
	color: var(--cp-color-muted);
	font-size: .88rem;
}

.comments-area #respond {
	padding: .85rem;
	border: 1px solid color-mix(in srgb, var(--cp-color-accent) 13%, transparent);
	border-radius: .8rem;
	background: color-mix(in srgb, var(--cp-category-surface, #fde1e4) 24%, white);
}

.comments-area .comment-reply-title {
	margin: 0 0 .55rem;
	font-family: inherit;
	font-size: .78rem;
	font-weight: 800;
	letter-spacing: .14em;
	line-height: 1.3;
	text-transform: uppercase;
}

.comments-area .comment-reply-title small { margin-left: .5rem; }
.comments-area .comment-reply-title small a { font-family: inherit; font-size: .78rem; font-weight: 700; }

.comments-area .comment-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .55rem;
	margin: 0;
}

.comments-area .comment-form > p { margin: 0; }
.comments-area .comment-form-comment,
.comments-area .comment-form-author,
.comments-area .comment-form-cookies-consent,
.comments-area .form-submit { grid-column: 1 / -1; }

.comments-area .comment-form-author { max-width: 20rem; }

.comments-area .comment-form label {
	display: block;
	margin: 0 0 .28rem;
	color: var(--cp-color-muted);
	font-size: .7rem;
	font-weight: 600;
}

.comments-area .comment-form textarea,
.comments-area .comment-form input:not([type="checkbox"]) {
	width: 100%;
	border: 1px solid color-mix(in srgb, var(--cp-color-accent) 16%, transparent);
	border-radius: .45rem;
	background: rgba(255, 255, 255, .94);
	box-shadow: none;
}

.comments-area .comment-form textarea {
	min-height: 6.5rem;
	resize: vertical;
}

.comments-area .comment-form textarea:focus,
.comments-area .comment-form input:focus {
	border-color: var(--cp-color-accent);
	outline: 3px solid color-mix(in srgb, var(--cp-color-accent) 18%, transparent);
}

.comments-area .comment-form-cookies-consent { display: none; }
.comments-area .form-submit { display: flex; justify-content: flex-end; }
.comments-area .form-submit .submit {
	display: inline-flex;
	width: auto;
	padding: .65rem 1.1rem;
	border: 1px solid #9e4558;
	border-radius: 999px;
	background: #a9465a;
	color: #fff;
	font-size: .75rem;
	font-weight: 800;
	line-height: 1.2;
	text-shadow: none;
}

.comments-area .form-submit .submit:hover,
.comments-area .form-submit .submit:focus-visible {
	background: #843548;
	color: #fff;
}

.comments-area .comment-list,
.comments-area .children {
	display: grid;
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.comments-area .comment-list { gap: .65rem; }
.comments-area .children { margin: .65rem 0 0 clamp(1rem, 4vw, 2.5rem); }

.comments-area .comment-card {
	display: grid;
	grid-template-columns: 2.5rem minmax(0, 1fr);
	gap: .65rem;
	padding: clamp(.8rem, 1.8vw, 1rem);
	border: 1px solid color-mix(in srgb, var(--cp-color-accent) 14%, transparent);
	border-radius: .55rem;
	background: rgba(255, 255, 255, .56);
}

.comments-area .comment-card__avatar {
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 3px;
	border-radius: 50%;
	background: linear-gradient(135deg, #f2a8ad, #d97873 52%, #f6d291);
	box-shadow: 0 .3rem .8rem rgba(169, 70, 90, .18);
}

.comments-area .comment-card__avatar img {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background: #fff8f4;
	object-fit: cover;
}

.comments-area .comment-card__content { min-width: 0; }

.comments-area .comment-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: .3rem .65rem;
	align-items: baseline;
	margin-bottom: .18rem;
}

.comments-area .comment-card__author {
	color: var(--cp-color-text);
	font-family: inherit;
	font-size: .82rem;
	font-style: normal;
	font-weight: 800;
}

.comments-area .comment-card__author a { color: inherit; text-decoration: none; }
.comments-area .comment-card__date,
.comments-area .comment-card__edit { color: var(--cp-color-muted); font-size: .72rem; }
.comments-area .comment-card__edit a { color: inherit; }
.comments-area .comment-card__text { color: var(--cp-color-text); font-size: .84rem; line-height: 1.48; }
.comments-area .comment-card__text > :first-child { margin-top: 0; }
.comments-area .comment-card__text > :last-child { margin-bottom: .45rem; }
.comments-area .comment-card__awaiting { margin: 0 0 .5rem; color: var(--cp-color-accent); font-size: .8rem; font-weight: 700; }
.comments-area .comment-reply-link { color: var(--cp-color-accent); font-size: .76rem; font-weight: 800; text-decoration: none; }
.comments-area .comment-card #respond { margin-top: 1rem; }

@media (max-width: 36rem) {
	.comments-area .comment-form { grid-template-columns: 1fr; }
	.comments-area .comment-card { grid-template-columns: 2.25rem minmax(0, 1fr); gap: .55rem; }
	.comments-area .comment-card__avatar { width: 2.25rem; height: 2.25rem; }
	.comments-area .comment-card__avatar img { width: 100%; height: 100%; }
	.comments-area .children { margin-left: 1.25rem; }
}

@media (max-width: 48rem) {
	.single-post-layout { display: block; }
	.article-sidebar { padding-top: 0; }
	.article-sidebar-inner { position: static; }
}
