/*
 * Shared design tokens and base styles used on every template: reset, site
 * header/navigation, site footer, buttons, breadcrumbs, and the generic
 * fallback content layout. Homepage-only section styles (hero, concept grid,
 * story, events, reservations) live in home.css, loaded only on the front page.
 */
:root {
	--waterfront-ink: #060d1a;
	--waterfront-navy: #0a1628;
	--waterfront-pearl: #f5f0e8;
	--waterfront-mist: #8fa8c0;
	--waterfront-blue: #4a7fa5;
	--waterfront-copper: #b87333;
	--waterfront-gold: #c8860a;
	--waterfront-border: rgba(245, 240, 232, 0.12);
	--font-display: "Fraunces", Georgia, serif;
	--font-body: "DM Sans", system-ui, sans-serif;
	--font-mono: "DM Mono", monospace;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--waterfront-navy);
	color: var(--waterfront-pearl);
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	overflow-x: hidden;
}

body.menu-open {
	overflow: hidden;
}

button,
input,
textarea {
	font: inherit;
}

button,
a {
	-webkit-tap-highlight-color: transparent;
}

a {
	color: inherit;
	text-decoration: none;
}

:where(a, button, input, textarea, select):focus-visible {
	outline: 2px solid var(--waterfront-pearl);
	outline-offset: 3px;
}

img {
	display: block;
	max-width: 100%;
}

p,
h1,
h2,
h3,
ul {
	margin-top: 0;
}

.page-shell {
	width: min(calc(100% - 3rem), 80rem);
	margin-inline: auto;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	top: 0.75rem;
	left: 0.75rem;
	z-index: 1000;
	width: auto;
	height: auto;
	padding: 0.75rem 1rem;
	clip: auto;
	background: var(--waterfront-pearl);
	color: var(--waterfront-ink);
}

.breadcrumbs {
	margin-bottom: 1.25rem;
	color: var(--waterfront-mist);
	font-family: var(--font-mono);
	font-size: 0.65rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.breadcrumbs ol,
.breadcrumbs li {
	display: flex;
	align-items: center;
}

.breadcrumbs ol {
	flex-wrap: wrap;
	gap: 0.45rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.breadcrumbs li {
	gap: 0.45rem;
}

.breadcrumbs li:not(:last-child)::after {
	content: "/";
	opacity: 0.65;
}

.breadcrumbs a {
	text-decoration: underline;
	text-decoration-color: transparent;
	text-underline-offset: 0.2em;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
	color: var(--waterfront-pearl);
	text-decoration-color: currentColor;
}

.breadcrumbs [aria-current="page"] {
	color: var(--waterfront-pearl);
}

.eyebrow,
.footer-heading {
	margin-bottom: 1rem;
	color: var(--waterfront-copper);
	font-family: var(--font-mono);
	font-size: 0.72rem;
	line-height: 1.5;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

/* Header */
.site-header {
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	z-index: 100;
	height: 5rem;
	transition: background-color 300ms ease, border-color 300ms ease;
}

.admin-bar .site-header {
	top: 32px;
}

.site-header.is-scrolled,
.site-header.is-menu-open {
	background: rgba(6, 13, 26, 0.96);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(12px);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: min(calc(100% - 3rem), 80rem);
	height: 100%;
	margin-inline: auto;
}

.site-brand,
.site-brand__link {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	min-width: 0;
}

.site-brand__mark {
	display: inline-grid;
	flex: 0 0 1.75rem;
	width: 1.75rem;
	height: 1.75rem;
	place-items: center;
	border: 1px solid var(--waterfront-copper);
	border-radius: 50%;
	color: var(--waterfront-copper);
	font-size: 0.95rem;
}

.site-brand__name {
	font-family: var(--font-display);
	font-size: 0.94rem;
	font-weight: 400;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.custom-logo-link,
.custom-logo {
	display: block;
	max-width: 18rem;
	max-height: 3rem;
	width: auto;
	height: auto;
}

.site-nav__list {
	display: flex;
	align-items: center;
	gap: clamp(2rem, 4vw, 3.5rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav a {
	display: block;
	color: var(--waterfront-mist);
	font-size: 0.78rem;
	line-height: 1.5;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	transition: color 200ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
	color: var(--waterfront-pearl);
}

.menu-toggle {
	display: none;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0.7rem;
	border: 0;
	background: transparent;
	color: var(--waterfront-pearl);
	cursor: pointer;
}

.menu-toggle > span:not(.screen-reader-text) {
	display: block;
	width: 100%;
	height: 1px;
	margin: 0.4rem 0;
	background: currentColor;
	transition: transform 200ms ease;
}

.menu-toggle[aria-expanded="true"] > span:nth-of-type(2) {
	transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] > span:nth-of-type(3) {
	transform: translateY(-3.5px) rotate(-45deg);
}

/* Buttons */
.button {
	display: inline-flex;
	min-height: 3.375rem;
	align-items: center;
	justify-content: center;
	padding: 1rem 2rem;
	border: 1px solid transparent;
	border-radius: 0;
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	line-height: 1.25rem;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}

.button--primary {
	border-color: var(--waterfront-copper);
	background: var(--waterfront-copper);
	color: var(--waterfront-ink);
}

.button--primary:hover,
.button--primary:focus-visible {
	border-color: #d39154;
	background: #d39154;
}

.button--outline {
	border-color: rgba(245, 240, 232, 0.3);
	background: transparent;
	color: var(--waterfront-pearl);
	font-weight: 300;
}

.button--outline:hover,
.button--outline:focus-visible {
	border-color: var(--waterfront-pearl);
	background: rgba(245, 240, 232, 0.06);
}

/* Shared form utility (also used by the Concept-page reservation form) */
.form-honeypot {
	position: absolute;
	left: -9999px;
}

/* Footer */
.site-footer {
	padding-block: 4rem 2rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	background: var(--waterfront-ink);
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1.2fr;
	gap: 4rem;
}

.site-brand--footer {
	margin-bottom: 1.5rem;
}

.site-footer__brand > p,
.site-footer__contact p {
	max-width: 26rem;
	margin-bottom: 0.6rem;
	color: var(--waterfront-mist);
	font-size: 0.9rem;
	font-weight: 300;
	line-height: 1.6;
}

.footer-heading {
	margin-bottom: 1.25rem !important;
	color: var(--waterfront-copper) !important;
	font-weight: 400;
}

.footer-links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-links li + li {
	margin-top: 0.35rem;
}

.footer-links a,
.site-footer__contact a {
	color: var(--waterfront-mist);
	font-size: 0.9rem;
	transition: color 200ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible,
.site-footer__contact a:hover,
.site-footer__contact a:focus-visible {
	color: var(--waterfront-pearl);
}

.site-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	margin-top: 3rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	color: var(--waterfront-blue);
	font-family: var(--font-mono);
	font-size: 0.62rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.site-footer__bottom p {
	margin: 0;
}

.site-footer__legal {
	display: flex;
	gap: 2rem;
}

/* Journal archive (home.php) */
.journal-archive {
	padding-block: 9rem 6rem;
	background: var(--waterfront-ink);
	min-height: 70vh;
}

.journal-archive__header {
	max-width: 46rem;
	margin-bottom: 4rem;
}

.journal-archive__title {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(2.5rem, 6vw, 4.5rem);
	font-weight: 300;
	line-height: 1.05;
}

.journal-archive__intro {
	margin-top: 1.5rem;
	color: var(--waterfront-mist);
	font-weight: 300;
	line-height: 1.75;
}

.journal-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
	gap: 2.5rem;
}

.journal-card {
	background: rgba(245, 240, 232, 0.03);
	border: 1px solid var(--waterfront-border);
	transition: border-color 250ms ease, background-color 250ms ease;
}

.journal-card:hover,
.journal-card:focus-within {
	border-color: var(--waterfront-copper);
	background: rgba(245, 240, 232, 0.06);
}

.journal-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.journal-card__media {
	overflow: hidden;
	aspect-ratio: 3 / 2;
}

.journal-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 700ms ease;
}

.journal-card:hover .journal-card__media img {
	transform: scale(1.04);
}

.journal-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 0.75rem;
	padding: 1.75rem;
}

.journal-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin: 0;
	color: var(--waterfront-copper);
	font-family: var(--font-mono);
	font-size: 0.62rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.journal-card__meta time {
	color: var(--waterfront-blue);
}

.journal-card__title {
	margin: 0;
	font-family: var(--font-display);
	font-size: 1.6rem;
	font-weight: 300;
	line-height: 1.2;
}

.journal-card__excerpt {
	margin: 0;
	color: var(--waterfront-mist);
	font-size: 0.92rem;
	font-weight: 300;
	line-height: 1.65;
}

.journal-card__action {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
	padding-top: 1.25rem;
	border-top: 1px solid var(--waterfront-border);
	color: var(--waterfront-copper);
	font-family: var(--font-mono);
	font-size: 0.66rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.journal-archive__empty {
	color: var(--waterfront-mist);
	font-weight: 300;
}

.journal-pagination {
	margin-top: 4rem;
	padding-top: 2rem;
	border-top: 1px solid var(--waterfront-border);
}

.journal-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	font-family: var(--font-mono);
	font-size: 0.7rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.journal-pagination a,
.journal-pagination .current {
	padding: 0.6rem 1rem;
	border: 1px solid var(--waterfront-border);
	color: var(--waterfront-mist);
}

.journal-pagination .current {
	border-color: var(--waterfront-copper);
	color: var(--waterfront-copper);
}

.journal-pagination a:hover,
.journal-pagination a:focus-visible {
	border-color: var(--waterfront-copper);
	color: var(--waterfront-pearl);
}

@media (max-width: 47.99rem) {
	.journal-archive {
		padding-block: 7rem 4rem;
	}

	.journal-archive__header {
		margin-bottom: 2.5rem;
	}

	.journal-grid {
		gap: 1.75rem;
	}
}

/* Single posts (single.php) — the cream Journal article sits on the dark shell. */
.journal-single {
	padding-top: 5rem;
	padding-bottom: 5rem;
	background: var(--waterfront-ink);
}

.journal-single__breadcrumbs {
	padding-block: 2rem 1.5rem;
}

.post-page {
	padding-top: 5rem;
	background: var(--waterfront-ink);
}

.post-article__breadcrumbs {
	padding-block: 2rem 1.5rem;
}

.post-article__standard {
	padding-bottom: 6rem;
}

.post-article__header {
	margin-bottom: 2.5rem;
}

.post-article__standard .entry__title {
	font-size: clamp(2.25rem, 5vw, 4rem);
	margin: 0;
}

.post-article__thumb {
	margin: 0 0 3rem;
}

.post-article__thumb img {
	width: 100%;
	height: auto;
}

.post-article__standard .entry__content {
	font-weight: 300;
	line-height: 1.8;
}

/* Fallback content (index.php, 404.php) */
.content-area {
	min-height: 70vh;
	padding: 9rem max(1.5rem, calc((100% - 80rem) / 2));
	background: var(--waterfront-ink);
}

.entry__title {
	font-family: var(--font-display);
	font-size: clamp(3rem, 7vw, 6rem);
	font-weight: 300;
	line-height: 1.05;
}

.entry__content {
	max-width: 48rem;
	color: var(--waterfront-mist);
	font-weight: 300;
	line-height: 1.7;
}

.entry__content h2,
.entry__content h3 {
	margin: 2.5rem 0 0.75rem;
	color: var(--waterfront-pearl);
	font-family: var(--font-display);
	font-weight: 300;
	line-height: 1.2;
}

.entry__content h2 {
	font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.entry__content h3 {
	font-size: 1.25rem;
}

.entry__content a {
	color: var(--waterfront-pearl);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.archive-header {
	margin-bottom: 4rem;
}

.entry--archive {
	margin-bottom: 4rem;
}

.entry--archive .entry__title {
	font-size: clamp(2rem, 4vw, 3.5rem);
}

.entry--archive .entry__title a:hover,
.entry--archive .entry__title a:focus-visible {
	color: var(--waterfront-copper);
}

@media (min-width: 64rem) {
	.page-shell,
	.site-header__inner {
		width: min(calc(100% - 6rem), 80rem);
	}

	.site-header__inner {
		padding-inline: 3rem;
	}
}

@media (max-width: 63.999rem) {
	.site-nav__list {
		gap: 2.5rem;
	}
}

@media (max-width: 47.999rem) {
	.admin-bar .site-header {
		top: 46px;
	}

	.site-brand,
	.site-brand__link {
		gap: 0.5rem;
	}

	.site-brand {
		flex: 1 1 auto;
		max-width: calc(100% - 3.75rem);
	}

	.site-brand__link {
		max-width: 100%;
	}

	.site-brand__mark {
		flex-basis: 1.6rem;
		width: 1.6rem;
		height: 1.6rem;
	}

	.site-brand__name {
		font-size: 0.58rem;
		letter-spacing: 0.04em;
		white-space: nowrap;
	}

	.menu-toggle {
		display: block;
	}

	.site-nav {
		position: fixed;
		top: 5rem;
		right: 0;
		left: 0;
		max-height: 0;
		overflow: hidden;
		background: rgba(6, 13, 26, 0.98);
		transition: max-height 250ms ease;
	}

	.admin-bar .site-nav {
		top: calc(5rem + 46px);
	}

	.site-nav.is-open {
		max-height: calc(100vh - 5rem);
	}

	.site-nav__list {
		display: grid;
		gap: 0;
		padding: 1rem 1.5rem 2rem;
	}

	.site-nav a {
		padding: 1rem 0;
		border-bottom: 1px solid var(--waterfront-border);
		font-size: 0.8rem;
	}

	.site-footer__grid {
		grid-template-columns: 1fr;
		gap: 2.5rem;
	}

	.site-footer__bottom {
		align-items: flex-start;
		flex-direction: column;
	}

	.site-footer__legal {
		flex-wrap: wrap;
		gap: 1rem 2rem;
	}
}

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

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}

/* Booking modal: a venue's reservation page, embedded so guests stay on the site.
   Concept pages supply their own palette through the --concept-* variables. */
.booking-modal {
	width: min(100vw, 64rem);
	max-width: 100vw;
	height: 100dvh;
	max-height: 100dvh;
	margin: auto;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--concept-text, var(--waterfront-pearl));
}

.booking-modal::backdrop {
	background: rgba(6, 13, 26, 0.82);
	backdrop-filter: blur(4px);
}

.booking-modal__panel {
	display: grid;
	grid-template-rows: auto 1fr;
	width: 100%;
	height: 100%;
	background: var(--concept-bg, var(--waterfront-navy));
	border: 1px solid var(--waterfront-border);
}

.booking-modal__header {
	display: grid;
	grid-template-columns: 1fr auto auto;
	grid-template-areas:
		"eyebrow external close"
		"title external close";
	align-items: center;
	column-gap: 1rem;
	padding: 1rem 1.25rem;
	border-bottom: 1px solid var(--waterfront-border);
}

.booking-modal__eyebrow {
	grid-area: eyebrow;
	margin: 0;
	color: var(--concept-primary-text, var(--concept-primary, var(--waterfront-copper)));
	font-family: var(--font-mono);
	font-size: 0.62rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.booking-modal__title {
	grid-area: title;
	margin: 0;
	font-family: var(--font-display);
	font-size: 1.25rem;
	font-weight: 300;
	line-height: 1.2;
}

.booking-modal__external {
	grid-area: external;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: var(--concept-muted, var(--waterfront-mist));
	font-family: var(--font-mono);
	font-size: 0.62rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
}

.booking-modal__external:hover,
.booking-modal__external:focus-visible {
	color: var(--concept-primary-text, var(--concept-primary, var(--waterfront-gold)));
}

.booking-modal__close {
	grid-area: close;
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 1px solid var(--waterfront-border);
	border-radius: 0;
	background: transparent;
	color: inherit;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	transition: border-color 200ms ease, color 200ms ease;
}

.booking-modal__close:hover,
.booking-modal__close:focus-visible {
	border-color: var(--concept-primary-text, var(--concept-primary, var(--waterfront-gold)));
	color: var(--concept-primary-text, var(--concept-primary, var(--waterfront-gold)));
}

.booking-modal__body {
	position: relative;
	min-height: 0;
	background: #fff;
}

.booking-modal__loading {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	margin: 0;
	color: var(--concept-muted, var(--waterfront-mist));
	background: var(--concept-bg, var(--waterfront-navy));
	font-size: 0.9rem;
	font-weight: 300;
	opacity: 0;
	pointer-events: none;
	transition: opacity 200ms ease;
}

.booking-modal.is-loading .booking-modal__loading {
	opacity: 1;
}

.booking-modal__frame {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Keep the page from scrolling behind the dialog. */
html.has-booking-modal {
	overflow: hidden;
}

@media (min-width: 48rem) {
	.booking-modal {
		height: min(90dvh, 60rem);
		max-height: 90dvh;
	}

	.booking-modal__header {
		padding: 1.25rem 1.75rem;
	}

	.booking-modal__title {
		font-size: 1.5rem;
	}
}

/* 404 page: a short apology and every way back in. */
.not-found {
	display: grid;
	gap: 4rem;
	min-height: 70vh;
	padding: 10rem max(1.5rem, calc((100% - 72rem) / 2)) 6rem;
	background: var(--waterfront-ink);
}

.not-found__eyebrow {
	margin: 0 0 1rem;
	color: var(--waterfront-copper);
	font-family: var(--font-mono);
	font-size: 0.72rem;
	font-weight: 400;
	letter-spacing: 0.18em;
	line-height: 1.5;
	text-transform: uppercase;
}

.not-found__hero h1 {
	max-width: 14ch;
	margin: 0 0 1.25rem;
	font-family: var(--font-display);
	font-size: clamp(2.5rem, 6vw, 4.5rem);
	font-weight: 300;
	line-height: 1.05;
	text-wrap: balance;
}

.not-found__text {
	max-width: 52ch;
	margin: 0 0 2rem;
	color: var(--waterfront-mist);
	font-size: 1.05rem;
	font-weight: 300;
	line-height: 1.7;
}

.not-found__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.not-found__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.not-found__list a {
	display: grid;
	gap: 0.35rem;
	min-height: 5.5rem;
	padding: 1.25rem 1.5rem;
	background: rgba(245, 240, 232, 0.03);
	border: 1px solid var(--waterfront-border);
	transition: border-color 200ms ease, background-color 200ms ease;
}

.not-found__list a:hover,
.not-found__list a:focus-visible {
	border-color: var(--waterfront-gold);
	background: rgba(200, 134, 10, 0.08);
}

.not-found__list strong {
	font-family: var(--font-display);
	font-size: 1.25rem;
	font-weight: 300;
	line-height: 1.2;
}

.not-found__list span {
	color: var(--waterfront-mist);
	font-family: var(--font-mono);
	font-size: 0.6rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}
