/* =========================================================================
   The Funnel Wizard — theme styles
   Palette & type ported from the original site's design tokens.
   ========================================================================= */

:root {
	--background: 262 40% 7%;
	--foreground: 42 35% 94%;
	--card: 261 36% 11%;
	--card-foreground: 42 35% 94%;
	--primary: 42 92% 56%;
	--primary-foreground: 262 45% 10%;
	--secondary: 261 30% 18%;
	--muted: 261 30% 16%;
	--muted-foreground: 264 15% 68%;
	--accent: 262 55% 38%;
	--border: 261 25% 22%;
	--input: 261 25% 22%;
	--ring: 42 92% 56%;
	--radius: 0.75rem;
	--brand: 42 92% 56%;
	--brand-light: 42 95% 70%;
	--brand-soft: 262 55% 38%;
	--magic: 217 95% 72%;

	--font-display: "Fraunces", Georgia, "Times New Roman", serif;
	--font-body: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-scroll: "EB Garamond", Georgia, serif;

	--gradient-gold: linear-gradient(120deg, hsl(42 92% 56%), hsl(36 95% 66%), hsl(48 96% 62%));
	--gradient-hero:
		radial-gradient(ellipse 80% 60% at 70% 20%, hsl(262 55% 30% / 0.5), transparent 60%),
		radial-gradient(ellipse 60% 50% at 20% 80%, hsl(42 92% 56% / 0.12), transparent 55%),
		hsl(var(--background));
	--gradient-card: linear-gradient(160deg, hsl(261 36% 13%), hsl(261 36% 10%));
	--shadow-mystic: 0 20px 60px -15px hsl(262 60% 20% / 0.6);
	--shadow-gold: 0 10px 40px -10px hsl(42 92% 56% / 0.35);

	--container: 80rem;
	--gutter: clamp(1rem, 4vw, 2rem);
}

/* ------------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.6;
	color: hsl(var(--foreground));
	background: hsl(var(--background));
	background-image: var(--gradient-hero);
	background-attachment: fixed;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 900;
	line-height: 1.08;
	margin: 0;
	letter-spacing: -0.02em;
}

::selection { background: hsl(var(--primary) / 0.3); color: hsl(var(--foreground)); }

.screen-reader-text {
	position: absolute !important;
	clip: rect(1px, 1px, 1px, 1px);
	width: 1px; height: 1px; overflow: hidden;
}

.skip-link {
	position: absolute; left: -999px; top: 0; z-index: 1000;
	background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
	padding: 0.75rem 1.25rem; border-radius: 0 0 var(--radius) 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------------------------------------------------------------- layout */
.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.container--narrow { max-width: 48rem; }
.container--mid { max-width: 64rem; }

.section { position: relative; padding-block: clamp(4rem, 9vw, 7rem); }
.section + .section { border-top: 1px solid hsl(var(--border) / 0.6); }

.eyebrow {
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.22em;
	color: hsl(var(--brand-light));
	margin: 0 0 0.75rem;
}

.section__head { max-width: 40rem; }
.section__head h2 {
	font-size: clamp(1.9rem, 4.5vw, 3rem);
	margin-top: 0.25rem;
}
.section__head p {
	margin-top: 1rem;
	font-size: 1.075rem;
	color: hsl(var(--muted-foreground));
}

/* gold shimmer text */
.shimmer {
	background-image: linear-gradient(110deg, #f6b828 25%, #ffe98f 45%, #f6b828 65%);
	background-size: 200%;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
	display: inline-block;
	animation: shimmer 4.5s linear infinite;
}
@keyframes shimmer { 0% { background-position: -200% center; } 100% { background-position: 200% center; } }

/* decorative blurred orbs */
.orb {
	position: absolute;
	border-radius: 9999px;
	filter: blur(60px);
	pointer-events: none;
	z-index: 0;
}
.orb--violet { background: hsl(262 55% 38% / 0.45); }
.orb--gold { background: hsl(42 92% 56% / 0.12); }

/* sparkles */
.sparkles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.sparkle {
	position: absolute;
	border-radius: 9999px;
	background: hsl(42 95% 75%);
	box-shadow: 0 0 6px 1px hsl(42 95% 70% / 0.8);
	opacity: 0;
	animation: twinkle 4s ease-in-out infinite;
}
@keyframes twinkle {
	0%, 100% { opacity: 0; transform: scale(0.6); }
	50% { opacity: 0.9; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
	.sparkle { animation: none; opacity: 0.4; }
	.shimmer, .float { animation: none; }
}

/* --------------------------------------------------------------- buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	border-radius: 9999px;
	padding: 0.85rem 1.5rem;
	font-weight: 600;
	font-size: 0.95rem;
	border: 1px solid transparent;
	transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
	white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 2px; }
.btn--primary {
	background: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
	box-shadow: var(--shadow-gold);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 44px -10px hsl(42 92% 56% / 0.5); }
.btn--ghost {
	background: transparent;
	color: hsl(var(--foreground));
	border-color: hsl(var(--border));
}
.btn--ghost:hover { border-color: hsl(var(--primary) / 0.6); background: hsl(var(--primary) / 0.08); }
.btn--block { width: 100%; }
.btn--lg { padding: 1rem 1.75rem; font-size: 1rem; }

/* --------------------------------------------------------------- header */
.site-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 50;
	transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
	border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
	background: hsl(var(--background) / 0.8);
	backdrop-filter: blur(12px);
	border-bottom-color: hsl(var(--border) / 0.7);
}
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 5rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.75rem; }
.brand__mark { width: 2.25rem; height: 2.25rem; border-radius: 0.6rem; object-fit: contain; }
.brand__name { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name strong {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 1.05rem;
	letter-spacing: -0.01em;
}
.brand__name span {
	font-size: 0.6rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: hsl(var(--muted-foreground));
}

.primary-nav { display: none; }
.primary-nav ul { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.primary-nav a {
	font-size: 0.875rem;
	font-weight: 500;
	color: hsl(var(--muted-foreground));
	transition: color 0.15s ease;
}
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: hsl(var(--foreground)); }
.primary-nav .btn { color: hsl(var(--primary-foreground)); }
.primary-nav .btn:hover { color: hsl(var(--primary-foreground)); }

.nav-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem; height: 2.75rem;
	border-radius: 0.6rem;
	background: transparent;
	border: 1px solid hsl(var(--border));
	color: hsl(var(--foreground));
}
.nav-toggle svg { width: 1.25rem; height: 1.25rem; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-nav {
	display: none;
	border-top: 1px solid hsl(var(--border) / 0.7);
	background: hsl(var(--background) / 0.96);
	backdrop-filter: blur(12px);
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 1rem var(--gutter) 1.5rem; display: grid; gap: 0.25rem; }
.mobile-nav a { display: block; padding: 0.75rem 0.25rem; font-weight: 500; color: hsl(var(--foreground)); border-bottom: 1px solid hsl(var(--border) / 0.4); }
.mobile-nav .btn { margin-top: 0.75rem; }

@media (min-width: 900px) {
	.primary-nav { display: block; }
	.nav-toggle { display: none; }
	.mobile-nav { display: none !important; }
}

/* Fixed header is 5rem tall; each top-of-page section adds its own clearance. */

/* ----------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(7rem, 6vw + 4rem, 9.5rem) clamp(4rem, 9vw, 7rem); }
.hero.section + .section { border-top: 0; }
.hero__grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
	align-items: center;
}
.hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	border-radius: 9999px;
	border: 1px solid hsl(var(--primary) / 0.4);
	background: hsl(var(--primary) / 0.08);
	padding: 0.4rem 0.9rem;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: hsl(var(--brand-light));
}
.hero h1 {
	margin-top: 1.5rem;
	font-size: clamp(2.5rem, 7vw, 4.2rem);
}
.hero__lead {
	margin-top: 1.5rem;
	font-size: clamp(1.05rem, 2.2vw, 1.25rem);
	color: hsl(var(--muted-foreground));
	max-width: 34rem;
}
.hero__cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

.stats {
	margin-top: 3rem;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
	max-width: 32rem;
	padding: 0;
}
.stats__item { display: flex; flex-direction: column; }
.stats__value {
	font-family: var(--font-display);
	font-weight: 900;
	font-size: clamp(1.5rem, 4vw, 2rem);
	color: hsl(var(--foreground));
}
.stats__label { font-size: 0.75rem; color: hsl(var(--muted-foreground)); margin-top: 0.15rem; }

.hero__art { position: relative; display: flex; justify-content: center; }
.hero__art img { width: min(100%, 30rem); filter: drop-shadow(0 30px 60px hsl(262 60% 10% / 0.7)); }
.float { animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

@media (min-width: 960px) {
	.hero__grid { grid-template-columns: 7fr 5fr; gap: 2rem; }
	.hero__art { justify-content: flex-end; }
}

/* -------------------------------------------------------------- marquee */
.marquee {
	position: relative;
	overflow: hidden;
	border-block: 1px solid hsl(var(--border) / 0.6);
	background: hsl(var(--card) / 0.4);
	padding-block: 0.9rem;
	-webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
	display: flex;
	gap: 3rem;
	width: max-content;
	animation: marquee 32s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: hsl(var(--muted-foreground));
	display: inline-flex;
	align-items: center;
	gap: 3rem;
	white-space: nowrap;
}
.marquee__item::after { content: "✦"; color: hsl(var(--primary) / 0.7); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ------------------------------------------------------------- services */
.card-grid {
	margin-top: 3rem;
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}
@media (min-width: 800px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

.spell-card {
	position: relative;
	border: 1px solid hsl(var(--border));
	border-radius: 1.25rem;
	background: var(--gradient-card);
	padding: 1.75rem;
	overflow: hidden;
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.spell-card:hover {
	transform: translateY(-4px);
	border-color: hsl(var(--primary) / 0.45);
	box-shadow: var(--shadow-mystic);
}
.spell-card__glow {
	position: absolute;
	top: -2.5rem; right: -2.5rem;
	width: 7rem; height: 7rem;
	border-radius: 9999px;
	background: hsl(var(--primary) / 0.18);
	filter: blur(30px);
}
.spell-card__icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem; height: 3rem;
	border-radius: 0.85rem;
	background: hsl(var(--primary) / 0.15);
	border: 1px solid hsl(var(--primary) / 0.3);
	color: hsl(var(--brand-light));
}
.spell-card__icon svg { width: 1.4rem; height: 1.4rem; }
.spell-card__kicker {
	margin-top: 1.25rem;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: hsl(var(--muted-foreground));
}
.spell-card h3 { margin-top: 0.5rem; font-size: 1.5rem; font-weight: 700; }
.spell-card__desc { margin-top: 0.75rem; font-size: 0.9rem; color: hsl(var(--muted-foreground)); }
.spell-card ul { margin: 1.25rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
.spell-card li { position: relative; padding-left: 1.5rem; font-size: 0.875rem; color: hsl(var(--foreground) / 0.85); }
.spell-card li::before {
	content: "";
	position: absolute; left: 0; top: 0.5rem;
	width: 0.5rem; height: 0.5rem;
	border-radius: 9999px;
	background: hsl(var(--primary));
	box-shadow: 0 0 8px hsl(var(--primary) / 0.7);
}

/* -------------------------------------------------------------- process */
.ritual {
	margin-top: 3.5rem;
	list-style: none;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	counter-reset: none;
}
@media (min-width: 640px) { .ritual { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .ritual { grid-template-columns: repeat(4, 1fr); } }

.ritual__step { position: relative; }
.ritual__step:not(:last-child)::after {
	content: "";
	display: none;
	position: absolute;
	top: 2rem;
	left: calc(50% + 2.5rem);
	width: calc(100% - 5rem);
	height: 1px;
	background: linear-gradient(to right, hsl(var(--primary) / 0.5), transparent);
}
@media (min-width: 1000px) { .ritual__step:not(:last-child)::after { display: block; } }

.ritual__card {
	position: relative;
	height: 100%;
	border: 1px solid hsl(var(--border));
	border-radius: 1.25rem;
	background: hsl(var(--card) / 0.6);
	padding: 1.5rem;
}
.ritual__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem; height: 3rem;
	border-radius: 9999px;
	border: 1px solid hsl(var(--primary) / 0.4);
	background: hsl(var(--background));
	font-family: var(--font-display);
	font-weight: 900;
	color: hsl(var(--brand-light));
}
.ritual__card h3 { margin-top: 1rem; font-size: 1.2rem; font-weight: 700; }
.ritual__card p { margin-top: 0.6rem; font-size: 0.875rem; color: hsl(var(--muted-foreground)); }

.ritual__badge {
	margin-top: 2.5rem;
	display: inline-flex;
	align-items: baseline;
	gap: 0.6rem;
	border: 1px solid hsl(var(--border));
	border-radius: 9999px;
	padding: 0.6rem 1.25rem;
	background: hsl(var(--card) / 0.6);
}
.ritual__badge b { font-family: var(--font-display); font-size: 1.4rem; color: hsl(var(--brand-light)); }
.ritual__badge span { font-size: 0.8rem; color: hsl(var(--muted-foreground)); text-transform: uppercase; letter-spacing: 0.15em; }

/* ---------------------------------------------------------------- about */
.about__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
	align-items: center;
}
@media (min-width: 960px) { .about__grid { grid-template-columns: 5fr 7fr; } }
.about__media { position: relative; }
.about__media img {
	border-radius: 1.25rem;
	border: 1px solid hsl(var(--border));
	box-shadow: var(--shadow-mystic);
}
.about__media-badge {
	position: absolute;
	bottom: -1.25rem; right: -0.75rem;
	border: 1px solid hsl(var(--primary) / 0.4);
	background: hsl(var(--background) / 0.92);
	backdrop-filter: blur(6px);
	border-radius: 0.9rem;
	padding: 0.75rem 1.1rem;
	display: flex;
	flex-direction: column;
	line-height: 1.1;
	box-shadow: var(--shadow-gold);
}
.about__media-badge b { font-family: var(--font-display); font-size: 1.35rem; color: hsl(var(--brand-light)); }
.about__media-badge span { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.14em; color: hsl(var(--muted-foreground)); }

.about__body h2 { margin-top: 0.25rem; font-size: clamp(1.9rem, 4.5vw, 3rem); }
.about__body p { margin-top: 1.25rem; color: hsl(var(--muted-foreground)); }
.about__body p:first-of-type { color: hsl(var(--foreground) / 0.92); font-size: 1.075rem; }
.about__list { margin: 1.75rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.75rem; }
.about__list li { position: relative; padding-left: 1.9rem; }
.about__list li::before {
	content: "✦";
	position: absolute; left: 0; top: 0;
	color: hsl(var(--primary));
}
.about__link {
	margin-top: 2rem;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 600;
	color: hsl(var(--brand-light));
	border-bottom: 1px solid hsl(var(--primary) / 0.4);
	padding-bottom: 0.15rem;
}
.about__link:hover { color: hsl(var(--primary)); }

/* ----------------------------------------------------------- testimonials */
.quote-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	border: 1px solid hsl(var(--border));
	border-radius: 1.25rem;
	background: hsl(var(--card) / 0.6);
	padding: 1.75rem;
}
.quote-card__mark { width: 2rem; height: 2rem; color: hsl(var(--primary) / 0.5); }
.quote-card__stars { display: flex; gap: 0.2rem; margin-top: 0.75rem; color: hsl(var(--primary)); }
.quote-card__stars svg { width: 1rem; height: 1rem; }
.quote-card blockquote { margin: 1rem 0 0; font-size: 0.95rem; color: hsl(var(--foreground) / 0.9); flex: 1; }
.quote-card figcaption { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid hsl(var(--border) / 0.6); }
.quote-card figcaption b { display: block; font-weight: 600; }
.quote-card figcaption span { font-size: 0.85rem; color: hsl(var(--muted-foreground)); }

/* -------------------------------------------------------------- contact */
.contact { overflow: hidden; }
.contact__inner { position: relative; z-index: 1; text-align: center; }
.contact__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	border-radius: 9999px;
	border: 1px solid hsl(var(--primary) / 0.4);
	background: hsl(var(--primary) / 0.08);
	padding: 0.4rem 0.9rem;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: hsl(var(--brand-light));
}
.contact h2 { margin-top: 1.5rem; font-size: clamp(1.9rem, 4.5vw, 3rem); }
.contact__lead { margin: 1rem auto 0; max-width: 34rem; color: hsl(var(--muted-foreground)); font-size: 1.075rem; }

.audit-form {
	margin-top: 2.5rem;
	text-align: left;
	border: 1px solid hsl(var(--border));
	border-radius: 1.25rem;
	background: hsl(var(--card) / 0.8);
	backdrop-filter: blur(6px);
	padding: clamp(1.5rem, 4vw, 2.25rem);
	box-shadow: var(--shadow-mystic);
}
.audit-form__row { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 620px) { .audit-form__row { grid-template-columns: 1fr 1fr; } }
.audit-form p { margin: 0 0 1.25rem; }
.audit-form label {
	display: block;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	margin-bottom: 0.4rem;
	color: hsl(var(--foreground) / 0.9);
}
.audit-form input,
.audit-form textarea {
	width: 100%;
	font: inherit;
	color: hsl(var(--foreground));
	background: hsl(var(--background) / 0.6);
	border: 1px solid hsl(var(--input));
	border-radius: 0.7rem;
	padding: 0.75rem 0.9rem;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.audit-form input::placeholder,
.audit-form textarea::placeholder { color: hsl(var(--muted-foreground) / 0.7); }
.audit-form input:focus,
.audit-form textarea:focus {
	outline: none;
	border-color: hsl(var(--primary) / 0.6);
	box-shadow: 0 0 0 3px hsl(var(--primary) / 0.15);
}
.audit-form textarea { min-height: 7rem; resize: vertical; }
.audit-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.audit-form__note { margin-top: 1rem !important; font-size: 0.75rem; color: hsl(var(--muted-foreground)); text-align: center; }

.form-alert {
	border-radius: 0.7rem;
	padding: 0.85rem 1rem;
	font-size: 0.9rem;
	margin-bottom: 1.25rem;
}
.form-alert--ok { background: hsl(150 60% 40% / 0.15); border: 1px solid hsl(150 60% 45% / 0.4); color: hsl(150 70% 80%); }
.form-alert--err { background: hsl(0 72% 51% / 0.12); border: 1px solid hsl(0 72% 51% / 0.4); color: hsl(0 80% 82%); }

/* --------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid hsl(var(--border)); padding-block: 2.5rem; }
.site-footer__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.5rem;
	text-align: center;
}
@media (min-width: 720px) { .site-footer__inner { flex-direction: row; justify-content: space-between; text-align: left; } }
.site-footer nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.site-footer nav a { font-size: 0.875rem; color: hsl(var(--muted-foreground)); }
.site-footer nav a:hover { color: hsl(var(--foreground)); }
.site-footer__copy { margin-top: 2rem; text-align: center; font-size: 0.75rem; color: hsl(var(--muted-foreground)); }

/* ================================================= The Spellbook (blog) */
.page-hero { padding-top: 8rem; padding-bottom: 2rem; text-align: center; }
.page-hero .eyebrow { color: hsl(var(--brand-light)); }
.page-hero h1 { font-size: clamp(2.2rem, 6vw, 3.5rem); }
.page-hero p { margin: 1rem auto 0; max-width: 40rem; color: hsl(var(--muted-foreground)); }

.post-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	padding-bottom: 5rem;
}
@media (min-width: 720px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }

.post-card {
	display: flex;
	flex-direction: column;
	border: 1px solid hsl(var(--border));
	border-radius: 1.25rem;
	background: var(--gradient-card);
	overflow: hidden;
	transition: transform 0.2s ease, border-color 0.2s ease;
}
.post-card:hover { transform: translateY(-4px); border-color: hsl(var(--primary) / 0.45); }
.post-card__thumb { aspect-ratio: 16 / 10; overflow: hidden; background: hsl(var(--muted)); }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.post-card__meta { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.14em; color: hsl(var(--brand-light)); }
.post-card h2 { font-size: 1.35rem; }
.post-card h2 a:hover { color: hsl(var(--brand-light)); }
.post-card__excerpt { font-size: 0.9rem; color: hsl(var(--muted-foreground)); flex: 1; }
.post-card__more { font-weight: 600; color: hsl(var(--brand-light)); font-size: 0.9rem; }

.single-post { padding-top: 7rem; padding-bottom: 5rem; }
.single-post__header { max-width: 44rem; margin-inline: auto; text-align: center; }
.single-post__meta { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em; color: hsl(var(--brand-light)); }
.single-post__header h1 { margin-top: 0.75rem; font-size: clamp(2rem, 5vw, 3rem); }
.single-post__feat { max-width: 60rem; margin: 2.5rem auto 0; }
.single-post__feat img { border-radius: 1.25rem; border: 1px solid hsl(var(--border)); }

.prose {
	max-width: 44rem;
	margin: 2.5rem auto 0;
	font-family: var(--font-scroll);
	font-size: 1.175rem;
	line-height: 1.75;
	color: hsl(var(--foreground) / 0.9);
}
.prose > * + * { margin-top: 1.4rem; }
.prose h2, .prose h3 { font-family: var(--font-display); margin-top: 2.5rem; }
.prose h2 { font-size: 1.7rem; }
.prose h3 { font-size: 1.35rem; }
.prose a { color: hsl(var(--brand-light)); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote {
	border-left: 3px solid hsl(var(--primary) / 0.6);
	padding-left: 1.25rem;
	font-style: italic;
	color: hsl(var(--foreground) / 0.8);
}
.prose img { border-radius: 1rem; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; background: hsl(var(--muted)); padding: 0.15em 0.4em; border-radius: 0.35em; }
.prose pre { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 0.75rem; padding: 1.25rem; overflow-x: auto; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li + li { margin-top: 0.5rem; }

.pagination { padding-bottom: 5rem; }
.pagination .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.pagination .nav-links,
nav.pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
}
.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.75rem;
	border: 1px solid hsl(var(--border));
	border-radius: 0.6rem;
	color: hsl(var(--muted-foreground));
}
.pagination .page-numbers.current { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); border-color: transparent; }
.pagination a.page-numbers:hover { border-color: hsl(var(--primary) / 0.6); color: hsl(var(--foreground)); }

.back-link { display: inline-flex; align-items: center; gap: 0.4rem; margin-bottom: 2rem; color: hsl(var(--muted-foreground)); font-size: 0.9rem; }
.back-link:hover { color: hsl(var(--foreground)); }

/* generic page content */
.page-content { padding-top: 7rem; padding-bottom: 5rem; }

/* wp core alignment helpers */
.aligncenter { margin-inline: auto; }
.alignleft { float: left; margin: 0.5rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.5rem 0 1rem 1.5rem; }
.wp-caption-text { font-size: 0.8rem; color: hsl(var(--muted-foreground)); text-align: center; }
