/* ==========================================================================
   Le Mas du Marin — main stylesheet
   Values taken from the validated mockup (docs/maquette/accueil.html).
   ========================================================================== */

/* Fonts (self-hosted, latin subset, variable weight) ----------------------- */

@font-face {
	font-family: "Cormorant Garamond";
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url("../fonts/cormorant-garamond-latin.woff2") format("woff2");
}

@font-face {
	font-family: "Cormorant Garamond";
	font-style: italic;
	font-weight: 300 700;
	font-display: swap;
	src: url("../fonts/cormorant-garamond-italic-latin.woff2") format("woff2");
}

@font-face {
	font-family: "Jost";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/jost-latin.woff2") format("woff2");
}

/* Design tokens ------------------------------------------------------------ */

:root {
	/* Colours */
	--color-ivory: #F7F3EA;
	--color-stone: #EFE8DA;
	--color-rule: #E6DCCB;
	--color-rule-strong: #D9CDB8;
	--color-accent: #365E8C;        /* buttons and links (woad blue, darkened for contrast) */
	--color-dark: #283546;          /* text and dark sections */
	--color-gold: #C8B48C;          /* decoration only */
	--color-gold-text: #6B5A32;     /* gold text on light backgrounds */
	--color-gold-on-dark: #E7DBC3;  /* gold text on dark backgrounds */
	--color-input-border: #A39681;
	--color-white: #FFFFFF;
	--color-overlay: rgba(40, 32, 25, 0.55);

	/* Typography */
	--font-serif: "Cormorant Garamond", Georgia, serif;
	--font-sans: "Jost", system-ui, sans-serif;
	--text-base: 17px;
	--text-small: 14px;
	--text-eyebrow: 13px;
	--text-h1: clamp(44px, 6vw, 84px);
	--text-h2: clamp(34px, 4.5vw, 46px);

	/* Layout */
	--container: 1200px;
	--gutter: 48px;
	--section-space: 96px;
	--gap: 16px;
}

@media (max-width: 700px) {
	:root {
		--gutter: 24px;
		--section-space: 64px;
	}
}

/* Base --------------------------------------------------------------------- */

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

body {
	margin: 0;
	background: var(--color-ivory);
	color: var(--color-dark);
	font-family: var(--font-sans);
	font-size: var(--text-base);
	font-weight: 300;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: var(--color-dark);
}

a:hover {
	color: var(--color-accent);
}

:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 3px;
}

h1,
h2,
h3 {
	margin: 0;
	font-family: var(--font-serif);
	font-weight: 500;
}

h1 {
	font-size: var(--text-h1);
	line-height: 1.05;
}

h2 {
	font-size: var(--text-h2);
	line-height: 1.15;
}

h3 {
	font-size: 24px;
	line-height: 1.3;
}

p {
	margin: 0;
}

/* Accessibility helpers ---------------------------------------------------- */

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

.skip-link {
	position: absolute;
	top: -100px;
	left: 16px;
	z-index: 100;
	padding: 12px 20px;
	background: var(--color-dark);
	color: var(--color-ivory);
}

.skip-link:focus {
	top: 16px;
	color: var(--color-ivory);
}

/* Layout ------------------------------------------------------------------- */

.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.container--narrow {
	max-width: calc(760px + 2 * var(--gutter));
}

.section {
	padding: var(--section-space) 0;
}

.section--stone {
	background: var(--color-stone);
}

.section--dark {
	background: var(--color-dark);
	color: var(--color-ivory);
}

.section--dark a:not(.btn) {
	color: var(--color-ivory);
}

/* Shared components -------------------------------------------------------- */

/* Overline above headings: spaced capitals in gold. */
.eyebrow {
	margin: 0 0 16px;
	color: var(--color-gold-text);
	font-size: var(--text-eyebrow);
	font-weight: 400;
	letter-spacing: 0.3em;
	text-transform: uppercase;
}

.section--dark .eyebrow {
	color: var(--color-gold-on-dark);
}

.btn {
	display: inline-block;
	padding: 14px 32px;
	border: 1px solid transparent;
	font-family: var(--font-sans);
	font-size: var(--text-small);
	font-weight: 400;
	letter-spacing: 0.1em;
	line-height: 1.7;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
}

.btn--primary {
	background: var(--color-accent);
	color: var(--color-white);
}

.btn--primary:hover {
	background: var(--color-dark);
	color: var(--color-white);
}

.btn--light {
	background: var(--color-ivory);
	color: var(--color-dark);
}

.btn--light:hover {
	background: var(--color-white);
	color: var(--color-dark);
}

.btn--outline {
	border-color: var(--color-white);
	color: var(--color-white);
}

.btn--outline:hover {
	background: var(--color-white);
	color: var(--color-dark);
}

/* Highlighted sentence in serif italic. */
.quote {
	color: var(--color-accent);
	font-family: var(--font-serif);
	font-size: 24px;
	font-style: italic;
	line-height: 1.4;
}

/* Header ------------------------------------------------------------------- */

.site-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 32px;
	padding: 10px var(--gutter);
	border-bottom: 1px solid var(--color-rule);
	background: var(--color-ivory);
}

.brand {
	display: block;
	flex-shrink: 0;
	text-decoration: none;
}

/* Logo V2 (Occitan cross) in woad blue, 1148 × 412: height sets the size. */
.brand__logo {
	display: block;
	width: auto;
	height: 92px;
}

.site-nav__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 28px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: var(--text-small);
	font-weight: 400;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.site-nav__link {
	display: inline-block;
	padding: 12px 0;
	text-decoration: none;
}

.site-nav__link[aria-current="page"]:not(.btn) {
	box-shadow: inset 0 -1px 0 var(--color-gold);
}

.site-nav__link.btn {
	padding: 12px 24px;
	letter-spacing: 0.08em;
}

/* Collapsible menu under 1100 px (class added by menu.js). */

.site-header__actions {
	display: none;
}

@media (max-width: 1099px) {
	.site-header--collapsible {
		flex-wrap: nowrap;
		gap: 16px;
		padding-top: 14px;
		padding-bottom: 14px;
	}

	.site-header--collapsible .site-header__actions {
		display: flex;
		align-items: center;
		gap: 12px;
		margin-left: auto;
	}

	.site-header__cta {
		padding: 12px 20px;
		font-size: var(--text-small);
		letter-spacing: 0.08em;
	}

	.menu-toggle {
		display: inline-flex;
		align-items: center;
		gap: 10px;
		min-height: 44px;
		padding: 10px 14px;
		border: 1px solid var(--color-rule-strong);
		background: transparent;
		color: var(--color-dark);
		font: inherit;
		font-size: var(--text-small);
		font-weight: 400;
		letter-spacing: 0.08em;
		text-transform: uppercase;
		cursor: pointer;
	}

	.menu-toggle:hover {
		border-color: var(--color-accent);
	}

	/* Three lines, turning into a cross when the menu is open. */
	.menu-toggle__icon,
	.menu-toggle__icon::before,
	.menu-toggle__icon::after {
		display: block;
		width: 18px;
		height: 1.5px;
		background: currentColor;
		transition: transform 0.2s, background-color 0.2s;
	}

	.menu-toggle__icon {
		position: relative;
	}

	.menu-toggle__icon::before,
	.menu-toggle__icon::after {
		content: "";
		position: absolute;
		left: 0;
	}

	.menu-toggle__icon::before {
		top: -6px;
	}

	.menu-toggle__icon::after {
		top: 6px;
	}

	.is-open .menu-toggle__icon {
		background: transparent;
	}

	.is-open .menu-toggle__icon::before {
		transform: translateY(6px) rotate(45deg);
	}

	.is-open .menu-toggle__icon::after {
		transform: translateY(-6px) rotate(-45deg);
	}

	/* The menu drops down under the header, over the page. */
	.site-header--collapsible {
		position: relative;
	}

	.site-header--collapsible .site-nav {
		display: none;
		position: absolute;
		z-index: 50;
		top: 100%;
		right: 0;
		left: 0;
		padding: 8px var(--gutter) 24px;
		border-bottom: 1px solid var(--color-rule);
		background: var(--color-ivory);
		box-shadow: 0 12px 24px rgba(40, 32, 25, 0.08);
	}

	.site-header--collapsible.is-open .site-nav {
		display: block;
	}

	.site-header--collapsible .site-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.site-header--collapsible .site-nav__item {
		border-bottom: 1px solid var(--color-rule);
	}

	.site-header--collapsible .site-nav__link {
		display: block;
		padding: 16px 0;
	}

	.site-header--collapsible .site-nav__item--contact {
		margin-top: 20px;
		border-bottom: 0;
	}

	.site-header--collapsible .site-nav__link.btn {
		padding: 16px 24px;
		text-align: center;
	}
}

/* From 800 px the contact button sits next to "Menu", so it leaves the dropdown. */
@media (min-width: 800px) and (max-width: 1099px) {
	.site-header--collapsible .site-nav__item--contact {
		display: none;
	}
}

@media (max-width: 799px) {
	.site-header__cta {
		display: none;
	}
}

@media (max-width: 1099px) {
	.brand__logo {
		height: 72px;
	}
}

@media (max-width: 479px) {
	.brand__logo {
		height: 60px;
	}

	.menu-toggle {
		padding: 10px 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.menu-toggle__icon,
	.menu-toggle__icon::before,
	.menu-toggle__icon::after {
		transition: none;
	}
}

/* Footer ------------------------------------------------------------------- */

.site-footer {
	padding: 48px var(--gutter);
	background: var(--color-dark);
	color: var(--color-rule);
	font-size: var(--text-small);
}

.site-footer a {
	color: var(--color-rule);
}

.site-footer a:hover {
	color: var(--color-white);
}

.site-footer__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 40px;
	max-width: var(--container);
	margin: 0 auto;
}

.site-footer__brand {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.site-footer__logo {
	display: block;
	width: auto;
	height: 84px;
}

.site-footer__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__list a {
	display: inline-block;
	padding: 12px 0;
}

/* Free-text pages (legal notice, privacy policy) --------------------------- */

.page-title {
	margin-bottom: 40px;
	font-size: var(--text-h2);
	line-height: 1.15;
}

.entry > * + * {
	margin-top: 1em;
}

.entry h2 {
	margin-top: 1.6em;
	font-size: 32px;
}

.entry h3 {
	margin-top: 1.4em;
}

.entry ul,
.entry ol {
	padding-left: 1.2em;
}

/* Generic layout pieces ---------------------------------------------------- */

.stack {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.stack > .eyebrow {
	margin-bottom: 0;
}

.stack-lg {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.ratio-3-2,
.ratio-5-2 {
	width: 100%;
	object-fit: cover;
}

.ratio-3-2 {
	aspect-ratio: 3 / 2;
}

.ratio-5-2 {
	aspect-ratio: 5 / 2;
}

.placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 240px;
	padding: 24px;
	border: 1px dashed var(--color-gold);
	color: var(--color-gold-text);
	font-size: var(--text-small);
	letter-spacing: 0.08em;
	text-align: center;
}

/* Home: hero --------------------------------------------------------------- */

.hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 640px;
	overflow: hidden;
	background: var(--color-dark);
}

.hero__image,
.hero__overlay {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.hero__image {
	object-fit: cover;
}

.hero__overlay {
	background: var(--color-overlay);
}

.hero__content {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding-top: 80px;
	padding-bottom: 72px;
	color: var(--color-white);
}

.hero__eyebrow {
	font-size: var(--text-eyebrow);
	font-weight: 400;
	letter-spacing: 0.32em;
	text-transform: uppercase;
}

.hero__title {
	max-width: 900px;
}

.hero__text {
	max-width: 620px;
	font-size: 19px;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 12px;
}

@media (max-width: 700px) {
	.hero {
		min-height: 560px;
	}
}

/* Home: welcome ------------------------------------------------------------ */

.welcome {
	padding-bottom: 72px;
}

.split {
	display: flex;
	flex-wrap: wrap;
	gap: 48px 80px;
}

.split__aside {
	flex: 1 1 320px;
	min-width: 0;
}

.split__main {
	flex: 2 1 480px;
	min-width: 0;
}

/* Home: key figures -------------------------------------------------------- */

.figures-section {
	padding-bottom: var(--section-space);
}

.figures {
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--color-rule-strong);
	border-bottom: 1px solid var(--color-rule-strong);
	list-style: none;
}

.figure {
	display: flex;
	flex: 1 1 200px;
	flex-direction: column;
	align-items: center;
	padding: 32px 16px;
	text-align: center;
}

.figure__number {
	color: var(--color-accent);
	font-family: var(--font-serif);
	font-size: 56px;
	line-height: 1;
}

.figure__label {
	margin-top: 10px;
	font-size: var(--text-eyebrow);
	font-weight: 400;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

/* Home: text + photos blocks (gîte, outdoor) ------------------------------- */

.feature {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 48px 72px;
}

.feature--reverse {
	flex-wrap: wrap-reverse;
}

.feature__text {
	flex: 1 1 380px;
	min-width: 0;
}

.feature__media {
	flex: 1.3 1 440px;
	min-width: 0;
}

.feature__action {
	margin-top: 12px;
}

.media-stack {
	display: flex;
	flex-direction: column;
	gap: var(--gap);
}

.media-pair {
	display: flex;
	gap: var(--gap);
}

.media-pair > img {
	flex: 1 1 0;
	min-width: 0;
}

.features {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-weight: 400;
}

.features li::before {
	content: "·";
	margin-right: 12px;
	color: var(--color-gold-text);
}

/* Home: events ------------------------------------------------------------- */

.events {
	display: flex;
	flex-wrap: wrap;
	gap: 48px 72px;
}

.events__text,
.events__aside {
	flex: 1 1 400px;
	min-width: 0;
}

.events__aside {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.rentals {
	display: flex;
	flex-wrap: wrap;
	gap: var(--gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.rental {
	display: flex;
	flex: 1 1 160px;
	flex-direction: column;
	padding-top: 14px;
	border-top: 1px solid var(--color-gold);
}

.rental__name {
	font-family: var(--font-serif);
	font-size: 24px;
	line-height: 1.4;
}

.rental__note {
	color: var(--color-rule);
	font-size: var(--text-small);
}

/* Home: gallery preview ---------------------------------------------------- */

.section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 32px;
}

.section-head__link {
	padding: 12px 0;
	font-size: var(--text-small);
	font-weight: 400;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.mosaic {
	display: flex;
	flex-direction: column;
	gap: var(--gap);
}

.mosaic__row {
	display: flex;
	flex-wrap: wrap;
	gap: var(--gap);
}

.mosaic__item {
	min-width: 0;
	object-fit: cover;
}

/* Row 1: portrait, landscape, portrait. Row 2: wide landscape, near-square. */
.mosaic__item--narrow {
	flex: 1 1 200px;
	aspect-ratio: 2 / 3;
}

.mosaic__item--wide {
	flex: 2 1 400px;
	aspect-ratio: 4 / 3;
}

.mosaic__item--landscape {
	aspect-ratio: 16 / 9;
}

.mosaic__item--medium {
	flex: 1 1 240px;
	aspect-ratio: 8 / 9;
}

/* Small screens: one photo per line, all in landscape to keep the page short. */
@media (max-width: 700px) {
	.mosaic__item {
		flex-basis: 100%;
		aspect-ratio: 3 / 2;
	}
}

/* Home: contact ------------------------------------------------------------ */

.contact {
	display: flex;
	flex-wrap: wrap;
	gap: 48px 72px;
}

.contact__text {
	flex: 1 1 340px;
	min-width: 0;
}

.contact__form {
	flex: 1.4 1 460px;
	min-width: 0;
	padding: 40px;
	background: var(--color-ivory);
}

.address {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 12px;
	font-style: normal;
	font-weight: 400;
}

/* Inner pages: header -------------------------------------------------------- */

.page-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 460px;
	overflow: hidden;
	background: var(--color-dark);
}

.page-hero__image,
.page-hero__overlay {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.page-hero__image {
	object-fit: cover;
}

.page-hero__overlay {
	background: var(--color-overlay);
}

.page-hero__content {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding-top: 64px;
	padding-bottom: 56px;
	color: var(--color-white);
}

.page-hero__title {
	max-width: 900px;
	font-size: clamp(40px, 5vw, 68px);
}

@media (max-width: 700px) {
	.page-hero {
		min-height: 380px;
	}
}

/* Inner pages: shared blocks -------------------------------------------------- */

.section--flush-top {
	padding-top: 0;
}

/* Photo cards, three per line. */
.cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 40px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.card {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.card__image {
	width: 100%;
	aspect-ratio: 4 / 5;
	margin-bottom: 12px;
	object-fit: cover;
}

.card__title {
	font-size: 28px;
}

.card__text {
	font-size: 16px;
}

/* Le gîte: room names and bedding, two per line on wide screens. */
.room-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 0 40px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.room-list__item {
	padding: 18px 0;
	border-top: 1px solid var(--color-rule-strong);
}

.room-list__name {
	font-size: 26px;
}

.room-list__text {
	margin-top: 4px;
	font-size: 16px;
}

/* Even photo grid, two per line. */
.photo-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
	gap: var(--gap);
}

.photo-grid__item {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

/* Checklist in two columns with a gold rule above each line. */
.checklist {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 0 40px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-weight: 400;
}

.checklist li {
	padding: 14px 0;
	border-top: 1px solid var(--color-rule-strong);
}

/* Closing call to action. */
.cta-band__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 32px 72px;
}

.cta-band__inner > .stack {
	flex: 1 1 480px;
	max-width: 720px;
}

@media (max-width: 700px) {
	.card__image {
		aspect-ratio: 3 / 2;
	}
}

/* Extra image ratios. */
.ratio-4-3,
.ratio-4-5 {
	width: 100%;
	object-fit: cover;
}

.ratio-4-3 {
	aspect-ratio: 4 / 3;
}

.ratio-4-5 {
	aspect-ratio: 4 / 5;
}

/* Large centred quote between sections. */
.quote-band {
	text-align: center;
}

.quote--large {
	font-size: clamp(28px, 3.5vw, 40px);
	line-height: 1.3;
}

/* Three-per-line photo grid. */
.photo-grid--3 {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}

/* Photo opening in the lightbox: the link takes the cell, the image fills it. */
.lightbox-item {
	display: block;
	overflow: hidden;
	cursor: zoom-in;
}

.lightbox-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.lightbox-item:hover img,
.lightbox-item:focus-visible img {
	transform: scale(1.03);
}

@media (prefers-reduced-motion: reduce) {
	.lightbox-item img {
		transition: none;
	}
}

/* Rentals list on the events page: larger names. */
.rentals--large .rental__name {
	font-size: 30px;
}

@media (max-width: 700px) {
	.photo-grid--3 {
		grid-template-columns: repeat(2, 1fr);
		gap: 8px;
	}
}

/* Inner page header: darker at the bottom, where the text sits. */
.page-hero__overlay {
	background: linear-gradient(to top, rgba(40, 32, 25, 0.78) 0%, rgba(40, 32, 25, 0.5) 55%, rgba(40, 32, 25, 0.4) 100%);
}

/* Lightbox (PhotoSwipe) in the site colours. */
.pswp {
	--pswp-bg: #1D2633;
	--pswp-placeholder-bg: #283546;
	--pswp-icon-color: #F7F3EA;
	--pswp-icon-color-secondary: #283546;
	--pswp-icon-stroke-color: #283546;
	font-family: var(--font-sans);
}

.pswp__counter {
	color: var(--color-ivory);
	font-size: var(--text-small);
	letter-spacing: 0.1em;
}

.pswp__caption {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	padding: 16px 24px 20px;
	background: linear-gradient(to top, rgba(42, 34, 28, 0.85), rgba(42, 34, 28, 0));
	color: var(--color-ivory);
	font-size: 15px;
	text-align: center;
	pointer-events: none;
}

.pswp__caption:empty {
	display: none;
}

/* Gallery page: justified rows. Each photo grows in proportion to its width/height
   ratio (--ratio, set inline), so all photos of a row share the same height and keep
   their proportions. Photos read row by row, in the order chosen in the admin. */
.justified {
	--row-height: 300px;
	display: flex;
	flex-wrap: wrap;
	gap: var(--gap);
}

/* Keeps the last row at its natural size instead of stretching it. */
.justified::after {
	content: "";
	flex-grow: 999;
}

.justified__item {
	flex-grow: calc(var(--ratio) * 100);
	flex-basis: calc(var(--ratio) * var(--row-height));
}

.justified__item img {
	height: auto;
	aspect-ratio: var(--ratio);
}

@media (max-width: 700px) {
	.justified {
		--row-height: 130px;
		gap: 8px;
	}
}

/* Form -------------------------------------------------------------------- */

.form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.form__row {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.form__row > .form__field {
	flex: 1 1 200px;
}

.form__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.form__field label {
	font-size: var(--text-small);
	font-weight: 400;
}

.form__req {
	color: var(--color-gold-text);
}

.form__legend,
.form__privacy {
	margin: 0;
	font-size: var(--text-small);
}

.form__privacy {
	margin-top: -4px;
}

.form input,
.form select,
.form textarea {
	width: 100%;
	padding: 0 14px;
	border: 1px solid var(--color-input-border);
	border-radius: 0;
	background: var(--color-white);
	color: var(--color-dark);
	font: inherit;
}

.form input,
.form select {
	height: 48px;
}

.form textarea {
	padding-top: 12px;
	padding-bottom: 12px;
	resize: vertical;
}

.form input:focus-visible,
.form select:focus-visible,
.form textarea:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 0;
	border-color: var(--color-accent);
}

.form [aria-invalid="true"] {
	border-color: #A3352B;
	box-shadow: inset 3px 0 0 #A3352B;
}

.form__error {
	margin: 0;
	color: #8E2C23;
	font-size: var(--text-small);
	font-weight: 400;
}

.form__summary {
	padding: 14px 18px;
	border-left: 3px solid #A3352B;
	background: #FBEDEA;
	color: #6E231C;
	font-weight: 400;
}

.form__submit {
	align-self: flex-start;
	min-height: 52px;
	padding: 0 36px;
}

/* Honeypot: off-screen, out of the accessibility tree. */
.form__hp {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.form-done {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 8px 0;
}

.form-done__title {
	color: var(--color-accent);
	font-family: var(--font-serif);
	font-size: 30px;
	line-height: 1.2;
}

.form-done:focus,
.form__summary:focus {
	outline: none;
}

@media (max-width: 700px) {
	.contact__form {
		padding: 24px;
	}
}

/* Contact page: map ------------------------------------------------------- */

.map-links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.btn--ghost {
	border-color: var(--color-accent);
	color: var(--color-accent);
}

.btn--ghost:hover {
	background: var(--color-accent);
	color: var(--color-white);
}

.map {
	margin: 0;
}

.map__image {
	width: 100%;
	border: 1px solid var(--color-rule);
}

.map__caption {
	margin-top: 10px;
	font-size: var(--text-small);
}

/* Small screens: square crop centred on the marker, so the map stays legible. */
@media (max-width: 700px) {
	.map__image {
		aspect-ratio: 1 / 1;
		object-fit: cover;
		object-position: 50% 68%;
	}
}

/* Holding page (inc/coming-soon.php) ------------------------------------- */

.coming-soon {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	min-height: 100vh;
	min-height: 100dvh;
}

.coming-soon__panel {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 64px clamp(24px, 7vw, 112px);
	background: var(--color-ivory);
}

.coming-soon__logo {
	width: min(100%, 340px);
	height: auto;
	margin-bottom: 56px;
}

.coming-soon__title {
	margin: 0 0 20px;
	font-size: clamp(38px, 4.4vw, 60px);
	line-height: 1.08;
}

.coming-soon__text {
	max-width: 30em;
	margin: 0 0 36px;
}

.coming-soon__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.coming-soon__address {
	margin: 36px 0 0;
	padding-top: 20px;
	border-top: 1px solid var(--color-rule-strong);
	font-size: var(--text-small);
}

.coming-soon__photo {
	position: relative;
	background: var(--color-dark);
}

.coming-soon__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (max-width: 899px) {
	.coming-soon {
		grid-template-columns: 1fr;
		grid-template-rows: auto 34vh;
	}

	.coming-soon__panel {
		padding: 48px 24px;
	}

	.coming-soon__logo {
		width: min(100%, 240px);
		margin-bottom: 40px;
	}

	.coming-soon__actions .btn {
		flex: 1 1 100%;
		text-align: center;
	}
}
