/* Global front-end styles not expressible in theme.json. */

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Sections sit flush against each other. */
.wp-site-blocks > *,
.wp-site-blocks > * + *,
.rm-main > .wp-block-post-content,
.wp-block-post-content > .alignfull,
.wp-block-post-content > .alignfull + * {
	margin-block-start: 0;
	margin-block-end: 0;
}
.rm-main { margin: 0; }

[id] { scroll-margin-top: 16px; }

/* Header */
.rm-header .wp-block-navigation a:hover { color: var(--wp--preset--color--mint); }
.rm-header .wp-block-navigation__responsive-container-open,
.rm-header .wp-block-navigation__responsive-container-close { color: var(--wp--preset--color--cream); }
.rm-header .wp-block-navigation__responsive-container.is-menu-open {
	padding: 24px;
	font-size: 1.75rem;
}

/* Hero: logo above text on small screens. */
@media (max-width: 781px) {
	.rm-hero .rm-hero__logo { order: -1; }
	.rm-hero .rm-hero__text { text-align: center; }
	.rm-hero .rm-hero__text > .wp-block-group,
	.rm-hero .rm-hero__text > .wp-block-buttons { justify-content: center; }
}

/* Address bar link */
.rm-address a {
	font-family: var(--wp--preset--font-family--ui);
	font-weight: 700;
	font-size: 1.0625rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
}

/* Video framed like a card. */
.wp-block-video.rm-video-card {
	margin: 0;
	background: var(--wp--preset--color--black);
	border: 3px solid var(--wp--preset--color--ink);
	border-radius: 8px;
	box-shadow: 4px 4px 0 var(--wp--preset--color--ink);
	overflow: hidden;
	display: flex;
	align-items: center;
	min-height: 320px;
}
.wp-block-video.rm-video-card video { width: 100%; max-height: 520px; aspect-ratio: 1 / 1; object-fit: contain; }

/* Two-column food list rows. */
.rm-rows > * {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 0;
	margin: 0 !important;
	border-bottom: 2px dotted var(--wp--preset--color--ink);
}
.rm-rows > *:last-child { border-bottom: 0; }

/* Narrow centered text. */
.rm-narrow { max-width: 640px; margin-inline: auto !important; }

/* Address bar with a map-pin icon. */
.rm-address__place::before {
	content: "";
	display: inline-block;
	width: 28px;
	height: 28px;
	margin-right: 12px;
	vertical-align: -4px;
	background-color: var(--wp--preset--color--mint);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s7-6.2 7-12a7 7 0 0 0-14 0c0 5.8 7 12 7 12z'/%3E%3Ccircle cx='12' cy='10' r='2.6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s7-6.2 7-12a7 7 0 0 0-14 0c0 5.8 7 12 7 12z'/%3E%3Ccircle cx='12' cy='10' r='2.6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.rm-header .wp-block-navigation a { color: var(--wp--preset--color--cream); }

/* Footer title links to the front page. */
.rm-footer h2 a { text-decoration: none; color: inherit; }
.rm-footer h2 a:hover { color: var(--wp--preset--color--mint); }

/* Lightbox (enlarged gallery image): mint scrim. */
.wp-lightbox-overlay .scrim { background-color: var(--wp--preset--color--mint) !important; }
.wp-lightbox-overlay .close-button { color: var(--wp--preset--color--ink); }

/* Header on small screens: menu stays visible and is centered. */
@media (max-width: 600px) {
	.rm-header > .wp-block-group { justify-content: center; }
	.rm-header > .wp-block-group > .wp-block-group { gap: 10px 14px; justify-content: center; width: 100%; }
	.rm-header .wp-block-navigation { flex-basis: 100%; justify-content: center; font-size: 1rem; letter-spacing: 0.05em; }
	.rm-header .wp-block-navigation .wp-block-navigation__container { gap: 14px; justify-content: center; }
}

/* Phones: paragraphs never smaller than 16px. */
@media (max-width: 781px) {
	p.has-small-font-size,
	p.is-style-pill,
	.has-small-font-size p { font-size: max(1rem, 16px) !important; }
}
