.jt-notes-archive,
.jt-notes-single-wrap {
	padding-block: var(--wp--preset--spacing--60, 3rem);
}

.jt-notes-archive > h1 {
	margin-bottom: 0.35rem;
}

.jt-notes-archive__intro {
	max-width: 38rem;
	margin-top: 0;
	color: color-mix(in srgb, currentColor 70%, transparent);
}

.jt-notes-archive .wp-block-post-template {
	margin-top: var(--wp--preset--spacing--60, 3rem);
	padding: 0;
	list-style: none;
}

.jt-note {
	position: relative;
	margin: 0;
	padding: 1.35rem 0 1.45rem 2rem;
	border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent);
}

.jt-note__mark {
	position: absolute;
	top: 1.52rem;
	left: 0;
	font-size: 0.78em;
	line-height: 1;
	opacity: 0.72;
}

.jt-note__content {
	font-size: clamp(1rem, 0.96rem + 0.18vw, 1.125rem);
	line-height: 1.55;
}

.jt-note__content > :first-child {
	margin-top: 0;
}

.jt-note__content > :last-child {
	margin-bottom: 0;
}

.jt-note__content a,
.jt-note__quote a {
	text-decoration-thickness: 0.06em;
	text-underline-offset: 0.14em;
}

.jt-note__meta,
.jt-note__quote {
	margin-top: 0.7rem;
	font-size: 0.78rem;
	line-height: 1.4;
	letter-spacing: 0.015em;
	color: color-mix(in srgb, currentColor 62%, transparent);
}

.jt-note__meta a,
.jt-note__quote a {
	color: inherit;
}

.jt-note__images {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.5rem;
	margin-top: 1rem;
}

.jt-note__image {
	margin: 0;
}

.jt-note__image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 4px;
}

.jt-note--single {
	max-width: 42rem;
	border-top: 0;
}

.jt-notes-recent {
	margin: 0;
}

.jt-notes-recent > h3 {
	margin: 0 0 0.75rem;
	font-size: var(--wp--preset--font-size--medium, 1rem);
	font-weight: 600;
	text-transform: lowercase;
}

.jt-note--home {
	display: flex;
	min-height: 0;
	flex-direction: column;
	justify-content: space-between;
	box-sizing: border-box;
	padding: 1.05rem 1rem 0.95rem 2.65rem;
	border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
	border-radius: 6px;
	background: color-mix(in srgb, currentColor 5%, transparent);
}

.jt-note--home .jt-note__mark {
	top: 1.25rem;
	left: 1rem;
}

.jt-note--home .jt-note__content {
	font-size: 0.94rem;
}

.jt-note--home .jt-note__meta {
	margin-top: 0.35rem;
}

.jt-notes-recent__all {
	margin: 0;
	font-size: 0.8rem;
	text-align: right;
}

/*
 * The current Hey Child homepage has two stacked sections on the left:
 * the Posts Query and Pinboard links. Notes spans their combined height in a
 * right rail, while the masthead and footer keep their existing full width.
 */
.home .wp-block-cover__inner-container > .wp-block-group {
	display: grid;
	grid-template-columns: minmax(0, 1.65fr) minmax(18rem, 0.85fr);
	grid-template-areas:
		"masthead masthead"
		"posts-label notes"
		"posts notes"
		"separator notes"
		"links-label notes"
		"links notes"
		"spacer spacer";
	column-gap: clamp(2.5rem, 6vw, 5rem);
	width: min(100%, 64rem);
	max-width: 64rem;
	margin-inline: auto;
}

.home .wp-block-cover__inner-container > .wp-block-group > * {
	width: 100%;
	max-width: none;
	margin-inline: 0;
}

.home .wp-block-cover__inner-container > .wp-block-group > header,
.home .wp-block-cover__inner-container > .wp-block-group > h1 {
	grid-area: masthead;
}

.home .wp-block-cover__inner-container > .wp-block-group > header + h1 {
	grid-area: masthead;
}

.home .wp-block-cover__inner-container > .wp-block-group > h4:nth-of-type(1),
.home .wp-block-cover__inner-container > .wp-block-group > h3.section-label:first-of-type {
	grid-area: posts-label;
}

.home .wp-block-cover__inner-container > .wp-block-group > .wp-block-query {
	grid-area: posts;
}

.home .wp-block-cover__inner-container > .wp-block-group > .wp-block-separator {
	grid-area: separator;
	margin-block: var(--wp--preset--spacing--50, 2rem);
}

.home .wp-block-cover__inner-container > .wp-block-group > h4:nth-of-type(2),
.home .wp-block-cover__inner-container > .wp-block-group > h3.section-label:last-of-type {
	grid-area: links-label;
}

.home .wp-block-cover__inner-container > .wp-block-group > .pinboard-aside {
	grid-area: links;
}

.home .wp-block-cover__inner-container > .wp-block-group > .wp-block-spacer {
	grid-area: spacer;
}

.home .wp-block-cover__inner-container > .wp-block-group > .jt-notes-recent {
	grid-area: notes;
	display: grid;
	grid-template-rows: auto repeat(4, minmax(0, 1fr)) auto;
	gap: 0.85rem;
	align-self: stretch;
}

@media (max-width: 800px) {
	.home .wp-block-cover__inner-container > .wp-block-group {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"masthead"
			"posts-label"
			"posts"
			"notes"
			"separator"
			"links-label"
			"links"
			"spacer";
		column-gap: 0;
	}

	.home .wp-block-cover__inner-container > .wp-block-group > .jt-notes-recent {
		grid-template-rows: none;
		margin-top: var(--wp--preset--spacing--50, 2rem);
		padding-top: var(--wp--preset--spacing--50, 2rem);
		border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent);
	}

	.jt-note {
		padding-left: 1.5rem;
	}

	.jt-note--home {
		padding-left: 2.65rem;
	}

	.jt-note__images {
		grid-template-columns: 1fr;
	}
}
