*,
*::before,
*::after {
	box-sizing: border-box;
}

:root {
	--bc-color-background: #050505;
	--bc-color-surface-elevated: #101010;
	--bc-color-surface-secondary: #181818;
	--bc-color-text-primary: #f5f5f5;
	--bc-color-text-secondary: #c7c7c7;
	--bc-color-text-muted: #949494;
	--bc-color-border-subtle: #262626;
	--bc-color-border-strong: #3d3d3d;
	--bc-color-accent: #9aa7ff;

	--bc-space-xs: 0.25rem;
	--bc-space-sm: 0.5rem;
	--bc-space-md: 1rem;
	--bc-space-lg: 1.5rem;
	--bc-space-xl: 2rem;
	--bc-space-2xl: 3rem;

	--bc-radius-sm: 0.375rem;
	--bc-radius-md: 0.625rem;
	--bc-radius-lg: 1rem;
	--bc-radius-pill: 999px;

	--bc-layout-max-width: 72rem;
	--bc-layout-reading-width: 44rem;
	--bc-layout-page-padding: clamp(1rem, 3vw, 2rem);

	--bc-font-base: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--bc-font-heading: var(--bc-font-base);
	--bc-font-size-xs: 0.75rem;
	--bc-font-size-sm: 0.875rem;
	--bc-font-size-base: 1rem;
	--bc-font-size-md: 1.125rem;
	--bc-font-size-lg: 1.25rem;
	--bc-font-size-xl: clamp(1.5rem, 3vw, 2rem);
	--bc-font-size-display: clamp(2rem, 7vw, 3.5rem);
	--bc-line-height-tight: 1.2;
	--bc-line-height-normal: 1.5;
	--bc-line-height-relaxed: 1.7;

	--bc-transition-fast: 120ms ease-out;
	--bc-transition-normal: 200ms ease-out;
}

html {
	line-height: var(--bc-line-height-normal);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--bc-color-background);
	color: var(--bc-color-text-primary);
	font-family: var(--bc-font-base);
	font-size: var(--bc-font-size-base);
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
}

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

.site-container,
.site-main,
.site-footer,
.site-header__inner {
	width: 100%;
	max-width: calc(
		var(--bc-layout-max-width) + var(--bc-layout-page-padding) + var(--bc-layout-page-padding)
	);
	margin-inline: auto;
	padding-inline: var(--bc-layout-page-padding);
}

.site-footer {
	padding-block: var(--bc-space-lg);
}

.site-main {
	min-height: 60vh;
	padding-block: var(--bc-space-xl);
}

.site-main article + article {
	margin-block-start: var(--bc-space-2xl);
}

.entry-title,
.page-title,
h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--bc-font-heading);
}

.entry-title,
.page-title {
	line-height: var(--bc-line-height-tight);
}

.section-spacing {
	padding-block: var(--bc-space-2xl);
}

.section-heading {
	max-width: var(--bc-layout-reading-width);
	margin-block: 0 var(--bc-space-lg);
	font-size: var(--bc-font-size-xl);
	line-height: var(--bc-line-height-tight);
}

.text-muted {
	color: var(--bc-color-text-muted);
}

.button,
.home-primary-link {
	display: inline-flex;
	min-height: 2.75rem;
	align-items: center;
	justify-content: center;
	padding-inline: var(--bc-space-md);
	border: 1px solid var(--bc-color-accent);
	border-radius: var(--bc-radius-sm);
	background: var(--bc-color-accent);
	color: var(--bc-color-background);
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition:
		background-color var(--bc-transition-fast),
		border-color var(--bc-transition-fast),
		color var(--bc-transition-fast);
}

.button:hover,
.home-primary-link:hover {
	border-color: var(--bc-color-text-primary);
	background: var(--bc-color-text-primary);
}

.button:focus-visible,
.home-primary-link:focus-visible {
	outline: 2px solid var(--bc-color-text-primary);
	outline-offset: 2px;
}

.surface-elevated {
	padding: var(--bc-space-lg);
	border: 1px solid var(--bc-color-border-subtle);
	border-radius: var(--bc-radius-md);
	background: var(--bc-color-surface-elevated);
}

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

.screen-reader-text:focus {
	top: 1rem;
	left: 1rem;
	z-index: 100000;
	width: auto;
	height: auto;
	padding: 0.75rem 1rem;
	margin: 0;
	overflow: visible;
	clip: auto;
	white-space: normal;
	background: var(--bc-color-text-primary);
	color: var(--bc-color-background);
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	width: 100%;
	background: var(--bc-color-background);
	border-bottom: 1px solid var(--bc-color-border-subtle);
	color: var(--bc-color-text-primary);
}

.site-header__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: var(--bc-space-sm) var(--bc-space-md);
	min-height: 3.75rem;
}

.site-branding {
	min-width: 0;
}

.site-branding__link {
	display: inline-flex;
	align-items: center;
	max-width: 100%;
	gap: var(--bc-space-sm);
	color: var(--bc-color-text-primary);
	text-decoration: none;
}

.site-branding__mark {
	display: grid;
	flex: 0 0 2rem;
	width: 2rem;
	height: 2rem;
	place-items: center;
	border-radius: var(--bc-radius-sm);
	background: var(--bc-color-text-primary);
	color: var(--bc-color-background);
	font-size: var(--bc-font-size-xs);
	font-weight: 800;
	letter-spacing: 0.04em;
}

.site-title {
	overflow: hidden;
	font-size: var(--bc-font-size-base);
	font-weight: 700;
	letter-spacing: -0.01em;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: var(--bc-space-xs);
}

.menu-toggle,
.header-search__toggle {
	display: inline-flex;
	width: 2.75rem;
	height: 2.75rem;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 1px solid transparent;
	border-radius: var(--bc-radius-md);
	background: transparent;
	color: var(--bc-color-text-primary);
	cursor: pointer;
	transition:
		background-color var(--bc-transition-fast),
		border-color var(--bc-transition-fast);
}

.menu-toggle:hover,
.menu-toggle:focus-visible,
.header-search__toggle:hover,
.header-search__toggle:focus-visible,
.header-search[open] .header-search__toggle {
	border-color: var(--bc-color-border-subtle);
	background: var(--bc-color-surface-elevated);
}

.menu-toggle:focus-visible,
.header-search__toggle:focus-visible,
.primary-navigation a:focus-visible,
.header-search__panel input:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.menu-toggle__icon {
	display: grid;
	width: 1.25rem;
	gap: var(--bc-space-xs);
}

.menu-toggle__icon span {
	display: block;
	height: 2px;
	border-radius: 999px;
	background: currentColor;
}

.primary-navigation {
	display: none;
	grid-column: 1 / -1;
	width: 100%;
}

.site-header.is-menu-open .primary-navigation {
	display: block;
}

.primary-navigation > .primary-menu {
	display: grid;
	gap: 0;
	margin: 0;
	padding: 0 0 var(--bc-space-md);
	list-style: none;
}

.primary-navigation a {
	display: block;
	padding: var(--bc-space-md) 0;
	border-top: 1px solid var(--bc-color-border-subtle);
	color: var(--bc-color-text-muted);
	font-size: var(--bc-font-size-sm);
	font-weight: 600;
	text-decoration: none;
	transition: color var(--bc-transition-fast);
}

.primary-navigation a:hover,
.primary-navigation a:focus-visible,
.primary-navigation .current-menu-item > a {
	color: var(--bc-color-text-primary);
}

.header-search {
	position: relative;
}

.header-search__toggle {
	list-style: none;
}

.header-search__toggle::-webkit-details-marker {
	display: none;
}

.header-search__toggle svg {
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-width: 1.75;
}

.header-search__panel {
	position: absolute;
	top: calc(100% + var(--bc-space-sm));
	right: 0;
	width: min(20rem, calc(100vw - var(--bc-layout-page-padding) - var(--bc-layout-page-padding)));
	padding: var(--bc-space-md);
	border: 1px solid var(--bc-color-border-subtle);
	border-radius: var(--bc-radius-md);
	background: var(--bc-color-background);
	box-shadow: 0 0.75rem 2rem rgb(0 0 0 / 45%);
}

.header-search__panel .search-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: var(--bc-space-sm);
}

.header-search__panel label {
	min-width: 0;
}

.header-search__panel .search-field,
.header-search__panel .search-submit {
	min-height: 2.75rem;
	border: 1px solid var(--bc-color-border-strong);
	border-radius: var(--bc-radius-sm);
}

.header-search__panel .search-field {
	width: 100%;
	min-width: 0;
	padding-inline: var(--bc-space-md);
	background: var(--bc-color-surface-secondary);
	color: var(--bc-color-text-primary);
}

.header-search__panel .search-submit {
	padding-inline: var(--bc-space-md);
	background: var(--bc-color-text-primary);
	color: var(--bc-color-background);
	font-weight: 700;
	cursor: pointer;
	transition:
		background-color var(--bc-transition-fast),
		border-color var(--bc-transition-fast);
}

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

@media (max-width: 48.875rem) {
	.admin-bar .site-header {
		top: 46px;
	}
}

@media (max-width: 37.5rem) {
	.admin-bar .site-header {
		top: 0;
	}
}

@media (min-width: 48rem) {
	.site-header__inner {
		grid-template-columns: auto minmax(0, 1fr) auto;
		gap: var(--bc-space-lg);
		min-height: 4rem;
	}

	.site-title {
		font-size: var(--bc-font-size-md);
	}

	.menu-toggle {
		display: none;
	}

	.primary-navigation,
	.site-header.is-menu-open .primary-navigation {
		display: block;
		grid-column: auto;
		justify-self: end;
		width: auto;
	}

	.primary-navigation > .primary-menu {
		display: flex;
		align-items: center;
		gap: var(--bc-space-lg);
		padding: 0;
	}

	.primary-navigation a {
		padding: var(--bc-space-sm) 0;
		border-top: 0;
	}
}

.home-page {
	padding-block: 0;
}

.home-section {
	padding-block: var(--bc-space-2xl);
}

.home-section + .home-section {
	border-top: 1px solid var(--bc-color-border-subtle);
}

.home-hero__content,
.home-section__header {
	max-width: var(--bc-layout-reading-width);
}

.home-hero h1,
.home-section h2,
.home-item h3 {
	margin-block-start: 0;
	line-height: var(--bc-line-height-tight);
}

.home-hero h1 {
	font-size: var(--bc-font-size-display);
}

.home-primary-link {
	margin-block-start: var(--bc-space-md);
}

.home-section__header {
	margin-block-end: var(--bc-space-lg);
}

.home-hero p,
.home-section__header p,
.home-item p {
	color: var(--bc-color-text-secondary);
}

.home-item-grid,
.home-brand-list {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--bc-space-md);
}

.home-item {
	min-width: 0;
	padding-block: var(--bc-space-md);
	border-top: 1px solid var(--bc-color-border-subtle);
}

.home-item p {
	margin-block-end: 0;
}

.home-brand-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.home-brand-list li {
	padding-block: var(--bc-space-md);
	border-top: 1px solid var(--bc-color-border-subtle);
}

@media (min-width: 40rem) {
	.home-item-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.home-brand-list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.device-page {
	padding-block: 0;
}

.device-article {
	min-width: 0;
}

.device-breadcrumb {
	padding-block: var(--bc-space-md);
	border-bottom: 1px solid var(--bc-color-border-subtle);
	color: var(--bc-color-text-muted);
	font-size: var(--bc-font-size-sm);
}

.device-breadcrumb ol {
	display: flex;
	min-width: 0;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--bc-space-sm);
	margin: 0;
	padding: 0;
	list-style: none;
}

.device-breadcrumb li {
	display: flex;
	min-width: 0;
	align-items: center;
	gap: var(--bc-space-sm);
}

.device-breadcrumb li:not(:last-child)::after {
	content: "/";
	color: var(--bc-color-border-strong);
}

.device-breadcrumb li:last-child {
	overflow: hidden;
	color: var(--bc-color-text-secondary);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.device-breadcrumb a {
	text-decoration-color: transparent;
	text-underline-offset: 0.2em;
	transition:
		color var(--bc-transition-fast),
		text-decoration-color var(--bc-transition-fast);
}

.device-breadcrumb a:hover,
.device-breadcrumb a:focus-visible {
	color: var(--bc-color-text-primary);
	text-decoration-color: currentColor;
}

.device-hero {
	display: grid;
	min-height: clamp(25rem, 68vh, 44rem);
	align-items: center;
	padding-block: clamp(3rem, 9vw, 7rem);
}

.device-hero--has-image {
	gap: var(--bc-space-2xl);
}

.device-hero:not(.device-hero--has-image) {
	min-height: 0;
}

.device-hero__content {
	max-width: 46rem;
}

.device-hero__eyebrow,
.device-section__kicker,
.device-editorial-card__meta,
.device-related-card p {
	margin-block: 0 var(--bc-space-md);
	color: var(--bc-color-accent);
	font-size: var(--bc-font-size-xs);
	font-weight: 750;
	letter-spacing: 0.12em;
	line-height: var(--bc-line-height-normal);
	text-transform: uppercase;
}

.device-hero__title {
	max-width: 12ch;
	margin: 0;
	font-size: clamp(2.75rem, 11vw, 6.5rem);
	letter-spacing: -0.055em;
	line-height: 0.94;
	overflow-wrap: anywhere;
}

.device-hero__excerpt {
	max-width: 38rem;
	margin-block: var(--bc-space-lg) 0;
	color: var(--bc-color-text-secondary);
	font-size: clamp(var(--bc-font-size-md), 2vw, var(--bc-font-size-lg));
	line-height: var(--bc-line-height-relaxed);
}

.device-hero__media {
	display: grid;
	width: min(100%, 33rem);
	min-width: 0;
	max-height: 40rem;
	place-items: center;
	justify-self: center;
	margin: 0;
	padding: clamp(var(--bc-space-lg), 5vw, var(--bc-space-2xl));
	border: 1px solid var(--bc-color-border-subtle);
	border-radius: var(--bc-radius-lg);
	background: var(--bc-color-surface-elevated);
	overflow: hidden;
}

.device-hero__image {
	width: 100%;
	max-height: 34rem;
	object-fit: contain;
}

.wallpaper-collection-hero {
	min-height: 0;
	gap: clamp(var(--bc-space-xl), 7vw, var(--bc-space-2xl));
}

.wallpaper-collection-hero__title {
	max-width: 14ch;
	font-size: clamp(2.6rem, 9vw, 5.75rem);
}

.wallpaper-collection-hero__meta a {
	color: var(--bc-color-text-primary);
	text-decoration-color: transparent;
	text-underline-offset: 0.2em;
}

.wallpaper-collection-hero__meta a:hover,
.wallpaper-collection-hero__meta a:focus-visible {
	text-decoration-color: currentColor;
}

.wallpaper-collection-hero__media {
	width: min(100%, 22rem);
	max-height: 39rem;
	padding: 0;
	aspect-ratio: 9 / 16;
	background: #000;
}

.wallpaper-collection-hero__image {
	height: 100%;
	max-height: none;
	object-fit: cover;
}

.device-section {
	padding-block: clamp(3rem, 7vw, 5.5rem);
	border-top: 1px solid var(--bc-color-border-subtle);
}

.device-section__header {
	max-width: var(--bc-layout-reading-width);
	margin-block-end: clamp(var(--bc-space-xl), 5vw, var(--bc-space-2xl));
}

.device-section__header h2,
.device-app-card h2 {
	margin: 0;
	font-size: clamp(1.8rem, 5vw, 3.25rem);
	letter-spacing: -0.035em;
	line-height: 1.05;
	overflow-wrap: anywhere;
}

.device-section__header > p:last-child,
.device-app-card__description {
	margin-block: var(--bc-space-md) 0;
	color: var(--bc-color-text-secondary);
	line-height: var(--bc-line-height-relaxed);
}

.device-overview__content {
	color: var(--bc-color-text-secondary);
	font-size: clamp(var(--bc-font-size-base), 1.5vw, var(--bc-font-size-md));
	line-height: var(--bc-line-height-relaxed);
	overflow-wrap: anywhere;
}

.device-overview__content > * {
	max-width: var(--bc-layout-reading-width);
	margin-inline: 0;
}

.device-overview__content > :first-child {
	margin-block-start: 0;
}

.device-overview__content > :last-child {
	margin-block-end: 0;
}

.device-overview__content h2,
.device-overview__content h3,
.device-overview__content h4 {
	margin-block: 1.75em 0.6em;
	color: var(--bc-color-text-primary);
	line-height: var(--bc-line-height-tight);
}

.device-overview__content a {
	color: var(--bc-color-text-primary);
	text-decoration-color: var(--bc-color-accent);
	text-underline-offset: 0.18em;
}

.device-overview__content blockquote {
	padding-inline-start: var(--bc-space-lg);
	border-inline-start: 2px solid var(--bc-color-accent);
	color: var(--bc-color-text-primary);
}

.device-overview__content pre,
.device-overview__content .wp-block-table {
	overflow-x: auto;
}

.device-overview__content iframe {
	max-width: 100%;
}

.device-wallpaper-collections {
	display: grid;
	min-width: 0;
	gap: clamp(3rem, 7vw, 5rem);
}

.device-wallpaper-collection {
	min-width: 0;
}

.device-wallpaper-collection + .device-wallpaper-collection {
	padding-block-start: clamp(3rem, 7vw, 5rem);
	border-top: 1px solid var(--bc-color-border-subtle);
}

.device-wallpaper-collection__header {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 7rem;
	align-items: start;
	gap: var(--bc-space-lg);
	margin-block-end: clamp(var(--bc-space-xl), 5vw, var(--bc-space-2xl));
}

.device-wallpaper-collection__content {
	min-width: 0;
	max-width: var(--bc-layout-reading-width);
}

.device-wallpaper-collection__content h3 {
	margin: 0;
	font-size: clamp(1.5rem, 4vw, 2.5rem);
	letter-spacing: -0.03em;
	line-height: var(--bc-line-height-tight);
	overflow-wrap: anywhere;
}

.device-wallpaper-collection__excerpt {
	margin-block: var(--bc-space-md) 0;
	color: var(--bc-color-text-secondary);
	line-height: var(--bc-line-height-relaxed);
}

.device-wallpaper-collection__meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--bc-space-sm);
	margin: var(--bc-space-lg) 0 0;
	padding: 0;
	list-style: none;
}

.device-wallpaper-collection__meta li {
	padding: 0.4rem 0.7rem;
	border: 1px solid var(--bc-color-border-subtle);
	border-radius: var(--bc-radius-pill);
	color: var(--bc-color-text-muted);
	font-size: var(--bc-font-size-xs);
	font-weight: 650;
}

.device-wallpaper-collection__cover {
	width: 7rem;
	aspect-ratio: 9 / 16;
	margin: 0;
	border: 1px solid var(--bc-color-border-subtle);
	border-radius: var(--bc-radius-md);
	background: var(--bc-color-surface-elevated);
	overflow: hidden;
}

.device-wallpaper-collection__cover-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.device-wallpapers__empty {
	max-width: var(--bc-layout-reading-width);
	margin: 0;
	padding-block-start: var(--bc-space-lg);
	border-top: 1px solid var(--bc-color-border-subtle);
	color: var(--bc-color-text-secondary);
	line-height: var(--bc-line-height-relaxed);
}

.device-app-card {
	position: relative;
	display: grid;
	min-width: 0;
	gap: var(--bc-space-lg);
	padding: clamp(var(--bc-space-lg), 5vw, var(--bc-space-2xl));
	border: 1px solid var(--bc-color-border-subtle);
	border-radius: var(--bc-radius-lg);
	background: var(--bc-color-surface-elevated);
	overflow: hidden;
}

.device-app-card--has-accent::before {
	position: absolute;
	inset: 0 0 auto;
	height: 0.1875rem;
	background: linear-gradient(
		90deg,
		var(--bc-app-accent-start),
		var(--bc-app-accent-center),
		var(--bc-app-accent-end)
	);
	content: "";
}

.device-app-card__icon {
	display: grid;
	width: 5rem;
	height: 5rem;
	place-items: center;
	border: 1px solid var(--bc-color-border-strong);
	border-radius: var(--bc-radius-lg);
	background: var(--bc-color-text-primary);
	color: var(--bc-color-background);
	font-size: var(--bc-font-size-sm);
	font-weight: 850;
	letter-spacing: 0.04em;
	overflow: hidden;
}

.device-app-card__icon-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.device-app-card__content {
	min-width: 0;
	max-width: 42rem;
}

.device-app-card__cta {
	width: fit-content;
	white-space: nowrap;
}

.device-app-card.device-app-card--empty {
	grid-template-columns: minmax(0, 1fr);
	padding-block: var(--bc-space-xl);
}

.device-editorial-grid,
.device-related-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--bc-space-md);
}

.device-editorial-card {
	position: relative;
	display: flex;
	min-width: 0;
	min-height: 12rem;
	flex-direction: column;
	padding: var(--bc-space-lg);
	border: 1px solid var(--bc-color-border-subtle);
	border-radius: var(--bc-radius-md);
	background: var(--bc-color-surface-elevated);
}

.device-editorial-card--article {
	padding: 0;
	overflow: hidden;
}

.device-editorial-card__media {
	display: block;
	aspect-ratio: 16 / 9;
	background: var(--bc-color-surface-secondary);
	overflow: hidden;
}

.device-editorial-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.device-editorial-card__content {
	display: flex;
	min-width: 0;
	flex: 1;
	flex-direction: column;
	padding: var(--bc-space-lg);
}

.device-editorial-card h3,
.device-related-card h3 {
	margin: 0;
	font-size: var(--bc-font-size-lg);
	letter-spacing: -0.02em;
	line-height: var(--bc-line-height-tight);
	overflow-wrap: anywhere;
}

.device-editorial-card h3 a {
	color: inherit;
	text-decoration: none;
}

.device-editorial-card h3 a:hover,
.device-editorial-card h3 a:focus-visible {
	color: var(--bc-color-accent);
}

.device-editorial-card__excerpt {
	margin: var(--bc-space-md) 0 0;
	color: var(--bc-color-text-muted);
}

.device-editorial-card__link {
	width: fit-content;
	margin-block-start: auto;
	padding-block-start: var(--bc-space-lg);
	font-size: var(--bc-font-size-sm);
	font-weight: 750;
}

.device-editorial-empty {
	margin: 0;
	padding-block: var(--bc-space-lg);
	border-block: 1px solid var(--bc-color-border-subtle);
	color: var(--bc-color-text-muted);
}

.device-editorial-card > span {
	margin-block-start: auto;
	padding-block-start: var(--bc-space-lg);
	color: var(--bc-color-border-strong);
	font-size: var(--bc-font-size-sm);
	font-weight: 800;
}

.device-related-card {
	display: grid;
	min-width: 0;
	grid-template-columns: 5rem minmax(0, 1fr);
	align-items: center;
	gap: var(--bc-space-md);
	padding: var(--bc-space-md);
	border-top: 1px solid var(--bc-color-border-subtle);
}

.device-related-card__media {
	display: grid;
	height: 6.25rem;
	place-items: center;
	border-radius: var(--bc-radius-sm);
	background: var(--bc-color-surface-elevated);
}

.device-related-card__media span {
	display: block;
	width: 2.25rem;
	height: 4rem;
	border: 1px solid var(--bc-color-border-strong);
	border-radius: 0.4rem;
}

.device-related-card p {
	margin-block-end: var(--bc-space-sm);
	color: var(--bc-color-text-muted);
}

@media (min-width: 40rem) {
	.device-editorial-grid,
	.device-related-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.device-related-card {
		grid-template-columns: minmax(0, 1fr);
		align-items: start;
	}

	.device-related-card__media {
		height: 10rem;
	}
}

@media (min-width: 48rem) {
	.device-hero--has-image {
		grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.95fr);
	}

	.device-hero__media {
		justify-self: end;
	}

	.device-app-card {
		grid-template-columns: auto minmax(0, 1fr) auto;
		align-items: center;
	}

	.device-app-card__icon {
		width: 6rem;
		height: 6rem;
	}

	.device-app-card__cta {
		justify-self: end;
	}

	.device-wallpaper-collection__header {
		grid-template-columns: minmax(0, 1fr) 10rem;
	}

	.device-wallpaper-collection__cover {
		width: 10rem;
	}
}

@media (min-width: 64rem) {
	.device-overview {
		display: grid;
		grid-template-columns: minmax(14rem, 0.5fr) minmax(0, 1fr);
		gap: var(--bc-space-2xl);
	}

	.device-overview__content {
		padding-block-start: var(--bc-space-xs);
	}
}

.search-page {
	padding-block: clamp(2.5rem, 7vw, 5rem);
}

.search-hero {
	max-width: 52rem;
	padding-block-end: clamp(2.5rem, 6vw, 4.5rem);
}

.search-hero__eyebrow,
.search-result-card__type {
	margin: 0 0 var(--bc-space-md);
	color: var(--bc-color-accent);
	font-size: var(--bc-font-size-xs);
	font-weight: 750;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.search-hero__title {
	margin: 0;
	font-size: clamp(2.25rem, 7vw, 4.75rem);
	letter-spacing: -0.045em;
	line-height: 1;
	overflow-wrap: anywhere;
}

.search-hero__title > span {
	display: block;
}

.search-hero__title > span:first-child {
	margin-block-end: var(--bc-space-sm);
	color: var(--bc-color-text-secondary);
	font-size: 0.42em;
	letter-spacing: -0.02em;
	line-height: var(--bc-line-height-tight);
}

.search-hero__query {
	color: var(--bc-color-text-primary);
}

.search-page__form {
	max-width: 42rem;
	margin-block-start: var(--bc-space-xl);
}

.search-page__form .search-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--bc-space-sm);
}

.search-page__form label {
	min-width: 0;
}

.search-page__form .search-field,
.search-page__form .search-submit {
	width: 100%;
	min-height: 3.25rem;
	border: 1px solid var(--bc-color-border-strong);
	border-radius: var(--bc-radius-sm);
}

.search-page__form .search-field {
	min-width: 0;
	padding-inline: var(--bc-space-md);
	background: var(--bc-color-surface-elevated);
	color: var(--bc-color-text-primary);
}

.search-page__form .search-field::placeholder {
	color: var(--bc-color-text-muted);
}

.search-page__form .search-submit {
	padding-inline: var(--bc-space-lg);
	background: var(--bc-color-text-primary);
	color: var(--bc-color-background);
	font-weight: 750;
	cursor: pointer;
	transition:
		background-color var(--bc-transition-fast),
		border-color var(--bc-transition-fast);
}

.search-page__form .search-submit:hover {
	border-color: var(--bc-color-accent);
	background: var(--bc-color-accent);
}

.search-page__form .search-field:focus-visible,
.search-page__form .search-submit:focus-visible,
.search-result-card a:focus-visible,
.search-page .page-numbers:focus-visible {
	outline: 2px solid var(--bc-color-accent);
	outline-offset: 3px;
}

.search-results {
	border-top: 1px solid var(--bc-color-border-subtle);
}

.search-results__summary {
	margin: 0;
	padding-block: var(--bc-space-lg);
	color: var(--bc-color-text-muted);
	font-size: var(--bc-font-size-sm);
	font-weight: 650;
}

.search-results__list {
	display: grid;
	min-width: 0;
}

.search-result-card {
	display: grid;
	min-width: 0;
	gap: var(--bc-space-lg);
	padding-block: var(--bc-space-xl);
	border-top: 1px solid var(--bc-color-border-subtle);
}

.site-main .search-result-card + .search-result-card {
	margin-block-start: 0;
}

.search-result-card__media {
	display: block;
	min-width: 0;
	aspect-ratio: 16 / 9;
	border: 1px solid var(--bc-color-border-subtle);
	border-radius: var(--bc-radius-md);
	background: var(--bc-color-surface-elevated);
	overflow: hidden;
}

.search-result-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity var(--bc-transition-fast);
}

.search-result-card__media:hover .search-result-card__image {
	opacity: 0.88;
}

.search-result-card__content {
	min-width: 0;
	align-self: center;
}

.search-result-card__type {
	margin-block-end: var(--bc-space-sm);
}

.search-result-card__title {
	margin: 0;
	font-size: clamp(1.5rem, 4vw, 2.25rem);
	letter-spacing: -0.03em;
	line-height: var(--bc-line-height-tight);
	overflow-wrap: anywhere;
}

.search-result-card__title a {
	text-decoration: none;
	transition: color var(--bc-transition-fast);
}

.search-result-card__title a:hover,
.search-result-card__title a:focus-visible {
	color: var(--bc-color-accent);
}

.search-result-card__date {
	display: block;
	margin-block-start: var(--bc-space-sm);
	color: var(--bc-color-text-muted);
	font-size: var(--bc-font-size-sm);
}

.search-result-card__excerpt {
	max-width: var(--bc-layout-reading-width);
	margin: var(--bc-space-md) 0 0;
	color: var(--bc-color-text-secondary);
	line-height: var(--bc-line-height-relaxed);
}

.search-result-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--bc-space-sm);
	margin: var(--bc-space-md) 0 0;
	padding: 0;
	list-style: none;
}

.search-result-card__meta li {
	padding: 0.35rem 0.65rem;
	border: 1px solid var(--bc-color-border-subtle);
	border-radius: var(--bc-radius-pill);
	color: var(--bc-color-text-muted);
	font-size: var(--bc-font-size-xs);
	font-weight: 650;
}

.search-page .navigation.pagination {
	margin-block-start: clamp(2.5rem, 6vw, 4rem);
	padding-block-start: var(--bc-space-xl);
	border-top: 1px solid var(--bc-color-border-subtle);
}

.search-page .nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--bc-space-sm);
}

.search-page .page-numbers {
	display: inline-flex;
	min-width: 2.75rem;
	min-height: 2.75rem;
	align-items: center;
	justify-content: center;
	padding-inline: 0.8rem;
	border: 1px solid var(--bc-color-border-subtle);
	border-radius: var(--bc-radius-sm);
	color: var(--bc-color-text-secondary);
	font-size: var(--bc-font-size-sm);
	font-weight: 700;
	text-decoration: none;
}

.search-page a.page-numbers:hover,
.search-page .page-numbers.current {
	border-color: var(--bc-color-border-strong);
	background: var(--bc-color-surface-elevated);
	color: var(--bc-color-text-primary);
}

.search-empty {
	max-width: 48rem;
	padding: clamp(var(--bc-space-lg), 5vw, var(--bc-space-2xl));
	border: 1px solid var(--bc-color-border-subtle);
	border-radius: var(--bc-radius-lg);
	background: var(--bc-color-surface-elevated);
}

.search-empty h2 {
	margin: 0;
	font-size: clamp(1.5rem, 4vw, 2.25rem);
	letter-spacing: -0.03em;
	line-height: var(--bc-line-height-tight);
	overflow-wrap: anywhere;
}

.search-empty > p {
	margin: var(--bc-space-md) 0 0;
	color: var(--bc-color-text-secondary);
}

.search-empty__form {
	margin-block-start: var(--bc-space-lg);
}

@media (min-width: 32rem) {
	.search-page__form .search-form {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.search-page__form .search-submit {
		width: auto;
	}
}

@media (min-width: 48rem) {
	.search-result-card--has-media {
		grid-template-columns: 14rem minmax(0, 1fr);
		align-items: stretch;
	}

	.search-result-card__media {
		aspect-ratio: 4 / 3;
	}
}
