/**
 * Site chrome: header (Figma "MAISON LUNE/Nav bar"), phone menu ("Mobile navigation") and the
 * dark footer ("MAISON LUNE/Footer") with the newsletter.
 */

/* ------------------------------------------------------------------ */
/* Header: paper, wordmark left, links right, hairline under (98 high) */
/* ------------------------------------------------------------------ */

.ml-main:focus {
	outline: 0;
}

.ml-header {
	position: relative;
	z-index: 50;
	display: flow-root;
	background: var(--ml-c-paper);
	color: var(--ml-c-ink);
	font-family: var(--ml-sans);
}

.ml-header ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* 20 above, the 45 row, 12 to the hairline, 20 under it. */
.ml-header__bar {
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 20px 0 12px;
	border-bottom: 1px solid var(--ml-c-line);
}

.ml-logo {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--ml-c-ink);
	font-family: var(--ml-serif);
	font-size: 32px;
	line-height: 35px;
	font-weight: 400;
	letter-spacing: 0;
	text-decoration: none;
	white-space: nowrap;
}

.ml-logo:hover {
	color: var(--ml-c-wine);
}

.ml-logo--image a {
	display: flex;
	align-items: center;
}

.ml-logo--image img {
	display: block;
	width: auto;
	max-height: 40px;
}

.ml-nav__list {
	display: flex;
	align-items: center;
	gap: 16px;
}

/* Karla 14/21 underlined, 45 high. */
.ml-nav__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 80px;
	min-height: 45px;
	padding: 12px 16px;
	color: var(--ml-c-ink);
	font-size: 14px;
	line-height: 21px;
	font-weight: 400;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	white-space: nowrap;
}

.ml-nav__link:hover,
.ml-nav__link[aria-current="page"] {
	color: var(--ml-c-wine);
	text-decoration-thickness: 2px;
}

.ml-header__toggle {
	display: none;
}

@media (max-width: 767px) {
	.ml-logo {
		min-height: 40px;
	}

	.ml-js .ml-nav {
		display: none;
	}

	/* Burger: a 32 icon in a 40 box (44 touch target). */
	.ml-js .ml-header__toggle {
		position: relative;
		display: inline-flex;
		flex: none;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		margin: -2px -2px -2px 0;
		padding: 0;
		border: 0;
		border-radius: var(--ml-radius-control);
		background: transparent;
		color: var(--ml-c-ink);
		cursor: pointer;
	}

	.ml-js .ml-header__toggle:hover {
		color: var(--ml-c-wine);
	}

	.ml-header__icon--close,
	.ml-header__toggle-close,
	.ml-header__toggle[aria-expanded="true"] .ml-header__icon--open,
	.ml-header__toggle[aria-expanded="true"] .ml-header__toggle-open {
		display: none;
	}

	.ml-header__toggle[aria-expanded="true"] .ml-header__icon--close {
		display: block;
	}

	.ml-header__toggle[aria-expanded="true"] .ml-header__toggle-close {
		display: inline;
	}

	/* Without JavaScript the menu cannot open: the links wrap under the wordmark instead. */
	html:not(.ml-js) .ml-header__bar {
		flex-wrap: wrap;
		row-gap: 0;
	}

	html:not(.ml-js) .ml-nav__list {
		flex-wrap: wrap;
		gap: 0 20px;
	}

	html:not(.ml-js) .ml-nav__link {
		min-width: 0;
		padding: 12px 0;
		margin: 0;
	}
}

/* ------------------------------------------------------------------ */
/* Phone menu: outline buttons, then the footer (page content hidden)  */
/* ------------------------------------------------------------------ */

.ml-menu {
	background: var(--ml-c-paper);
}

.ml-menu[hidden] {
	display: none;
}

/* 32 above the first button and under the last. */
.ml-menu__nav {
	padding: 32px 0;
}

.ml-menu__list {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
}

.ml-header .ml-menu__link {
	border-color: var(--ml-c-wine);
	color: var(--ml-c-wine);
}

.ml-header .ml-menu__link[aria-current="page"] {
	background: var(--ml-c-wine);
	color: var(--ml-c-paper);
}

@media (max-width: 767px) {
	html.ml-menu-open .ml-main {
		display: none;
	}
}

@media (min-width: 768px) {
	.ml-menu {
		display: none;
	}
}

/* ------------------------------------------------------------------ */
/* Footer: dark, paper text                                            */
/* ------------------------------------------------------------------ */

.ml-footer {
	padding: 80px 0;
	background: var(--ml-c-dark);
	color: var(--ml-c-paper);
	font-family: var(--ml-sans);
	font-size: 16px;
	line-height: 24px;
}

.ml-footer h2,
.ml-footer p,
.ml-footer ul,
.ml-footer address {
	margin: 0;
}

.ml-footer address {
	font-style: normal;
}

.ml-footer ul {
	padding: 0;
	list-style: none;
}

.ml-footer a {
	color: inherit;
}

.ml-footer :focus-visible {
	outline-color: var(--ml-c-paper);
}

/* Desktop: Menu and booking 251 · Hours 237 · Visit 228 · Newsletter 410, 24 apart. */
.ml-footer__cols {
	display: grid;
	grid-template-columns: minmax(0, 251fr) minmax(0, 237fr) minmax(0, 228fr) minmax(0, 410fr);
	align-items: start;
	gap: 24px;
}

.ml-footer__col {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	min-width: 0;
}

.ml-footer__col--news {
	order: 1;
	align-items: stretch;
}

.ml-footer .ml-footer__heading {
	color: var(--ml-c-paper);
	font-family: var(--ml-sans);
	font-size: var(--ml-fs-label);
	line-height: var(--ml-lh-label);
	font-weight: 400;
	letter-spacing: 0;
	text-transform: uppercase;
}

.ml-footer__text {
	overflow-wrap: break-word;
}

/* Links: Karla 15/23 underlined, 47 high. */
.ml-footer__links a,
.ml-footer .ml-footer__link {
	display: inline-flex;
	align-items: center;
	min-height: 47px;
	padding: 12px 0;
	font-size: 15px;
	line-height: 23px;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	overflow-wrap: anywhere;
}

.ml-footer__links a:hover,
.ml-footer .ml-footer__link:hover,
.ml-footer__links a[aria-current="page"] {
	text-decoration-thickness: 2px;
}

/* Newsletter (Figma "MAISON LUNE/Newsletter"). */
.ml-news__form[hidden],
.ml-news__sent[hidden] {
	display: none;
}

.ml-news__row {
	display: flex;
	gap: 12px;
}

.ml-news__input {
	flex: 1 1 auto;
	min-width: 0;
	height: 48px;
	margin: 0;
	padding: 0 16px;
	border: 1px solid var(--ml-c-paper);
	border-radius: var(--ml-radius-control);
	background: transparent;
	color: var(--ml-c-paper);
	font-family: var(--ml-sans);
	font-size: 15px;
	line-height: 23px;
	box-shadow: none;
}

.ml-news__input::placeholder {
	color: var(--ml-c-paper);
	opacity: 1;
}

.ml-news__input:focus {
	outline: 2px solid var(--ml-c-paper);
	outline-offset: 2px;
}

.ml-news__input[aria-invalid="true"] {
	border-width: 2px;
	padding: 0 15px;
}

.ml-footer .ml-news__submit {
	flex: none;
	min-width: 96px;
	min-height: 48px;
	border-color: var(--ml-c-paper);
	color: var(--ml-c-paper);
}

.ml-footer .ml-news__submit:hover {
	background: rgba(242, 239, 231, 0.12);
}

.ml-footer .ml-news__note {
	margin-top: 12px;
	font-size: var(--ml-fs-caption);
	line-height: var(--ml-lh-caption);
}

.ml-footer .ml-news__error {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-top: 12px;
	font-size: 14px;
	line-height: 21px;
	font-weight: 500;
}

.ml-news__error-icon {
	flex: none;
	margin-top: 2px;
}

.ml-news__sent:focus {
	outline: 0;
}

.ml-footer .ml-news__message {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.ml-news__check {
	flex: none;
}

/* Legal line and contact, under a paper hairline 40 below the columns. */
.ml-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px 24px;
	margin-top: 40px;
	padding-top: 40px;
	border-top: 1px solid var(--ml-c-paper);
}

.ml-footer .ml-footer__legal {
	font-size: 11px;
	line-height: 17px;
}

.ml-footer__dot {
	margin: 0 8px;
}

.ml-footer .ml-footer__contact {
	font-size: var(--ml-fs-caption);
	line-height: var(--ml-lh-caption);
}

.ml-footer__contact a {
	text-decoration: none;
}

.ml-footer__contact a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

@media (max-width: 1024px) {
	.ml-footer {
		padding: 56px 0;
	}

	/* Newsletter across the top, then three equal columns. */
	.ml-footer__cols {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.ml-footer__col--news {
		order: 0;
		grid-column: 1 / -1;
	}
}

@media (max-width: 767px) {
	.ml-footer {
		padding: 32px 0;
	}

	.ml-footer__cols {
		grid-template-columns: minmax(0, 1fr);
	}

	.ml-footer__bottom {
		flex-direction: column;
	}
}
