:root {
	--so-bg: #FFF6F7;
	--so-surface: #FFFFFF;
	--so-ink: #2B1B22;
	--so-muted: #7A6470;
	--so-accent: #D63A6A;
	--so-accent-dark: #B42A56;
	--so-tint: #FCE1E8;
	--so-tint-hover: #F8CBD8;
	--so-line: #F1D9E0;
	--so-footer-text: #E9D3DA;
	--so-heading: 'Bricolage Grotesque', 'DM Sans', sans-serif;
	--so-body: 'DM Sans', sans-serif;
}

/* ---------- Base ---------- */
body,
.ast-separate-container,
.ast-plain-container,
.site-content {
	background: var(--so-bg);
}
body,
button,
input,
textarea,
.entry-content {
	font-family: var(--so-body);
	color: var(--so-ink);
}
h1, h2, h3, h4, h5, h6,
.entry-title,
.site-title {
	font-family: var(--so-heading);
	font-weight: 700;
	color: var(--so-ink);
	letter-spacing: -0.02em;
	line-height: 1.12;
}
a { color: var(--so-accent); }
a:hover { color: var(--so-accent-dark); }
::selection { background: var(--so-tint); color: var(--so-ink); }
.elementor-widget-text-editor p:last-child { margin-bottom: 0; }

/* ---------- Header ---------- */
#masthead { position: sticky; top: 0; z-index: 99; }
.admin-bar #masthead { top: 32px; }
#masthead .ast-primary-header-bar,
#masthead .main-header-bar {
	background: var(--so-surface);
	border-bottom: 1px solid var(--so-line);
}
#masthead .site-title,
#masthead .site-title a {
	font-family: var(--so-heading);
	font-size: 22px;
	font-weight: 700;
	color: var(--so-ink);
	letter-spacing: -0.02em;
}
#masthead .site-description { display: none; }
#masthead .main-header-menu .menu-link {
	font-family: var(--so-body);
	font-size: 15px;
	font-weight: 500;
	color: var(--so-ink);
	padding: 0 14px;
}
#masthead .main-header-menu .menu-item:hover > .menu-link,
#masthead .main-header-menu .current-menu-item > .menu-link { color: var(--so-accent); }
#masthead .ast-custom-button {
	background: var(--so-accent);
	color: #FFFFFF;
	border: 0;
	border-radius: 999px;
	padding: 10px 20px;
	font-family: var(--so-body);
	font-size: 14px;
	font-weight: 500;
}
#masthead .ast-custom-button:hover { background: var(--so-accent-dark); }

/* ---------- Footer ---------- */
.site-footer,
.site-footer .site-below-footer-wrap,
.site-footer .site-primary-footer-wrap,
.site-footer .site-above-footer-wrap {
	background: var(--so-ink) !important;
	border: 0;
}
.site-footer,
.site-footer p,
.site-footer .ast-footer-copyright { color: var(--so-footer-text); font-size: 14px; }
.site-footer a,
.site-footer .menu-link { color: #FFFFFF; font-weight: 500; }
.site-footer a:hover,
.site-footer .menu-link:hover { color: var(--so-tint); }

/* ---------- Buttons ---------- */
.elementor-button,
.wp-block-button__link {
	border-radius: 999px;
	font-family: var(--so-body);
	font-weight: 500;
}

/* ---------- Section heads ---------- */
.so-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 18px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--so-line);
}
.so-head__title { margin: 0; font-size: 28px; }
.so-head__more {
	font-size: 15px;
	font-weight: 500;
	color: var(--so-accent);
	text-decoration: none;
	white-space: nowrap;
}
.so-head__more::after { content: ' \2192'; }

/* ---------- Cards ---------- */
.so-card { min-width: 0; }
.so-card__media {
	display: block;
	overflow: hidden;
	border-radius: 18px;
	background: var(--so-tint);
}
.so-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
}
.so-card:hover .so-card__media img { transform: scale(1.03); }
.so-card__cat {
	display: inline-block;
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--so-accent);
	text-decoration: none;
}
.so-card__title { margin: 0; font-weight: 700; line-height: 1.18; }
.so-card__title a { color: var(--so-ink); text-decoration: none; }
.so-card__title a:hover { color: var(--so-accent); }
.so-card__excerpt { margin: 10px 0 0; color: var(--so-muted); font-size: 16px; line-height: 1.6; }

.so-card--lg .so-card__media { aspect-ratio: 16 / 10; }
.so-card--lg .so-card__body { padding-top: 18px; }
.so-card--lg .so-card__title { font-size: 34px; line-height: 1.08; }

.so-card--md .so-card__media { aspect-ratio: 4 / 5; }
.so-card--md .so-card__body { padding-top: 14px; }
.so-card--md .so-card__title { font-size: 19px; }

.so-card--wide .so-card__media { aspect-ratio: 16 / 10; }
.so-card--wide .so-card__body { padding: 14px 0 6px; }
.so-card--wide .so-card__title { font-size: 22px; }

.so-card--sm {
	display: grid;
	grid-template-columns: 84px minmax(0, 1fr);
	gap: 14px;
	align-items: center;
	padding: 12px 0;
	border-top: 1px solid var(--so-line);
}
.so-card--sm .so-card__media { aspect-ratio: 1 / 1; border-radius: 12px; }
.so-card--sm .so-card__cat { font-size: 11px; margin-bottom: 4px; }
.so-card--sm .so-card__title { font-size: 16px; line-height: 1.25; }

/* ---------- Homepage layouts ---------- */
.so-featured {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	gap: 48px;
	align-items: start;
}
.so-featured__label {
	margin: 0 0 6px;
	font-size: 20px;
}
.so-featured__list .so-card--sm:first-of-type { border-top: 0; }
.so-row {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
}

/* ---------- Category chips (archives) ---------- */
.so-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 28px;
}
.so-chip,
.so-chip:visited {
	display: inline-block;
	padding: 9px 18px;
	border-radius: 999px;
	background: var(--so-tint);
	color: var(--so-ink);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
}
.so-chip:hover { background: var(--so-tint-hover); color: var(--so-ink); }
.so-chip.is-active { background: var(--so-ink); color: #FFFFFF; }

/* ---------- Single post ---------- */
.single-post .entry-content {
	font-size: 18px;
	line-height: 1.75;
}
.single-post .entry-content > p,
.single-post .entry-content > ul,
.single-post .entry-content > ol { max-width: 68ch; }
.single-post .entry-content h2 { font-size: 30px; margin: 1.6em 0 .5em; }
.single-post .entry-content h3 { font-size: 23px; margin: 1.4em 0 .4em; }
body.single-post .entry-header .entry-title { font-size: 44px; line-height: 1.08; margin-top: 6px; }
body.single-post .entry-header .ast-terms-link a,
body.single-post .entry-header .cat-links a { font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--so-accent); text-decoration: none; }
body.single-post .ast-single-author-box { background: var(--so-surface) !important; border-radius: 18px; }
body.single-post .ast-single-author-box .ast-author-meta .about-author-title-wrapper,
body.single-post .ast-single-author-box .page-title { font-family: var(--so-heading); }
.single-post .entry-meta,
.single-post .entry-meta a { color: var(--so-muted); font-size: 15px; }
.single-post .post-thumb img,
.single-post .entry-content img { border-radius: 18px; }

/* so-noshadow */
body.single-post .post-thumb img,
body.single-post .post-thumb-img-content img { box-shadow: none !important; }

/* Pinterest Save on article images */
.so-pinwrap { position: relative; display: inline-block; max-width: 100%; line-height: 0; }
.so-save,
.so-save:visited {
	position: absolute;
	top: 14px;
	right: 14px;
	padding: 8px 16px;
	border-radius: 999px;
	background: var(--so-accent);
	color: #FFFFFF;
	font-family: var(--so-body);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	opacity: 0;
	transition: opacity .2s ease, background-color .2s ease;
}
.so-pinwrap:hover .so-save,
.so-save:focus-visible { opacity: 1; }
.so-save:hover { background: var(--so-accent-dark); color: #FFFFFF; }

/* Table of contents */
#ez-toc-container {
	background: var(--so-surface) !important;
	border: 1px solid var(--so-line) !important;
	border-radius: 18px !important;
	padding: 18px 22px !important;
	box-shadow: none !important;
	font-family: var(--so-body);
}
#ez-toc-container .ez-toc-title { font-family: var(--so-heading); font-weight: 700; color: var(--so-ink); font-size: 18px; }
#ez-toc-container a { color: var(--so-ink); }
#ez-toc-container a:hover { color: var(--so-accent); }

/* Sidebar */
#secondary .widget {
	background: var(--so-surface);
	border-radius: 18px;
	padding: 22px;
	margin-bottom: 24px;
}
#secondary .widget h2,
#secondary .widget .widget-title,
#secondary .wp-block-heading { font-size: 18px; margin: 0 0 10px; }
#secondary .so-popular .so-card--sm:first-child { border-top: 0; padding-top: 0; }
#secondary .so-card--sm { grid-template-columns: 64px minmax(0, 1fr); }
#secondary .so-card--sm .so-card__title { font-size: 15px; }
.so-about { text-align: left; }
.so-about__img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin-bottom: 12px; }
.so-about__title { font-family: var(--so-heading); font-weight: 700; font-size: 19px; line-height: 1.2; margin: 0 0 6px; }
.so-about__text { color: var(--so-muted); font-size: 15px; line-height: 1.6; margin: 0 0 12px; }
.so-about__link { font-weight: 500; text-decoration: none; }
.so-about__link::after { content: ' \2192'; }
#secondary .wp-block-categories { list-style: none; margin: 0; padding: 0; }
#secondary .wp-block-categories li { padding: 8px 0; border-top: 1px solid var(--so-line); }
#secondary .wp-block-categories li:first-child { border-top: 0; }
#secondary .wp-block-categories a { color: var(--so-ink); text-decoration: none; font-weight: 500; }
#secondary .wp-block-categories a:hover { color: var(--so-accent); }

/* Related posts (Astra) */
.ast-related-posts-title { font-family: var(--so-heading); font-size: 26px !important; }
.ast-related-post-content .entry-title a { color: var(--so-ink); }
.ast-related-post-featured-section img { border-radius: 14px; }

/* ---------- Archives ---------- */
.archive .ast-archive-description .ast-archive-title { font-size: 44px; }
.archive .ast-archive-description { background: transparent; padding-bottom: 0; }
.archive .ast-article-post .ast-blog-featured-section img,
.archive .post-thumb img { border-radius: 18px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.archive .entry-title a { color: var(--so-ink); }
.archive .entry-title a:hover { color: var(--so-accent); }
.archive .ast-article-inner,
.archive .ast-article-post > div { background: transparent !important; box-shadow: none !important; }

/* so-archive-order: title first, then chips */
body.archive #primary { display: flex; flex-direction: column; }
body.archive #primary > .ast-archive-description,
body.archive #primary > section.ast-archive-description { order: -1; }
body.archive .ast-archive-description { padding: 8px 10px 16px !important; margin: 0 !important; }
body.archive .so-chips { padding: 0 10px; }

/* ---------- Author box on posts ---------- */
body.single-post .ast-single-author-box {
	background: var(--so-surface) !important;
	border: 0 !important;
	border-radius: 24px !important;
	padding: 28px 30px !important;
	margin-top: 48px;
	text-align: left !important;
}
body.single-post .ast-single-author-box .about-author-title-wrapper { display: none; }
body.single-post .ast-single-author-box .ast-author-details {
	display: flex !important;
	flex-direction: row !important;
	align-items: center;
	gap: 22px;
	text-align: left !important;
}
body.single-post .ast-single-author-box .post-author-avatar { flex: none; margin: 0 !important; }
body.single-post .ast-single-author-box .post-author-avatar img {
	width: 92px;
	height: 92px;
	border-radius: 50%;
	box-shadow: 0 0 0 4px var(--so-tint) !important;
	object-fit: cover;
}
body.single-post .ast-single-author-box .post-author-bio { text-align: left !important; }
body.single-post .ast-single-author-box .post-author-bio::before {
	content: 'Written by';
	display: block;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--so-accent);
	margin-bottom: 2px;
}
body.single-post .ast-single-author-box .author-title {
	font-family: var(--so-heading);
	font-size: 24px;
	color: var(--so-ink) !important;
	margin: 0 0 6px;
}
body.single-post .ast-single-author-box a:hover .author-title { color: var(--so-accent) !important; }
body.single-post .ast-single-author-box .post-author-desc { color: var(--so-muted); font-size: 16px; line-height: 1.6; }

/* so-authorbox-fix */
body.single-post .ast-single-author-box .ast-author-meta,
body.single-post .ast-single-author-box .ast-author-details,
body.single-post .ast-single-author-box .post-author-bio { background: transparent !important; padding: 0 !important; border: 0 !important; }
body.single-post .ast-single-author-box .post-author-avatar img { width: 92px !important; height: 92px !important; max-width: none !important; min-width: 0 !important; aspect-ratio: 1 / 1; }
body.single-post .ast-single-author-box .post-author-bio,
body.single-post .ast-single-author-box .post-author-desc,
body.single-post .ast-single-author-box .author-title { text-align: left !important; }

/* Scroll to top */
#ast-scroll-top {
	background: var(--so-accent) !important;
	color: #FFFFFF !important;
	border-radius: 999px !important;
	width: 46px;
	height: 46px;
	line-height: 46px;
}
#ast-scroll-top:hover { background: var(--so-accent-dark) !important; }

/* ---------- Author page ---------- */
body.author .ast-author-box.ast-archive-description { display: none !important; }
.so-author {
	display: flex;
	align-items: center;
	gap: 40px;
	background: var(--so-surface);
	border-radius: 28px;
	padding: 44px 48px;
	margin: 8px 10px 48px;
}
.so-author__photo { flex: none; }
.so-author__photo img {
	display: block;
	width: 160px;
	height: 160px;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 0 0 6px var(--so-tint);
}
.so-author__label {
	margin: 0 0 4px;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--so-accent);
}
.so-author__name { margin: 0 0 10px; font-size: 52px; line-height: 1.02; }
.so-author__bio { margin: 0 0 18px; max-width: 60ch; font-size: 18px; line-height: 1.65; color: var(--so-muted); }
.so-author__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; }
.so-author__count { font-weight: 500; color: var(--so-ink); }
.so-author__follow,
.so-author__follow:visited {
	display: inline-block;
	padding: 12px 22px;
	border-radius: 999px;
	background: var(--so-accent);
	color: #FFFFFF;
	font-weight: 500;
	font-size: 15px;
	line-height: 1.2;
	text-decoration: none;
}
.so-author__follow:hover { background: var(--so-accent-dark); color: #FFFFFF; }
.so-author__latest { margin: 0 10px 22px; font-size: 28px; }

/* ---------- Responsive ---------- */
@media (hover: none) {
	.so-save { opacity: 1; }
}
@media (max-width: 1024px) {
	.so-featured { grid-template-columns: 1fr; gap: 28px; }
	.so-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.so-card--lg .so-card__title { font-size: 30px; }
}
@media (max-width: 767px) {
	.admin-bar #masthead { top: 0; }
	.so-row { gap: 16px; }
	.so-head__title { font-size: 23px; }
	.so-card--lg .so-card__title { font-size: 26px; }
	.so-card--md .so-card__title { font-size: 16px; }
	.so-card__excerpt { font-size: 15px; }
	body.single-post .entry-header .entry-title { font-size: 32px; }
	.single-post .entry-content { font-size: 17px; }
	.archive .ast-archive-description .ast-archive-title { font-size: 32px; }
	.so-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
	.so-chips::-webkit-scrollbar { display: none; }
	.so-save { top: 10px; right: 10px; padding: 6px 12px; font-size: 13px; }
	.so-author { flex-direction: column; align-items: flex-start; gap: 20px; padding: 28px 22px; margin: 0 0 32px; border-radius: 22px; }
	.so-author__photo img { width: 104px; height: 104px; }
	.so-author__name { font-size: 36px; }
	.so-author__bio { font-size: 16px; }
	.so-author__latest { margin: 0 0 16px; font-size: 23px; }
	body.single-post .ast-single-author-box { padding: 22px !important; }
	body.single-post .ast-single-author-box .ast-author-details { flex-direction: column !important; align-items: flex-start; gap: 14px; }
	body.single-post .ast-single-author-box .post-author-avatar img { width: 72px !important; height: 72px !important; }
}
@media (prefers-reduced-motion: reduce) {
	.so-card__media img, .so-save { transition: none; }
	.so-card:hover .so-card__media img { transform: none; }
}
