.soma-catalog {
	--soma-cream: var(--soma-ivory);
	--soma-navy: var(--soma-indigo);
	--soma-sage: var(--soma-teal);
	--soma-sage-deep: var(--soma-teal-deep);

	background: var(--soma-cream);
	color: var(--soma-navy);
	padding: clamp(3.5rem, 8vw, 7rem) clamp(1.5rem, 6vw, 6rem);
	box-sizing: border-box;
	position: relative;
	isolation: isolate;
	overflow: hidden;
	/* No explicit width — `.alignfull`'s negative margins do the bleeding,
	   and a width of 100% would pin it back to the padded content box. */
}

/* Header node field — masked out before it reaches the listing, so the
   motif sits behind the title block only and never competes with copy. */
.soma-catalog__field {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 0;
	pointer-events: none;
	display: block;
	-webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 55%, transparent 100%);
	mask-image: linear-gradient(to bottom, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 55%, transparent 100%);
}

.soma-catalog__inner {
	max-width: 1080px;
	margin: 0 auto;
	position: relative;
	z-index: 1;
}

/* ---------- Page head ---------- */

.soma-catalog__eyebrow {
	font-family: 'Raleway', sans-serif;
	font-weight: 700;
	font-size: 0.8rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--soma-sage-deep);
	margin: 0 0 1.5rem;
}

.soma-catalog__title {
	font-family: 'Cormorant', serif;
	font-weight: 600;
	font-size: clamp(2.25rem, 4.6vw, 3.6rem);
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--soma-navy);
	margin: 0 0 1.75rem;
	max-width: 20ch;
}

.soma-catalog__standfirst {
	font-family: 'Raleway', sans-serif;
	font-weight: 400;
	font-size: 1.0625rem;
	line-height: 1.65;
	color: rgba(19, 21, 39, 0.78);
	margin: 0;
	max-width: 62ch;
}

/* ---------- Placeholder notice ---------- */

.soma-catalog__notice {
	margin: 3.5rem 0 0;
	padding: 1.25rem 1.5rem;
	border: 1px dashed rgba(13, 124, 104, 0.6);
	border-radius: 12px;
	background: rgba(13, 124, 104, 0.07);
	font-family: 'Raleway', sans-serif;
	font-size: 0.9375rem;
	line-height: 1.6;
	color: rgba(19, 21, 39, 0.75);
	max-width: 62ch;
}

.soma-catalog__notice p { margin: 0; }

.soma-catalog__notice-title {
	font-weight: 700;
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--soma-sage-deep);
	margin: 0 0 0.5rem !important;
}

/* ---------- Listing ---------- */

.soma-catalog__list {
	list-style: none;
	margin: clamp(3rem, 6vw, 4.5rem) 0 0;
	padding: 0;
}

.soma-course {
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr);
	gap: clamp(1.75rem, 4vw, 3.25rem);
	align-items: start;
	padding: clamp(2.5rem, 5vw, 3.5rem) 0;
	border-top: 1px solid var(--soma-rule);
}

.soma-course:first-child { border-top: none; padding-top: 0; }

.soma-course__media {
	width: 100%;
	border-radius: 14px;
	overflow: hidden;
}

.soma-course__img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	display: block;
	border-radius: 14px;
	transition: transform 0.7s var(--ease-soma);
}

.soma-course:hover .soma-course__img:not(.soma-course__img--pending) {
	transform: scale(1.035);
}

.soma-course__img--pending {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(155deg, rgba(19, 21, 39, 0.05), rgba(13, 124, 104, 0.13));
	border: 1.5px dashed rgba(19, 21, 39, 0.22);
	color: rgba(19, 21, 39, 0.45);
	font-family: 'Raleway', sans-serif;
	font-size: 0.8125rem;
	letter-spacing: 0.04em;
	box-sizing: border-box;
}

.soma-course__kicker {
	font-family: 'Raleway', sans-serif;
	font-weight: 600;
	font-size: 0.75rem;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--soma-sage-deep);
	margin: 0 0 0.75rem;
}

.soma-course__kicker--sample { color: rgba(19, 21, 39, 0.4); }

.soma-course__title {
	font-family: 'Cormorant', serif;
	font-weight: 600;
	font-size: clamp(1.65rem, 2.6vw, 2.15rem);
	line-height: 1.18;
	letter-spacing: -0.015em;
	color: var(--soma-navy);
	margin: 0 0 1rem;
}

.soma-course__title a {
	color: inherit;
	text-decoration: none;
	background-image: linear-gradient(var(--soma-sage), var(--soma-sage));
	background-size: 0% 1px;
	background-repeat: no-repeat;
	background-position: 0 92%;
	transition: background-size 0.35s var(--ease-soma);
}

.soma-course__title a:hover,
.soma-course__title a:focus-visible { background-size: 100% 1px; }

.soma-course__excerpt {
	font-family: 'Raleway', sans-serif;
	font-weight: 400;
	font-size: 1.0625rem;
	line-height: 1.68;
	color: rgba(19, 21, 39, 0.76);
	margin: 0 0 1.75rem;
	max-width: 58ch;
}

/* ---------- Readout panel (the listing's structural device) ---------- */

.soma-course__readout {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	column-gap: 2rem;
	row-gap: 1.15rem;
	margin: 0 0 1.75rem;
	padding: 1.25rem 1.5rem;
	background: rgba(13, 124, 104, 0.08);
	border-radius: 12px;
	border-left: 2px solid var(--soma-sage);
	transition: background-color 0.4s ease, border-left-color 0.4s ease;
}

.soma-course:hover .soma-course__readout {
	background: rgba(13, 124, 104, 0.13);
	border-left-color: var(--soma-sage-deep);
}

.soma-course__readout dt {
	font-family: 'Raleway', sans-serif;
	font-weight: 700;
	font-size: 0.6875rem;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--soma-sage-deep);
	margin: 0 0 0.35rem;
}

.soma-course__readout dd {
	font-family: 'Raleway', sans-serif;
	font-weight: 500;
	font-size: 0.9375rem;
	line-height: 1.4;
	color: var(--soma-navy);
	margin: 0;
	white-space: nowrap;
}

/* ---------- Single quiet CTA ---------- */

.soma-course__link {
	display: inline-block;
	font-family: 'Raleway', sans-serif;
	font-weight: 600;
	font-size: 0.9375rem;
	letter-spacing: 0.02em;
	color: var(--soma-navy);
	text-decoration: none;
	border-bottom: 1px solid rgba(19, 21, 39, 0.35);
	padding-bottom: 2px;
	transition: color 0.25s ease, border-color 0.25s ease;
}

.soma-course__link span {
	display: inline-block;
	transition: transform 0.3s var(--ease-soma);
}

.soma-course__link:hover,
.soma-course__link:focus-visible {
	color: var(--soma-sage-deep);
	border-color: var(--soma-sage);
}

.soma-course__link:hover span,
.soma-course__link:focus-visible span { transform: translateX(4px); }

.soma-course__link--inert {
	color: rgba(19, 21, 39, 0.35);
	border-bottom-color: rgba(19, 21, 39, 0.15);
	cursor: default;
}

.soma-course--sample .soma-course__title { color: rgba(19, 21, 39, 0.82); }

/* ---------- Scroll reveal ----------
   Gated on `.soma-js`, which the script adds only once it runs, so the
   listing renders fully visible when JS is unavailable. Only opacity and
   transform animate — the text itself is always in the HTML. */

.soma-catalog.soma-js .soma-course {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.7s var(--ease-soma),
	            transform 0.7s var(--ease-soma);
}

.soma-catalog.soma-js .soma-course.is-in {
	opacity: 1;
	transform: none;
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
	.soma-catalog.soma-js .soma-course {
		opacity: 1;
		transform: none;
		transition: none;
	}
	.soma-course__img,
	.soma-course__readout,
	.soma-course__link span,
	.soma-course__title a {
		transition: none;
	}
	.soma-course:hover .soma-course__img:not(.soma-course__img--pending) {
		transform: none;
	}
	.soma-course__link:hover span,
	.soma-course__link:focus-visible span {
		transform: none;
	}
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
	.soma-course {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
	.soma-course__media { max-width: 380px; }
	.soma-course__readout dd { white-space: normal; }
}
