/* ==========================================================================
   Abode & Bloom — Editorial single-post reading layout
   ========================================================================== */

.ab-single {
	--reading-max: 1240px;
	--reading-column: 760px;
	--side-column: 304px;
	--reading-gap: clamp(32px, 6vw, 84px);
	background: var(--canvas);
}

.ab-single .single-article-shell {
	width: min(100%, var(--reading-max));
	margin-inline: auto;
	padding: clamp(26px, 4vw, 48px) var(--gut) 0;
}

/* Article introduction: deliberately narrower than the body for a calm editorial rhythm. */
.ab-single .single-head {
	max-width: 930px;
	margin: 0 auto;
	text-align: center;
}

.ab-single .crumbs {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-bottom: clamp(28px, 4vw, 44px);
	font-size: 13px;
	color: var(--muted);
}

.ab-single .crumbs a {
	color: var(--muted);
	border-bottom: 1px solid transparent;
	transition: color .2s ease, border-color .2s ease;
}

.ab-single .crumbs a:hover { color: var(--moss); border-color: var(--moss); }
.ab-single .crumbs svg { width: 14px; height: 14px; opacity: .55; }

.ab-single .single-kicker {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin-bottom: 16px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .17em;
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--fern);
}

.ab-single .single-kicker > span {
	width: 26px;
	height: 2px;
	border-radius: 3px;
	background: var(--marigold);
}

.ab-single .single-title {
	max-width: 920px;
	margin: 0 auto;
	font-size: clamp(38px, 6vw, 70px);
	font-weight: 600;
	letter-spacing: -.045em;
	line-height: .99;
	text-wrap: balance;
	color: var(--ink);
}

.ab-single .single-dek {
	max-width: 680px;
	margin: 22px auto 0;
	font-size: clamp(16px, 2vw, 20px);
	line-height: 1.6;
	color: var(--muted);
	text-wrap: pretty;
}

.ab-single .single-meta {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 16px;
	margin: 30px auto 0;
	color: var(--muted);
	font-size: 13px;
}

.ab-single .single-meta > span:not(.who):not(.meta-divider) {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	text-align: left;
}

.ab-single .single-meta strong {
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--ink);
}

.ab-single .single-meta small {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .1em;
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--muted);
}

.ab-single .single-meta .who {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.ab-single .single-meta .who-copy {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
}

.ab-single .single-meta .avatar {
	width: 44px;
	height: 44px;
	flex: none;
	overflow: hidden;
	border: 2px solid var(--cream);
	border-radius: 50%;
	background: var(--sage-soft);
	box-shadow: 0 0 0 1px var(--line-strong);
}

.ab-single .single-meta .avatar img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ab-single .meta-divider {
	width: 1px;
	height: 30px;
	background: var(--line-strong);
}

/* Wide hero image with a restrained, magazine-like frame. */
.ab-single .single-banner {
	position: relative;
	width: 100%;
	max-width: 1060px;
	margin: clamp(34px, 5vw, 58px) auto 0;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 24px;
	background: var(--cream);
	box-shadow: 0 18px 48px rgba(27, 42, 33, .12);
}

.ab-single .single-banner::after {
	position: absolute;
	inset: 0;
	pointer-events: none;
	content: "";
	background: linear-gradient(180deg, rgba(10, 20, 14, .02), transparent 35%, rgba(10, 20, 14, .12));
}

.ab-single .single-banner-img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 8.5;
	object-fit: cover;
}

/* The reading area: strong hierarchy, generous measure, quiet sidebar. */
.ab-single .single-grid {
	display: grid;
	grid-template-columns: minmax(0, var(--reading-column)) minmax(260px, var(--side-column));
	align-items: start;
	justify-content: center;
	gap: var(--reading-gap);
	margin: clamp(42px, 6vw, 76px) auto 0;
}

.ab-single .single-main {
	min-width: 0;
	padding: clamp(26px, 4vw, 54px) clamp(22px, 4.8vw, 64px) clamp(30px, 4vw, 52px);
	border: 1px solid var(--line);
	border-radius: 24px;
	background: var(--cream);
	box-shadow: 0 10px 32px rgba(27, 42, 33, .055);
}

.ab-single .entry-content {
	max-width: 68ch;
	margin-inline: auto;
	font-size: clamp(17px, 1.3vw, 18.5px);
	line-height: 1.86;
	color: var(--ink);
}

.ab-single .entry-content > * + * { margin-top: 1.25em; }
.ab-single .entry-content > p:first-child { font-size: 1.12em; line-height: 1.76; }
.ab-single .entry-content > p:first-child::first-letter { float: left; margin: .06em .1em 0 0; font-family: var(--f-display); font-size: 3.9em; font-weight: 600; line-height: .8; color: var(--moss); }

.ab-single .entry-content h2,
.ab-single .entry-content h3,
.ab-single .entry-content h4 {
	font-family: var(--f-display);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -.025em;
	color: var(--ink);
}

.ab-single .entry-content h2 {
	margin-top: 2.2em;
	padding-top: .4em;
	font-size: clamp(27px, 3.6vw, 37px);
}

.ab-single .entry-content h3 { margin-top: 1.9em; font-size: clamp(22px, 3vw, 28px); }
.ab-single .entry-content h4 { margin-top: 1.7em; font-size: 20px; }

.ab-single .entry-content h2::before {
	display: block;
	width: 38px;
	height: 3px;
	margin-bottom: 15px;
	border-radius: 4px;
	content: "";
	background: var(--marigold);
}

.ab-single .entry-content a { color: var(--moss); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ab-single .entry-content a:hover { color: var(--marigold-deep); }
.ab-single .entry-content strong { font-weight: 700; color: var(--ink); }
.ab-single .entry-content ul,
.ab-single .entry-content ol { padding-left: 1.35em; }
.ab-single .entry-content li + li { margin-top: .55em; }
.ab-single .entry-content li::marker { color: var(--fern); }
.ab-single .entry-content img { max-width: 100%; height: auto; border-radius: 14px; }
.ab-single .entry-content figure { margin: 2em 0; }
.ab-single .entry-content figure img,
.ab-single .entry-content > img { display: block; margin-inline: auto; }
.ab-single .entry-content figcaption { margin-top: 10px; font-size: 13px; line-height: 1.5; text-align: center; color: var(--muted); }
.ab-single .entry-content blockquote { margin: 2em 0; padding: 18px 24px; border-left: 3px solid var(--marigold); border-radius: 0 12px 12px 0; background: var(--sage-soft); font-family: var(--f-display); font-size: clamp(21px, 2.5vw, 27px); font-style: italic; line-height: 1.35; color: var(--moss); }
.ab-single .entry-content blockquote p { margin: 0; }
.ab-single .entry-content code { padding: .15em .4em; border-radius: 6px; background: var(--sage-soft); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; }
.ab-single .entry-content pre { overflow: auto; padding: 18px 20px; border-radius: 14px; background: #10201a; color: #e7efe6; font-size: 14px; line-height: 1.65; }
.ab-single .entry-content pre code { padding: 0; background: none; color: inherit; }
.ab-single .entry-content hr { margin: 2.5em 0; border: 0; border-top: 1px solid var(--line); }
.ab-single .entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ab-single .entry-content th,
.ab-single .entry-content td { padding: 11px 13px; border: 1px solid var(--line); text-align: left; }
.ab-single .entry-content th { background: var(--sage-soft); font-weight: 700; }

/* Tags and follow actions become a deliberate article ending. */
.ab-single .post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 38px auto 0; max-width: 68ch; padding-top: 24px; border-top: 1px solid var(--line); }
.ab-single .post-tags a.tag { text-transform: none; letter-spacing: .02em; }
.ab-single .share { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 26px auto 0; max-width: 68ch; padding-top: 24px; border-top: 1px solid var(--line); }
.ab-single .share .share-label { font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }
.ab-single .share-links { display: flex; flex-wrap: wrap; gap: 9px; }
.ab-single .share-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; color: var(--ink); transition: transform .18s ease, background-color .2s ease, color .2s ease, border-color .2s ease; }
.ab-single .share-btn:hover { transform: translateY(-2px); border-color: var(--moss); background: var(--moss); color: #fff; }
.ab-single .share-btn svg { width: 18px; height: 18px; }

/* Sidebar cards intentionally feel like supporting editorial modules. */
.ab-single .single-side { min-width: 0; }
.ab-single .single-side > * { margin-bottom: 20px; }
.ab-single .single-side .side-card { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--cream); box-shadow: 0 8px 26px rgba(27, 42, 33, .045); }
.ab-single .single-side .side-title { margin-bottom: 18px; font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--fern); }
.ab-single .author-hero { position: relative; overflow: hidden; text-align: center; }
.ab-single .author-hero::before { position: absolute; top: 0; right: 0; left: 0; height: 5px; content: ""; background: linear-gradient(90deg, var(--moss), var(--marigold)); }
.ab-single .author-photo { width: 116px; height: 116px; margin: 6px auto 18px; overflow: hidden; border: 5px solid var(--cream); border-radius: 50%; background: var(--sage-soft); box-shadow: 0 0 0 1px var(--line-strong), 0 12px 22px rgba(27, 42, 33, .12); }
.ab-single .author-photo img,
.ab-single .author-img { display: block; width: 100% !important; height: 100% !important; object-fit: cover; border-radius: inherit; }
.ab-single .author-greet { margin-bottom: 13px; font-family: var(--f-display); font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; line-height: 1.12; color: var(--moss); }
.ab-single .author-rule { display: block; width: 42px; height: 3px; margin: 0 auto 16px; border-radius: 4px; background: var(--marigold); }
.ab-single .author-bio { margin-bottom: 20px; font-size: 14px; line-height: 1.7; color: var(--muted); }
.ab-single .author-pin-btn { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; width: 100%; padding: 12px 16px; border-radius: 11px; background: #BD081C; color: #fff; font-size: 14px; font-weight: 700; transition: transform .18s ease, box-shadow .2s ease, background-color .2s ease; }
.ab-single .author-pin-btn:hover { transform: translateY(-2px); background: #9C0616; box-shadow: 0 8px 20px rgba(189, 8, 28, .25); }
.ab-single .author-pin-btn svg { width: 18px; height: 18px; }
.ab-single .author-ig { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 13px; color: var(--moss); font-size: 13px; font-weight: 700; }
.ab-single .author-ig:hover { color: var(--marigold-deep); }
.ab-single .author-ig svg { width: 17px; height: 17px; }

.ab-single .side-item { display: block; padding: 14px 0; border-top: 1px solid var(--line); }
.ab-single .side-item:first-of-type { padding-top: 0; border-top: 0; }
.ab-single .side-cat { display: inline-block; margin-bottom: 6px; color: var(--fern); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.ab-single .side-item h4 { font-family: var(--f-display); font-size: 17px; font-weight: 600; line-height: 1.24; transition: color .15s ease; }
.ab-single .side-item:hover h4 { color: var(--moss); }
.ab-single .side-item .meta { margin-top: 6px; font-size: 11px; }

/* Keep the supporting sections visually separate from the reading surface. */
.ab-single .single-trending { margin-top: clamp(56px, 8vw, 96px); margin-right: 0; margin-left: 0; border-radius: 0; padding: 48px 0 52px; }
.ab-single .single-trending .inner { width: min(100%, var(--reading-max)); margin-inline: auto; padding-inline: var(--gut); }
.ab-single .single-trending .trend-card { flex-basis: 270px; }
.ab-single .single-trending .trend-card h3 { font-size: 17px; }
.ab-single .post-nav { display: grid; gap: 14px; padding-block: 44px 58px; }
.ab-single .post-nav a { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--cream); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.ab-single .post-nav a:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.ab-single .post-nav .nav-next { justify-content: flex-end; text-align: right; }
.ab-single .post-nav .pn-thumb { width: 58px; height: 58px; flex: none; }
.ab-single .post-nav .pn-thumb .ph { aspect-ratio: 1 / 1; border-radius: 10px; }
.ab-single .post-nav .pn-label { display: flex; align-items: center; gap: 6px; color: var(--fern); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ab-single .post-nav .nav-next .pn-label { justify-content: flex-end; }
.ab-single .post-nav .pn-title { margin-top: 5px; color: var(--ink); font-family: var(--f-display); font-size: 16px; font-weight: 600; line-height: 1.2; }
.ab-single .post-nav svg { width: 15px; height: 15px; }

@media (min-width: 1100px) {
	.ab-single .single-side { position: sticky; top: 92px; }
}

@media (max-width: 1099px) {
	.ab-single .single-grid { grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; }
	.ab-single .single-main { padding-inline: clamp(24px, 4vw, 44px); }
}

@media (max-width: 820px) {
	.ab-single .single-grid { display: block; }
	.ab-single .single-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
	.ab-single .single-side > * { margin: 0; }
	.ab-single .single-side .author-hero { grid-column: 1 / -1; }
	.ab-single .single-side .side-card + .side-card { margin-top: 0; }
}

@media (max-width: 620px) {
	.ab-single .single-article-shell { padding-top: 20px; }
	.ab-single .crumbs { margin-bottom: 28px; }
	.ab-single .single-title { font-size: clamp(36px, 11vw, 54px); line-height: 1.01; }
	.ab-single .single-dek { margin-top: 17px; font-size: 16px; }
	.ab-single .single-meta { justify-content: flex-start; gap: 12px; margin-top: 24px; }
	.ab-single .single-meta .meta-divider { display: none; }
	.ab-single .single-meta > span:not(.who):not(.meta-divider) { align-items: flex-start; }
	.ab-single .single-banner { margin-top: 34px; border-radius: 16px; }
	.ab-single .single-banner-img { aspect-ratio: 1 / .72; }
	.ab-single .single-main { padding: 24px 19px 30px; border-radius: 18px; }
	.ab-single .entry-content { font-size: 17px; line-height: 1.8; }
	.ab-single .entry-content > p:first-child { font-size: 1.06em; }
	.ab-single .entry-content > p:first-child::first-letter { font-size: 3.3em; }
	.ab-single .single-side { display: block; }
	.ab-single .single-side > * { margin-bottom: 16px; }
	.ab-single .single-side .side-card + .side-card { margin-top: 16px; }
	.ab-single .single-trending { padding-block: 38px 42px; }
	.ab-single .post-nav { padding-block: 30px 42px; }
}

/* Force readable article title in dark mode, including when Astra adds a stronger heading color. */
html[data-theme="dark"] .ab-single .single-title {
	color: #F4F7F2 !important;
}

@media (prefers-reduced-motion: no-preference) {
	.ab-single .single-trending.reveal,
	.ab-single .post-nav.reveal { opacity: 0; transform: translateY(16px); }
	.ab-single .single-trending.reveal.in,
	.ab-single .post-nav.reveal.in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s cubic-bezier(.2, .6, .2, 1); }
}
