:root {
	--naplee-reading-measure: 72ch;
	--naplee-hairline: 1px solid var(--wp--preset--color--border);
}

html {
	scroll-behavior: smooth;
}

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body::before {
	background:
		linear-gradient(90deg, transparent 49.9%, rgba(255, 255, 255, 0.018) 50%, transparent 50.1%),
		radial-gradient(circle at 15% 0%, rgba(210, 181, 121, 0.05), transparent 32rem);
	content: "";
	inset: 0;
	pointer-events: none;
	position: fixed;
	z-index: -1;
}

a {
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 4px;
}

.site-header {
	border-bottom: var(--naplee-hairline);
	padding-bottom: 1.5rem;
	padding-top: 1.5rem;
}

.brand-lockup {
	gap: 0.8rem !important;
}

.brand-lockup .wp-block-site-title {
	font-size: 1.35rem;
	letter-spacing: -0.03em;
	margin: 0;
}

.brand-lockup .wp-block-site-title a {
	color: var(--wp--preset--color--text);
	text-decoration: none;
}

.brand-kicker,
.eyebrow,
.section-index,
.post-meta-line {
	color: var(--wp--preset--color--muted);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.brand-kicker {
	border-left: var(--naplee-hairline);
	margin: 0;
	padding-left: 0.8rem;
}

.hero {
	align-items: end;
	border-bottom: var(--naplee-hairline);
	min-height: min(64vh, 680px);
	padding-bottom: clamp(3.5rem, 8vw, 7rem);
	padding-top: clamp(4rem, 9vw, 8rem);
}

.hero h1 {
	letter-spacing: -0.055em;
	margin-bottom: 1.5rem;
	max-width: 12ch;
}

.hero-copy {
	color: var(--wp--preset--color--muted);
	font-size: clamp(1rem, 1.5vw, 1.18rem);
	line-height: 1.8;
	max-width: 38rem;
}

.text-link-row {
	gap: 1.6rem !important;
	margin-top: 2rem;
}

.text-link-row a {
	font-size: 0.85rem;
	font-weight: 700;
}

.gateway-grid {
	border-bottom: var(--naplee-hairline);
	gap: 0 !important;
	margin-bottom: 0;
}

.gateway-card {
	border-right: var(--naplee-hairline);
	min-height: 18rem;
	padding: clamp(1.5rem, 3vw, 2.75rem);
	position: relative;
	transition: background-color 160ms ease;
}

.gateway-card:last-child {
	border-right: 0;
}

.gateway-card:hover {
	background: var(--wp--preset--color--surface);
}

.gateway-card h2 {
	font-size: clamp(1.45rem, 2.5vw, 2.15rem);
	margin-bottom: 1.5rem;
	margin-top: 4rem;
}

.gateway-card p {
	color: var(--wp--preset--color--muted);
	max-width: 28rem;
}

.gateway-card .gateway-link a::after {
	content: "";
	inset: 0;
	position: absolute;
}

.gateway-card .gateway-link a:focus-visible::after {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: -4px;
}

.home-section,
.archive-shell,
.writing-shell,
.work-shell,
.world-shell {
	border-bottom: var(--naplee-hairline);
	padding-bottom: clamp(4rem, 7vw, 7rem);
	padding-top: clamp(4rem, 7vw, 7rem);
}

.section-heading {
	align-items: baseline;
	border-bottom: var(--naplee-hairline);
	margin-bottom: 0;
	padding-bottom: 1rem;
}

.section-heading h2 {
	font-size: clamp(1.6rem, 3vw, 2.6rem);
	margin: 0;
}

.essay-list,
.project-list,
.archive-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.essay-list > li,
.project-list > li {
	border-bottom: var(--naplee-hairline);
	margin: 0;
	padding: 2rem 0;
}

.essay-list .wp-block-post-title,
.project-list .wp-block-post-title {
	font-size: clamp(1.15rem, 2vw, 1.65rem);
	margin: 0 0 0.85rem;
}

.essay-list .wp-block-post-title a,
.project-list .wp-block-post-title a {
	color: var(--wp--preset--color--text);
	text-decoration: none;
}

.essay-list .wp-block-post-excerpt,
.project-list .wp-block-post-excerpt {
	color: var(--wp--preset--color--muted);
	margin-top: 0.8rem;
	max-width: 50rem;
}

.essay-list .wp-block-post-excerpt__more-link,
.project-list .wp-block-post-excerpt__more-link {
	display: none;
}

.post-header {
	border-bottom: var(--naplee-hairline);
	padding-bottom: clamp(2.5rem, 6vw, 5rem);
	padding-top: clamp(4rem, 9vw, 8rem);
}

.post-header .wp-block-post-title {
	font-size: clamp(2.2rem, 6vw, 5.3rem);
	letter-spacing: -0.055em;
	max-width: 18ch;
}

.post-deck {
	color: var(--wp--preset--color--muted);
	font-size: clamp(1rem, 1.6vw, 1.25rem);
	line-height: 1.75;
	max-width: 46rem;
}

.reading-column {
	max-width: var(--naplee-reading-measure);
	padding-bottom: clamp(4rem, 8vw, 8rem);
	padding-top: clamp(3rem, 7vw, 6rem);
}

.reading-column > p:first-of-type::first-letter {
	color: var(--wp--preset--color--accent);
	float: left;
	font-family: var(--wp--preset--font-family--ui);
	font-size: 4.2rem;
	font-weight: 650;
	line-height: 0.88;
	margin-right: 0.55rem;
	margin-top: 0.35rem;
}

.reading-column blockquote {
	border-left: 2px solid var(--wp--preset--color--accent);
	color: var(--wp--preset--color--text);
	font-size: 1.12em;
	margin: 3rem 0;
	padding-left: 1.5rem;
}

.reading-column figcaption {
	color: var(--wp--preset--color--muted);
	font-family: var(--wp--preset--font-family--ui);
	font-size: 0.75rem;
}

.related-reading {
	border-top: var(--naplee-hairline);
	margin-top: 4rem;
	padding-top: 2.5rem;
}

.related-reading h2,
.archive-module h2 {
	font-size: 1rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.related-reading ul,
.archive-module ul,
.world-children {
	list-style: none;
	margin: 0;
	padding: 0;
}

.related-reading li,
.archive-module li,
.world-children li {
	border-bottom: var(--naplee-hairline);
	padding: 0.9rem 0;
}

.related-reading a,
.archive-module a,
.world-children a {
	color: var(--wp--preset--color--text);
	text-decoration: none;
}

.project-card-grid,
.world-card-grid,
.archive-grid {
	display: grid;
	gap: 0;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: 0;
}

.project-card,
.world-card,
.archive-module {
	border-bottom: var(--naplee-hairline);
	border-right: var(--naplee-hairline);
	padding: clamp(1.5rem, 3vw, 2.5rem);
}

.project-card:nth-child(2n),
.world-card:nth-child(2n),
.archive-module:nth-child(2n) {
	border-right: 0;
}

.project-card h3,
.world-card h3 {
	font-size: clamp(1.25rem, 2vw, 1.75rem);
	margin-bottom: 0.8rem;
}

.project-card h3 a,
.world-card h3 a {
	color: var(--wp--preset--color--text);
	text-decoration: none;
}

.project-card p,
.world-card p {
	color: var(--wp--preset--color--muted);
}

.empty-state {
	color: var(--wp--preset--color--muted);
	padding: 2rem 0;
}

.category-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem 1rem;
	list-style: none;
	margin: 2.5rem 0 4rem;
	padding: 0;
}

.category-links a {
	color: var(--wp--preset--color--muted);
	font-size: 0.82rem;
	text-decoration: none;
}

.category-links a:hover {
	color: var(--wp--preset--color--text);
}

.site-footer {
	padding-bottom: 2.5rem;
	padding-top: 2.5rem;
}

.site-footer a {
	color: var(--wp--preset--color--muted);
	font-size: 0.78rem;
}

.footer-note {
	color: var(--wp--preset--color--muted);
	font-size: 0.78rem;
	margin: 0;
}

.wp-block-search__inside-wrapper {
	border: var(--naplee-hairline);
}

.wp-block-search__input {
	background: transparent;
	border: 0;
	color: var(--wp--preset--color--text);
}

.wp-block-query-pagination {
	border-top: var(--naplee-hairline);
	margin-top: 2rem;
	padding-top: 2rem;
}

@media (max-width: 781px) {
	.brand-kicker {
		display: none;
	}

	.site-header {
		padding-bottom: 1rem;
		padding-top: 1rem;
	}

	.hero {
		min-height: 34rem;
	}

	.gateway-grid {
		display: block !important;
	}

	.gateway-card {
		border-bottom: var(--naplee-hairline);
		border-right: 0;
		min-height: 14rem;
	}

	.gateway-card:last-child {
		border-bottom: 0;
	}

	.gateway-card h2 {
		margin-top: 2.5rem;
	}

	.project-card-grid,
	.world-card-grid,
	.archive-grid {
		grid-template-columns: 1fr;
	}

	.project-card,
	.world-card,
	.archive-module {
		border-right: 0;
	}

	.post-header .wp-block-post-title {
		max-width: none;
	}
}

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

	.gateway-card {
		transition: none;
	}
}

.gateway-grid > p:empty,
.gateway-card > p:empty {
	display: none;
	margin: 0;
}
