/**
 * WordPress layer on top of the portfolio design.
 * Loaded after design.css.
 */

html { color-scheme: dark; }

::selection { background: var(--lime); color: #111; }

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

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link.screen-reader-text:focus {
	position: fixed !important;
	left: 16px;
	top: 16px;
	width: auto;
	height: auto;
	clip: auto;
	margin: 0;
	padding: 10px 14px;
	background: var(--lime);
	color: #111;
	border-radius: 8px;
	z-index: 100000;
	white-space: normal;
}

.admin-bar .skip-link.screen-reader-text:focus { top: 48px; }

button,
input,
textarea,
select { font-family: inherit; }

.menu {
	cursor: pointer;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 12px;
	background: rgba(255, 255, 255, .04);
	color: #fff;
	line-height: 1;
	place-items: center;
	transition: border-color .2s, background .2s, color .2s;
}

.menu:hover,
.menu[aria-expanded="true"] {
	border-color: rgba(199, 243, 107, .75);
	background: rgba(199, 243, 107, .1);
	color: var(--lime);
}

.menu-bars {
	position: relative;
	display: block;
	width: 16px;
	height: 1.5px;
	border-radius: 2px;
	background: currentColor;
}

.menu-bars::before,
.menu-bars::after {
	content: "";
	position: absolute;
	left: 0;
	width: 16px;
	height: 1.5px;
	border-radius: 2px;
	background: currentColor;
	transition: transform .2s, top .2s;
}

.menu-bars::before { top: -6px; }
.menu-bars::after { top: 6px; }

.menu[aria-expanded="true"] .menu-bars { background: transparent; }
.menu[aria-expanded="true"] .menu-bars::before { top: 0; transform: rotate(45deg); }
.menu[aria-expanded="true"] .menu-bars::after { top: 0; transform: rotate(-45deg); }

.custom-logo-link { display: inline-flex; align-items: center; line-height: 0; }
.custom-logo { max-height: 36px; width: auto; }

/* Menus are lists. The design styled anchors directly inside .navlinks. */
.pk-menu {
	display: flex;
	align-items: center;
	gap: 34px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.pk-menu > li { position: relative; display: flex; align-items: center; }

.pk-menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 10px;
}

.pk-menu .sub-menu a {
	display: block;
	height: auto;
	padding: 10px 12px;
	border-radius: 8px;
	white-space: normal;
}

.pk-menu .sub-menu a:hover { background: rgba(199, 243, 107, .06); }

.submenu-toggle {
	display: none;
	margin-left: 8px;
	width: 28px;
	height: 28px;
	place-items: center;
	border-radius: 50%;
	border: 1px solid var(--line);
	background: transparent;
	color: var(--text);
	cursor: pointer;
	line-height: 1;
}

.pk-menu > .current-menu-item > a,
.pk-menu > .current-menu-ancestor > a,
.pk-menu > .current-menu-parent > a { color: var(--lime); }

.nav { height: 64px; }
.brand { font-size: 26px; }

/* design.css fixes every <header>. Post, page, and comment headers must stay in
   the document flow, or they cover the navigation bar. */
header:not(#header) {
	position: static;
	z-index: auto;
	top: auto;
	left: auto;
	width: auto;
	max-width: none;
	border: 0;
	background: transparent;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}

#header { z-index: 80; }

/* The design paints .nav-cta, including on hover. That class must stay on the
   link. If it lands on the list item, the full-height row turns green. */
.pk-menu > li.nav-cta,
.pk-menu > li.nav-cta:hover,
.pk-menu > li.nav-cta:focus-within {
	height: auto;
	align-self: center;
	border: 0 !important;
	padding: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: inherit !important;
}

.pk-menu > li.nav-cta > a,
.pk-menu a.nav-cta {
	display: inline-flex;
	align-items: center;
	height: auto !important;
	line-height: 1;
	border: 1px solid var(--line);
	padding: 10px 16px;
	border-radius: 30px;
	background: transparent;
	color: var(--text) !important;
}

.pk-menu > li.nav-cta > a:hover,
.pk-menu a.nav-cta:hover {
	background: var(--lime) !important;
	color: #111 !important;
	border-color: var(--lime) !important;
}

@media (min-width: 1041px) {
	.pk-menu { height: 64px; align-items: center; }
	.pk-menu > li { height: 64px; align-items: center; }
	.pk-menu > li > a {
		display: inline-flex;
		align-items: center;
		height: 64px;
		line-height: 1;
		white-space: nowrap;
	}
	.pk-menu > li.nav-cta { height: auto; }
	.pk-menu > li.nav-cta > a,
	.pk-menu > li > a.nav-cta {
		height: auto !important;
	}
	.navlinks { justify-content: flex-end; }
	.pk-menu .sub-menu {
		display: none;
		position: absolute;
		top: 100%;
		left: 50%;
		transform: translateX(-50%);
		min-width: 250px;
		background: #0d0f13;
		border: 1px solid var(--line);
		border-radius: 14px;
		z-index: 70;
	}
	.pk-menu .sub-menu .sub-menu {
		top: 0;
		left: calc(100% - 8px);
		transform: none;
	}
	.pk-menu .menu-item-has-children:hover > .sub-menu,
	.pk-menu .menu-item-has-children:focus-within > .sub-menu { display: grid; }
}

@media (min-width: 1041px) and (max-width: 1280px) {
	.pk-menu { gap: 18px; }
}

@media (max-width: 1040px) {
	.menu { display: grid; }
	.navlinks {
		display: none;
		position: absolute;
		top: 64px;
		left: 0;
		width: 100%;
		padding: 8px 0 18px;
		background: #0d0f13;
		border-bottom: 1px solid var(--line);
		max-height: calc(100svh - 90px);
		overflow: auto;
		z-index: 60;
	}
	.navlinks.open { display: block; }
	.pk-menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		width: 100%;
	}
	.pk-menu > li,
	.pk-menu li {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: flex-start;
		width: 100%;
	}
	.pk-menu > li > a,
	.pk-menu .sub-menu a {
		display: flex;
		align-items: center;
		flex: 1 1 auto;
		width: auto;
		min-width: 0;
		height: auto;
		padding: 14px 12px 14px 22px;
	}
	.pk-menu > li > a.nav-cta {
		flex: 0 0 auto;
		width: auto !important;
		margin: 12px 22px;
	}
	.pk-menu .sub-menu {
		position: static;
		left: auto;
		transform: none;
		display: none;
		flex: 1 0 100%;
		width: 100%;
		min-width: 100%;
		margin: 0;
		padding: 0;
		background: rgba(255, 255, 255, .03);
		border: 0;
		border-radius: 0;
	}
	.pk-menu .sub-menu a { padding-left: 36px; }
	.pk-menu .sub-menu .sub-menu a { padding-left: 50px; }
	.menu-item-has-children.open > .sub-menu { display: grid; gap: 0; width: 100%; }
	.submenu-toggle {
		display: inline-grid;
		flex: 0 0 32px;
		margin: 0 18px 0 auto;
		align-self: center;
	}
	.menu-item-has-children.open > .submenu-toggle {
		color: var(--lime);
		border-color: rgba(199, 243, 107, .45);
	}
}

@media (max-width: 800px) {
	.navlinks { top: 64px; }
}

.admin-bar header { top: 32px; }
.admin-bar #progress { top: 32px; }

@media (max-width: 782px) {
	.admin-bar header { top: 46px; }
	.admin-bar #progress { top: 46px; }
}

/* Keep the design's scroll fade, and show the page if JavaScript never runs. */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(28px); }
.js .reveal.visible { opacity: 1; transform: translateY(0); }

.project:has(.project-link) { cursor: pointer; }
.project-link { position: absolute; inset: 0; z-index: 3; }

.section-head > div:first-child { min-width: 0; }

@media (max-width: 1000px) {
	.stack-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 800px) {
	.stack-grid,
	.seo-grid { grid-template-columns: 1fr; gap: 22px; }
}

body:not(.pk-front) .site-main { padding-top: 64px; }
body:not(.pk-front) .section { padding-top: 56px; padding-bottom: 88px; }
body:not(.pk-front) .site-main > .section { border-top: 0; }

@media (max-width: 800px) {
	body:not(.pk-front) .site-main { padding-top: 64px; }
}

.elementor-page { padding-top: 64px; }
@media (max-width: 800px) {
	.elementor-page { padding-top: 64px; }
}

.narrow-wrap {
	width: min(820px, calc(100% - 80px));
	margin-inline: auto;
}

@media (min-width: 801px) and (max-width: 1200px) {
	.narrow-wrap { width: min(820px, calc(100% - 64px)); }
}

@media (max-width: 800px) {
	.narrow-wrap { width: calc(100% - 40px); }
}

.page-hero h1,
.archive-section .page-hero h1 {
	font-size: clamp(36px, 5.4vw, 68px);
	line-height: 1.02;
	letter-spacing: -.048em;
	margin: 0 0 14px;
}

.display-title {
	font-size: clamp(48px, 8vw, 92px);
	line-height: .92;
	letter-spacing: -.055em;
	margin: 0 0 18px;
}

.entry-meta { margin: 0 0 8px; }
.entry-meta a:hover { color: var(--lime); }

.pk-breadcrumbs { margin: 0 0 16px; }
.pk-breadcrumbs a { color: var(--muted); }
.pk-breadcrumbs a:hover { color: var(--lime); }

.entry-media { margin: 8px 0 32px; }
.entry-media img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 16px;
	border: 1px solid var(--line);
}
.entry-media figcaption,
.entry-content figcaption,
.wp-caption-text,
.wp-element-caption {
	margin-top: 8px;
	color: var(--muted);
	font: 11px "DM Mono", monospace;
	letter-spacing: .04em;
}

.entry-content {
	font-size: 17px;
	line-height: 1.8;
	color: #c5c7cc;
	overflow-wrap: break-word;
}

.entry-content > *:first-child { margin-top: 0; }

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content pre,
.entry-content table,
.entry-content blockquote { margin: 0 0 1.15em; }

.entry-content h2,
.entry-content h3,
.entry-content h4,
.content-none h2,
.comments-area h2 {
	letter-spacing: -.04em;
	line-height: 1.15;
	color: var(--text);
}

.entry-content h2,
.content-none h2,
.comments-area h2 {
	font-size: clamp(28px, 3vw, 36px);
	margin: 1.45em 0 .5em;
}

.entry-content h3 { font-size: 24px; margin: 1.3em 0 .4em; }
.entry-content h4 { font-size: 18px; margin: 1.2em 0 .35em; }

.entry-content a { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: #d8ff8b; }

.entry-content ul,
.entry-content ol { padding-left: 1.2em; }
.entry-content li { margin: .35em 0; }
.entry-content li::marker { color: var(--lime); }

.entry-content blockquote {
	padding: 2px 0 2px 18px;
	border-left: 2px solid var(--lime);
	color: var(--text);
}

.entry-content img { max-width: 100%; height: auto; border-radius: 12px; }
.entry-content iframe,
.entry-content video,
.entry-content embed { max-width: 100%; }

.entry-content code,
.entry-content kbd {
	font-family: "DM Mono", monospace;
	font-size: .86em;
	background: rgba(255, 255, 255, .06);
	padding: .1em .35em;
	border-radius: 4px;
}

.entry-content pre {
	overflow: auto;
	padding: 18px 20px;
	background: #111318;
	border: 1px solid var(--line);
	border-radius: 12px;
}

.entry-content pre code { background: transparent; padding: 0; }

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.entry-content th,
.entry-content td {
	border-bottom: 1px solid var(--line);
	padding: 10px 12px;
	text-align: left;
	vertical-align: top;
}

.entry-content th { color: var(--text); }

.entry-content .aligncenter { display: block; margin-left: auto; margin-right: auto; }

@media (min-width: 700px) {
	.entry-content .alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 46%; }
	.entry-content .alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 46%; }
	.entry-content::after { content: ""; display: table; clear: both; }
}

.entry-content .gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 10px;
	margin-bottom: 1.4em;
}

.entry-content .gallery-item { margin: 0; }
.entry-content .gallery-icon img { width: 100%; height: 140px; object-fit: cover; }

.entry-content .alignwide {
	width: min(1040px, calc(100vw - 48px));
	max-width: calc(100vw - 48px);
	margin-left: 50%;
	transform: translateX(-50%);
}

.page-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.page-links a,
.page-links > span {
	min-width: 36px;
	height: 36px;
	display: inline-grid;
	place-items: center;
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 0 10px;
}

.tags a,
.entry-tags a {
	font: 9px "DM Mono", monospace;
	padding: 7px 9px;
	border: 1px solid var(--line);
	border-radius: 30px;
	color: #b7bac1;
	text-transform: uppercase;
	letter-spacing: .08em;
	text-decoration: none;
}

.tags a:hover,
.entry-tags a:hover { color: var(--lime); border-color: rgba(199, 243, 107, .45); }
.entry-tags { margin-top: 28px; }

.journal-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}

.journal-more { margin: 36px 0 0; }

.post-card {
	display: flex;
	flex-direction: column;
	min-height: 100%;
	border: 1px solid var(--line);
	border-radius: 16px;
	overflow: hidden;
	background: var(--panel);
	transition: transform .35s, border-color .35s;
}

.post-card:hover { transform: translateY(-7px); border-color: rgba(199, 243, 107, .5); }

.post-card-media {
	display: block;
	height: 210px;
	overflow: hidden;
	background: #151820;
}

.post-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.post-card-media.is-fallback {
	display: grid;
	place-items: center;
	padding: 20px;
	text-align: center;
	background:
		radial-gradient(circle at 50% 45%, rgba(156, 140, 255, .18), transparent 55%),
		linear-gradient(135deg, #171a22, #0d0f13);
	font: 700 28px "Space Grotesk", sans-serif;
	letter-spacing: -.04em;
	color: rgba(255, 255, 255, .88);
}

.post-card-body { padding: 22px 22px 26px; }
.post-card-meta { margin: 0 0 10px; }
.post-card h3 { font-size: 22px; line-height: 1.15; letter-spacing: -.04em; margin: 0 0 8px; }
.post-card h3 a:hover { color: var(--lime); }
.post-card-body > p:not(.mono) {
	margin: 0;
	color: var(--muted);
	font-family: Manrope, sans-serif;
	font-size: 13px;
	line-height: 1.7;
	letter-spacing: 0;
	text-transform: none;
}

@media (max-width: 1000px) {
	.journal-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
	.journal-grid { grid-template-columns: 1fr; }
}

.related-wrap { margin-top: 72px; }

.post-navigation { margin-top: 42px; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.post-navigation a {
	display: flex;
	flex-direction: column;
	gap: 8px;
	height: 100%;
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 16px 18px;
}
.post-navigation .nav-next a { text-align: right; align-items: flex-end; }
.post-navigation .nav-title {
	color: var(--text);
	font-family: "Space Grotesk", sans-serif;
	font-size: 18px;
	letter-spacing: -.03em;
	line-height: 1.25;
	text-transform: none;
}

.pagination { margin-top: 42px; }
.pagination .nav-links,
.pk-search { display: flex; flex-wrap: wrap; gap: 8px; }

.page-numbers {
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--line);
	border-radius: 999px;
	color: #b9bbc1;
	font-family: "DM Mono", monospace;
	font-size: 11px;
}

.page-numbers.current,
.page-numbers:hover {
	background: var(--lime);
	color: #111;
	border-color: var(--lime);
}

.pk-search { max-width: 560px; margin: 8px 0 28px; align-items: center; }
.pk-search input[type="search"] { flex: 1 1 220px; }

@media (max-width: 700px) {
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.post-navigation .nav-next a { text-align: left; align-items: flex-start; }
}

.contact h1 {
	font-family: "Space Grotesk", sans-serif;
	font-size: clamp(58px, 10vw, 130px);
	line-height: .9;
	letter-spacing: -.055em;
	margin: 22px 0 30px;
}

.contact h1 span { color: var(--lime); }
.contact.contact-page { padding-top: 48px; }

.contact-extra,
.pk-form,
.form-notice,
.wpcf7,
.wpforms-container { text-align: left; }

.contact-extra,
.pk-form,
.wpcf7 { max-width: 640px; margin-left: auto; margin-right: auto; }

.contact-extra { margin-top: 28px; }
.pk-form,
.wpcf7 { margin-top: 34px; }

.form-notice {
	max-width: 640px;
	margin: 0 auto 18px;
	padding: 14px 16px;
	border: 1px solid var(--line);
	border-radius: 12px;
}

.form-notice.success { border-color: rgba(199, 243, 107, .5); }
.form-notice.error { border-color: rgba(255, 140, 140, .55); }
.form-notice a { color: var(--lime); }

.pk-form p { margin: 0 0 14px; }

.pk-form label,
.comments-area label,
.wpcf7 label {
	display: block;
	margin-bottom: 6px;
	font-family: "DM Mono", monospace;
	font-size: 10px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--muted);
}

.pk-form input,
.pk-form textarea,
.pk-search input[type="search"],
.comments-area input[type="text"],
.comments-area input[type="email"],
.comments-area input[type="url"],
.comments-area textarea,
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="url"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.post-password-form input[type="password"] {
	width: 100%;
	background: #111318;
	color: var(--text);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 14px 16px;
	font-size: 15px;
}

.pk-form textarea,
.comments-area textarea,
.wpcf7 textarea { min-height: 140px; resize: vertical; }

.pk-form input:focus,
.pk-form textarea:focus,
.pk-search input:focus,
.comments-area input:focus,
.comments-area textarea:focus,
.wpcf7 input:focus,
.wpcf7 textarea:focus {
	outline: none;
	border-color: rgba(199, 243, 107, .65);
}

/* Contact Form 7 loads reCAPTCHA v3 on every page. The badge parks off the
   right edge and only the logo shows, which covers the hero text. */
.grecaptcha-badge {
	visibility: hidden !important;
	pointer-events: none;
}

.recaptcha-note {
	margin: 4px 0 0;
	color: var(--muted);
	font-size: 12px;
	line-height: 1.5;
}

.recaptcha-note a { color: var(--lime); }

.pk-hp {
	position: absolute !important;
	left: -9999px !important;
	height: 0;
	overflow: hidden;
}

input.btn,
button.btn { cursor: pointer; border: 0; }

.comments-wrap { margin-top: 64px; }
.comment-list,
.comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { margin-left: 28px; }
.pk-comment { border-top: 1px solid var(--line); padding: 22px 0; }
.pk-comment-meta { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.pk-comment-meta strong { display: block; color: var(--text); }
.pk-comment-meta a,
.pk-comment-meta time { color: var(--muted); font-size: 12px; }
.pk-comment .avatar { border-radius: 50%; }
.pk-comment-body { color: #c5c7cc; font-size: 15px; line-height: 1.7; }
.pk-comment-body p { margin: 0 0 .8em; }
.pk-comment-body h2,
.pk-comment-body h3 { font-size: 1.15em; margin: .8em 0 .3em; }
.comment-reply-link,
.edit-link a { color: var(--lime); font-size: 12px; font-weight: 700; }
.comment-reply-title { margin-top: 28px; }
.comment-form-cookies-consent { display: flex; gap: 10px; align-items: flex-start; }
.comment-form-cookies-consent input { margin-top: 3px; width: auto; }
.comment-form-cookies-consent label {
	margin: 0;
	text-transform: none;
	letter-spacing: 0;
	font-family: Manrope, sans-serif;
	font-size: 13px;
}
.comment-navigation { margin: 8px 0 20px; }
.comment-navigation .nav-links { display: flex; justify-content: space-between; gap: 12px; }
.comments-closed { color: var(--muted); }

.site-footer { border-top: 1px solid var(--line); }
.site-footer .footer { border-top: 0; }
.footer-links { list-style: none; margin: 0; padding: 0; }

.footer-topics-row {
	width: min(1610px, calc(100% - 80px));
	margin: 0 auto;
	padding: 22px 0 0;
	display: flex;
	gap: 14px 28px;
	align-items: baseline;
}

.footer-topics {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-topics a {
	color: #777d86;
	font: 10px "DM Mono", monospace;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.footer-topics a:hover { color: var(--lime); }

@media (min-width: 801px) and (max-width: 1200px) {
	.footer-topics-row { width: calc(100% - 64px); }
}

@media (max-width: 800px) {
	.footer-topics-row { width: calc(100% - 40px); flex-direction: column; }
	.comment-list .children { margin-left: 14px; }
}

@media (prefers-reduced-motion: reduce) {
	.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Phone hero was a full screen with the copy vertically centered, which left a
   large gap under the menu. Keep the copy just below the bar. */
@media (max-width: 800px) {
	.hero {
		height: auto !important;
		min-height: 0 !important;
		max-height: none !important;
		padding: 86px 0 64px !important;
		justify-content: flex-start !important;
		align-items: stretch !important;
	}
	.hero .availability { margin-bottom: 12px !important; }
	.hero .hero-inner h1 { margin-bottom: 12px !important; }
	.hero .hero-actions { margin-top: 12px !important; }
}

@media print {
	#progress,
	.cursor-glow,
	.marquee,
	.hero-workflow,
	.scroll-cue,
	#header,
	.site-footer { display: none !important; }
	body { background: #fff; color: #111; }
	.hero { min-height: 0 !important; height: auto !important; padding: 0 !important; }
}
