/* ==========================================================================
   Homepage additions (admins, 2026-09-23)
   --------------------------------------------------------------------------
   The two Anteprime arches above the cards, "plan your visit" and the
   closing band below them. Markup: inc/mwf-home-extras.php.

   Everything is scoped to .mwfe-home and drawn from the design system's own
   tokens (serif, brass, glass, the line colour), because /custom-css/mwf.css
   is frozen and nothing outside the homepage may move because of this file.
   The arch is the system's own .mwfe-fig — offset brass outline, parallax
   inside the frame — so it reads as the same family as the section figures
   on the event pages, larger and quieter than the cards below it.
   ========================================================================== */

/* ------------------------------------------------------------ the anteprime */

.mwfe-home .mwfe-anteprime {
	padding: clamp(4rem, 11vh, 7.5rem) 0 clamp(1rem, 3vh, 2rem);
}

.mwfe-home .mwfe-anteprime-head,
.mwfe-home .mwfe-plan-head {
	max-width: 44rem;
	margin: 0 auto clamp(2.8rem, 7vh, 4.5rem);
	text-align: center;
}

.mwfe-home .mwfe-anteprime-head .mwfe-kicker,
.mwfe-home .mwfe-plan-head .mwfe-kicker {
	justify-content: center;
}

.mwfe-home .mwfe-anteprime-head .mwfe-kicker::before,
.mwfe-home .mwfe-plan-head .mwfe-kicker::before {
	display: none;
}

.mwfe-home .mwfe-anteprime-intro {
	max-width: 38rem;
	margin: 1rem auto 0;
	font-size: 1.02rem;
	line-height: 1.65;
	color: var(--mwfe-cream-dim);
}

.mwfe-home .mwfe-anteprime-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(2.5rem, 7vw, 7rem);
	max-width: 62rem;
	margin: 0 auto;
	align-items: start;
}

.mwfe-home .mwfe-anteprime.is-single .mwfe-anteprime-grid {
	grid-template-columns: minmax(0, 25rem);
	justify-content: center;
}

/* The second arch sits lower: two arches read as a procession, not a row. */
.mwfe-home .mwfe-arch:nth-child(2) {
	margin-top: clamp(3rem, 12vh, 7rem);
}

.mwfe-home .mwfe-anteprime.is-single .mwfe-arch {
	margin-top: 0;
}

.mwfe-home .mwfe-arch-link {
	display: flex;
	flex-direction: column;
	align-items: center;
	color: inherit;
	text-decoration: none;
}

.mwfe-home .mwfe-arch-fig {
	width: min(100%, 25rem);
}

.mwfe-home .mwfe-arch-fig .mwfe-fig-frame {
	aspect-ratio: 4 / 5;
	transition: box-shadow .5s;
}

/* The offset outline travels a little further on hover; mirrored on arch two
   so the pair frames the space between them. */
.mwfe-home .mwfe-arch-fig::before {
	transition: transform .6s cubic-bezier(.2, .65, .3, 1), opacity .6s;
}

.mwfe-home .mwfe-arch-link:hover .mwfe-arch-fig::before,
.mwfe-home .mwfe-arch-link:focus-visible .mwfe-arch-fig::before {
	transform: translate(-1.35rem, 1.35rem);
	opacity: 1;
}

.mwfe-home .mwfe-arch:nth-child(2) .mwfe-arch-fig::before {
	transform: translate(.875rem, .875rem);
}

.mwfe-home .mwfe-arch:nth-child(2) .mwfe-arch-link:hover .mwfe-arch-fig::before,
.mwfe-home .mwfe-arch:nth-child(2) .mwfe-arch-link:focus-visible .mwfe-arch-fig::before {
	transform: translate(1.35rem, 1.35rem);
}

.mwfe-home .mwfe-arch-link:focus-visible {
	outline: none;
}

.mwfe-home .mwfe-arch-link:focus-visible .mwfe-fig-frame {
	box-shadow: 0 0 0 3px var(--mwfe-brass), 0 34px 70px -30px rgba(0, 0, 0, .75);
}

/* --- the date medallion, hung on the arch's lower edge ------------------- */

.mwfe-home .mwfe-arch-date {
	position: absolute;
	right: -1.1rem;
	bottom: -2.2rem;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 7rem;
	height: 7rem;
	border: 1px solid var(--mwfe-brass);
	border-radius: 50%;
	background: radial-gradient(circle at 30% 25%, var(--mwfe-wine) 0%, var(--mwfe-plum) 55%, var(--mwfe-bg-deep) 100%);
	box-shadow: 0 0 0 6px rgba(var(--mwfe-ink-rgb), .55), 0 18px 40px -16px rgba(0, 0, 0, .85);
	line-height: 1;
	text-align: center;
}

.mwfe-home .mwfe-arch:nth-child(2) .mwfe-arch-date {
	right: auto;
	left: -1.1rem;
}

.mwfe-home .mwfe-arch-day {
	font-family: var(--mwfe-serif);
	font-size: 2.6rem;
	font-weight: 500;
	color: var(--mwfe-gold-light);
}

.mwfe-home .mwfe-arch-month {
	margin-top: .3rem;
	font-family: var(--mwfe-sans);
	font-size: .6rem;
	font-weight: 700;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--mwfe-brass);
}

.mwfe-home .mwfe-arch-year {
	margin-top: .32rem;
	font-family: var(--mwfe-sans);
	font-size: .55rem;
	letter-spacing: .32em;
	color: var(--mwfe-cream-dim);
}

/* --- the words under the arch -------------------------------------------- */

.mwfe-home .mwfe-arch-body {
	width: min(100%, 25rem);
	margin-top: clamp(3rem, 6vh, 3.6rem);
	text-align: center;
}

.mwfe-home .mwfe-arch-when {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	/* a real gap: flex items drop the spaces around the " · " separator */
	gap: .55em;
	margin: 0 0 1rem;
	padding: .5em 1.15em;
	border: 1px solid var(--mwfe-line);
	border-radius: 999px;
	font-family: var(--mwfe-sans);
	font-size: .64rem;
	font-weight: 700;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--mwfe-brass);
}

.mwfe-home .mwfe-arch.is-soon .mwfe-arch-when,
.mwfe-home .mwfe-arch.is-today .mwfe-arch-when {
	border-color: var(--mwfe-brass);
	background: rgba(205, 173, 89, .12);
	color: var(--mwfe-gold-light);
}

.mwfe-home .mwfe-arch-title {
	margin: 0 0 .45rem;
	font-family: var(--mwfe-serif);
	font-size: clamp(1.75rem, 2.6vw, 2.3rem);
	font-weight: 500;
	line-height: 1.1;
	color: var(--mwfe-gold-light);
	text-wrap: balance;
}

.mwfe-home .mwfe-arch-sub {
	margin: 0 0 .95rem;
	font-family: var(--mwfe-serif);
	font-size: 1.14rem;
	font-style: italic;
	line-height: 1.42;
	color: var(--mwfe-cream);
	text-wrap: balance;
}

.mwfe-home .mwfe-arch-meta {
	margin: 0 0 1.35rem;
	padding: 0;
	list-style: none;
	font-size: .86rem;
	line-height: 1.6;
	color: var(--mwfe-cream-dim);
}

.mwfe-home .mwfe-arch-cta {
	display: inline-flex;
	align-items: center;
	padding-bottom: .35em;
	border-bottom: 1px solid var(--mwfe-brass);
	font-family: var(--mwfe-sans);
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--mwfe-gold-light);
	transition: color .3s, border-color .3s;
}

.mwfe-home .mwfe-arch-link:hover .mwfe-arch-cta,
.mwfe-home .mwfe-arch-link:focus-visible .mwfe-arch-cta {
	color: var(--mwfe-brass);
}

/* A past anteprima stays a week, visibly done, then leaves on its own. */
.mwfe-home .mwfe-arch.is-past .mwfe-fig-frame img {
	filter: grayscale(.55) brightness(.85);
}

.mwfe-home .mwfe-arch.is-past .mwfe-arch-date {
	border-color: var(--mwfe-line);
}

/* ---------------------------------------------------------- plan your visit */

.mwfe-home .mwfe-plan {
	padding: clamp(1rem, 4vh, 2.5rem) 0 clamp(4.5rem, 12vh, 8rem);
}

.mwfe-home .mwfe-plan-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1rem, 2vw, 1.6rem);
}

.mwfe-home .mwfe-plan-tile {
	--tile-pad: clamp(1.3rem, 2.4vw, 1.9rem);
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	grid-template-rows: auto 1fr;
	column-gap: 1.1rem;
	row-gap: .35rem;
	align-items: start;
	padding: var(--tile-pad);
	border: 1px solid var(--mwfe-line);
	border-radius: 22px;
	background: var(--mwfe-glass);
	color: inherit;
	text-decoration: none;
	transition: transform .45s cubic-bezier(.2, .65, .3, 1), border-color .35s, background .35s;
}

.mwfe-home .mwfe-plan-icon {
	grid-row: 1 / span 2;
	display: grid;
	place-items: center;
	width: 3.1rem;
	height: 3.1rem;
	border: 1px solid var(--mwfe-line);
	border-radius: 50%;
	color: var(--mwfe-brass);
	transition: border-color .35s, background .35s;
}

/* rem, not the svg's own 28px: inside .mwfe type scales with the viewport
   above 1920px and a px icon would shrink against it. */
.mwfe-home .mwfe-plan-icon svg {
	width: 1.75rem;
	height: 1.75rem;
}

.mwfe-home .mwfe-plan-title {
	padding-right: 1.8rem;
	font-family: var(--mwfe-serif);
	font-size: 1.4rem;
	font-weight: 500;
	line-height: 1.15;
	color: var(--mwfe-gold-light);
}

.mwfe-home .mwfe-plan-text {
	font-size: .9rem;
	line-height: 1.55;
	color: var(--mwfe-cream-dim);
}

.mwfe-home .mwfe-plan-go {
	position: absolute;
	top: var(--tile-pad);
	right: var(--tile-pad);
	color: var(--mwfe-brass);
	transition: transform .35s;
}

.mwfe-home .mwfe-plan-tile:hover,
.mwfe-home .mwfe-plan-tile:focus-visible {
	transform: translateY(-4px);
	border-color: var(--mwfe-brass);
	background: rgba(var(--mwfe-ink-rgb), .62);
	outline: none;
}

.mwfe-home .mwfe-plan-tile:hover .mwfe-plan-icon,
.mwfe-home .mwfe-plan-tile:focus-visible .mwfe-plan-icon {
	border-color: var(--mwfe-brass);
	background: rgba(205, 173, 89, .1);
}

.mwfe-home .mwfe-plan-tile:hover .mwfe-plan-go,
.mwfe-home .mwfe-plan-tile:focus-visible .mwfe-plan-go {
	transform: translateX(4px);
}

/* ------------------------------------------------------------ closing band */

/* The design system gives .mwfe-band clamp(4rem, 12vh, 8rem) of vertical
   padding, but the homepage template's own inline styles carry
   `.mwfe section { padding: 0 }` — specificity 0,1,1, which outranks
   `.mwfe-band` at 0,1,0 — so this band, a <section>, rendered with no padding
   at all (2026-09-23). Restated at 0,2,0; the value is the system's own, so
   it breathes exactly like the bands on the event pages. */
.mwfe-home .mwfe-home-band {
	padding: clamp(4rem, 12vh, 8rem) 0;
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 1000px) {
	.mwfe-home .mwfe-plan-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.mwfe-home .mwfe-anteprime-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 4.5rem;
	}

	.mwfe-home .mwfe-arch:nth-child(2) {
		margin-top: 0;
	}

	.mwfe-home .mwfe-arch-fig,
	.mwfe-home .mwfe-arch-body {
		width: min(100%, 22rem);
	}

	.mwfe-home .mwfe-arch-date {
		right: -.4rem;
		bottom: -1.8rem;
		width: 6rem;
		height: 6rem;
	}

	.mwfe-home .mwfe-arch:nth-child(2) .mwfe-arch-date {
		left: -.4rem;
	}

	.mwfe-home .mwfe-arch-day {
		font-size: 2.2rem;
	}
}

@media (max-width: 600px) {
	.mwfe-home .mwfe-plan-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	.mwfe-home .mwfe-arch-fig::before,
	.mwfe-home .mwfe-plan-tile,
	.mwfe-home .mwfe-plan-go {
		transition: none;
	}
}
