/* Mauboussin menu. Everything is scoped under #mbm so the theme's own
   link, button and paragraph rules do not leak in. Sizes are in px on
   purpose: the site rescales rem through the html font size. */

@font-face {
	font-family: "Century Gothic";
	src: local("Century Gothic"), url("fonts/CenturyGothic.ttf") format("truetype");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}

html.mbm-lock,
html.mbm-lock body {
	overflow: hidden !important;
}

#mbm {
	--mbm-ink: #000;
	--mbm-black: #000;
	--mbm-line: rgba(0, 0, 0, 0.2);
	--mbm-display: "Baskervville", Georgia, "Times New Roman", serif;
	--mbm-body: "Century Gothic", "Futura", Helvetica, Arial, sans-serif;
	--mbm-ease: cubic-bezier(0.2, 0, 0, 1);
	--mbm-ease-std: cubic-bezier(0.4, 0, 0.2, 1);
	position: fixed;
	inset: 0;
	z-index: 100000;
	margin: 0;
	font-family: var(--mbm-body);
	font-size: 14px;
	font-weight: 400;
	line-height: 20px;
	letter-spacing: normal;
	text-align: left;
	text-transform: none;
	color: var(--mbm-ink);
	-webkit-font-smoothing: antialiased;
}
#mbm[hidden] { display: none !important; }
#mbm *, #mbm *::before, #mbm *::after { box-sizing: border-box; }

#mbm a,
#mbm button {
	margin: 0;
	font-family: inherit;
	font-weight: 400;
	letter-spacing: normal;
	text-decoration: none;
	text-transform: none;
	color: inherit;
	-webkit-tap-highlight-color: transparent;
	transition: opacity 160ms var(--mbm-ease-std);
}
#mbm button {
	-webkit-appearance: none;
	appearance: none;
	width: auto;
	min-width: 0;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	font-size: inherit;
	line-height: inherit;
	text-align: left;
	cursor: pointer;
}
#mbm a:hover,
#mbm button:hover { opacity: 0.6; }
#mbm a:focus-visible,
#mbm button:focus-visible,
#mbm input:focus-visible { outline: 1px solid var(--mbm-black); outline-offset: 2px; }
#mbm img { display: block; max-width: none; margin: 0; border: 0; border-radius: 0; }
#mbm .mbm-ico { display: block; flex: none; }
#mbm .mbm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Chevrons and arrows nudge forward on hover: the row leads somewhere. */
#mbm .mbm-chev { display: flex; flex: none; transition: transform 280ms var(--mbm-ease); }
#mbm a:hover .mbm-chev,
#mbm button:hover .mbm-chev { transform: translateX(4px); }

/* ---- Scrim and panel ---- */
#mbm .mbm-scrim {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.28);
	opacity: 0;
	cursor: pointer;
	transition: opacity 400ms var(--mbm-ease-std);
}
#mbm .mbm-scrim:hover { opacity: 0; }
#mbm.is-open .mbm-scrim,
#mbm.is-open .mbm-scrim:hover { opacity: 1; }

#mbm .mbm-drawer {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	display: flex;
	flex-direction: column;
	width: 100%;
	/* Light glass: the page stays visible through the panel, blurred. Kept
	   see-through on purpose, so every text in the panel is pure black. */
	background: rgba(255, 255, 255, 0.46);
	-webkit-backdrop-filter: blur(26px) saturate(1.35);
	backdrop-filter: blur(26px) saturate(1.35);
	box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.5);
	transform: translateX(-100%);
	transition: transform 520ms var(--mbm-ease), width 520ms var(--mbm-ease);
}
#mbm.is-open .mbm-drawer { transform: none; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	#mbm .mbm-drawer { background: rgba(255, 255, 255, 0.97); }
}

/* ---- Top bar ---- */
#mbm .mbm-top {
	flex: none;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	height: 64px;
	padding: 0 12px 0 16px;
}
#mbm .mbm-top-l { display: flex; justify-content: flex-start; }
#mbm .mbm-top-r { display: flex; justify-content: flex-end; }
#mbm .mbm-logo { display: block; }
#mbm .mbm-logo img { width: auto; height: 34px; }
#mbm .mbm-iconbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	color: var(--mbm-black);
}
#mbm .mbm-back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 44px;
	padding: 0 12px 0 0;
	font-size: 12px;
	letter-spacing: 0.7px;
	text-transform: uppercase;
	color: var(--mbm-black);
	opacity: 0;
	visibility: hidden;
	transform: translateX(8px);
	transition: opacity 240ms var(--mbm-ease-std), transform 320ms var(--mbm-ease), visibility 0s linear 320ms;
}
#mbm .mbm-drawer.is-sub .mbm-back { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
#mbm .mbm-drawer.is-sub .mbm-back:hover { opacity: 0.6; }

/* ---- Levels: the first steps back, the universe slides over it ---- */
#mbm .mbm-panels { position: relative; flex: 1; min-height: 0; overflow: hidden; }
#mbm .mbm-panel {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: rgba(0, 0, 0, 0.25) transparent;
	visibility: hidden;
	opacity: 0;
	/* Leaving: a quick fade with a short step aside. The panel is glass, so
	   two levels must never be readable on top of each other. */
	transition: opacity 180ms var(--mbm-ease-std), transform 180ms var(--mbm-ease-std), visibility 0s linear 180ms;
}
/* A level waits a step to the right; one already passed, a step to the left. */
#mbm .mbm-panel { transform: translateX(24px); }
#mbm .mbm-panel.is-past { transform: translateX(-24px); }
#mbm .mbm-root { padding: 8px 28px 12px; }
#mbm .mbm-sub { padding: 4px 28px 24px; }
/* Arriving: starts once the other level has gone. */
#mbm .mbm-panel.is-on {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity 360ms var(--mbm-ease-std) 160ms, transform 460ms var(--mbm-ease) 160ms, visibility 0s linear 0s;
}

/* Lines of the arriving level rise in one after the other: on opening and
   going down a level, not on the way back (.is-back), which stays quiet. */
@keyframes mbm-rise {
	from { opacity: 0; transform: translateY(16px); }
	to { opacity: 1; transform: none; }
}
#mbm.is-open:not(.is-back) .mbm-panel.is-on .mbm-rise {
	animation: mbm-rise 620ms var(--mbm-ease) backwards;
	animation-delay: calc(180ms + var(--i, 0) * 45ms);
}

/* ---- Level 1 ---- */
#mbm .mbm-search { position: relative; flex: none; margin: 0 0 12px; padding: 0; }
#mbm .mbm-search input[type="search"] {
	-webkit-appearance: none;
	appearance: none;
	display: block;
	width: 100%;
	height: 44px;
	margin: 0;
	padding: 10px 40px 10px 0;
	border: 0;
	border-bottom: 1px solid var(--mbm-line);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	font: 400 14px/20px var(--mbm-body);
	letter-spacing: normal;
	color: var(--mbm-ink);
	outline: none;
	transition: border-color 160ms var(--mbm-ease-std);
}
#mbm .mbm-search input[type="search"]:focus { border-bottom-color: var(--mbm-black); }
#mbm .mbm-search input[type="search"]::placeholder { color: var(--mbm-ink); opacity: 1; }
#mbm .mbm-search input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
#mbm .mbm-search button {
	position: absolute;
	top: 0;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	width: 40px;
	height: 44px;
	color: var(--mbm-black);
}

#mbm .mbm-universe {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	height: 80px;
	border-bottom: 1px solid var(--mbm-line);
	font-family: var(--mbm-display);
	font-size: 34px;
	line-height: 1;
	letter-spacing: 0.2px;
	color: var(--mbm-black);
}
#mbm .mbm-spacer { flex: 1; min-height: 24px; }

#mbm .mbm-offers {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	height: 68px;
	margin: 0 -28px;
	padding: 0 28px;
	background: rgba(255, 255, 255, 0.42);
	font-family: var(--mbm-display);
	font-style: italic;
	font-size: 21px;
	line-height: 1.2;
	color: var(--mbm-black);
}

#mbm .mbm-secondary {
	flex: none;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 16px;
	padding-top: 8px;
}
#mbm .mbm-secondary a {
	display: flex;
	align-items: center;
	min-height: 48px;
	font-size: 12px;
	line-height: 17px;
	letter-spacing: 0.7px;
	text-transform: uppercase;
	color: var(--mbm-ink);
}

/* ---- Level 2 ---- */
#mbm .mbm-lists { flex: none; display: flex; flex-direction: column; }
#mbm .mbm-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
}
#mbm .mbm-title {
	margin: 0;
	font-family: var(--mbm-display);
	font-size: 40px;
	font-weight: 400;
	line-height: 1.05;
	letter-spacing: 0.3px;
	color: var(--mbm-black);
}
#mbm .mbm-cta,
#mbm .mbm-card-cta {
	display: inline-block;
	flex: none;
	padding: 0 0 4px;
	border-bottom: 0.7px solid currentColor;
	font-size: 14px;
	line-height: 20px;
	letter-spacing: 0.7px;
	text-transform: uppercase;
	color: var(--mbm-black);
}
#mbm .mbm-eyebrow {
	margin: 24px 0 4px;
	font-size: 12px;
	line-height: 17px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--mbm-ink);
}

#mbm .mbm-head-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
#mbm .mbm-head .mbm-eyebrow { margin: 0; }

/* The row that opens the collections level. */
#mbm .mbm-drill {
	flex: none;
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	height: 68px;
	margin-top: 24px;
	border-top: 1px solid var(--mbm-line);
	border-bottom: 1px solid var(--mbm-line);
	font-family: var(--mbm-display);
	font-size: 26px;
	line-height: 1;
	letter-spacing: 0.2px;
	color: var(--mbm-black);
}
#mbm .mbm-drill-label { flex: 1; }
#mbm .mbm-drill-n { font-family: var(--mbm-body); font-size: 12px; line-height: 17px; letter-spacing: 0.7px; }
#mbm .mbm-gallery .mbm-tiles { margin-top: 24px; }

/* Categories and collections: a grid of square picture tiles, name underneath. */
#mbm .mbm-tiles {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px 12px;
	margin-top: 12px;
}
#mbm .mbm-tiles a { display: flex; flex-direction: column; gap: 10px; color: var(--mbm-black); }
#mbm .mbm-tiles a:hover { opacity: 1; }
#mbm .mbm-cat-img {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	/* No tile ground: packshots arrive with their background cut out and sit
	   straight on the glass. */
}
#mbm .mbm-cat-img img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 600ms var(--mbm-ease);
}
#mbm .mbm-tiles a:hover img { transform: scale(1.06); }
#mbm .mbm-cat-label {
	display: block;
	min-height: 30px;
	font-size: 11px;
	line-height: 15px;
	letter-spacing: 0.7px;
	text-align: center;
	text-transform: uppercase;
}

#mbm .mbm-coll {
	display: flex;
	align-items: center;
	min-height: 44px;
	font-family: var(--mbm-display);
	font-style: italic;
	font-size: 21px;
	line-height: 1.2;
	color: var(--mbm-black);
}

#mbm .mbm-cards { flex: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 24px; }
#mbm .mbm-card { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; background: #e8e8e8; }
#mbm .mbm-card:hover { opacity: 1; }
#mbm .mbm-card img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 600ms var(--mbm-ease);
}
#mbm .mbm-card:hover img { transform: scale(1.04); }
#mbm .mbm-card::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.05) 52%, rgba(0, 0, 0, 0) 78%);
}
#mbm .mbm-card-body {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	padding: 28px;
	text-align: center;
	color: #fff;
}
#mbm .mbm-card-title {
	max-width: 14ch;
	margin-bottom: 18px;
	font-family: var(--mbm-display);
	font-size: 27px;
	line-height: 1.12;
	letter-spacing: 0.3px;
	text-wrap: balance;
}
#mbm .mbm-card-cta { color: #fff; }

#mbm .mbm-iconic {
	flex: none;
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 24px;
	padding-right: 16px;
	background: rgba(255, 255, 255, 0.42);
	color: var(--mbm-black);
}
#mbm .mbm-iconic img { flex: none; width: 96px; height: 96px; object-fit: cover; }
#mbm .mbm-iconic-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
#mbm .mbm-iconic .mbm-eyebrow { margin: 0; }
#mbm .mbm-iconic-name { font-family: var(--mbm-display); font-size: 18px; line-height: 1.2; }

/* ---- Utilities, always in reach of the thumb ---- */
#mbm .mbm-util {
	flex: none;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	padding-bottom: env(safe-area-inset-bottom, 0px);
	border-top: 1px solid var(--mbm-line);
}
#mbm .mbm-util a {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 72px;
	font-size: 11px;
	line-height: 14px;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	color: var(--mbm-black);
}

/* Phones zoom the page when a focused field is under 16px. */
@media (max-width: 767px) {
	#mbm .mbm-search input[type="search"] { font-size: 16px; }
}

/* ---- Tablet and up: a side panel over the dimmed page ---- */
@media (min-width: 768px) {
	#mbm .mbm-drawer { width: 480px; }
	#mbm .mbm-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 10px; }
	#mbm .mbm-gallery .mbm-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 12px; }
}

/* ---- Desktop: one level down, the panel widens and the two collection
   cards stand beside the lists instead of under them ---- */
@media (min-width: 1100px) {
	#mbm .mbm-drawer.is-sub { width: 920px; }
	#mbm .mbm-root { right: auto; width: 480px; }
	#mbm .mbm-sub {
		/* Fixed width: the content does not reflow while the panel widens or narrows. */
		right: auto;
		width: 920px;
		display: grid;
		grid-template-columns: minmax(0, 1fr) 412px;
		grid-template-rows: auto 1fr;
		column-gap: 28px;
	}
	#mbm .mbm-lists { grid-column: 1; grid-row: 1; }
	#mbm .mbm-iconic { grid-column: 1; grid-row: 2; align-self: end; }
	#mbm .mbm-cards {
		grid-column: 2;
		grid-row: 1 / span 2;
		grid-template-rows: repeat(2, minmax(0, 1fr));
		margin-top: 0;
	}
	#mbm .mbm-card { aspect-ratio: auto; min-height: 200px; }
	/* The collections level uses the whole widened panel as one gallery. */
	#mbm .mbm-sub.mbm-gallery { display: flex; }
	#mbm .mbm-gallery .mbm-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px 14px; }
}

@media (prefers-reduced-motion: reduce) {
	#mbm, #mbm * { animation: none !important; transition-duration: 0s !important; transition-delay: 0s !important; }
}
