/*
 * Work archive styles for enne creative.
 * Loaded only on /work/ by archive-work.php.
 */

/* ----------------------------------------
   Base
---------------------------------------- */

.enne-work-main {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	overflow: hidden;
	color: var(--color_text, #333);
	background: #fff;
}

.enne-work-shell {
	width: min(1380px, calc(100% - 80px));
	margin-inline: auto;
}

.enne-work-shell--narrow {
	width: min(860px, calc(100% - 48px));
}

/* ----------------------------------------
   Hero
---------------------------------------- */

.enne-work-hero {
	padding: 0 0 42px;
	text-align: center;
}

.enne-work-heading {
	margin: 0;
	color: var(--color_main, #a77689);
	font-family: inherit;
	font-size: clamp(25px, 2.3vw, 34px);
	font-weight: 400;
	line-height: 1.35;
	letter-spacing: 0.16em;
}

.enne-work-heading-line {
	display: block;
	width: 42px;
	height: 1px;
	margin: 17px auto 22px;
	background: var(--color_main, #a77689);
}

.enne-work-title {
	margin: 0 0 22px;
	font-family: inherit;
	font-size: clamp(20px, 1.8vw, 26px);
	font-weight: 400;
	line-height: 1.6;
	letter-spacing: 0.07em;
}

.enne-work-lead {
	margin: 0;
	color: #555;
	font-family: inherit;
	font-size: 15px;
	line-height: 2;
	letter-spacing: 0.02em;
}

/* ----------------------------------------
   Category filter
---------------------------------------- */

.enne-work-filter {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 11px;
	margin: 0 auto 52px;
	padding: 0;
}

.enne-work-filter__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 8px 24px;
	border: 1px solid color-mix(in srgb, var(--color_main, #a77689) 72%, white);
	border-radius: 999px;
	background: #fff;
	color: var(--color_text, #333);
	font-size: 13px;
	line-height: 1.3;
	text-decoration: none;
	transition:
		background-color 0.22s ease,
		border-color 0.22s ease,
		color 0.22s ease,
		transform 0.22s ease;
}

.enne-work-filter__button:hover,
.enne-work-filter__button:focus-visible,
.enne-work-filter__button.is-active {
	border-color: var(--color_main, #a77689);
	background: var(--color_main, #a77689);
	color: #fff;
}

.enne-work-filter__button:hover {
	transform: translateY(-1px);
}

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

.enne-work-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 54px 28px;
}

.enne-work-card {
	min-width: 0;
	margin: 0;
}

.enne-work-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.enne-work-card__image {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: #f3f1f1;
}

.enne-work-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.enne-work-card__link:hover .enne-work-card__image img {
	transform: scale(1.025);
}

.enne-work-card__placeholder {
	display: grid;
	width: 100%;
	height: 100%;
	place-items: center;
	color: #999;
	font-size: 13px;
	letter-spacing: 0.2em;
}

.enne-work-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 17px 2px 0;
}

.enne-work-card__categories {
	display: flex;
	flex-wrap: wrap;
	gap: 5px 12px;
	margin: 0 0 10px;
}

.enne-work-card__category {
	color: var(--color_main, #a77689);
	font-size: 11px;
	line-height: 1.5;
	letter-spacing: 0.055em;
}

.enne-work-card__title {
	margin: 0 0 12px;
	font-size: clamp(17px, 1.55vw, 21px);
	font-weight: 400;
	line-height: 1.55;
	letter-spacing: 0.025em;
}

.enne-work-card__excerpt {
	display: -webkit-box;
	overflow: hidden;
	margin: 0;
	color: #626262;
	font-size: 13px;
	line-height: 1.85;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.enne-work-card__more {
	align-self: flex-start;
	margin-top: 18px;
	padding-bottom: 3px;
	border-bottom: 1px solid currentColor;
	font-size: 12px;
	line-height: 1.4;
	letter-spacing: 0.07em;
	transition: color 0.2s ease;
}

.enne-work-card__link:hover .enne-work-card__more {
	color: var(--color_main, #a77689);
}

/* ----------------------------------------
   Pagination
---------------------------------------- */

.enne-work-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin-top: 66px;
}

.enne-work-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 10px;
	border: 1px solid #ddd;
	color: inherit;
	text-decoration: none;
}

.enne-work-pagination .page-numbers.current,
.enne-work-pagination .page-numbers:hover {
	border-color: var(--color_main, #a77689);
	background: var(--color_main, #a77689);
	color: #fff;
}

/* ----------------------------------------
   Empty
---------------------------------------- */

.enne-work-empty {
	margin: 0;
	padding: 60px 20px;
	text-align: center;
	color: #666;
}

/* ----------------------------------------
   CTA
---------------------------------------- */

.enne-work-cta {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
	align-items: center;
	gap: 48px;
	margin-top: 96px;
	padding: 58px 64px;
	background: color-mix(in srgb, var(--color_main, #a77689) 8%, white);
}

.enne-work-cta__heading {
	margin: 0 0 25px;
	color: var(--color_main, #a77689);
	font-family: inherit;
	font-size: 12px;
	line-height: 1.4;
	letter-spacing: 0.24em;
}

.enne-work-cta__title {
	margin: 0 0 24px;
	font-family: inherit;
	font-size: clamp(23px, 2.35vw, 34px);
	font-weight: 600;
	line-height: 1.65;
	letter-spacing: 0.045em;
}

.enne-work-cta__text {
	margin: 0;
	color: #555;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.95;
}

.enne-work-cta__action {
	display: flex;
	justify-content: flex-end;
}

.enne-work-cta__button {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	width: min(100%, 330px);
	min-height: 56px;
	padding: 12px 22px 12px 27px;
	background: var(--color_main, #a77689);
	color: #fff;
	font-size: 14px;
	line-height: 1.4;
	letter-spacing: 0.035em;
	text-decoration: none;
	transition:
		opacity 0.22s ease,
		transform 0.22s ease;
}

.enne-work-cta__button:hover,
.enne-work-cta__button:focus-visible {
	color: #fff;
	opacity: 0.84;
	transform: translateY(-1px);
}

/* ----------------------------------------
   Tablet
---------------------------------------- */

@media screen and (max-width: 959px) {
	.enne-work-shell {
		width: min(100% - 48px, 1040px);
	}

	.enne-work-hero {
		padding-top: 32px;
	}

	.enne-work-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 48px 24px;
	}

	.enne-work-cta {
		grid-template-columns: 1fr;
		padding: 38px;
	}

	.enne-work-cta__action {
		justify-content: flex-start;
	}
}

/* ----------------------------------------
   Smartphone
---------------------------------------- */

@media screen and (max-width: 599px) {
	.enne-work-shell,
	.enne-work-shell--narrow {
		width: calc(100% - 36px);
	}

	.enne-work-hero {
		padding: 25px 0 32px;
	}

	.enne-work-heading {
		font-size: 25px;
	}

	.enne-work-title {
		margin-bottom: 16px;
		font-size: 20px;
	}

	.enne-work-lead {
		font-size: 13px;
		line-height: 1.9;
		text-align: left;
	}

	.enne-pc-only {
		display: none;
	}

	.enne-work-filter {
		justify-content: flex-start;
		gap: 8px;
		margin-bottom: 38px;
	}

	.enne-work-filter__button {
		min-height: 37px;
		padding: 7px 15px;
		font-size: 12px;
	}

	.enne-work-grid {
		grid-template-columns: 1fr;
		gap: 43px;
	}

	.enne-work-card__body {
		padding-top: 15px;
	}

	.enne-work-card__title {
		font-size: 18px;
	}

	.enne-work-cta {
		gap: 28px;
		margin-top: 70px;
		padding: 42px 24px;
	}

	.enne-work-cta__heading {
		margin-bottom: 20px;
	}

	.enne-work-cta__title {
		font-size: 24px;
	}

	.enne-work-cta__button {
		width: 100%;
	}

	.enne-work-cta__action {
		display: block;
	}
}


/* Keep Work typography consistent with the rest of the site */
.enne-work-main,
.enne-work-main button,
.enne-work-main input,
.enne-work-main textarea,
.enne-work-main select {
	font-family: inherit;
}
