:root {
	--ra-ink: #1F2622;
	--ra-stone: #55625B;
	--ra-acacia: #2E4A3A;
	--ra-acacia-deep: #22382C;
	--ra-accent: #2E4A3A;
	--ra-grass: #B8893B;
	--ra-mist: #E9EEEA;
	--ra-paper: #FFFFFF;
	--ra-rule: #CBD5CE;
	--ra-serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
	--ra-sans: "Instrument Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
	--ra-measure: 68ch;
	--ra-wrap: 1180px;
	--ra-radius: 16px;
}
.dark-mode {
	--ra-ink: #F2F5F1;
	--ra-stone: #B5C2B9;
	--ra-accent: #A9C7B4;
	--ra-mist: #2F3531;
	--ra-paper: #262626;
	--ra-rule: #465049;
}

/* Base. Headings, links and quotes undo the theme's site-wide element styles. */
.ra-home, .ra-footer { font-family: var(--ra-serif); font-size: 1.125rem; line-height: 1.65; overflow-wrap: break-word; }
.ra-home { background: var(--ra-paper); color: var(--ra-ink); }
main.ra-home :is(h1, h2, h3) { color: inherit; font-family: inherit; }
main.ra-home a { color: inherit; }
main.ra-home a:hover { color: var(--ra-accent); }
.ra-home a, .ra-footer a { text-decoration: underline; text-decoration-color: var(--ra-grass); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.ra-home img { max-width: 100%; height: auto; display: block; }
.ra-home blockquote::before, .ra-home article::after, .ra-home .wp-block-button__link::before { content: none; }
.ra-home :focus-visible, .ra-footer :focus-visible { outline: 3px solid var(--ra-grass); outline-offset: 3px; }

.ra-wrap { width: min(100% - 3rem, var(--ra-wrap)); margin-inline: auto; }

/* Hero */
.ra-hero { padding-block: clamp(1.75rem, 3.5vw, 3rem) clamp(2.5rem, 6vw, 5rem); }
/* Name and photo start on the same line. */
.ra-hero > .ra-wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.ra-home .ra-hero h1 {
	margin: 0;
	font-size: clamp(3.4rem, 9vw, 7.25rem);
	font-weight: 500;
	line-height: 0.92;
	letter-spacing: -0.035em;
	font-variation-settings: "opsz" 72;
}
.ra-home .ra-descriptor {
	margin: 1.1rem 0 0;
	font-family: var(--ra-sans);
	font-size: clamp(1.05rem, 1.8vw, 1.3rem);
	font-weight: 500;
	color: var(--ra-accent);
}
.ra-home .ra-lead { margin: 1.6rem 0 0; max-width: 34em; font-size: 1.2rem; line-height: 1.6; }
.ra-home .ra-lead-2 { margin-top: 0.9rem; color: var(--ra-stone); font-size: 1.1rem; }
.ra-home .ra-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.ra-actions .wp-block-button { margin: 0; }
.ra-home .ra-actions .wp-block-button__link {
	display: inline-block;
	font-family: var(--ra-sans);
	font-size: 0.98rem;
	font-weight: 600;
	line-height: inherit;
	text-decoration: none;
	padding: 0.85rem 1.35rem;
	border: 2px solid var(--ra-accent);
	border-radius: 8px;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.ra-home .ra-btn-primary .wp-block-button__link { background: var(--ra-acacia); border-color: var(--ra-acacia); color: #fff; }
.ra-home .ra-btn-primary .wp-block-button__link:hover { background: var(--ra-acacia-deep); color: #fff; }
.ra-home .ra-btn-secondary .wp-block-button__link { background: transparent; color: var(--ra-accent); }
.ra-home .ra-btn-secondary .wp-block-button__link:hover { background: var(--ra-mist); }

.ra-home .wp-block-image { margin: 0; }
.ra-home .ra-hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--ra-acacia); }
/* Rounded photos with a soft shadow. The hero photo also gets an offset panel for depth. */
.ra-home .wp-block-image img { border-radius: var(--ra-radius); box-shadow: 0 1rem 2rem -1.25rem rgba(31, 38, 34, 0.35); }
.ra-home .ra-hero-photo img {
	max-height: min(620px, 78vh);
	box-shadow:
		1.1rem 1.1rem 0 var(--ra-mist),
		0 1.5rem 3rem -1.5rem rgba(31, 38, 34, 0.45);
}
.ra-home .ra-hero-photo figcaption { padding-inline-start: 0.25rem; }
.ra-home .wp-block-image figcaption { margin: 0.6rem 0 0; font-family: var(--ra-sans); font-size: 0.88rem; color: var(--ra-stone); text-align: start; }
.ra-home .ra-hero-photo figcaption { margin-top: 0.7rem; }

/* Shared section rhythm */
.ra-section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.ra-section.ra-tight { padding-top: 0; }
.ra-home .ra-section h2 {
	margin: 0;
	font-size: clamp(1.9rem, 3.4vw, 2.6rem);
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: -0.02em;
}
/* Short gold rule above each section heading. */
.ra-home .ra-section h2::before {
	content: "";
	display: block;
	width: 2.5rem;
	height: 3px;
	margin-bottom: 1.1rem;
	border-radius: 3px;
	background: var(--ra-grass);
}
.ra-home .ra-section-intro { margin: 1rem 0 0; max-width: var(--ra-measure); color: var(--ra-stone); }
.ra-split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 5vw, 5rem); }
.ra-split > :only-child { grid-column: 1 / -1; }
/* The heading column stays in view while the longer list beside it scrolls. */
@media (min-width: 861px) {
	.ra-split > :first-child:not(:only-child) {
		position: sticky;
		top: calc(2rem + var(--wp-admin--admin-bar--height, 0px));
		align-self: start;
	}
}
.ra-home a { transition: color 0.2s ease, text-decoration-color 0.2s ease; }
.ra-home .ra-more { font-family: var(--ra-sans); font-size: 0.95rem; font-weight: 600; }

/* Mission band */
.ra-mission { background: var(--ra-acacia); color: #F2F5F1; }
.ra-home .ra-mission h2 { max-width: 18em; font-size: clamp(2rem, 4.2vw, 3.2rem); font-style: italic; font-weight: 400; }
.ra-home .ra-mission p { margin: 1.4rem 0 0; max-width: var(--ra-measure); font-size: 1.18rem; }
main.ra-home .ra-mission a { color: #fff; }
.ra-home .ra-story { max-width: 46rem; }
.ra-home .ra-mission .ra-close { font-style: italic; font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin-top: 1.8rem; }
.ra-home .ra-mission .ra-more { font-size: 0.95rem; }

/* Projects */
.ra-project { padding-block: 1.8rem; border-top: 1px solid var(--ra-rule); }
.ra-project:last-child { border-bottom: 1px solid var(--ra-rule); }
.ra-home .ra-project h3 { margin: 0; font-size: 1.6rem; font-weight: 500; letter-spacing: -0.01em; }
.ra-home .ra-project p { margin: 0.6rem 0 0; max-width: var(--ra-measure); }
.ra-home .ra-project .ra-more { margin-top: 0.9rem; }

/* Latest essays */
.ra-writing-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.ra-home .ra-writing-head .ra-more { margin: 0; }
.ra-home .ra-posts { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(2rem, 4vw, 4rem); margin: 2rem 0 0; }
.ra-home .ra-posts > li { margin: 0; padding-block: 1.6rem; border-top: 1px solid var(--ra-rule); }
.ra-posts .wp-block-post-date { font-family: var(--ra-sans); font-size: 0.88rem; color: var(--ra-stone); }
.ra-home .ra-posts h3 { margin: 0.35rem 0 0; font-size: 1.4rem; font-weight: 500; line-height: 1.25; letter-spacing: -0.01em; }
.ra-home .ra-posts h3 a { text-decoration: none; }
.ra-home .ra-posts h3 a:hover { text-decoration: underline; text-decoration-color: var(--ra-grass); }
.ra-home .ra-posts .wp-block-post-excerpt { margin: 0.5rem 0 0; color: var(--ra-stone); }
.ra-home .ra-posts .wp-block-post-excerpt p { margin: 0; }

/* Philanthropy */
.ra-impact { background: var(--ra-mist); }
.ra-impact-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: end; }
.ra-home .ra-impact-head p { margin: 1rem 0 0; max-width: var(--ra-measure); }
.ra-home .ra-impact-quote { margin: 0; padding: 0 0 0 1.4rem; border: 0; border-left: 3px solid var(--ra-grass); }
.ra-home .ra-impact-quote p { margin: 0; font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-style: italic; line-height: 1.4; }
.ra-home .ra-impact-quote cite { display: block; margin-top: 0.6rem; font-family: var(--ra-sans); font-size: 0.9rem; font-style: normal; color: var(--ra-stone); }

.ra-feature {
	display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center;
	margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--ra-rule);
}
.ra-home .ra-feature img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--ra-acacia); }

.ra-home .ra-org h3 { margin: 0; font-size: 1.5rem; font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; }
.ra-home .ra-feature .ra-org h3 { font-size: clamp(1.7rem, 2.8vw, 2.1rem); }
.ra-home .ra-org p { margin: 0.75rem 0 0; max-width: var(--ra-measure); }
.ra-home .ra-org .ra-role { margin: 0.4rem 0 0; font-family: var(--ra-sans); font-size: 0.92rem; font-weight: 600; color: var(--ra-accent); }

.ra-orgs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(2rem, 4vw, 4rem); margin-top: clamp(2rem, 4vw, 3rem); }
.ra-orgs > .ra-org { padding-block: 1.7rem; border-top: 1px solid var(--ra-rule); }
.ra-home .ra-impact-more { margin: 1.5rem 0 0; font-family: var(--ra-sans); font-size: 0.95rem; font-weight: 600; }

/* About */
.ra-about .ra-split { align-items: start; }
.ra-home .ra-headshot img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.ra-home .ra-about p { margin: 1.1rem 0 0; max-width: var(--ra-measure); }

/* Writing themes */
.ra-list-item { padding-block: 1.3rem; border-top: 1px solid var(--ra-rule); }
.ra-list-item:last-child { border-bottom: 1px solid var(--ra-rule); }
.ra-home .ra-list-item h3 { margin: 0; font-size: 1.3rem; font-weight: 500; }
.ra-home .ra-list-item p { margin: 0.45rem 0 0; max-width: var(--ra-measure); }
.ra-home .ra-list-item .ra-more { font-size: 0.92rem; }

/* FAQ */
.ra-faq-list { margin-top: 1.5rem; }
.ra-faq-item { padding-block: 1.4rem; border-top: 1px solid var(--ra-rule); }
.ra-home .ra-faq-item h3 { margin: 0; font-size: 1.3rem; font-weight: 500; }
.ra-home .ra-faq-item p { margin: 0.5rem 0 0; max-width: var(--ra-measure); }

/* Closing quote */
.ra-quote { padding-block: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--ra-rule); }
.ra-home .ra-closing { margin: 0 auto; padding: 0; border: 0; max-width: 40rem; text-align: center; }
.ra-home .ra-closing p { margin: 0; font-size: clamp(1.4rem, 2.6vw, 1.85rem); font-style: italic; line-height: 1.45; }
.ra-home .ra-closing cite { display: block; margin-top: 1rem; font-family: var(--ra-sans); font-size: 0.95rem; font-style: normal; color: var(--ra-stone); }
.ra-home .ra-invite { margin: 2.2rem auto 0; max-width: 40rem; text-align: center; font-family: var(--ra-sans); font-size: 1rem; }

/* Footer */
.ra-footer { background: var(--ra-acacia-deep); color: #DCE4DE; font-family: var(--ra-sans); font-size: 0.95rem; }
.ra-footer > .ra-wrap { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2.5rem; padding-block: 3.5rem 2rem; }
.ra-footer p { margin: 0.4rem 0 0; }
.ra-footer .ra-footer-name { margin: 0; font-family: var(--ra-serif); font-size: 1.5rem; color: #fff; }
.ra-footer .ra-footer-title { margin: 0 0 0.6rem; font-weight: 600; color: #fff; }
.ra-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
footer.ra-footer a { color: #DCE4DE; text-decoration-color: rgba(184, 137, 59, 0.7); }
footer.ra-footer a:hover { color: #fff; }
.ra-footer .ra-legal { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 1.4rem; font-size: 0.85rem; color: #B5C2B9; }

/* Responsive */
@media (max-width: 860px) {
	.ra-split, .ra-home .ra-posts, .ra-impact-head, .ra-feature, .ra-orgs { grid-template-columns: 1fr; }
	.ra-home .ra-headshot { max-width: 18rem; }
	/* Footer: name on top, the two link lists side by side. */
	.ra-footer > .ra-wrap { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
	.ra-footer > .ra-wrap > :first-child { grid-column: 1 / -1; }
}
/* Below laptop width the hero stacks, so the text is not squeezed into a narrow column. */
@media (max-width: 900px) {
	.ra-hero > .ra-wrap { grid-template-columns: 1fr; }
	.ra-home .ra-hero-photo img { aspect-ratio: 16 / 10; }
}
@media (max-width: 600px) {
	.ra-wrap { width: min(100% - 2.5rem, var(--ra-wrap)); }
	.ra-home .ra-hero h1 { font-size: clamp(2.75rem, 13vw, 3.4rem); }
	/* Full-width, equal buttons are easier to tap. */
	.ra-home .ra-actions { flex-direction: column; }
	.ra-home .ra-actions .wp-block-button, .ra-home .ra-actions .wp-block-button__link { width: 100%; text-align: center; }
	.ra-home .ra-hero-photo img { box-shadow: 0.6rem 0.6rem 0 var(--ra-mist), 0 1rem 2rem -1rem rgba(31, 38, 34, 0.45); }
	:root { --ra-radius: 12px; }
}
@media (prefers-reduced-motion: reduce) {
	* { scroll-behavior: auto !important; transition: none !important; }
}
