/**
 * Life stories page.
 */

.neomi-stories {
	--neomi-stories-plum: #4e155f;
	--neomi-stories-text: #262233;
	--neomi-stories-muted: #5f596b;
	--neomi-stories-line: rgba(78, 21, 95, 0.2);
	direction: rtl;
	min-height: 100vh;
	padding: clamp(3.2rem, 5.4vw, 4.8rem) clamp(1.25rem, 5vw, 5.4rem) clamp(3rem, 5.4vw, 4.5rem);
	background:
		radial-gradient(circle at 50% 7%, rgba(255, 255, 255, 0.98), rgba(250, 247, 242, 0.78) 38%, rgba(246, 241, 234, 0.92) 100%),
		#fbfaf8;
	color: var(--neomi-stories-text);
	font-family: var(--neomi-font-body);
}

.neomi-stories :where(h1, h2, h3, p, figure) {
	margin: 0;
}

.neomi-stories-hero {
	max-width: 58rem;
	margin-inline: auto;
	text-align: center;
}

.neomi-stories-hero h1 {
	color: var(--neomi-stories-plum);
	font-family: var(--neomi-font-display);
	font-size: clamp(3.35rem, 6.1vw, 5rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0;
}

.neomi-stories-ornament {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 1rem;
	width: min(12.6rem, 54vw);
	margin: clamp(0.65rem, 1.15vw, 0.9rem) auto clamp(0.7rem, 1.25vw, 0.95rem);
	color: var(--neomi-stories-plum);
}

.neomi-stories-ornament::before,
.neomi-stories-ornament::after {
	height: 1px;
	content: "";
	background: currentColor;
	opacity: 0.28;
}

.neomi-stories-ornament span {
	font-size: 1.58rem;
	line-height: 1;
}

.neomi-stories-ornament--small {
	width: min(11rem, 48vw);
	margin-block: 1.25rem 1.45rem;
}

.neomi-stories-ornament--small span {
	font-size: 1.35rem;
}

.neomi-stories-hero p {
	color: var(--neomi-stories-text);
	font-size: clamp(1.05rem, 1.32vw, 1.22rem);
	line-height: 1.7;
}

.neomi-stories-list,
.neomi-stories-featured,
.neomi-stories-quote {
	max-width: 69.75rem;
	margin-inline: auto;
}

.neomi-stories-list {
	margin-block-start: clamp(2.6rem, 4.2vw, 4rem);
}

.neomi-stories-list__head {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	justify-content: space-between;
	gap: 2rem;
	margin-block-end: clamp(1.2rem, 2.2vw, 1.75rem);
}

.neomi-stories-list__top {
	display: grid;
	justify-items: end;
	flex: 0 0 auto;
	order: 2;
}

.neomi-stories-list__top h2 {
	color: var(--neomi-stories-text);
	font-size: clamp(1.35rem, 1.85vw, 1.68rem);
	font-weight: 800;
	line-height: 1.2;
}

.neomi-stories-list__top span {
	width: 4rem;
	height: 1px;
	margin-block-start: 0.85rem;
	background: var(--neomi-stories-plum);
	opacity: 0.66;
}

.neomi-stories-tabs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: clamp(1.25rem, 2.8vw, 3.35rem);
	margin-block-start: 0.9rem;
	order: 1;
}

.neomi-stories-tabs a {
	position: relative;
	color: var(--neomi-stories-text);
	font-size: 0.82rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.neomi-stories-tabs a.is-active {
	color: var(--neomi-stories-plum);
	font-weight: 800;
}

.neomi-stories-tabs a.is-active::after {
	position: absolute;
	inset-inline: 0;
	inset-block-end: -0.7rem;
	height: 0.16rem;
	content: "";
	background: var(--neomi-stories-plum);
	border-radius: 999px;
}

.neomi-stories-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1.3rem, 2.35vw, 1.9rem);
	direction: rtl;
}

.neomi-story-card :where(a, div) {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-height: clamp(17.4rem, 24vw, 20.4rem);
	padding: clamp(1.65rem, 2.65vw, 2.25rem) clamp(1.1rem, 2vw, 1.55rem);
	color: inherit;
	text-align: center;
	text-decoration: none;
	background:
		radial-gradient(circle at 50% 7%, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0) 44%),
		var(--story-card-bg);
	border: 1px solid rgba(91, 67, 67, 0.08);
	border-radius: 0.52rem;
	box-shadow: 0 1rem 2.6rem rgba(59, 34, 29, 0.04);
	overflow: hidden;
}

.neomi-story-card--sage { --story-card-bg: linear-gradient(140deg, rgba(230, 232, 214, 0.82), rgba(249, 244, 235, 0.95)); }
.neomi-story-card--warm { --story-card-bg: linear-gradient(140deg, rgba(241, 221, 193, 0.76), rgba(251, 246, 238, 0.96)); }
.neomi-story-card--rose { --story-card-bg: linear-gradient(140deg, rgba(234, 214, 224, 0.75), rgba(251, 246, 240, 0.96)); }

.neomi-story-card--full {
	grid-column: span 1;
}

.neomi-story-card--full .neomi-story-card__panel {
	min-height: clamp(19rem, 28vw, 23rem);
}

.neomi-story-card__initial {
	color: rgba(78, 21, 95, 0.62);
	font-family: var(--neomi-font-display);
	font-size: clamp(3.4rem, 5vw, 4.55rem);
	font-weight: 700;
	line-height: 0.78;
}

.neomi-story-card__quote {
	margin-block-start: 0.55rem;
	color: rgba(78, 21, 95, 0.28);
	font-family: Georgia, serif;
	font-size: 1.85rem;
	line-height: 0.8;
}

.neomi-story-card--full .neomi-story-card__quote {
	display: none !important;
}

.neomi-story-card__category {
	margin-block-start: 0.55rem;
	color: rgba(78, 21, 95, 0.72);
	font-size: 0.78rem;
	font-weight: 800;
	line-height: 1.2;
}

.neomi-story-card h3 {
	max-width: 15rem;
	margin-block-start: 0.75rem;
	color: #1f1b28;
	font-size: clamp(1.02rem, 1.35vw, 1.22rem);
	font-weight: 800;
	line-height: 1.36;
}

.neomi-story-card p {
	max-width: 15rem;
	margin-block-start: 0.2rem;
	color: #1f1b28;
	font-size: clamp(0.92rem, 1.18vw, 1.02rem);
	font-weight: 700;
	line-height: 1.55;
}

.neomi-story-card__full-text {
	display: none;
}

.neomi-story-card__full-text p {
	max-width: none;
	margin: 0;
	color: #1f1b28;
	font-size: 0.82rem;
	font-weight: 500;
	line-height: 1.62;
}

.neomi-story-card__full-text p + p {
	margin-block-start: 0.55rem;
}

.neomi-story-card__rule {
	width: 4rem;
	height: 1px;
	margin-block: auto 1rem;
	background: rgba(78, 21, 95, 0.14);
}

.neomi-story-card__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	color: var(--neomi-stories-plum);
	font-size: 0.92rem;
	font-weight: 800;
	background: transparent;
	border: 0;
	padding: 0;
	cursor: pointer;
	font-family: var(--neomi-font-body);
}

.neomi-story-card__panel > .neomi-story-card__link {
	display: none;
}

.neomi-story-card__panel > .neomi-story-card__open {
	display: inline-flex;
	margin-inline: auto;
	margin-block-start: auto;
	color: var(--neomi-stories-plum) !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	text-decoration: none !important;
	appearance: none;
}

.neomi-story-card__link:hover,
.neomi-story-card__link:focus-visible,
.neomi-story-card a:hover .neomi-story-card__link,
.neomi-story-card a:focus-visible .neomi-story-card__link {
	color: #fff !important;
	background: #ff5f66 !important;
	border-radius: 999px;
	padding: 0.1rem 0.55rem;
	outline: none;
}

.neomi-story-card__details {
	display: none !important;
}

.neomi-story-card__details summary {
	justify-content: center;
	cursor: pointer;
	list-style: none;
}

.neomi-story-card__details summary::-webkit-details-marker {
	display: none;
}

.neomi-story-card__details[open] summary {
	margin-block-end: 0.85rem;
}

.neomi-stories-all {
	display: flex;
	align-items: center;
	justify-content: center;
	width: max-content;
	min-width: 11.5rem;
	min-height: 2.75rem;
	margin: clamp(1.35rem, 2.3vw, 1.8rem) auto 0;
	padding-inline: 1.55rem;
	color: var(--neomi-stories-plum);
	font-size: 1rem;
	font-weight: 800;
	text-decoration: none;
	border: 1px solid rgba(78, 21, 95, 0.72);
	border-radius: 0.35rem;
}

.neomi-stories-featured {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(22rem, 1fr);
	align-items: center;
	margin-block-start: clamp(2rem, 3.5vw, 3rem);
	background: rgba(255, 255, 255, 0.54);
	border-radius: 0.6rem;
	box-shadow: 0 1.2rem 3.3rem rgba(59, 34, 29, 0.04);
	direction: ltr;
	overflow: hidden;
}

.neomi-stories-featured__text {
	padding: clamp(1.8rem, 3.4vw, 3rem) clamp(1.45rem, 3.4vw, 3.3rem);
	direction: rtl;
	text-align: center;
}

.neomi-stories-kicker {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	color: var(--neomi-stories-plum);
	font-size: 0.98rem;
	font-weight: 700;
}

.neomi-stories-kicker::before {
	width: 1.7rem;
	height: 1px;
	content: "";
	background: rgba(78, 21, 95, 0.32);
}

.neomi-stories-featured h2 {
	margin-block-start: 1.15rem;
	color: var(--neomi-stories-plum);
	font-family: var(--neomi-font-display);
	font-size: clamp(1.75rem, 3vw, 2.55rem);
	font-weight: 700;
	line-height: 1.32;
}

.neomi-stories-featured__text > p:last-of-type {
	color: var(--neomi-stories-text);
	font-size: clamp(0.98rem, 1.22vw, 1.1rem);
	line-height: 1.65;
}

.neomi-stories-featured__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 16rem;
	min-height: 3.15rem;
	margin-block-start: 1.45rem;
	padding-inline: 1.8rem;
	color: #fff;
	font-size: 1.05rem;
	font-weight: 800;
	text-decoration: none;
	background: linear-gradient(135deg, #4c145e, #5a176d 58%, #42104f);
	border-radius: 0.36rem;
	box-shadow: 0 1rem 2rem rgba(78, 21, 95, 0.18);
}

.neomi-stories-featured__image {
	align-self: stretch;
	min-height: clamp(17rem, 27vw, 23rem);
}

.neomi-stories-featured__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.neomi-stories-quote {
	margin-block-start: clamp(1.35rem, 2.7vw, 2rem);
	padding: clamp(1.45rem, 2.7vw, 2.25rem) 1.5rem;
	text-align: center;
	background: rgba(255, 255, 255, 0.52);
	border-radius: 0.6rem;
	box-shadow: 0 1rem 3rem rgba(59, 34, 29, 0.035);
}

.neomi-stories-full {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 1000;
	align-items: center;
	justify-content: center;
	padding: clamp(1rem, 4vw, 2.5rem);
	background: rgba(31, 24, 38, 0.46);
	backdrop-filter: blur(3px);
	text-align: center;
}

.neomi-stories-full.is-open {
	display: flex;
}

.neomi-story-modal-open {
	overflow: hidden;
}

.neomi-stories-full__inner {
	position: relative;
	width: min(48rem, 100%);
	max-height: min(82vh, 46rem);
	padding: clamp(1.45rem, 3vw, 2.4rem) clamp(1.2rem, 3vw, 2.5rem);
	overflow: auto;
	background: rgba(255, 255, 255, 0.96);
	border: 1px solid rgba(91, 67, 67, 0.12);
	border-radius: 0.75rem;
	box-shadow: 0 1.4rem 4rem rgba(31, 24, 38, 0.22);
}

.neomi-stories-full__close {
	position: sticky;
	top: 0;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	float: left;
	width: 2.35rem;
	height: 2.35rem;
	margin: -0.5rem -0.5rem 0.4rem 0.8rem;
	padding: 0;
	color: var(--neomi-stories-plum) !important;
	font-size: 1.6rem;
	font-family: Arial, sans-serif;
	font-weight: 400;
	line-height: 1;
	background: rgba(255, 255, 255, 0.78) !important;
	border: 1px solid rgba(78, 21, 95, 0.18);
	border-radius: 50%;
	box-shadow: none !important;
	cursor: pointer;
}

.neomi-stories-full .neomi-stories-kicker,
.neomi-stories-full .neomi-stories-ornament {
	display: none;
}

.neomi-stories-full h2 {
	color: var(--neomi-stories-plum);
	font-family: var(--neomi-font-display);
	font-size: clamp(1.75rem, 3vw, 2.6rem);
	font-weight: 700;
	line-height: 1.28;
}

.neomi-stories-full__content {
	max-width: 47rem;
	margin-inline: auto;
	text-align: right;
}

.neomi-stories-full__content p {
	color: var(--neomi-stories-text);
	font-size: clamp(0.98rem, 1.22vw, 1.1rem);
	line-height: 1.78;
}

.neomi-stories-full__content p + p {
	margin-block-start: 0.8rem;
}

.neomi-stories-quote > span {
	display: block;
	color: rgba(78, 21, 95, 0.28);
	font-family: Georgia, serif;
	font-size: clamp(2.1rem, 3.2vw, 3rem);
	line-height: 0.7;
}

.neomi-stories-quote p {
	color: var(--neomi-stories-plum);
	font-family: var(--neomi-font-display);
	font-size: clamp(1.35rem, 2.15vw, 1.95rem);
	font-weight: 700;
	line-height: 1.45;
}

body:has(.neomi-stories) footer,
body:has(.neomi-stories) #colophon,
body:has(.neomi-stories) .site-footer,
body:has(.neomi-stories) .elementor-location-footer,
body:has(.neomi-stories) [data-elementor-type="footer"],
body:has(.neomi-stories) .hfe-footer {
	display: none !important;
}

@media (max-width: 64rem) {
	.neomi-stories-cards,
	.neomi-stories-featured {
		grid-template-columns: 1fr;
	}

	.neomi-stories-tabs,
	.neomi-stories-list__top {
		justify-content: center;
		justify-items: center;
	}

	.neomi-stories-list__head {
		display: grid;
		justify-items: center;
	}

	.neomi-stories-featured__image {
		order: 2;
	}
}

@media (max-width: 42rem) {
	.neomi-stories {
		padding-block-start: clamp(3rem, 11vw, 4.5rem);
	}

	.neomi-stories-hero h1 {
		font-size: clamp(3.4rem, 16vw, 4.8rem);
	}

	.neomi-stories-hero p {
		font-size: 1.08rem;
		line-height: 1.75;
	}

	.neomi-story-card :where(a, div) {
		min-height: 17rem;
	}
}
