/* Public home page. Loaded by index/templates/index/home.html. */

.home-hero {
	position: relative;
	overflow: hidden;
	padding-block: clamp(2rem, 4.5vw, 3.5rem) clamp(2rem, 5vw, 4rem);
}

.home-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	align-items: center;
	gap: clamp(1.8rem, 5vw, 4rem);
}

.home-hero__title {
	margin: 0;
	font-size: clamp(2.3rem, 5.2vw, 3.5rem);
	line-height: 1.02;
	font-weight: 900;
	letter-spacing: -0.04em;
}

.home-hero__heart {
	display: inline-flex;
	vertical-align: 0.12em;
	margin-left: 0.15em;
	color: rgb(var(--pub-red, 232, 64, 47));
}

.home-hero__copy .pub-lead {
	margin-top: 0.8rem;
}

.home-hero__copy .pub-actions {
	margin-top: 1.4rem;
}

.home-hero__photo {
	position: relative;
	justify-self: center;
	width: 100%;
	max-width: 520px;
}

.home-hero__frame {
	position: relative;
	padding: 0.45rem;
	border-radius: 24px;
	background: #fff;
	border: 1px solid rgba(23, 42, 89, 0.12);
	box-shadow: 0 14px 34px rgba(23, 42, 89, 0.12);
	transform: rotate(-1deg);
}

.home-hero__frame::before {
	content: "";
	position: absolute;
	top: -0.45rem;
	left: 50%;
	z-index: 3;
	width: 5.2rem;
	height: 1.25rem;
	border-radius: 2px;
	background: rgba(245, 197, 24, 0.9);
	box-shadow: 0 2px 0 rgba(23, 42, 89, 0.08);
	transform: translateX(-50%) rotate(-2deg);
}

.home-hero__frame img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 19px;
	object-fit: cover;
}

.home-hero__doodle {
	position: absolute;
	display: inline-flex;
	z-index: 2;
	user-select: none;
	pointer-events: none;
}

.home-hero__doodle--star {
	top: -0.8rem;
	right: 0.5rem;
	color: rgb(var(--pub-yellow, 245, 197, 24));
}

.home-hero__doodle--heart {
	bottom: -0.5rem;
	left: -0.7rem;
	color: rgb(var(--pub-red, 232, 64, 47));
}

.home-hero__doodle--green {
	right: -0.8rem;
	bottom: 1.2rem;
	color: rgb(var(--pub-green, 32, 160, 120));
	transform: rotate(8deg);
}

.home-section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: clamp(1rem, 2.5vw, 1.6rem);
}

.home-heading {
	margin: 0;
	font-size: clamp(1.4rem, 3vw, 1.85rem);
	font-weight: 900;
	letter-spacing: -0.02em;
	--heading-accent: rgb(var(--pub-yellow, 245, 197, 24));
}

.home-heading::after {
	content: "";
	display: block;
	width: 2.4rem;
	height: 0.28rem;
	margin-top: 0.35rem;
	border-radius: 999px;
	background: var(--heading-accent);
}

.home-heading--green {
	--heading-accent: rgb(var(--pub-green, 32, 160, 120));
}

.home-heading--red {
	--heading-accent: rgb(var(--pub-red, 232, 64, 47));
}

.home-events {
	background: rgba(255, 255, 255, 0.3);
	border-block: 1px solid rgba(23, 42, 89, 0.06);
}

.home-why {
	background: rgba(255, 255, 255, 0.34);
}

.home-why__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0;
	margin-top: clamp(1rem, 2.5vw, 1.5rem);
	border-top: 1px solid rgba(23, 42, 89, 0.12);
}

.home-why__item {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 1.2rem 1.2rem 1.2rem 0;
	border-right: 1px solid rgba(23, 42, 89, 0.12);
}

.home-why__item:last-child {
	border-right: none;
}

.home-why__item:not(:first-child) {
	padding-left: 1.2rem;
}

.home-why__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.4rem;
	height: 2.4rem;
	border-radius: 12px 15px 12px 15px;
	flex: 0 0 auto;
	background: rgba(245, 197, 24, 0.3);
	color: #7a5a00;
}

.home-why__item:nth-child(2) .home-why__icon {
	background: rgba(32, 160, 120, 0.18);
	color: rgb(var(--pub-green-strong, 15, 122, 90));
}

.home-why__item:nth-child(3) .home-why__icon {
	background: rgba(232, 64, 47, 0.14);
	color: rgb(var(--pub-red-strong, 179, 38, 30));
}

.home-why__item h3 {
	margin: 0 0 0.15rem;
	font-size: 0.98rem;
	font-weight: 900;
}

.home-why__item p {
	margin: 0;
	font-size: 0.86rem;
	color: var(--pub-muted);
}

@media (max-width: 800px) {
	.home-hero__inner {
		grid-template-columns: 1fr;
	}

	.home-hero__copy {
		order: 2;
	}

	.home-hero__photo {
		order: 1;
		max-width: 440px;
	}

	.home-why__list {
		grid-template-columns: 1fr;
	}

	.home-why__item,
	.home-why__item:not(:first-child) {
		padding: 1rem 0;
		border-right: none;
		border-bottom: 1px solid rgba(23, 42, 89, 0.12);
	}

	.home-why__item:last-child {
		border-bottom: none;
	}
}
