/**
 * MoonRock Mobile Navigation
 *
 * The measurements are the design's: a 34px bar, 22px burger rules, 23px
 * Cormorant items on a 20px rhythm, 19px buttons, and the 0.32s fade the
 * panel opens with.
 */

.mrmn-bar,
.mrmn-panel,
.mrmn-burger {
	box-sizing: border-box;
}

.mrmn-bar *,
.mrmn-panel * {
	box-sizing: border-box;
}

/* ---------- announcement ---------- */

.mrmn-bar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 60;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	padding: 0 44px 0 20px;
	background: var(--mrmn-bar-bg, #241A15);
	color: var(--mrmn-bar-ink, #E8E0D2);
	font-family: var(--mrmn-sans, 'Montserrat', Arial, sans-serif);
	font-size: 10px;
	font-weight: 400;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	animation: mrmnBarIn 0.4s ease both;
}

.mrmn-bar[hidden] {
	display: none;
}

.mrmn-bar__text {
	opacity: 0.8;
	text-align: center;
}

.mrmn-bar__link,
.mrmn-bar__link:visited {
	color: var(--mrmn-bar-accent, #C9A96A);
	border-bottom: 1px solid rgba(201, 169, 106, 0.45);
	padding-bottom: 2px;
	text-decoration: none;
	white-space: nowrap;
	transition: border-color .2s ease;
}

.mrmn-bar__link:hover {
	border-bottom-color: var(--mrmn-bar-accent, #C9A96A);
}

.mrmn-bar__close {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	margin: 0;
	color: rgba(232, 224, 210, 0.55);
	cursor: pointer;
	transition: color .2s ease;
}

.mrmn-bar__close:hover {
	color: var(--mrmn-bar-ink, #E8E0D2);
}

.mrmn-bar--static {
	position: static;
	animation: none;
}

body.mrmn-has-bar {
	padding-top: 34px;
}

body.mrmn-has-static-bar {
	padding-top: 0;
}

@media (max-width: 600px) {
	.mrmn-bar {
		height: auto;
		min-height: 34px;
		padding: 7px 40px 7px 16px;
		gap: 12px;
		font-size: 9px;
		letter-spacing: 0.18em;
	}

	body.mrmn-has-bar {
		padding-top: 0;
	}
}

/* ---------- burger ---------- */

.mrmn-mount {
	display: flex;
	justify-content: flex-end;
}

[data-mrmn-shell] {
	position: static;
	width: auto;
	max-width: none;
	margin: 0;
	padding: 0;
	background: none;
}

.mrmn-portal {
	position: static;
	width: auto;
	max-width: none;
	padding: 0;
	margin: 0;
}

/* Nothing here is a <button>: themes style bare buttons, and that is what
   put a border and a background on the menu rows. These are spans with a
   button role, reset hard so nothing can reach them. */
.mrmn-burger,
.mrmn-panel__close,
.mrmn-bar__close,
.mrmn-item__head {
	-webkit-appearance: none;
	appearance: none;
	box-shadow: none;
	text-shadow: none;
	border: 0;
	background: none;
	border-radius: 0;
	min-width: 0;
	min-height: 0;
	outline-offset: 3px;
	-webkit-tap-highlight-color: transparent;
}

.mrmn-burger {
	position: relative;
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 0;
	margin: 0;
	cursor: pointer;
	color: inherit;
	line-height: 1;
}

.mrmn-burger > span {
	display: block;
	width: 22px;
	height: 1px;
	background: var(--mrmn-burger-ink, #241A15);
	transition: transform .3s ease, opacity .2s ease, width .3s ease;
}

/* Open, the rules are centred absolutely and crossed, so the X meets at
   its middle no matter what length, thickness or gap is set. */
body.mrmn-open .mrmn-burger > span {
	position: absolute;
	top: 50%;
	left: 50%;
	margin: 0;
}

body.mrmn-open .mrmn-burger > span:nth-child(1) {
	transform: translate(-50%, -50%) rotate(45deg);
}

body.mrmn-open .mrmn-burger > span:nth-child(2) {
	opacity: 0;
	transform: translate(-50%, -50%) scaleX(0);
}

body.mrmn-open .mrmn-burger > span:nth-child(3) {
	transform: translate(-50%, -50%) rotate(-45deg);
}

@media (max-width: 1024px) {
	.mrmn-burger {
		display: flex;
	}
}

/* ---------- drawn marks ---------- */

.mrmn-x {
	position: relative;
	display: block;
	width: 18px;
	height: 18px;
}

.mrmn-x > span {
	position: absolute;
	top: 50%;
	left: 50%;
	display: block;
	width: 100%;
	height: 1px;
	background: currentColor;
}

.mrmn-x > span:nth-child(1) {
	transform: translate(-50%, -50%) rotate(45deg);
}

.mrmn-x > span:nth-child(2) {
	transform: translate(-50%, -50%) rotate(-45deg);
}

.mrmn-x--small {
	width: 11px;
	height: 11px;
}

.mrmn-plus {
	position: relative;
	display: block;
	width: 15px;
	height: 15px;
	flex: 0 0 15px;
}

.mrmn-plus > span {
	position: absolute;
	top: 50%;
	left: 0;
	display: block;
	width: 100%;
	height: 1px;
	background: currentColor;
	transition: transform .3s ease, opacity .25s ease;
}

.mrmn-plus > span:nth-child(2) {
	transform: rotate(90deg);
}

.mrmn-item__head[aria-expanded="true"] .mrmn-plus > span:nth-child(2) {
	transform: rotate(0deg);
	opacity: 0;
}

.mrmn-arrow {
	position: relative;
	display: block;
	width: 15px;
	height: 15px;
	flex: 0 0 15px;
}

.mrmn-arrow::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	height: 1px;
	background: currentColor;
	transform: translateY(-50%);
	transition: transform .25s ease;
}

.mrmn-arrow::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 0;
	width: 6px;
	height: 6px;
	border-top: 1px solid currentColor;
	border-right: 1px solid currentColor;
	transform: translateY(-50%) rotate(45deg);
	transition: transform .25s ease;
}

.mrmn-item__head:hover .mrmn-arrow::before {
	transform: translateY(-50%) scaleX(1.25);
	transform-origin: left center;
}

/* ---------- panel ---------- */

.mrmn-panel {
	position: fixed;
	inset: 0;
	z-index: 90;
	background: var(--mrmn-bg, #241A15);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	animation: mrmnFade 0.32s ease both;
	font-family: var(--mrmn-sans, 'Montserrat', Arial, sans-serif);
}

.mrmn-panel[hidden] {
	display: none;
}

.mrmn-panel.is-closing {
	animation: mrmnFadeOut 0.24s ease both;
}

.mrmn-panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 22px clamp(20px, 5vw, 32px);
	border-bottom: 1px solid rgba(232, 224, 210, 0.14);
}

.mrmn-panel__mark {
	height: 34px;
	width: auto;
	display: block;
}

.mrmn-panel__name {
	font-family: var(--mrmn-serif, Georgia, serif);
	font-size: 20px;
	letter-spacing: 0.08em;
	color: var(--mrmn-accent, #C9A96A);
}

.mrmn-panel__close {
	display: flex;
	flex: 0 0 44px;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	margin: 0;
	color: #E8E0D2;
	cursor: pointer;
	transition: color .2s ease, transform .3s ease;
}

.mrmn-panel__close:hover {
	transform: rotate(90deg);
}

.mrmn-panel__close:hover {
	color: var(--mrmn-accent, #C9A96A);
}

.mrmn-panel__body {
	display: flex;
	flex-direction: column;
	padding: 16px clamp(20px, 5vw, 32px) 40px;
}

/* ---------- items ---------- */

.mrmn-item {
	border-bottom: 1px solid var(--mrmn-rule, rgba(232, 224, 210, 0.1));
}

.mrmn-item--stagger {
	animation: mrmnRise 0.44s cubic-bezier(.22, .61, .36, 1) both;
	animation-delay: calc(0.05s * var(--mrmn-i, 0) + 0.06s);
}

.mrmn-item__head,
a.mrmn-item__head,
a.mrmn-item__head:visited {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 0;
	margin: 0;
	border: 0;
	background: none;
	color: var(--mrmn-ink, #F6F2EA);
	text-align: left;
	text-decoration: none;
	line-height: 1.2;
	cursor: pointer;
}

.mrmn-item__label {
	font-family: var(--mrmn-serif, Georgia, serif);
	font-size: var(--mrmn-item, 23px);
	font-weight: 300;
	letter-spacing: 0.02em;
	line-height: 1.2;
	transition: color .2s ease;
}

.mrmn-item__head:hover .mrmn-item__label {
	color: var(--mrmn-accent, #C9A96A);
}

.mrmn-item__sign {
	flex: 0 0 auto;
	align-self: center;
	color: var(--mrmn-accent, #C9A96A);
}

.mrmn-item__label {
	flex: 1 1 auto;
	min-width: 0;
}

/* ---------- sub items ---------- */

.mrmn-sub {
	display: grid;
	grid-template-rows: 0fr;
	overflow: hidden;
	opacity: 0;
	transition: grid-template-rows .34s cubic-bezier(.22, .61, .36, 1), opacity .26s ease;
}

.mrmn-sub.is-open {
	grid-template-rows: 1fr;
	opacity: 1;
}

.mrmn-sub__inner {
	min-height: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 0 0 20px 2px;
}

.mrmn-sub__link,
.mrmn-sub__link:visited {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 12px 0;
	font-family: var(--mrmn-sans, 'Montserrat', Arial, sans-serif);
	font-size: 13px;
	letter-spacing: 0.05em;
	color: var(--mrmn-soft, rgba(232, 224, 210, 0.72));
	text-decoration: none;
	transition: color .2s ease, padding-left .2s ease;
}

.mrmn-sub__link:hover {
	color: var(--mrmn-ink, #F6F2EA);
	padding-left: 6px;
}

/* ---------- calls to action ---------- */

.mrmn-cta,
.mrmn-cta:visited {
	display: block;
	text-align: center;
	padding: 19px;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

.mrmn-cta--solid {
	margin-top: 32px;
	background: var(--mrmn-accent, #C9A96A);
	color: #241A15;
}

.mrmn-cta--solid:hover {
	background: #D8BC84;
	color: #241A15;
}

.mrmn-cta--ghost {
	margin-top: 12px;
	border: 1px solid rgba(232, 224, 210, 0.3);
	color: #E8E0D2;
	font-weight: 400;
}

.mrmn-cta--ghost:hover {
	border-color: var(--mrmn-accent, #C9A96A);
	color: var(--mrmn-accent, #C9A96A);
}

body.mrmn-open {
	overflow: hidden;
}

/* ---------- motion ---------- */

@keyframes mrmnFade {
	from { opacity: 0; }
	to   { opacity: 1; }
}

@keyframes mrmnFadeOut {
	from { opacity: 1; }
	to   { opacity: 0; }
}

@keyframes mrmnBarIn {
	from { opacity: 0; transform: translateY(-100%); }
	to   { opacity: 1; transform: translateY(0); }
}

@keyframes mrmnRise {
	from { opacity: 0; transform: translateY(14px); }
	to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
	.mrmn-panel,
	.mrmn-panel.is-closing,
	.mrmn-item--stagger,
	.mrmn-bar {
		animation: none;
	}

	.mrmn-sub {
		transition: none;
	}

	.mrmn-burger span,
	.mrmn-item__sign,
	.mrmn-sub__link {
		transition: none;
	}
}
