/* Cypress Bend. Quiet, local, text first. */

@font-face {
	font-family: "Source Serif 4";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("/fonts/source-serif-4-v14-latin-600.woff2") format("woff2");
}

@font-face {
	font-family: "Source Sans 3";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("/fonts/source-sans-3-v19-latin-regular.woff2") format("woff2");
}

@font-face {
	font-family: "Source Sans 3";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("/fonts/source-sans-3-v19-latin-italic.woff2") format("woff2");
}

@font-face {
	font-family: "Source Sans 3";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("/fonts/source-sans-3-v19-latin-600.woff2") format("woff2");
}

:root {
	/* Palette drawn from Cypress Creek */
	--cypress: #1f3b2c;      /* deep cypress green */
	--cypress-dark: #16291f;
	--water: #23606b;        /* clear spring water blue */
	--limestone: #e8e2d4;    /* pale limestone */
	--paper: #faf7f0;        /* warm off white */
	--ink: #26251f;
	--ink-soft: #4c4a41;
}

* {
	box-sizing: border-box;
}

html {
	font-size: 19px;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: "Source Sans 3", Georgia, serif;
	line-height: 1.65;
}

.wrap {
	max-width: 42rem;
	margin: 0 auto;
	padding: 0 1.25rem;
}

/* Header and navigation */

header {
	border-bottom: 1px solid var(--limestone);
	padding: 1.5rem 0 1.25rem;
}

.wordmark {
	font-family: "Source Serif 4", Georgia, serif;
	font-weight: 600;
	font-size: 1.35rem;
	color: var(--cypress);
	text-decoration: none;
	letter-spacing: 0.01em;
}

nav {
	margin-top: 0.9rem;
}

nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.75rem;
}

nav a {
	display: inline-block;
	padding: 0.35rem 0;
	color: var(--ink-soft);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.95rem;
}

nav a:hover,
nav a:focus-visible {
	color: var(--water);
	text-decoration: underline;
	text-underline-offset: 4px;
}

nav a[aria-current="page"] {
	color: var(--cypress);
	border-bottom: 2px solid var(--cypress);
}

/* Main content */

main {
	padding: 2.5rem 0 3rem;
}

h1 {
	font-family: "Source Serif 4", Georgia, serif;
	font-weight: 600;
	font-size: 1.9rem;
	line-height: 1.25;
	color: var(--cypress-dark);
	margin: 0 0 1.25rem;
}

h2 {
	font-family: "Source Serif 4", Georgia, serif;
	font-weight: 600;
	font-size: 1.3rem;
	line-height: 1.3;
	color: var(--cypress-dark);
	margin: 2.25rem 0 0.75rem;
}

p {
	margin: 0 0 1.15rem;
}

ul.plain {
	padding-left: 1.3rem;
	margin: 0 0 1.15rem;
}

ul.plain li {
	margin-bottom: 0.6rem;
}

a {
	color: var(--water);
	text-decoration: underline;
	text-underline-offset: 3px;
}

a:hover,
a:focus-visible {
	color: var(--cypress);
}

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

/* Page links at the bottom of Home */

.page-links {
	margin-top: 2rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 2rem;
}

.page-links a {
	font-weight: 600;
}

/* Founder photo */

.founder-photo {
	width: 340px;
	max-width: 100%;
	margin: 0 0 1.5rem;
}

.founder-photo img {
	width: 100%;
	height: auto;
	display: block;
	border: 1px solid var(--limestone);
}

/* Contact email, large and obvious */

.email-link {
	display: inline-block;
	font-family: "Source Serif 4", Georgia, serif;
	font-weight: 600;
	font-size: 1.35rem;
	margin: 0.5rem 0 1.25rem;
	word-break: break-all;
}

/* Footer */

footer {
	border-top: 1px solid var(--limestone);
	padding: 1.5rem 0 2.5rem;
	font-size: 0.95rem;
	color: var(--ink-soft);
}

footer a {
	color: var(--water);
}

@media (max-width: 480px) {
	html {
		font-size: 18px;
	}

	h1 {
		font-size: 1.6rem;
	}
}
