.folio {
	max-width: 1080px;
	margin: 0 auto;
	padding: 2.25rem 1.5rem 5.5rem;
	color-scheme: dark;
}

.home {
	display: inline-block;
	margin-bottom: 0.85rem;
	color: var(--gold);
	font-size: 0.875rem;
}

.home:hover {
	color: var(--text);
}

.folio .bio {
	margin-top: calc(1.35rem - 10px);
}

html.open-project #index,
.folio.is-detail .home,
.folio.is-detail > h1,
.folio.is-detail > .bio,
html.open-project .home,
html.open-project .folio > h1,
html.open-project .bio {
	display: none;
}

.folio.is-detail #detail,
html.open-project #detail {
	margin-top: 0;
}

.filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.filters button {
	padding: 0.28rem 0.7rem;
	border: 1px solid var(--line);
	color: var(--muted);
	font-size: 0.8125rem;
	line-height: 1.3;
}

.filters button:hover {
	color: var(--text);
	border-color: rgba(231, 231, 239, 0.32);
}

.filters button[aria-pressed="true"] {
	color: var(--bg);
	background: var(--gold);
	border-color: var(--gold);
}

.filters button:focus-visible,
.home:focus-visible,
.back:focus-visible,
.detail-media:focus-visible,
.work button:focus-visible {
	outline: 1px solid var(--gold);
	outline-offset: 3px;
}

.sr {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.works {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem 1.25rem;
	margin: 1.35rem 0 0;
	padding: 0;
}

.work button {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.7rem;
	width: 100%;
}

.work-frame {
	display: block;
	aspect-ratio: 8 / 5;
	overflow: hidden;
	border: 1px solid var(--line);
	background: #0c0c10;
}

.work-frame img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.work-frame[data-frame="left"] img {
	object-position: left center;
}

.work-frame[data-frame="right"] img {
	object-position: right center;
}

.work-frame[data-fit="contain"] {
	padding: 0.75rem;
}

.work-frame[data-fit="contain"] img {
	object-fit: contain;
}

.work button:hover .work-frame {
	border-color: rgba(231, 231, 239, 0.34);
}

.work-title {
	display: block;
	font-size: 1rem;
	line-height: 1.3;
}

.work button:hover .work-title,
.work button:focus-visible .work-title {
	color: #fff;
}

.work-meta {
	display: block;
	margin-top: 0.15rem;
	color: var(--muted);
	font-size: 0.875rem;
	line-height: 1.4;
}

.empty {
	grid-column: 1 / -1;
	margin: 0;
	padding: 1.15rem 0;
	color: var(--faint);
	border-top: 1px solid var(--line);
}

.back {
	margin-bottom: 1.35rem;
	color: var(--gold);
	font-size: 0.875rem;
}

.back:hover {
	color: var(--text);
}

.kicker {
	margin: 0;
	color: var(--gold);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

#detail h2 {
	margin: 0.45rem 0 0;
	color: var(--text);
	font-size: clamp(1.85rem, 3vw, 2.5rem);
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1.05;
	text-transform: none;
}

#detail h2:focus {
	outline: none;
}

.byline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.55rem;
	margin: 0.85rem 0 0;
	color: var(--muted);
	font-size: 0.875rem;
}

.pill {
	padding: 0.18rem 0.6rem;
	border: 1px solid var(--line);
	color: var(--muted);
	font-size: 0.75rem;
	line-height: 1.3;
}

.shots {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-top: 1.75rem;
}

.detail-media {
	width: 100%;
	padding: 1rem;
	border: 1px solid var(--line);
	background: rgba(231, 231, 239, 0.03);
}

.detail-media img {
	display: block;
	width: 100%;
	height: auto;
	flex-shrink: 0;
}

.pdf {
	width: 100%;
	height: min(82vh, 960px);
	margin-top: 1.75rem;
	border: 1px solid var(--line);
	background: #0c0c10;
}

.video {
	width: 100%;
	margin-top: 1.75rem;
	aspect-ratio: 16 / 9;
	border: 1px solid var(--line);
	background: rgba(231, 231, 239, 0.03);
}

.video iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.prose {
	max-width: 40rem;
	margin-top: 1.15rem;
	color: var(--muted);
	font-size: 1.0625rem;
	line-height: 1.6;
	text-wrap: pretty;
}

.prose p {
	margin: 0;
}

.prose p + p {
	margin-top: 0.9rem;
}

.prose a {
	color: var(--gold);
}

.prose a:hover {
	color: var(--text);
}

.out {
	margin: 1.15rem 0 0;
}

.out a {
	color: var(--gold);
	font-size: 0.875rem;
}

.out a:hover {
	color: var(--text);
}

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

@media (max-width: 680px) {
	.folio {
		padding-top: 1.6rem;
	}

	.works {
		grid-template-columns: 1fr;
	}
}

