/*
 * Sarah Coster Portfolio
 *
 * Every color and typeface here is read from Kadence's global custom properties.
 * The fallbacks after each var() are the site's current values, used only if Kadence
 * is inactive. Nothing in this file sets a new brand color — change the palette in
 * the Customizer and the portfolio follows it.
 *
 *   --global-palette1  #b5294d  crimson
 *   --global-palette2  #044355  deep teal
 *   --global-palette3  #000000  near-black text
 *   --global-palette7  #F5ECE5  warm cream
 *   --global-palette8  #F9F7F7  off-white
 *   --global-palette9  #ffffff  white
 */

.sc-pf {
	--sc-accent: var(--global-palette1, #b5294d);
	--sc-deep:   var(--global-palette2, #044355);
	--sc-ink:    var(--global-palette3, #000000);
	--sc-muted:  var(--global-palette6, #282828);
	--sc-cream:  var(--global-palette7, #F5ECE5);
	--sc-tint:   var(--global-palette8, #F9F7F7);
	--sc-paper:  var(--global-palette9, #ffffff);

	--sc-head: var(--global-heading-font-family, "Antic Didone", Georgia, serif);
	--sc-body: var(--global-body-font-family, "Raleway", "Helvetica Neue", Arial, sans-serif);
	--sc-ui:   "Josefin Sans", var(--sc-body);

	--sc-gap: clamp(1.25rem, 2.5vw, 2.25rem);
}

/* ---------- archive header ---------- */

.sc-pf-header {
	margin: 0 0 var(--sc-gap);
	max-width: 46rem;
}

.sc-pf-header__title {
	font-family: var(--sc-head);
	font-weight: 300;
	font-size: clamp(2.25rem, 5vw, 3.5rem);
	line-height: 1.1;
	margin: 0 0 .5rem;
	color: var(--sc-ink);
}

.sc-pf-header__intro {
	font-family: var(--sc-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--sc-muted);
	margin: 0;
}

/* ---------- filter chips ---------- */

.sc-pf-filters {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin: 0 0 var(--sc-gap);
	padding: 0 0 1.25rem;
	border-bottom: 1px solid color-mix(in srgb, var(--sc-ink) 10%, transparent);
}

.sc-pf-chip {
	font-family: var(--sc-ui);
	font-weight: 600;
	font-size: .8125rem;
	letter-spacing: .04em;
	text-transform: uppercase;
	padding: .5rem .9rem;
	border-radius: 999px;
	border: 1px solid color-mix(in srgb, var(--sc-ink) 14%, transparent);
	color: var(--sc-muted);
	text-decoration: none;
	transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.sc-pf-chip:hover,
.sc-pf-chip:focus-visible {
	border-color: var(--sc-accent);
	color: var(--sc-accent);
}

.sc-pf-chip.is-active {
	background: var(--sc-accent);
	border-color: var(--sc-accent);
	color: var(--sc-paper);
}

/* ---------- grid ---------- */

.sc-pf-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
	gap: var(--sc-gap);
	margin: 0 0 calc(var(--sc-gap) * 1.5);
}

.sc-pf-grid--three {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
}

.sc-pf-card__link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.sc-pf-card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--sc-cream);
	margin-bottom: .9rem;
}

.sc-pf-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .45s ease;
}

.sc-pf-card__link:hover .sc-pf-card__media img {
	transform: scale(1.035);
}

.sc-pf-card__placeholder {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(135deg,
			color-mix(in srgb, var(--sc-cream) 100%, transparent) 0%,
			color-mix(in srgb, var(--sc-accent) 12%, var(--sc-cream)) 100%);
}

.sc-pf-tag {
	display: inline-block;
	font-family: var(--sc-ui);
	font-weight: 600;
	font-size: .6875rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--sc-accent);
	text-decoration: none;
	margin-bottom: .4rem;
}

.sc-pf-card__title {
	font-family: var(--sc-head);
	font-weight: 400;
	font-size: 1.375rem;
	line-height: 1.25;
	margin: 0 0 .3rem;
	color: var(--sc-ink);
}

.sc-pf-card__link:hover .sc-pf-card__title {
	color: var(--sc-accent);
}

.sc-pf-card__meta {
	font-family: var(--sc-body);
	font-size: .875rem;
	color: var(--sc-muted);
	margin: 0;
}

/* ---------- single: header ---------- */

.sc-pf-single .sc-pf-project__header {
	max-width: 46rem;
	margin: 0 0 var(--sc-gap);
}

.sc-pf-project__title {
	font-family: var(--sc-head);
	font-weight: 300;
	font-size: clamp(2rem, 4.5vw, 3.125rem);
	line-height: 1.12;
	margin: .35rem 0 .6rem;
	color: var(--sc-ink);
}

.sc-pf-project__client {
	font-family: var(--sc-body);
	font-size: 1.0625rem;
	color: var(--sc-deep);
	margin: 0 0 .2rem;
}

.sc-pf-project__scope {
	font-family: var(--sc-ui);
	font-size: .8125rem;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--sc-muted);
	margin: 0;
}

.sc-pf-project__hero {
	margin: 0 0 var(--sc-gap);
	/* Cap the hero. Portrait photographs would otherwise run to several thousand
	   pixels tall at full width and push the whole case study below the fold. */
	max-height: min(64vh, 34rem);
	overflow: hidden;
	background: var(--sc-cream);
}

.sc-pf-project__hero img {
	width: 100%;
	height: 100%;
	max-height: min(64vh, 34rem);
	object-fit: cover;
	object-position: center;
	display: block;
}

/* ---------- metric tiles ---------- */

.sc-pf-metrics {
	list-style: none;
	margin: 0 0 var(--sc-gap);
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
	gap: 1px;
	background: color-mix(in srgb, var(--sc-ink) 8%, transparent);
	border: 1px solid color-mix(in srgb, var(--sc-ink) 8%, transparent);
}

.sc-pf-metric {
	background: var(--sc-cream);
	padding: 1.4rem 1.25rem;
	text-align: center;
}

.sc-pf-metric__value {
	display: block;
	font-family: var(--sc-head);
	font-weight: 400;
	font-size: clamp(2rem, 4vw, 2.75rem);
	line-height: 1;
	color: var(--sc-accent);
	margin-bottom: .35rem;
}

.sc-pf-metric__label {
	display: block;
	font-family: var(--sc-ui);
	font-weight: 600;
	font-size: .6875rem;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--sc-muted);
}

/* ---------- body ---------- */

.sc-pf-project__body {
	max-width: 42rem;
	font-family: var(--sc-body);
	font-size: 1.0625rem;
	line-height: 1.75;
}

.sc-pf-h2 {
	font-family: var(--sc-head);
	font-weight: 400;
	font-size: 1.5rem;
	color: var(--sc-ink);
	margin: 0 0 .75rem;
}

/* ---------- deliverables ---------- */

.sc-pf-deliverables {
	max-width: 42rem;
	margin: var(--sc-gap) 0;
	padding: 1.5rem 1.75rem;
	background: var(--sc-tint);
	border-left: 3px solid var(--sc-accent);
}

.sc-pf-deliverables__list {
	margin: 0;
	padding-left: 1.1rem;
	font-family: var(--sc-body);
	line-height: 1.7;
	color: var(--sc-muted);
}

.sc-pf-deliverables__list li { margin-bottom: .3rem; }

/* ---------- testimonial ---------- */

.sc-pf-quote {
	max-width: 44rem;
	margin: var(--sc-gap) 0;
	padding: 0 0 0 1.75rem;
	border-left: 3px solid var(--sc-accent);
}

.sc-pf-quote blockquote {
	margin: 0;
	padding: 0;
	border: 0;
}

.sc-pf-quote blockquote p {
	font-family: var(--sc-head);
	font-size: clamp(1.25rem, 2.4vw, 1.625rem);
	line-height: 1.45;
	color: var(--sc-ink);
	margin: 0 0 .8rem;
}

.sc-pf-quote figcaption {
	font-family: var(--sc-body);
	font-size: .9375rem;
	color: var(--sc-muted);
}

.sc-pf-quote__name { font-weight: 700; color: var(--sc-deep); }
.sc-pf-quote__role::before { content: " — "; }

/* ---------- related + CTA + backlink ---------- */

.sc-pf-related {
	margin: calc(var(--sc-gap) * 1.5) 0 0;
	padding-top: var(--sc-gap);
	border-top: 1px solid color-mix(in srgb, var(--sc-ink) 10%, transparent);
}

.sc-pf-cta {
	margin: calc(var(--sc-gap) * 1.5) 0 var(--sc-gap);
	padding: clamp(1.75rem, 4vw, 2.75rem);
	background: var(--sc-cream);
	text-align: center;
}

.sc-pf-cta__title {
	font-family: var(--sc-head);
	font-weight: 400;
	font-size: clamp(1.5rem, 3vw, 2rem);
	margin: 0 0 .5rem;
	color: var(--sc-ink);
}

.sc-pf-cta__text {
	font-family: var(--sc-body);
	max-width: 34rem;
	margin: 0 auto 1.25rem;
	color: var(--sc-muted);
	line-height: 1.65;
}

.sc-pf-button {
	display: inline-block;
	font-family: var(--sc-ui);
	font-weight: 600;
	font-size: .875rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	padding: .85rem 1.9rem;
	background: var(--sc-accent);
	color: var(--sc-paper);
	text-decoration: none;
	transition: background-color .2s ease;
}

.sc-pf-button:hover,
.sc-pf-button:focus-visible {
	background: var(--sc-deep);
	color: var(--sc-paper);
}

.sc-pf-backlink {
	font-family: var(--sc-ui);
	font-size: .8125rem;
	letter-spacing: .05em;
	text-transform: uppercase;
	margin: 0 0 var(--sc-gap);
}

.sc-pf-backlink a {
	color: var(--sc-muted);
	text-decoration: none;
}

.sc-pf-backlink a:hover { color: var(--sc-accent); }

.sc-pf-empty {
	font-family: var(--sc-body);
	color: var(--sc-muted);
}

/* ---------- accessibility ---------- */

.sc-pf a:focus-visible {
	outline: 2px solid var(--sc-accent);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	.sc-pf-card__media img,
	.sc-pf-chip,
	.sc-pf-button {
		transition: none;
	}
	.sc-pf-card__link:hover .sc-pf-card__media img { transform: none; }
}
