/* -------------------------------------------------------------------------
   Wedeasy Blog — main styles
   Brand: primary #922048 | headings Space Grotesk | body Inter
   ------------------------------------------------------------------------- */

:root {
	--we-primary: #922048;
	--we-primary-hover: #7a1a3c;
	--we-primary-soft: #f8e8ef;
	--we-nav: #c45a7a;
	--we-text: #111111;
	--we-muted: #666666;
	--we-border: #e8e4e6;
	--we-bg: #fafafa;
	--we-white: #ffffff;
	--we-footer-top: #c2186b;
	--we-footer-mid: #6b0f3a;
	--we-footer-bot: #1a0510;
	--we-radius: 12px;
	--we-radius-sm: 8px;
	--we-radius-pill: 999px;
	--we-shadow: 0 8px 28px rgba(17, 17, 17, 0.07);
	--we-font-heading: "Space Grotesk", sans-serif;
	--we-font-body: Inter, sans-serif;
	--we-header-h: 76px;
	--we-max: 1120px;
	--we-narrow: 720px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--we-font-body);
	font-size: 1rem;
	line-height: 1.65;
	color: var(--we-text);
	background-color: var(--we-bg);
	background-image:
		linear-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(0, 0, 0, 0.035) 1px, transparent 1px);
	background-size: 48px 48px;
	-webkit-font-smoothing: antialiased;
}

body.nav-open {
	overflow: hidden;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--we-primary);
	text-decoration: none;
	transition: color 0.15s ease, opacity 0.15s ease, background-color 0.15s ease;
}

a:hover {
	color: var(--we-primary-hover);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--we-font-heading);
	font-weight: 700;
	line-height: 1.2;
	color: var(--we-text);
	margin: 0 0 0.6em;
}

p {
	margin: 0 0 1em;
}

.screen-reader-text,
.skip-link {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 10000;
	width: auto;
	height: auto;
	padding: 0.75rem 1rem;
	margin: 0;
	clip: auto;
	overflow: visible;
	white-space: normal;
	background: var(--we-primary);
	color: var(--we-white);
	border-radius: var(--we-radius-sm);
}

.site-shell {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* -------------------------------------------------------------------------
   Header
   ------------------------------------------------------------------------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(250, 250, 250, 0.92);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid transparent;
}

.site-header__inner {
	max-width: var(--we-max);
	margin: 0 auto;
	padding: 1rem 1.5rem;
	min-height: var(--we-header-h);
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 1.5rem;
}

.site-logo {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	color: var(--we-text);
	text-decoration: none;
}

.site-logo:hover {
	color: var(--we-text);
	opacity: 0.88;
}

.site-logo img {
	height: 36px;
	width: auto;
}

.site-logo__mark {
	width: 36px;
	height: 36px;
	flex-shrink: 0;
}

.site-logo__word {
	font-family: var(--we-font-heading);
	font-weight: 700;
	font-size: 1.05rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.site-nav {
	justify-self: center;
}

.nav-menu {
	display: flex;
	align-items: center;
	gap: 1.75rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-menu a {
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--we-nav);
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a {
	color: var(--we-primary);
}

.btn-cta {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.7rem 1.15rem;
	background: var(--we-primary);
	color: var(--we-white) !important;
	font-size: 0.9rem;
	font-weight: 600;
	border-radius: var(--we-radius);
	white-space: nowrap;
	justify-self: end;
}

.btn-cta--mobile {
	display: none;
}

.btn-cta:hover {
	background: var(--we-primary-hover);
	color: var(--we-white) !important;
}

.btn-cta__icon {
	flex-shrink: 0;
}

.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 42px;
	height: 42px;
	padding: 10px;
	border: 0;
	background: transparent;
	cursor: pointer;
	justify-self: end;
	grid-column: 3;
}

.nav-toggle span {
	display: block;
	height: 2px;
	width: 100%;
	background: var(--we-text);
	border-radius: 2px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* -------------------------------------------------------------------------
   Main / intro
   ------------------------------------------------------------------------- */

.site-main {
	flex: 1;
	padding: 2.5rem 0 4.5rem;
}

.content-wrap {
	max-width: var(--we-max);
	margin: 0 auto;
	padding: 0 1.5rem;
}

.content-wrap--narrow {
	max-width: calc(var(--we-narrow) + 3rem);
}

.page-intro {
	text-align: center;
	max-width: 640px;
	margin: 0 auto 2.75rem;
}

.page-intro--center {
	padding: 3rem 0;
}

.page-intro__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0 0 1rem;
	padding: 0.35rem 0.9rem;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--we-primary);
	background: var(--we-primary-soft);
	border: 1px solid rgba(146, 32, 72, 0.35);
	border-radius: var(--we-radius-pill);
}

.page-intro__title {
	font-size: clamp(2rem, 4vw, 2.75rem);
	margin-bottom: 0.75rem;
}

.page-intro__subtitle {
	color: var(--we-muted);
	font-size: 1.05rem;
	margin-bottom: 1.5rem;
}

.page-intro__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: center;
	align-items: center;
	margin-bottom: 1.5rem;
}

.btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1.35rem;
	background: var(--we-primary);
	color: var(--we-white) !important;
	font-weight: 600;
	border-radius: var(--we-radius);
	border: 0;
	cursor: pointer;
	font-family: inherit;
	font-size: 0.95rem;
}

.btn-primary:hover {
	background: var(--we-primary-hover);
	color: var(--we-white) !important;
}

.btn-text {
	font-weight: 600;
	color: var(--we-primary);
}

/* Search form */

.search-form {
	display: flex;
	gap: 0.5rem;
	max-width: 420px;
	margin: 0 auto;
}

.search-form__input {
	flex: 1;
	min-width: 0;
	padding: 0.75rem 1rem;
	border: 1px solid var(--we-border);
	border-radius: var(--we-radius-sm);
	background: var(--we-white);
	font: inherit;
	color: var(--we-text);
}

.search-form__input:focus {
	outline: 2px solid rgba(146, 32, 72, 0.35);
	border-color: var(--we-primary);
}

.search-form__submit {
	padding: 0.75rem 1.1rem;
	background: var(--we-primary);
	color: var(--we-white);
	border: 0;
	border-radius: var(--we-radius-sm);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.search-form__submit:hover {
	background: var(--we-primary-hover);
}

/* -------------------------------------------------------------------------
   Post grid / cards
   ------------------------------------------------------------------------- */

.post-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.75rem;
}

.post-card {
	display: flex;
	flex-direction: column;
	background: var(--we-white);
	border-radius: var(--we-radius);
	box-shadow: var(--we-shadow);
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 36px rgba(17, 17, 17, 0.1);
}

.post-card__media {
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: var(--we-primary-soft);
}

.post-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.post-card:hover .post-card__media img {
	transform: scale(1.03);
}

.post-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background:
		radial-gradient(circle at 30% 40%, rgba(146, 32, 72, 0.18), transparent 55%),
		linear-gradient(135deg, #f3d6e2, #faf0f4);
}

.post-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	padding: 1.25rem 1.35rem 1.5rem;
	flex: 1;
}

.post-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem;
	font-size: 0.8rem;
}

.post-card__category {
	display: inline-block;
	padding: 0.2rem 0.65rem;
	background: var(--we-primary-soft);
	color: var(--we-primary);
	border-radius: var(--we-radius-pill);
	font-weight: 600;
}

.post-card__category:hover {
	color: var(--we-primary-hover);
}

.post-card__date {
	color: var(--we-muted);
}

.post-card__title {
	font-size: 1.2rem;
	margin: 0;
}

.post-card__title a {
	color: var(--we-text);
}

.post-card__title a:hover {
	color: var(--we-primary);
}

.post-card__excerpt {
	color: var(--we-muted);
	font-size: 0.95rem;
	flex: 1;
}

.post-card__excerpt p {
	margin: 0;
}

.post-card__more {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-weight: 600;
	font-size: 0.9rem;
	margin-top: 0.25rem;
}

/* Pagination */

.navigation.pagination,
.post-navigation {
	margin-top: 3rem;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	align-items: center;
}

.page-numbers,
.post-navigation a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	padding: 0.55rem 0.9rem;
	background: var(--we-white);
	border-radius: var(--we-radius-sm);
	color: var(--we-text);
	font-weight: 500;
	box-shadow: var(--we-shadow);
}

.page-numbers.current,
.page-numbers:hover,
.post-navigation a:hover {
	background: var(--we-primary);
	color: var(--we-white);
}

.post-navigation .nav-links {
	justify-content: space-between;
}

.post-navigation .nav-subtitle {
	display: block;
	font-size: 0.75rem;
	opacity: 0.75;
	font-weight: 500;
}

.post-navigation .nav-title {
	display: block;
	font-family: var(--we-font-heading);
	font-size: 0.95rem;
	font-weight: 600;
	max-width: 240px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* -------------------------------------------------------------------------
   Single / page entry
   ------------------------------------------------------------------------- */

.entry-header {
	margin-bottom: 1.75rem;
	text-align: center;
}

.entry-categories {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
	margin-bottom: 1rem;
}

.entry-pill {
	display: inline-block;
	padding: 0.3rem 0.85rem;
	background: var(--we-primary-soft);
	color: var(--we-primary);
	border: 1px solid rgba(146, 32, 72, 0.25);
	border-radius: var(--we-radius-pill);
	font-size: 0.8rem;
	font-weight: 600;
}

.entry-pill--muted {
	background: var(--we-white);
	border-color: var(--we-border);
	color: var(--we-muted);
}

.entry-title {
	font-size: clamp(1.85rem, 4vw, 2.5rem);
	margin-bottom: 0.85rem;
}

.entry-meta {
	color: var(--we-muted);
	font-size: 0.95rem;
}

.entry-meta__sep {
	margin: 0 0.4rem;
}

.entry-featured {
	margin: 0 0 2rem;
	border-radius: var(--we-radius);
	overflow: hidden;
	box-shadow: var(--we-shadow);
}

.entry-featured img {
	width: 100%;
}

.entry-content {
	font-size: 1.05rem;
	color: #333;
}

.entry-content > *:first-child {
	margin-top: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin-top: 1.75em;
}

.entry-content a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.35rem;
}

.entry-content blockquote {
	margin: 1.5em 0;
	padding: 1rem 1.25rem;
	border-left: 3px solid var(--we-primary);
	background: var(--we-primary-soft);
	border-radius: 0 var(--we-radius-sm) var(--we-radius-sm) 0;
	color: var(--we-text);
}

.entry-content pre,
.entry-content code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.9em;
}

.entry-content pre {
	padding: 1rem;
	overflow-x: auto;
	background: #1a0510;
	color: #f8e8ef;
	border-radius: var(--we-radius-sm);
}

.entry-content img {
	border-radius: var(--we-radius-sm);
}

.entry-content .alignwide {
	max-width: 100%;
}

.entry-content .alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
}

.entry-footer {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--we-border);
}

.entry-footer__label {
	display: block;
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--we-muted);
	margin-bottom: 0.65rem;
}

.entry-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.no-results {
	text-align: center;
	padding: 2rem 0 3rem;
	max-width: 480px;
	margin: 0 auto;
}

.no-results__title {
	font-size: 1.5rem;
}

.no-results__text {
	color: var(--we-muted);
}

/* Comments */

.comments-area {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--we-border);
}

.comments-title,
.comment-reply-title {
	font-size: 1.35rem;
}

.comment-list {
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
}

.comment-list .comment {
	padding: 1.25rem 0;
	border-bottom: 1px solid var(--we-border);
}

.comment-author {
	font-weight: 600;
}

.comment-meta {
	font-size: 0.85rem;
	color: var(--we-muted);
	margin-bottom: 0.5rem;
}

.comment-form label {
	display: block;
	font-size: 0.85rem;
	font-weight: 600;
	margin-bottom: 0.35rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid var(--we-border);
	border-radius: var(--we-radius-sm);
	font: inherit;
	background: var(--we-white);
	margin-bottom: 1rem;
}

.comment-form input:focus,
.comment-form textarea:focus {
	outline: 2px solid rgba(146, 32, 72, 0.35);
	border-color: var(--we-primary);
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */

.site-footer {
	margin-top: auto;
	background: linear-gradient(180deg, var(--we-footer-top) 0%, var(--we-footer-mid) 42%, var(--we-footer-bot) 100%);
	color: var(--we-white);
	padding: 3.5rem 0 2rem;
}

.site-footer__inner {
	max-width: var(--we-max);
	margin: 0 auto;
	padding: 0 1.5rem;
}

.footer-top {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 2.5rem;
	align-items: start;
	margin-bottom: 3.5rem;
}

.footer-intro__title {
	color: var(--we-white);
	font-size: clamp(1.5rem, 3vw, 2rem);
	max-width: 18ch;
	margin-bottom: 0.85rem;
}

.footer-intro__blurb {
	color: rgba(255, 255, 255, 0.88);
	max-width: 36ch;
	margin-bottom: 1.5rem;
	font-size: 0.98rem;
}

.footer-social__label {
	display: block;
	font-size: 0.85rem;
	margin-bottom: 0.65rem;
	opacity: 0.9;
}

.footer-social__links {
	display: flex;
	gap: 0.85rem;
}

.footer-social__link {
	display: inline-flex;
	color: var(--we-white);
	opacity: 0.95;
}

.footer-social__link:hover {
	color: var(--we-white);
	opacity: 0.7;
}

.footer-social__link--ghost {
	opacity: 0.55;
	pointer-events: none;
}

.footer-newsletter {
	justify-self: end;
	width: 100%;
	max-width: 400px;
}

.footer-newsletter__label {
	display: block;
	font-size: 0.9rem;
	margin-bottom: 0.75rem;
}

.footer-newsletter__form {
	display: flex;
	gap: 0.5rem;
}

.footer-newsletter__input {
	flex: 1;
	min-width: 0;
	padding: 0.8rem 1rem;
	border: 0;
	border-radius: 6px;
	background: rgba(80, 20, 40, 0.55);
	color: var(--we-white);
	font: inherit;
}

.footer-newsletter__input::placeholder {
	color: rgba(255, 255, 255, 0.45);
}

.footer-newsletter__input:focus {
	outline: 2px solid rgba(255, 255, 255, 0.35);
}

.footer-newsletter__submit {
	padding: 0.8rem 1.15rem;
	border: 0;
	border-radius: 6px;
	background: rgba(70, 18, 36, 0.9);
	color: var(--we-white);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
}

.footer-newsletter__submit:hover {
	background: rgba(50, 12, 26, 0.95);
}

.footer-brand {
	display: flex;
	justify-content: center;
	margin: 1rem 0 2.5rem;
}

.footer-brand__image {
	width: min(560px, 100%);
	height: auto;
	opacity: 0.95;
}

.footer-copy {
	margin: 0;
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.65);
}

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */

@media (max-width: 960px) {
	.post-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.site-header__inner {
		grid-template-columns: auto 1fr auto;
		gap: 0.75rem;
	}

	.nav-toggle {
		display: flex;
	}

	.btn-cta--desktop {
		display: none;
	}

	.btn-cta--mobile {
		display: none;
	}

	.site-nav {
		position: fixed;
		inset: var(--we-header-h) 0 0 0;
		background: rgba(250, 250, 250, 0.98);
		padding: 1.5rem;
		transform: translateX(100%);
		transition: transform 0.25s ease;
		justify-self: stretch;
		overflow-y: auto;
	}

	.site-nav.is-open {
		transform: translateX(0);
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 1.5rem;
	}

	.site-nav.is-open .btn-cta--mobile {
		display: inline-flex;
	}

	.nav-menu {
		flex-direction: column;
		align-items: flex-start;
		gap: 1.25rem;
	}

	.nav-menu a {
		font-size: 1.15rem;
	}

	.site-nav.is-open .nav-menu {
		width: 100%;
	}

	.footer-top {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.footer-newsletter {
		justify-self: stretch;
		max-width: none;
	}

	.post-grid {
		grid-template-columns: 1fr;
	}

	.site-main {
		padding: 1.75rem 0 3rem;
	}
}

@media (max-width: 480px) {
	.footer-newsletter__form {
		flex-direction: column;
	}

	.search-form {
		flex-direction: column;
	}

	.post-navigation .nav-links {
		flex-direction: column;
		align-items: stretch;
	}
}
