/* ============================================================
   Milau — the offer card
   ------------------------------------------------------------
   The card that stands in the middle of the homepage: the page
   behind goes soft and dark, the sheet carries the headline, the
   picture, the way in, and the footer in two parts.
   ============================================================ */

/* ------------------------------------------------------ the offer card
   The shop's three standing offers, in the middle of the page: the page
   behind goes soft and dark, the card stands in the middle, the headline
   sits on a pale band at the top, the picture fills the middle, and the
   way out is at the foot. */

.milau-pop--modal {
	position: fixed;
	inset: 0;
	z-index: 100150;

	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;

	opacity: 0;
	pointer-events: none;
	transition: opacity .35s ease;
}

.milau-pop--modal.is-open {
	opacity: 1;
	pointer-events: auto;
}

.milau-pop__backdrop {
	position: absolute;
	inset: 0;
	background: rgba( 12, 12, 12, .55 );
	-webkit-backdrop-filter: blur( 6px );
	backdrop-filter: blur( 6px );
}

.milau-pop__card {
	position: relative;
	z-index: 1;
	width: min( 480px, 100% );
	max-height: calc( 100vh - 48px );
	overflow-y: auto;
	background: var(--milau-panel);
	border-radius: var( --milau-radius );
	box-shadow: 0 40px 90px -30px rgba( 12, 12, 12, .55 );

	transform: translateY( 20px ) scale( .98 );
	opacity: 0;
	transition:
		opacity .4s ease,
		transform .5s cubic-bezier( .22, 1, .36, 1 );
}

.milau-pop--modal.is-open .milau-pop__card {
	transform: none;
	opacity: 1;
}

.milau-pop--modal.is-gone {
	display: none;
}

.milau-pop--modal.is-closing .milau-pop__card {
	transform: translateY( 12px ) scale( .98 );
	transition:
		opacity .3s ease,
		transform .35s cubic-bezier( .4, 0, .2, 1 );
}

.milau-pop__close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 3;
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba( 255, 255, 255, .92 );
	color: var(--milau-ink );
	cursor: pointer;
	transition: background .2s ease, transform .25s ease;
}

.milau-pop__close:hover {
	background: #fff;
	transform: rotate( 90deg );
}

.milau-pop__close:focus-visible {
	outline: 1px solid var( --milau-ink );
	outline-offset: 2px;
}

/* The pale band the headline sits on. */
.milau-pop__band {
	padding: 26px 28px 22px;
	text-align: center;
	background: var(--milau-panel);
}

.milau-pop__kicker {
	display: block;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--milau-muted );
}

.milau-pop__title {
	margin: 12px 0 10px;
	font-family: var(--milau-serif);
	font-weight: 400;
	font-size: 30px;
	line-height: 1.15;
	color: var(--milau-ink );
}

.milau-pop__text {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.6;
	color: var(--milau-muted );
}

.milau-pop__media {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--milau-soft);
}

.milau-pop__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* The way in, and the way out. */
.milau-pop__cta {
	padding: 20px 24px 18px;
	text-align: center;
}

/* The call to action is the house button, filling the width of the
   card it stands in. */
.milau-pop__btn {
	font-family: var( --milau-sans );
}

.milau-pop__later {
	margin-top: 12px;
	padding: 0;
	background: none;
	border: 0;
	font-family: var(--milau-sans);
	font-size: 12.5px;
	color: var(--milau-muted );
	cursor: pointer;
	transition: color .2s ease;
}

.milau-pop__later:hover {
	color: var(--milau-ink );
}

/* On a phone the way out of the card has to be big enough to hit. */
@media ( max-width: 640px ) {
	.milau-pop__later {
		padding: 9px 6px;
		font-size: 13px;
	}
}

/* The footer, in two parts. */
.milau-pop__foot {
	display: grid;
	grid-template-columns: 1fr 1fr;
	border-top: 1px solid var(--milau-line );
	background: var(--milau-soft-2 );
}

.milau-pop__part {
	padding: 18px 20px;
}

.milau-pop__part + .milau-pop__part {
	border-left: 1px solid var(--milau-line );
}

.milau-pop__part-title {
	display: block;
	margin-bottom: 8px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--milau-ink );
}

.milau-pop__part-line {
	display: block;
	font-size: 12px;
	line-height: 1.6;
	color: var(--milau-muted );
}
/* On a phone the two parts stand one above the other — side by side they
   would be too narrow to read. */
@media ( max-width: 640px ) {
	.milau-pop--modal {
		padding: 16px;
	}

	.milau-pop__card {
		max-height: calc( 100vh - 32px );
	}

	.milau-pop__title {
		font-size: 25px;
	}

	.milau-pop__band {
		padding: 22px 20px 18px;
	}

	/* The two parts stand one above the other on a phone — side by side
	   they would be too narrow to read. */
	.milau-pop__foot {
		grid-template-columns: minmax( 0, 1fr );
	}

	.milau-pop__part + .milau-pop__part {
		border-left: 0;
		border-top: 1px solid var(--milau-line);
	}

	.milau-pop__title {
		font-size: 22px;
	}

	.milau-pop__head {
		padding: 18px 20px 16px;
	}
}


@media ( prefers-reduced-motion: reduce ) {
	/* The card still arrives and still leaves — it simply does not travel. */
	.milau-pop--modal,
	.milau-pop__card {
		transition: none !important;
		transform: none !important;
	}
}
