/* #content fills the screen between header and footer (style.css); the
   contact block centres itself in that space instead of the design's
   fixed 56vh, so the footer sits at the bottom on any screen height. */
#content {
	display: flex;
	flex-direction: column;
}

.contact-page {
	flex: 1 0 auto;
	width: 100%;
	max-width: 1360px;
	margin: 0 auto;
	box-sizing: border-box;
	padding: 40px 20px 0;
	min-height: 56vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 28px;
}

@media ( min-width: 640px ) {
	.contact-page {
		padding: 40px 40px 0;
	}
}

.contact-page__label {
	margin: 0;
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #8d8c87;
}

.contact-page__body {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.contact-page__body .wp-block-paragraph {
	margin: 0;
	max-width: 520px;
	font-size: 15px;
	line-height: 1.6;
	color: #8d8c87;
}

/* The paragraph holding the mailto: link must not inherit the 520px
   cap above - it needs the full container width for the big email
   text, which can otherwise wrap sooner than it has to. */
.contact-page__body .wp-block-paragraph:has( a[href^='mailto:'] ) {
	max-width: none;
}

.contact-page__body a {
	color: #a9a8a3;
	text-decoration: none;
	transition: color 0.25s ease;
}

.contact-page__body a:hover {
	color: #ffffff;
}

.contact-page__body a[href^='mailto:'] {
	display: inline-block;
	font-size: 30px;
	font-weight: 300;
	letter-spacing: -0.02em;
	line-height: 1.1;
	word-break: break-word;
	color: var( --wp--preset--color--foreground );
}

@media ( min-width: 640px ) and ( max-width: 959px ) {
	.contact-page__body a[href^='mailto:'] {
		font-size: 52px;
	}
}

@media ( min-width: 960px ) {
	.contact-page__body a[href^='mailto:'] {
		font-size: 80px;
	}
}

/* A paragraph holding only profile links (e.g. "Instagram Flickr", each
   word linked) renders as the design's row of links under the note. */
.contact-page__body .wp-block-paragraph:has( a ):not( :has( a[href^='mailto:'] ) ) {
	display: flex;
	flex-wrap: wrap;
	gap: 0 28px;
	/* 12px in the design, minus the links' 6px tap padding. */
	margin-top: 6px;
	font-size: 14px;
}

.contact-page__body .wp-block-paragraph:has( a ):not( :has( a[href^='mailto:'] ) ) a {
	padding: 6px 0;
}
