/*
	Site-level styles shared by every page.
	Loaded after main.css so it can refine the Spectral theme without
	editing the vendor stylesheet.
*/

/* --- Navigation ------------------------------------------------------ */

/* Show visitors which page they are on. */
#menu ul li a.is-active {
	color: #b4884a;
	font-weight: 600;
}

/* --- Inner page headers ---------------------------------------------- */

/* Subtitle under each page title, matching the homepage banner treatment. */
#main > header p {
	font-size: 0.8em;
	opacity: 0.85;
}

/* --- Shared utilities ------------------------------------------------ */

.bio {
	padding-bottom: 3em;
}

/* --- Forms ----------------------------------------------------------- */

.form-status {
	margin: 1em 0 0 0;
	min-height: 1.4em;
	font-size: 0.9em;
}

.form-status.is-error {
	color: #ffb4b4;
}

.form-status.is-ok {
	color: #bfe6c3;
}

/* Make keyboard focus visible for anyone not using a mouse. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
	outline: 2px solid #b4884a;
	outline-offset: 2px;
}

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

#footer .copyright li {
	line-height: 1.6;
}

/* --- Motion ---------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	*,
	*:before,
	*:after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* --- Contact page ---------------------------------------------------- */

/* .wrapper > .inner is 60em (~960px); a three-field form does not need
   that much measure, and full-width inputs look unanchored. */
.contact-col {
	max-width: 30em;
	margin: 0 auto;
}

.contact-col textarea {
	min-height: 6.5em;
}

.contact-col .actions {
	margin: 0.5em 0 0 0;
}

.contact-col .form-status:empty {
	display: none;
}

.contact-alt {
	margin: 1.5em 0 0 0;
	font-size: 0.85em;
	opacity: 0.8;
	text-align: center;
}

/* The page is a single short form; compress the surrounding chrome so
   it fits a laptop viewport without scrolling. */
.contact-page > header {
	padding: 4.5em 0 3.5em 0;
}

.contact-page .wrapper {
	padding: 3em 0 3em 0;
}

.contact-page label {
	margin-bottom: 0.5em;
}

@media screen and (max-width: 736px) {
	.contact-page > header {
		padding: 3.5em 2em 2.75em 2em;
	}

	.contact-page .wrapper {
		padding: 2.5em 2em 2.5em 2em;
	}
}

/* --- Inner page header band ------------------------------------------ */

/* The theme reserves 12em/10em here, sized for a hero. Now that the
   banner image actually renders (it was dropped by an invalid gradient),
   that band dominates the fold on content pages. Tighten it. */
#main > header {
	padding: 7em 0 5.5em 0;
}

@media screen and (max-width: 1280px) {
	#main > header {
		padding: 6em 3em 5em 3em;
	}
}

@media screen and (max-width: 736px) {
	#main > header {
		padding: 4.5em 2em 3.5em 2em;
	}
}

/* Footer is 6em/4em sitewide; on the short contact page that padding is
   what tips it into scrolling. */
.is-contact #footer {
	padding: 3em 0 2em 0;
}

.is-contact #footer .copyright {
	margin-top: 1.5em;
}
