/* CONTACT — page-contact.php
   ============================================================================
   Spare and practical. Photograph on one side, details on the other; on a
   phone the photograph is above the text. The details are ordinary text,
   easy to read and to copy.
   ========================================================================== */

section.contact .container { display: grid; gap: 2.5rem; }

.contactImage { margin: 0; }
.contactImage img { width: 100%; height: auto; }

.contactText h1.pageTitle { margin: 0 0 1.4rem; }
.contactName { font-size: 1.1em; line-height: 1.4; }
.contactTitle { color: var(--color-text-soft); font-size: 0.9em; }
.contactText .theContent { margin-top: 1.4rem; }
.contactText .theContent > * { margin-left: 0; }

.contactDetails { margin-top: 2rem; }
.contactDetails > div {
	display: grid;
	grid-template-columns: 5rem 1fr;
	gap: 0 1rem;
	padding: 0.7rem 0;
	border-top: 1px solid var(--color-rule);
	align-items: baseline;
}
.contactDetails > div:last-child { border-bottom: 1px solid var(--color-rule); }
.contactDetails dt { color: var(--color-text-soft); }
.contactDetails dd { user-select: all; }  /* one click or tap selects the whole line for copying */
.contactDetails dd a { color: var(--color-text); border-bottom: 1px solid var(--color-rule); }
.contactDetails dd a:hover { color: var(--color-link); border-bottom-color: currentColor; }

.contactResponse { margin-top: 1.4rem; font-size: var(--text-small); color: var(--color-text-soft); }

/* THE QUOTATION below the details (Cage's, moved from the home page
   2026-10-27; typed in the Contact Page Quotation box). Quiet and set apart:
   italic, softer color, with the same large opening and closing marks as the
   home page's quotation (css/home.css § LARGE QUOTATION MARKS), at a smaller
   size. The marks are added here, so none are typed. */
.contactQuote {
	margin: 6rem auto 1rem;
	max-width: 20em;
	font-family: var(--font-serif);
	font-size: clamp(1.15rem, 1rem + 0.4vw, 1.3rem);
	font-style: italic;
	line-height: 1.6;
	color: var(--color-text-soft);
	--mark-size: 3.2rem;
	--mark-color: var(--q-mark-color);
	--mark-gap: 0.1em;            /* space between a mark and the words */
	--mark-open-top: 0.2em;       /* lower (+) or raise (-) the opening mark */
	--mark-close-top: 0.33em;     /* lower (+) or raise (-) the closing mark */
}
.contactQuote p + p { margin-top: 0.8em; }
.contactQuote > p:first-of-type::before,
.contactQuote > p:last-of-type::after {
	position: relative;
	font-family: var(--font-serif);
	font-size: var(--mark-size);
	font-style: normal;
	line-height: 0;
	color: var(--mark-color);
	pointer-events: none;
}
.contactQuote > p:first-of-type::before {
	content: "“";
	top: var(--mark-open-top);
	margin-right: var(--mark-gap);
}
.contactQuote > p:last-of-type::after {
	content: "”";
	top: var(--mark-close-top);
	margin-left: var(--mark-gap);
}
/* The source, as on the home page: the sans face, slightly spaced, capitals. */
.contactQuote footer {
	margin-top: 1em;
	font-family: var(--font-body);
	font-size: 1rem;
	font-style: normal;
	letter-spacing: 0.04em;
	color: var(--color-text-soft);
}
.contactQuote cite { font-style: normal; text-transform: uppercase; }
.contactQuote cite em { font-style: italic; }

@media (min-width: 900px) { /* BP-TWO-COL */
	section.contact .container {
		grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
		column-gap: clamp(3rem, 6vw, 7rem);
		align-items: center;
	}
	/* The "where next" links sit at the foot of the page, just above the
	   footer, however tall the window. The page body becomes a column and the
	   space left over goes above the links. */
	.mainContent { display: flex; flex-direction: column; }
	section.onwardLinks { margin-top: auto; }
	/* ...and as wide as the photograph and details above them. */
	section.onwardLinks nav { max-width: none; }
}
