/**
 * Hearsay Arlington Menu — front-end styles.
 * Colors come from the settings screen via CSS variables.
 */

/*
 * Defaults live on :root so the colors chosen on the settings screen, which
 * are printed after this file, can override them. Declaring them on .hsa-menu
 * instead would out-rank the settings and lock the menu to these values.
 */
:root {
	--hsa-accent: #8c6a31;
	--hsa-rule: #c2ad86;
	--hsa-heading-font: inherit;
}

.hsa-menu {
	max-width: 100%;
	margin: 0 auto;
	text-align: left;
}

.hsa-menu *,
.hsa-menu *::before,
.hsa-menu *::after {
	box-sizing: border-box;
}

/* Jump links */

.hsa-menu-nav {
	margin: 0 0 2.5em;
	padding: 1em 0;
	border-top: 1px solid var(--hsa-rule, #c2ad86);
	border-bottom: 1px solid var(--hsa-rule, #c2ad86);
}

.hsa-menu-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.35em 1.4em;
	justify-content: center;
}

.hsa-menu-nav li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.hsa-menu-nav a {
	text-decoration: none;
	font-size: 0.82em;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--hsa-accent, #8c6a31);
	border-bottom: 1px solid transparent;
}

.hsa-menu-nav a:hover,
.hsa-menu-nav a:focus {
	border-bottom-color: var(--hsa-accent, #8c6a31);
}

.hsa-menu-nav .hsa-nav-menu a {
	font-weight: 700;
}

/* Menu and section headings */

.hsa-menu-section {
	margin: 0 0 3.5em;
}

.hsa-menu-section:last-child {
	margin-bottom: 0;
}

.hsa-menu .hsa-menu-title {
	font-family: var(--hsa-heading-font, inherit);
	color: var(--hsa-accent, #8c6a31);
	text-transform: uppercase;
	letter-spacing: 0.16em;
	text-align: center;
	font-size: 1.65em;
	line-height: 1.3;
	margin: 0 0 1.4em;
	padding: 0 0 0.5em;
	border-bottom: 2px solid var(--hsa-accent, #8c6a31);
}

.hsa-menu-category {
	margin: 0 0 2.6em;
	scroll-margin-top: 120px;
}

.hsa-menu-section {
	scroll-margin-top: 120px;
}

.hsa-menu .hsa-category-title {
	font-family: var(--hsa-heading-font, inherit);
	color: var(--hsa-accent, #8c6a31);
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 1.05em;
	line-height: 1.3;
	margin: 0 0 1.1em;
	padding: 0;
	text-align: center;
}

.hsa-menu .hsa-category-title::after {
	content: "";
	display: block;
	width: 46px;
	height: 1px;
	margin: 0.7em auto 0;
	background: var(--hsa-rule, #c2ad86);
}

/* Items */

.hsa-menu .hsa-item-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.hsa-menu .hsa-item {
	list-style: none;
	margin: 0 0 1.5em;
	padding: 0;
	break-inside: avoid;
	page-break-inside: avoid;
}

.hsa-menu .hsa-item:last-child {
	margin-bottom: 0;
}

.hsa-item-head {
	display: flex;
	align-items: baseline;
	gap: 0.5em;
	width: 100%;
}

.hsa-item-name {
	font-weight: 700;
	line-height: 1.35;
	flex: 0 1 auto;
}

.hsa-item-dots {
	flex: 1 1 auto;
	min-width: 1.5em;
	height: 0;
	align-self: center;
	border-bottom: 1px dotted var(--hsa-rule, #c2ad86);
	opacity: 0.75;
}

.hsa-item-price {
	flex: 0 0 auto;
	font-weight: 700;
	white-space: nowrap;
	color: var(--hsa-accent, #8c6a31);
}

.hsa-menu .hsa-item-desc {
	margin: 0.3em 0 0;
	padding: 0;
	font-size: 0.92em;
	line-height: 1.5;
	opacity: 0.85;
}

.hsa-item-options {
	margin: 0.45em 0 0;
}

.hsa-menu .hsa-option-group {
	margin: 0.15em 0 0;
	padding: 0;
	font-size: 0.82em;
	line-height: 1.45;
	opacity: 0.8;
}

.hsa-option-label {
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 700;
	color: var(--hsa-accent, #8c6a31);
}

.hsa-menu .hsa-item-note {
	margin: 0.3em 0 0;
	padding: 0;
	font-size: 0.8em;
	font-style: italic;
	opacity: 0.7;
}

.hsa-menu .hsa-menu-footnote {
	margin: 2.5em 0 0;
	padding-top: 1.2em;
	border-top: 1px solid var(--hsa-rule, #c2ad86);
	text-align: center;
	font-size: 0.82em;
	letter-spacing: 0.04em;
	opacity: 0.75;
}

.hsa-menu-empty {
	padding: 1em 1.2em;
	border-left: 4px solid #d63638;
	background: #fcf0f1;
	color: #3c434a;
}

/* Multi-column layouts for long lists such as the wine list */

@media screen and (min-width: 782px) {

	.hsa-menu-columns-2 .hsa-item-list {
		column-count: 2;
		column-gap: 3.5em;
	}

	.hsa-menu-columns-3 .hsa-item-list {
		column-count: 3;
		column-gap: 2.5em;
	}
}

/* Print */

@media print {

	.hsa-menu-nav {
		display: none;
	}

	.hsa-menu .hsa-item {
		break-inside: avoid;
	}

	.hsa-menu .hsa-menu-title,
	.hsa-menu .hsa-category-title,
	.hsa-item-price,
	.hsa-option-label {
		color: #000;
	}
}
