.ckb-directory,
.ckb-details,
.ckb-home {
	--ckb-ink: var(--atlas-ink, #191327);
	--ckb-muted: var(--atlas-muted, #5e576d);
	--ckb-border: var(--atlas-line, #e4deef);
	--ckb-surface: var(--atlas-paper, #fff);
	--ckb-accent: var(--atlas-accent, #5d36c8);
	--ckb-lime: var(--atlas-lime, #d6f775);
}

.ckb-directory :where(a, button, input):focus-visible,
.ckb-details :where(a, [tabindex]):focus-visible,
.ckb-home :where(a, button, input):focus-visible {
	outline: 3px solid var(--ckb-accent);
	outline-offset: 3px;
}

.ckb-search {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	gap: 0.75rem;
	margin-block: 0 1.75rem;
}

.ckb-search label {
	display: grid;
	flex: 1 1 12rem;
	max-width: 28rem;
	gap: 0.25rem;
	font-weight: 600;
}

.ckb-search input,
.ckb-search button,
.ckb-search select {
	min-height: 2.65rem;
	padding: 0.55rem 0.8rem;
	border: 1px solid var(--ckb-border);
	border-radius: 0.4rem;
	font: inherit;
}

.ckb-search input,
.ckb-search select {
	min-width: 0;
	color: var(--ckb-ink);
	background: var(--ckb-surface);
}

.ckb-search .ckb-source-filter {
	flex: 0 1 12rem;
}

.ckb-search button {
	color: #fff;
	background: var(--ckb-accent);
	cursor: pointer;
}

.ckb-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
	gap: 1rem;
}

.ckb-card {
	min-width: 0;
	padding: 1rem;
	color: var(--ckb-ink);
	background: var(--ckb-surface);
	border: 1px solid var(--ckb-border);
	border-radius: 0.6rem;
	overflow-wrap: anywhere;
}

.ckb-card h3 {
	margin: 0;
	font-size: 1.125em;
}

.ckb-card a {
	color: var(--ckb-accent);
}

.ckb-card p {
	margin: 0.5rem 0 0;
}

.ckb-portrait {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 0.35rem;
	margin-block-end: 0.75rem;
}

.ckb-card .ckb-excerpt {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.ckb-muted {
	font-size: 0.91em;
}

.ckb-card .ckb-muted {
	color: var(--ckb-muted);
}

.ckb-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 1rem;
	margin-block: 1.5rem;
}

.ckb-details > section {
	margin-block: 1.75rem;
}

.ckb-table-scroll {
	max-width: 100%;
	overflow-x: auto;
}

.ckb-counts {
	width: 100%;
	min-width: 32rem;
	border-collapse: collapse;
	font-size: 0.92em;
}

.ckb-counts :where(th, td) {
	padding: 0.45rem 0.6rem;
	border-block-end: 1px solid var(--ckb-border);
	text-align: start;
}

.ckb-counts td {
	font-variant-numeric: tabular-nums;
}

.ckb-work-list {
	list-style: none;
	padding-inline: 0;
}

.ckb-work-list li {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.2rem 1rem;
	padding-block: 0.5rem;
	border-block-end: 1px solid var(--ckb-border);
	overflow-wrap: anywhere;
}

.ckb-work-list time {
	font-size: 0.91em;
	white-space: nowrap;
}

.ckb-home {
	color: var(--ckb-ink);
}

.ckb-hero {
	position: relative;
	isolation: isolate;
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(12rem, 1fr);
	align-items: center;
	gap: clamp(1rem, 4vw, 4rem);
	min-height: min(31rem, 66vh);
	padding: clamp(2rem, 5.5vw, 5rem);
	border-radius: min(4vw, 2rem);
	overflow: hidden;
	background-color: #211436;
	background-image: linear-gradient(100deg, #1d122ef2 0%, #22143fe5 36%, #28144347 78%), var(--ckb-hero-art, radial-gradient(ellipse at 90% 10%, #744ec7 0%, #191528 68%));
	background-size: cover;
	background-position: center, center right;
	color: #fff;
}

.ckb-hero-copy {
	max-width: 33rem;
}

.ckb-hero h1 {
	margin: 0;
	color: #fff;
	font-size: clamp(2.75rem, 8vw, 6.5rem);
	line-height: 1.03;
	letter-spacing: -0.055em;
}

.ckb-hero-copy > p {
	margin: 1.25rem 0 1.6rem;
	color: #e5def5;
	font-size: clamp(0.95rem, 2.2vw, 1.23rem);
}

.ckb-hero .ckb-search {
	margin-block-end: 1rem;
}

.ckb-hero .ckb-search > label {
	color: #f4efff;
	font-size: 0.9rem;
}

.ckb-hero .ckb-search input {
	border-color: #fff;
	background: #fff;
}

.ckb-hero .ckb-search button {
	border-color: var(--ckb-lime);
	color: #222923;
	background: var(--ckb-lime);
	font-weight: 700;
}

.ckb-hero :where(a, button, input):focus-visible {
	outline-color: var(--ckb-lime);
}

.ckb-hero-links {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 1.4rem;
}

.ckb-hero-links a {
	color: #fff;
	font-size: 0.95rem;
	text-underline-offset: 0.25em;
}

.ckb-hero-links span {
	color: var(--ckb-lime);
}

.ckb-hero-feature {
	position: relative;
	align-self: end;
	justify-self: end;
	width: min(100%, 19rem);
	overflow: hidden;
	border: 1px solid #ffffff59;
	border-radius: 1rem;
	background: #21162de3;
}

.ckb-hero-photo {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 2 / 1;
	object-fit: cover;
}

.ckb-hero-feature-link {
	display: grid;
	gap: 0.2rem;
	padding: 0.85rem 1rem;
	color: #fff;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.ckb-hero-feature-link span {
	color: var(--ckb-lime);
	font-size: 0.78rem;
	font-weight: 600;
}

.ckb-hero-feature-link:hover strong {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.ckb-scope {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1px;
	margin: 1.25rem 0 2.5rem;
	overflow: hidden;
	border: 1px solid var(--ckb-border);
	border-radius: 1rem;
	background: var(--ckb-border);
}

.ckb-scope > div {
	display: grid;
	gap: 0.3rem;
	padding: clamp(0.75rem, 2.7vw, 2rem);
	background: var(--ckb-surface);
}

.ckb-scope dt {
	order: 2;
	color: var(--ckb-muted);
	font-size: clamp(0.8rem, 1.8vw, 0.95rem);
}

.ckb-scope dd {
	margin: 0;
	color: var(--ckb-ink);
	font-size: clamp(1.4rem, 4vw, 2.8rem);
	font-weight: 750;
	line-height: 1.07;
	font-variant-numeric: tabular-nums;
}

.ckb-section-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 0.45rem 1rem;
	margin-block-end: 1rem;
}

.ckb-section-head :where(h2, a) {
	margin: 0;
}

.ckb-section-head a {
	color: var(--ckb-accent);
}

.ckb-home-highlights {
	margin-block-start: 2.5rem;
}

.ckb-work-grid {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}

.ckb-work-card .ckb-work-title {
	display: block;
}

.ckb-work-card .ckb-card-creator {
	font-size: 0.89rem;
}

.ckb-work-card .ckb-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.15rem 0.6rem;
	color: var(--ckb-muted);
	font-size: 0.8rem;
}

@media (max-width: 44rem) {
	.ckb-hero {
		grid-template-columns: minmax(0, 1fr);
		min-height: 0;
		background-image: linear-gradient(92deg, #1d122ef5 1%, #241638bd 82%), var(--ckb-hero-art, radial-gradient(ellipse at 90% 10%, #744ec7 0%, #191528 68%));
		background-position: center, 70% center;
	}

	.ckb-hero-feature {
		justify-self: start;
		margin-block-start: 0.5rem;
	}
}
