/*
 * Sally Rossiter, galactic visual system.
 * Reads colors/type from theme.json custom properties so the palette
 * stays in one place (theme.json) and this file only handles layout,
 * the hero glow, and the workshop/book card components.
 */

.sr-eyebrow {
	display: block;
	font-family: var(--wp--preset--font-family--heading);
	font-style: italic;
	font-weight: 340;
	color: var(--wp--preset--color--primary-alt);
	letter-spacing: 0.02em;
	font-size: 1.05rem;
	margin: 0 0 14px;
}

.sr-label {
	font-family: var(--wp--preset--font-family--primary);
	font-weight: 600;
	font-size: 0.72rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--main-accent);
}

/* ---------- Hero ---------- */
.sr-hero {
	position: relative;
	overflow: hidden;
	padding: clamp(90px, 14vw, 160px) 0 clamp(70px, 10vw, 120px);
	text-align: center;
	background: var(--wp--preset--color--base);
}
.sr-hero__glow {
	position: absolute;
	left: 50%;
	top: 6%;
	width: min(920px, 130vw);
	height: min(920px, 130vw);
	transform: translateX(-50%);
	background: radial-gradient(
		circle,
		color-mix(in srgb, var(--wp--preset--color--primary) 38%, transparent) 0%,
		color-mix(in srgb, var(--wp--preset--color--primary-accent) 55%, transparent) 32%,
		transparent 68%
	);
	filter: blur(6px);
	pointer-events: none;
	z-index: 0;
}
.sr-hero canvas.sr-stars {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0.8;
	z-index: 0;
}
.sr-hero > .wp-block-group,
.sr-hero-inner {
	position: relative;
	z-index: 2;
}
.sr-hero h1 {
	max-width: 15ch;
	margin-left: auto;
	margin-right: auto;
}
.sr-hero h1 em {
	font-style: italic;
	color: var(--wp--preset--color--primary-alt);
	font-weight: 340;
}
.sr-hero-sub {
	max-width: 52ch;
	margin: 0 auto;
	color: var(--wp--preset--color--secondary);
	font-size: 1.12rem;
}

/* ---------- Quote band ---------- */
.sr-quote-band {
	background: var(--wp--preset--color--tertiary);
	border-top: 1px solid var(--wp--preset--color--border-light);
	border-bottom: 1px solid var(--wp--preset--color--border-light);
}
.sr-quote-band blockquote,
p.sr-pull {
	margin: 0 auto;
	max-width: 760px;
	text-align: center;
	font-family: var(--wp--preset--font-family--heading);
	font-style: italic;
	font-weight: 340;
	font-size: clamp(1.3rem, 2.6vw, 1.9rem);
	line-height: 1.5;
}
.sr-quote-band cite {
	display: block;
	margin-top: 22px;
	font-style: normal;
	font-family: var(--wp--preset--font-family--primary);
	font-size: 0.8rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--primary-alt);
}

/* ---------- Section head ---------- */
.sr-section-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 24px;
	margin-bottom: 48px;
	flex-wrap: wrap;
	border-bottom: 1px solid var(--wp--preset--color--border-light);
	padding-bottom: 26px;
}
.sr-see-all {
	font-size: 0.86rem;
	color: var(--wp--preset--color--primary-alt);
	text-decoration: none;
	white-space: nowrap;
}
.sr-see-all:hover {
	text-decoration: underline;
}

/* ---------- About / grounding image ---------- */
.sr-about-photo {
	position: relative;
	overflow: hidden;
	border-radius: 2px;
}
.sr-about-photo img {
	filter: saturate(0.82) sepia(0.12) hue-rotate(-6deg);
	display: block;
	width: 100%;
}
.sr-about-photo::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, color-mix(in srgb, var(--wp--preset--color--primary) 22%, transparent), transparent 55%);
	mix-blend-mode: multiply;
	pointer-events: none;
}

/* ---------- Portrait & breakout photography ---------- */
.sr-portrait img {
	border-radius: 2px;
	box-shadow: 0 24px 48px -18px rgba(10, 7, 20, 0.5), inset 0 0 0 1px var(--wp--preset--color--border-dark);
}
.sr-breakout-image img {
	border-radius: 2px;
	box-shadow: 0 24px 48px -18px rgba(10, 7, 20, 0.5);
}
.sr-breakout-caption {
	font-family: var(--wp--preset--font-family--heading);
	font-style: italic;
	font-size: 0.92rem;
	color: var(--wp--preset--color--secondary);
	text-align: center;
	margin-top: 16px;
}

/* ---------- Workshop grid ---------- */
.sr-workshop-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1px;
	background: var(--wp--preset--color--border-light);
	border: 1px solid var(--wp--preset--color--border-light);
}
.sr-workshop-card {
	background: var(--wp--preset--color--base);
	padding: 34px 30px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	position: relative;
	transition: background 0.25s ease;
	text-decoration: none;
	color: inherit;
}
.sr-workshop-card:hover {
	background: var(--wp--preset--color--tertiary);
}
.sr-workshop-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, var(--wp--preset--color--primary-alt), var(--wp--preset--color--primary));
	opacity: 0;
	transition: opacity 0.25s ease;
}
.sr-workshop-card:hover::before {
	opacity: 1;
}
.sr-workshop-card h3 {
	font-size: 1.28rem;
	font-weight: 440;
	margin: 0;
}
.sr-workshop-card p {
	margin: 0;
	color: var(--wp--preset--color--secondary);
	font-size: 0.94rem;
}
.sr-workshop-card .sr-learn {
	margin-top: auto;
	font-size: 0.84rem;
	color: var(--wp--preset--color--primary-alt);
	text-decoration: none;
	font-weight: 600;
}

/* ---------- Books ---------- */
.sr-book-cover {
	flex-shrink: 0;
	width: 108px;
	height: 156px;
	border-radius: 2px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 16px;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 440;
	font-size: 0.98rem;
	line-height: 1.25;
	box-shadow: 0 14px 30px -10px rgba(10, 7, 20, 0.45), inset 0 0 0 1px var(--wp--preset--color--border-dark);
}
.sr-book-cover.sr-cover-a {
	background: radial-gradient(circle at 30% 20%, var(--wp--preset--color--primary) 0%, var(--wp--preset--color--primary-accent) 55%, #1a1330 100%);
	color: var(--wp--preset--color--main);
}
.sr-book-cover.sr-cover-b {
	background: linear-gradient(160deg, #2b2140, #14101f 70%);
	color: var(--wp--preset--color--primary-alt);
}

/* ---------- Ghost button style ---------- */
.wp-block-button.is-style-sr-ghost .wp-block-button__link {
	background: transparent !important;
	color: var(--wp--preset--color--main) !important;
	border: 1px solid var(--wp--preset--color--border-dark) !important;
}
.wp-block-button.is-style-sr-ghost .wp-block-button__link:hover {
	border-color: var(--wp--preset--color--primary-alt) !important;
	color: var(--wp--preset--color--primary-alt) !important;
}

.sr-workshop-card .wp-block-post-excerpt__excerpt {
	color: var(--wp--preset--color--secondary);
	font-size: 0.94rem;
}
.sr-workshop-card .wp-block-post-excerpt__more-link {
	display: inline-block;
	margin-top: auto;
	font-size: 0.84rem;
	color: var(--wp--preset--color--primary-alt) !important;
	text-decoration: none !important;
	font-weight: 600;
}
.sr-workshop-card .wp-block-post-terms {
	margin: 0;
}
.sr-workshop-card .wp-block-post-terms a {
	color: var(--wp--preset--color--main-accent) !important;
	text-decoration: none;
}

/* ---------- Workshop meta (single template) ---------- */
.sr-workshop-meta {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	align-items: center;
	margin-bottom: 20px;
}
.sr-workshop-meta .sr-label {
	background: var(--wp--preset--color--tertiary);
	border: 1px solid var(--wp--preset--color--border-light);
	padding: 6px 12px;
	border-radius: 999px;
}

@media (prefers-reduced-motion: reduce) {
	.sr-hero canvas.sr-stars {
		display: none;
	}
}
