:root {
	--ole-ink: #101722;
	--ole-muted: #5c6877;
	--ole-paper: #f4f7fb;
	--ole-panel: #ffffff;
	--ole-line: #d8e0ea;
	--ole-accent: #66798a;
	--ole-accent-dark: #465563;
	--ole-mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
	--ole-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	/* Rendered height of the sticky header: 76px min-height + inner padding + 1px rule. */
	--ole-head: 81px;
	--ole-home-pad: clamp(24px, 3.5vw, 52px);
}

html {
	scroll-behavior: smooth;
}

body.olerap-site {
	background:
		linear-gradient(rgba(102, 121, 138, .04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(102, 121, 138, .04) 1px, transparent 1px),
		var(--ole-paper);
	background-size: 32px 32px;
	color: var(--ole-ink);
	font-family: var(--ole-sans);
	font-size: 17px;
	line-height: 1.7;
}

.olerap-site a {
	color: var(--ole-accent-dark);
	text-decoration-thickness: .08em;
	text-underline-offset: .18em;
}

.olerap-site a:hover {
	color: var(--ole-accent);
}

.olerap-site a:focus-visible,
.olerap-site button:focus-visible {
	border-radius: 2px;
	outline: 3px solid rgba(102, 121, 138, .32);
	outline-offset: 4px;
}

.olerap-site #masthead {
	background: rgba(244, 247, 251, .92);
	border-bottom: 1px solid var(--ole-line);
	position: sticky;
	top: 0;
	z-index: 50;
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
}

.olerap-site .ast-primary-header-bar {
	background: transparent;
	border: 0;
}

.olerap-site .site-primary-header-wrap {
	min-height: 76px;
}

.olerap-site .site-title a {
	color: var(--ole-ink);
	font-family: var(--ole-mono);
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -.04em;
}

.olerap-site .site-title a::after {
	color: var(--ole-accent);
	content: "_";
}

.olerap-site .main-header-menu > .menu-item > .menu-link {
	color: var(--ole-muted);
	font-family: var(--ole-mono);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .06em;
	padding-inline: 1.1rem;
	text-transform: uppercase;
}

.olerap-site .main-header-menu > .current-menu-item > .menu-link,
.olerap-site .main-header-menu > .menu-item > .menu-link:hover {
	color: var(--ole-accent-dark);
}

.olerap-site .ast-mobile-svg {
	fill: var(--ole-ink);
}

.olerap-site #content > .ast-container {
	display: block;
	max-width: 1240px;
	padding: 0 32px;
}

/* Astra ships inline `.ast-plain-container.ast-no-sidebar #primary{margin:60px 0}`,
   so this override needs to outrank it. */
.olerap-site.ast-plain-container #primary {
	margin: 0;
	width: 100%;
}

.olerap-site .ast-article-single {
	background: transparent;
	padding: 0;
}

.olerap-site.page .entry-header,
.olerap-site .site-footer {
	display: none;
}

.olerap-site .entry-content {
	color: var(--ole-ink);
	margin: 0;
	padding: clamp(52px, 7vw, 104px) 0;
}

.olerap-site .entry-content :is(h1, h2, h3) {
	color: var(--ole-ink);
}

.olerap-site .entry-content h1 {
	font-family: var(--ole-mono);
	font-size: clamp(48px, 7vw, 92px);
	font-weight: 700;
	letter-spacing: -.055em;
	line-height: .98;
	margin: 0 0 24px;
}

.olerap-site .entry-content h2 {
	font-family: var(--ole-mono);
	font-size: clamp(22px, 2.6vw, 34px);
	font-weight: 500;
	letter-spacing: -.045em;
	line-height: 1.2;
	margin: 0 0 28px;
}

.olerap-site .entry-content p {
	margin: 0 0 1.25em;
}

.olerap-site .entry-content img {
	display: block;
	height: auto;
	width: 100%;
}

/* Home */
.olerap-site.home .entry-content {
	padding-block: var(--ole-home-pad);
}

.ole-home-hero {
	align-items: center;
	display: grid;
	gap: clamp(40px, 7vw, 100px);
	grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
}

.ole-home-copy {
	padding-left: 36px;
	position: relative;
}

.ole-home-copy::before {
	background: var(--ole-accent);
	content: "";
	inset: 8px auto 8px 0;
	position: absolute;
	width: 3px;
}

.ole-home-copy::after {
	background:
		radial-gradient(circle, var(--ole-paper) 0 3px, var(--ole-accent) 4px 7px, transparent 8px)
		center top / 18px 18px no-repeat,
		radial-gradient(circle, var(--ole-paper) 0 3px, var(--ole-accent) 4px 7px, transparent 8px)
		center bottom / 18px 18px no-repeat;
	content: "";
	inset: 0 auto 0 -7px;
	position: absolute;
	width: 18px;
}

.ole-home-copy > p {
	font-size: 16px;
	max-width: 58ch;
}

/* Terminal-style caret: the sentence's full stop blinks, matching the site-title "_". */
.ole-caret {
	animation: ole-blink 1.1s steps(1, end) infinite;
	color: var(--ole-accent);
}

@keyframes ole-blink {
	50% {
		opacity: 0;
	}
}

.ole-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 30px;
}

/* wpautop leaves <br> between the buttons; as flex items they add phantom width. */
.ole-actions br {
	display: none;
}

.ole-actions a {
	background: rgba(255, 255, 255, .7);
	border: 1px solid var(--ole-line);
	box-shadow: inset 3px 0 0 var(--ole-accent);
	color: var(--ole-ink);
	font-family: var(--ole-mono);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .01em;
	padding: 10px 16px 10px 18px;
	text-decoration: none;
}

.ole-actions a:hover {
	background: var(--ole-ink);
	border-color: var(--ole-ink);
	box-shadow: inset 3px 0 0 var(--ole-accent);
	color: #fff;
}

.ole-home-visual {
	margin: 0 18px 18px 0;
}

.ole-home-visual img {
	aspect-ratio: 2 / 3;
	box-shadow: 18px 18px 0 var(--ole-accent);
	object-fit: cover;
	/* Keep the portrait crop from pushing the hero copy below the fold. */
	max-height: max(360px, calc(100vh - var(--ole-head) - 2 * var(--ole-home-pad) - 18px));
	max-height: max(360px, calc(100svh - var(--ole-head) - 2 * var(--ole-home-pad) - 18px));
}

/* About */
.ole-about-layout {
	align-items: start;
	display: grid;
	gap: clamp(48px, 7vw, 100px);
	grid-template-areas: "copy visual";
	grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
}

.ole-about-copy {
	grid-area: copy;
	padding-left: 34px;
	position: relative;
}

.ole-about-copy::before {
	background: var(--ole-line);
	content: "";
	inset: 140px auto 10px 6px;
	position: absolute;
	width: 1px;
}

.ole-timeline {
	margin-top: 12px;
}

.ole-role {
	border-top: 1px solid var(--ole-line);
	padding: 24px 0 20px 18px;
	position: relative;
}

.ole-role::before {
	background: var(--ole-panel);
	border: 3px solid var(--ole-accent);
	border-radius: 50%;
	content: "";
	height: 13px;
	left: -34px;
	position: absolute;
	top: 29px;
	width: 13px;
}

.olerap-site .entry-content .ole-role h3 {
	font-family: var(--ole-mono);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.45;
	margin: 0 0 6px;
}

.ole-role > p {
	font-size: 15px;
	margin-bottom: 0;
}

.ole-role .ole-period {
	color: var(--ole-muted);
	font-family: var(--ole-mono);
	font-size: 12px;
	letter-spacing: .03em;
	margin-bottom: 12px;
	text-transform: uppercase;
}

.ole-about-visual {
	grid-area: visual;
	margin: 0 14px 14px 0;
	position: sticky;
	top: 112px;
}

.ole-about-visual img {
	aspect-ratio: 3 / 4;
	box-shadow: 14px 14px 0 var(--ole-accent);
	object-fit: cover;
}

/* Contact */
.ole-contact-layout {
	align-items: center;
	display: grid;
	gap: clamp(48px, 7vw, 100px);
	grid-template-columns: minmax(0, 1fr) minmax(300px, 1fr);
}

.ole-contact-copy .ole-intro {
	font-size: clamp(19px, 2vw, 24px);
	margin-bottom: 30px;
}

.ole-contact-list {
	margin: 0;
}

.ole-contact-list > div {
	border-top: 1px solid var(--ole-line);
	padding: 17px 0;
}

.ole-contact-list dt {
	color: var(--ole-ink);
	font-family: var(--ole-mono);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	margin-bottom: 5px;
	text-transform: uppercase;
}

.ole-contact-list dd {
	margin: 0;
}

.ole-contact-visual {
	margin: 0 14px 14px 0;
}

.ole-contact-visual img {
	aspect-ratio: 3 / 4;
	box-shadow: 14px 14px 0 var(--ole-accent);
	object-fit: cover;
}

.ole-contact-visual figcaption {
	color: var(--ole-muted);
	font-family: var(--ole-mono);
	font-size: 12px;
	margin-top: 12px;
	text-align: center;
}

@media (max-width: 921px) {
	:root {
		--ole-head: 71px;
	}

	.olerap-site #content > .ast-container {
		padding-inline: 22px;
	}

	.olerap-site .site-primary-header-wrap {
		min-height: 66px;
		padding-inline: 22px;
	}
}

@media (max-width: 767px) {
	body.olerap-site {
		font-size: 16px;
	}

	.olerap-site .entry-content,
	.olerap-site.home .entry-content {
		padding-block: 42px 66px;
	}

	.olerap-site .entry-content h1 {
		font-size: clamp(44px, 15vw, 64px);
	}

	.ole-home-hero,
	.ole-about-layout,
	.ole-contact-layout {
		display: flex;
		flex-direction: column;
	}

	.ole-home-copy {
		padding-left: 26px;
	}

	.ole-home-visual {
		display: none;
	}

	.ole-about-visual {
		margin: 0 9px 34px 0;
		position: static;
	}

	.ole-about-visual img {
		box-shadow: 9px 9px 0 var(--ole-accent);
		max-height: 72vh;
		object-fit: cover;
		object-position: center 30%;
	}

	.ole-about-copy {
		padding-left: 26px;
	}

	.ole-role::before {
		left: -26px;
	}

	.ole-contact-visual {
		margin-right: 9px;
	}

	.ole-contact-visual img {
		box-shadow: 9px 9px 0 var(--ole-accent);
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.ole-caret {
		animation: none;
	}
}
