/*
Theme Name: CiihuyCom
Theme URI: https://ciihuy.com/
Author: CiihuyCom
Author URI: https://ciihuy.com/
Description: A fast, modern theme for game and app publishers. Showcases games and apps with store buttons, platform badges, trailers and a curated homepage, while keeping ads under control. Built for ciihuy.com.
Version: 1.0.0
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ciihuycom
Tags: blog, portfolio, entertainment, grid-layout, two-columns, right-sidebar, custom-logo, custom-menu, custom-colors, featured-images, threaded-comments, translation-ready, wide-blocks
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */

body {
	--c-bg: #0a0c13;
	--c-bg-rgb: 10, 12, 19;
	--c-bg-2: #0f121c;
	--c-surface: #151927;
	--c-surface-2: #1d2233;
	--c-border: rgba(255, 255, 255, 0.08);
	--c-border-strong: rgba(255, 255, 255, 0.16);
	--c-text: #d5d9e4;
	--c-muted: #8e95aa;
	--c-heading: #ffffff;
	--c-accent: #ff3b5c;
	--c-accent-2: #22d3c5;
	--c-on-accent: #ffffff;
	--c-store: #05060a;
	--c-store-text: #ffffff;
	--c-overlay: rgba(10, 12, 19, 0.72);

	--radius-lg: 22px;
	--radius: 16px;
	--radius-sm: 10px;
	--container: 1240px;
	--gutter: clamp(16px, 4vw, 32px);
	--header-h: 72px;
	--shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
	--shadow-sm: 0 6px 18px -10px rgba(0, 0, 0, 0.6);
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);

	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	color-scheme: dark;
}

body.scheme-light {
	--c-bg: #f6f7fb;
	--c-bg-rgb: 246, 247, 251;
	--c-bg-2: #eceff6;
	--c-surface: #ffffff;
	--c-surface-2: #f1f3f8;
	--c-border: rgba(15, 20, 40, 0.09);
	--c-border-strong: rgba(15, 20, 40, 0.18);
	--c-text: #2f3445;
	--c-muted: #6a7187;
	--c-heading: #0d1020;
	--c-overlay: rgba(246, 247, 251, 0.8);
	--shadow: 0 18px 40px -20px rgba(20, 30, 60, 0.28);
	--shadow-sm: 0 6px 18px -12px rgba(20, 30, 60, 0.3);

	color-scheme: light;
}

/* ==========================================================================
   2. Base
   ========================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-text);
	font-family: var(--font);
	font-size: 1rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

body.nav-open {
	overflow: hidden;
}

img,
video,
iframe,
svg {
	max-width: 100%;
}

img {
	height: auto;
	display: block;
}

a {
	color: var(--c-accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

a:hover {
	color: var(--c-heading);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--c-heading);
	line-height: 1.15;
	font-weight: 800;
	letter-spacing: -0.02em;
	margin: 0 0 0.5em;
	text-wrap: balance;
}

p {
	margin: 0 0 1.1em;
}

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

:focus-visible {
	outline: 2px solid var(--c-accent-2);
	outline-offset: 3px;
	border-radius: 4px;
}

.icon {
	width: 1.25em;
	height: 1.25em;
	flex: none;
	display: inline-block;
	vertical-align: middle;
}

.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:focus {
	position: fixed !important;
	top: 12px;
	left: 12px;
	z-index: 1000;
	width: auto;
	height: auto;
	clip: auto;
	margin: 0;
	padding: 12px 18px;
	background: var(--c-accent);
	color: var(--c-on-accent);
	border-radius: var(--radius-sm);
	font-weight: 700;
	white-space: normal;
}

.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.container--narrow {
	max-width: calc(820px + var(--gutter) * 2);
}

/* ==========================================================================
   3. Buttons, chips, badges
   ========================================================================== */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	min-height: 46px;
	padding: 0.7em 1.3em;
	border: 1px solid transparent;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.95rem;
	line-height: 1.1;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.2s var(--ease), background-color 0.2s, border-color 0.2s, color 0.2s;
}

.btn:hover {
	transform: translateY(-1px);
}

.btn--primary {
	background: var(--c-accent);
	color: var(--c-on-accent);
}

.btn--primary:hover {
	color: var(--c-on-accent);
	background: color-mix(in srgb, var(--c-accent) 85%, #fff);
}

.btn--ghost {
	background: color-mix(in srgb, var(--c-heading) 6%, transparent);
	border-color: var(--c-border-strong);
	color: var(--c-heading);
}

.btn--ghost:hover {
	border-color: var(--c-heading);
	color: var(--c-heading);
}

.btn--sm {
	min-height: 38px;
	padding: 0.5em 1em;
	font-size: 0.875rem;
}

.btn .icon {
	width: 1.1em;
	height: 1.1em;
}

.eyebrow {
	margin: 0 0 0.5rem;
	color: var(--c-accent);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.eyebrow--pill {
	display: inline-flex;
	align-items: center;
	margin: 0;
	padding: 0.35em 0.9em;
	border-radius: 999px;
	background: var(--c-accent);
	color: var(--c-on-accent);
	letter-spacing: 0.1em;
}

.chip {
	display: inline-flex;
	align-items: center;
	padding: 0.25em 0.7em;
	border-radius: 999px;
	background: color-mix(in srgb, var(--c-heading) 8%, transparent);
	color: var(--c-heading);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1.4;
}

.chip--game {
	background: color-mix(in srgb, var(--c-accent) 18%, transparent);
	color: var(--c-accent);
}

.chip--app {
	background: color-mix(in srgb, var(--c-accent-2) 18%, transparent);
	color: var(--c-accent-2);
}

.platforms {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 6px;
}

.platform {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	padding: 5px;
	border-radius: 8px;
	background: rgba(5, 6, 10, 0.7);
	color: #fff;
	line-height: 1;
}

.platform .icon {
	width: 16px;
	height: 16px;
}

.platforms--labelled .platform {
	padding: 0.35em 0.75em 0.35em 0.6em;
	border-radius: 999px;
	background: color-mix(in srgb, var(--c-heading) 8%, transparent);
	color: var(--c-heading);
	font-size: 0.8rem;
	font-weight: 600;
}

/* Store buttons look like official store badges: dark in both schemes. */
.store-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 1.25rem;
}

.store-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 52px;
	padding: 8px 18px 8px 14px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 12px;
	background: var(--c-store);
	color: var(--c-store-text);
	text-decoration: none;
	line-height: 1.1;
	transition: transform 0.2s var(--ease), border-color 0.2s, box-shadow 0.2s;
}

.store-btn:hover {
	color: var(--c-store-text);
	border-color: var(--c-accent);
	transform: translateY(-2px);
	box-shadow: 0 10px 24px -12px var(--c-accent);
}

.store-btn .icon {
	width: 26px;
	height: 26px;
}

.store-btn__text {
	display: flex;
	flex-direction: column;
}

.store-btn__text small {
	font-size: 0.68rem;
	opacity: 0.8;
	letter-spacing: 0.02em;
}

.store-btn__text strong {
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.store-buttons--sm {
	gap: 8px;
	margin: 1rem 0 0;
}

.store-buttons--sm .store-btn {
	flex: 1 1 140px;
	min-height: 44px;
	padding: 6px 12px;
}

.store-buttons--sm .store-btn .icon {
	width: 20px;
	height: 20px;
}

.store-buttons--sm .store-btn__text strong {
	font-size: 0.92rem;
}

.store-icons {
	display: inline-flex;
	gap: 8px;
	color: var(--c-muted);
}

.store-icons .icon {
	width: 16px;
	height: 16px;
}

/* ==========================================================================
   4. Header & navigation
   ========================================================================== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	border-bottom: 1px solid transparent;
	transition: border-color 0.25s, box-shadow 0.25s;
}

/* Blur lives on a pseudo-element so the fixed mobile drawer is not trapped. */
.site-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(var(--c-bg-rgb), 0.82);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	backdrop-filter: saturate(160%) blur(14px);
}

.site-header.is-scrolled {
	border-bottom-color: var(--c-border);
	box-shadow: var(--shadow-sm);
}

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

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

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

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: var(--header-h);
}

.site-branding {
	flex: none;
	display: flex;
	align-items: center;
}

.site-title {
	color: var(--c-heading);
	font-size: 1.35rem;
	font-weight: 900;
	letter-spacing: -0.03em;
	text-decoration: none;
}

.custom-logo-link {
	display: inline-flex;
	align-items: center;
}

.custom-logo {
	width: auto;
	max-height: 40px;
}

.has-logo-plate .custom-logo-link {
	padding: 6px 12px;
	border-radius: 10px;
	background: #fff;
}

.has-logo-plate .custom-logo {
	max-height: 34px;
}

.primary-nav {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.primary-nav .menu,
.primary-nav .sub-menu,
.primary-nav .children {
	list-style: none;
	margin: 0;
	padding: 0;
}

.primary-nav .menu {
	display: flex;
	align-items: center;
	gap: 4px;
}

.primary-nav li {
	position: relative;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
}

.primary-nav a {
	display: block;
	padding: 10px 12px;
	border-radius: 10px;
	color: var(--c-text);
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
	transition: color 0.2s, background-color 0.2s;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a,
.primary-nav .current_page_item > a {
	color: var(--c-heading);
	background: color-mix(in srgb, var(--c-heading) 7%, transparent);
}

.primary-nav .current-menu-item > a {
	box-shadow: inset 0 -2px 0 var(--c-accent);
}

.submenu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	margin-left: -8px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--c-muted);
	cursor: pointer;
}

.submenu-toggle svg {
	width: 16px;
	height: 16px;
	transition: transform 0.2s;
}

.is-open > .submenu-toggle svg {
	transform: rotate(180deg);
}

.primary-nav__cta {
	display: none;
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid var(--c-border);
	border-radius: 12px;
	background: transparent;
	color: var(--c-heading);
	cursor: pointer;
	transition: border-color 0.2s, background-color 0.2s;
}

.icon-btn:hover {
	border-color: var(--c-border-strong);
	background: color-mix(in srgb, var(--c-heading) 6%, transparent);
}

.icon-btn .icon {
	width: 20px;
	height: 20px;
}

.lang-switch {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 42px;
	padding: 0 12px;
	border: 1px solid var(--c-border);
	border-radius: 12px;
	color: var(--c-heading);
	font-size: 0.85rem;
	font-weight: 700;
	text-decoration: none;
}

.lang-switch:hover {
	border-color: var(--c-border-strong);
	color: var(--c-heading);
}

.lang-switch .icon {
	width: 18px;
	height: 18px;
}

.menu-toggle {
	display: none;
}

.menu-toggle .icon-close,
.nav-open .menu-toggle .icon-open {
	display: none;
}

.nav-open .menu-toggle .icon-close {
	display: inline-block;
}

.header-search {
	padding: 14px 0 18px;
	border-top: 1px solid var(--c-border);
}

.header-search[hidden] {
	display: none;
}

/* Desktop dropdowns */
@media (min-width: 1024px) {
	.primary-nav .sub-menu,
	.primary-nav .children {
		position: absolute;
		top: calc(100% + 6px);
		left: 0;
		z-index: 20;
		min-width: 240px;
		padding: 8px;
		border: 1px solid var(--c-border);
		border-radius: 14px;
		background: var(--c-surface);
		box-shadow: var(--shadow);
		opacity: 0;
		visibility: hidden;
		transform: translateY(6px);
		transition: opacity 0.18s, transform 0.18s var(--ease), visibility 0.18s;
	}

	/* Invisible bridge so the menu stays open while moving the pointer down. */
	.primary-nav .sub-menu::before,
	.primary-nav .children::before {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		top: -10px;
		height: 10px;
	}

	.primary-nav .sub-menu .sub-menu,
	.primary-nav .children .children {
		top: -8px;
		left: calc(100% + 8px);
	}

	.primary-nav li:hover > .sub-menu,
	.primary-nav li:focus-within > .sub-menu,
	.primary-nav li.is-open > .sub-menu,
	.primary-nav li:hover > .children,
	.primary-nav li:focus-within > .children,
	.primary-nav li.is-open > .children {
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.primary-nav .sub-menu li {
		display: flex;
	}

	.primary-nav .sub-menu a {
		flex: 1;
		padding: 9px 12px;
		font-size: 0.92rem;
	}

	.primary-nav .sub-menu .submenu-toggle {
		margin-left: 0;
		transform: rotate(-90deg);
	}
}

/* Mobile drawer */
@media (max-width: 1023px) {
	.menu-toggle {
		display: inline-flex;
	}

	.header-actions {
		margin-left: auto;
	}

	.header-cta {
		display: none;
	}

	.primary-nav {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		z-index: 110;
		width: min(360px, 88vw);
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		gap: 16px;
		padding: calc(var(--header-h) + 8px) 16px 24px;
		overflow-y: auto;
		background: var(--c-surface);
		border-left: 1px solid var(--c-border);
		box-shadow: var(--shadow);
		transform: translateX(100%);
		visibility: hidden;
		transition: transform 0.3s var(--ease), visibility 0.3s;
	}

	.nav-open .primary-nav {
		transform: none;
		visibility: visible;
	}

	.primary-nav .menu {
		flex-direction: column;
		align-items: stretch;
		gap: 2px;
	}

	.primary-nav li {
		justify-content: space-between;
	}

	.primary-nav li > a {
		flex: 1;
		padding: 12px 14px;
		font-size: 1.02rem;
	}

	.primary-nav .sub-menu,
	.primary-nav .children {
		display: none;
		width: 100%;
		padding: 2px 0 6px 12px;
		border-left: 2px solid var(--c-border);
		margin-left: 14px;
	}

	.primary-nav li.is-open > .sub-menu,
	.primary-nav li.is-open > .children {
		display: block;
	}

	.submenu-toggle {
		width: 40px;
		height: 40px;
		margin: 0;
	}

	.primary-nav__cta {
		display: inline-flex;
	}

	/* Toggle buttons sit above the drawer. */
	.menu-toggle {
		position: relative;
		z-index: 120;
	}

	/* Below the header (z 100) so the drawer inside the header stays on top. */
	.nav-backdrop {
		position: fixed;
		inset: 0;
		z-index: 99;
		background: rgba(0, 0, 0, 0.55);
	}

	.nav-backdrop[hidden] {
		display: none;
	}
}

@media (max-width: 420px) {
	.lang-switch span {
		display: none;
	}

	.lang-switch {
		width: 42px;
		padding: 0;
		justify-content: center;
	}
}

/* ==========================================================================
   5. Search form
   ========================================================================== */

.search-form {
	position: relative;
	display: flex;
	gap: 8px;
	max-width: 640px;
}

.search-form__icon {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--c-muted);
	pointer-events: none;
}

.search-form__input {
	flex: 1;
	min-width: 0;
	height: 48px;
	padding: 0 16px 0 46px;
	border: 1px solid var(--c-border-strong);
	border-radius: 999px;
	background: var(--c-surface);
	color: var(--c-heading);
}

.search-form__input::placeholder {
	color: var(--c-muted);
}

.search-form__input:focus {
	outline: none;
	border-color: var(--c-accent-2);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-accent-2) 25%, transparent);
}

.search-form__submit {
	min-height: 48px;
}

/* ==========================================================================
   6. Sections & cards
   ========================================================================== */

.section {
	padding-block: clamp(48px, 7vw, 88px);
}

.section--tight {
	padding-block: clamp(28px, 4vw, 48px);
}

.section--alt {
	background: var(--c-bg-2);
	border-block: 1px solid var(--c-border);
}

.section-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: clamp(20px, 3vw, 32px);
}

.section-title {
	margin: 0;
	font-size: clamp(1.6rem, 3vw, 2.25rem);
}

.section-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex: none;
	color: var(--c-heading);
	font-weight: 700;
	font-size: 0.95rem;
	text-decoration: none;
}

.section-link .icon {
	transition: transform 0.2s var(--ease);
}

.section-link:hover {
	color: var(--c-accent);
}

.section-link:hover .icon {
	transform: translateX(3px);
}

.post-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(16px, 2vw, 24px);
}

@media (min-width: 560px) {
	.post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 900px) {
	.post-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.post-grid--compact {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.post-grid--compact .card__title {
	font-size: 1.05rem;
}

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	background: var(--c-surface);
	transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}

.card:hover,
.card:focus-within {
	transform: translateY(-4px);
	border-color: color-mix(in srgb, var(--c-accent) 50%, transparent);
	box-shadow: var(--shadow);
}

.card__media {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--c-surface-2);
}

.card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s var(--ease);
}

.card:hover .card__media img {
	transform: scale(1.05);
}

.card__placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	color: var(--c-muted);
}

.card__placeholder .icon {
	width: 48px;
	height: 48px;
}

.card__media .platforms {
	position: absolute;
	top: 10px;
	right: 10px;
}

.card__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 18px 20px 18px;
}

.card__chips {
	display: flex;
	gap: 6px;
	min-height: 0;
	margin-bottom: 10px;
}

.card__chips:empty {
	display: none;
}

.card__title {
	margin: 0 0 8px;
	font-size: 1.2rem;
	line-height: 1.25;
	letter-spacing: -0.015em;
}

.card__title a {
	color: var(--c-heading);
	text-decoration: none;
}

/* Whole card is clickable through the title link. */
.card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.card__title a:focus-visible {
	outline: none;
}

.card:focus-within {
	outline: 2px solid var(--c-accent-2);
	outline-offset: 2px;
}

.card__excerpt {
	margin: 0 0 16px;
	color: var(--c-muted);
	font-size: 0.93rem;
	line-height: 1.55;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid var(--c-border);
	color: var(--c-muted);
	font-size: 0.82rem;
}

/* ==========================================================================
   7. Homepage
   ========================================================================== */

.home-hero {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: flex-end;
	min-height: clamp(540px, 80vh, 780px);
	margin-top: calc(var(--header-h) * -1);
	padding: calc(var(--header-h) + 48px) 0 clamp(40px, 6vw, 72px);
	overflow: hidden;
}

.home-hero__bg {
	position: absolute;
	inset: 0;
	z-index: -1;
}

.home-hero__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 30%;
}

.home-hero__bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(var(--c-bg-rgb), 0.95) 0%, rgba(var(--c-bg-rgb), 0.75) 38%, rgba(var(--c-bg-rgb), 0.15) 75%),
		linear-gradient(0deg, var(--c-bg) 0%, rgba(var(--c-bg-rgb), 0) 45%),
		linear-gradient(180deg, rgba(var(--c-bg-rgb), 0.7) 0%, rgba(var(--c-bg-rgb), 0) 25%);
}

.home-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
	align-items: end;
	gap: clamp(24px, 4vw, 64px);
}

.home-hero__chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 18px;
}

.home-hero__title {
	margin: 0 0 16px;
	font-size: clamp(2.4rem, 6vw, 4.5rem);
	line-height: 1;
	letter-spacing: -0.035em;
}

.home-hero__title a {
	color: var(--c-heading);
	text-decoration: none;
}

.home-hero__text {
	max-width: 56ch;
	margin-bottom: 24px;
	color: var(--c-text);
	font-size: clamp(1rem, 1.4vw, 1.15rem);
}

.home-hero__content .store-buttons {
	margin-bottom: 14px;
}

.home-hero__more {
	padding: 16px;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-lg);
	background: rgba(var(--c-bg-rgb), 0.55);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
}

.home-hero__more-title {
	margin: 4px 6px 10px;
	color: var(--c-muted);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.mini-list {
	display: grid;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mini {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 8px;
	border-radius: 14px;
	transition: background-color 0.2s;
}

.mini:hover {
	background: color-mix(in srgb, var(--c-heading) 7%, transparent);
}

.mini__img {
	flex: none;
	width: 112px;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 10px;
}

.mini__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.mini__title {
	color: var(--c-heading);
	font-weight: 700;
	line-height: 1.25;
	text-decoration: none;
}

.mini__title::after {
	content: "";
	position: absolute;
	inset: 0;
}

.mini__meta {
	display: flex;
	align-items: center;
	gap: 8px;
}

.mini__meta .platform {
	padding: 3px;
	background: color-mix(in srgb, var(--c-heading) 8%, transparent);
	color: var(--c-muted);
}

.mini__meta .platform .icon {
	width: 14px;
	height: 14px;
}

.intro {
	padding-block: clamp(32px, 5vw, 56px);
	border-bottom: 1px solid var(--c-border);
}

.intro__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(24px, 5vw, 72px);
}

.intro__title {
	font-size: clamp(1.5rem, 2.8vw, 2.1rem);
}

.intro__text {
	margin: 0;
	max-width: 60ch;
	color: var(--c-muted);
	font-size: 1.05rem;
}

.stats {
	display: grid;
	grid-auto-columns: minmax(0, 1fr);
	grid-auto-flow: column;
	gap: 12px;
	margin: 0;
}

.stat {
	display: flex;
	flex-direction: column-reverse;
	padding: 18px 20px;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	background: var(--c-surface);
}

.stat__value {
	margin: 0;
	font-size: clamp(2rem, 4vw, 2.75rem);
	font-weight: 900;
	line-height: 1;
	letter-spacing: -0.04em;
	background: linear-gradient(120deg, var(--c-accent), var(--c-accent-2));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.stat__label {
	margin-top: 6px;
	color: var(--c-muted);
	font-size: 0.85rem;
	font-weight: 600;
}

.stat__label a {
	color: inherit;
	text-decoration: none;
}

.stat__label a:hover {
	color: var(--c-heading);
}

.platform-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
	gap: 16px;
}

.platform-tile {
	position: relative;
	display: grid;
	grid-template-columns: auto 1fr auto;
	grid-template-rows: auto auto;
	align-items: center;
	column-gap: 16px;
	padding: 22px;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	background:
		radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--c-accent) 14%, transparent) 0%, transparent 55%),
		var(--c-surface);
	color: var(--c-heading);
	text-decoration: none;
	transition: transform 0.25s var(--ease), border-color 0.25s;
}

.platform-tile--desktop {
	background:
		radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--c-accent-2) 14%, transparent) 0%, transparent 55%),
		var(--c-surface);
}

.platform-tile--web {
	background:
		radial-gradient(120% 140% at 0% 0%, rgba(140, 110, 255, 0.16) 0%, transparent 55%),
		var(--c-surface);
}

.platform-tile:hover {
	color: var(--c-heading);
	transform: translateY(-3px);
	border-color: var(--c-border-strong);
}

.platform-tile__icon {
	grid-row: span 2;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: color-mix(in srgb, var(--c-heading) 8%, transparent);
}

.platform-tile__icon .icon {
	width: 26px;
	height: 26px;
}

.platform-tile__name {
	font-size: 1.15rem;
	font-weight: 800;
}

.platform-tile__count {
	grid-column: 2;
	color: var(--c-muted);
	font-size: 0.88rem;
}

.platform-tile__arrow {
	grid-column: 3;
	grid-row: 1 / span 2;
	color: var(--c-muted);
	transition: transform 0.2s var(--ease), color 0.2s;
}

.platform-tile:hover .platform-tile__arrow {
	color: var(--c-accent);
	transform: translateX(4px);
}

/* ==========================================================================
   8. Page heroes, archives, pagination
   ========================================================================== */

.page-hero {
	padding-block: clamp(40px, 6vw, 72px) clamp(28px, 4vw, 44px);
	border-bottom: 1px solid var(--c-border);
	background:
		radial-gradient(60% 120% at 0% 0%, color-mix(in srgb, var(--c-accent) 12%, transparent) 0%, transparent 70%),
		radial-gradient(50% 100% at 100% 0%, color-mix(in srgb, var(--c-accent-2) 10%, transparent) 0%, transparent 70%);
}

.page-hero__icon {
	display: inline-grid;
	place-items: center;
	width: 52px;
	height: 52px;
	margin-bottom: 16px;
	border-radius: 14px;
	background: color-mix(in srgb, var(--c-accent) 16%, transparent);
	color: var(--c-accent);
}

.page-hero__icon .icon {
	width: 26px;
	height: 26px;
}

.page-hero__title {
	margin: 0;
	font-size: clamp(2rem, 5vw, 3.25rem);
	letter-spacing: -0.03em;
}

.page-hero__desc {
	max-width: 65ch;
	margin-top: 12px;
	color: var(--c-muted);
	font-size: 1.05rem;
}

.page-hero__desc p:last-child {
	margin-bottom: 0;
}

.page-hero__count {
	margin: 10px 0 0;
	color: var(--c-muted);
	font-weight: 600;
}

.page-hero__search {
	margin-top: 20px;
}

.filter-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 22px;
}

.filter-chip {
	padding: 8px 16px;
	border: 1px solid var(--c-border-strong);
	border-radius: 999px;
	color: var(--c-text);
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.filter-chip:hover {
	color: var(--c-heading);
	border-color: var(--c-heading);
}

.filter-chip.is-active {
	background: var(--c-heading);
	border-color: var(--c-heading);
	color: var(--c-bg);
}

.pagination {
	margin-top: clamp(32px, 5vw, 56px);
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 46px;
	height: 46px;
	padding: 0 12px;
	border: 1px solid var(--c-border);
	border-radius: 12px;
	background: var(--c-surface);
	color: var(--c-heading);
	font-weight: 700;
	text-decoration: none;
	transition: border-color 0.2s, background-color 0.2s;
}

a.page-numbers:hover {
	color: var(--c-heading);
	border-color: var(--c-border-strong);
}

.page-numbers.current {
	background: var(--c-accent);
	border-color: var(--c-accent);
	color: var(--c-on-accent);
}

.page-numbers.dots {
	border: 0;
	background: none;
}

.empty-state {
	max-width: 560px;
	margin-inline: auto;
	padding: 48px 0;
	text-align: center;
}

.empty-state__icon {
	display: inline-grid;
	place-items: center;
	width: 72px;
	height: 72px;
	margin-bottom: 16px;
	border-radius: 20px;
	background: var(--c-surface);
	color: var(--c-muted);
}

.empty-state__icon .icon {
	width: 36px;
	height: 36px;
}

.empty-state p {
	color: var(--c-muted);
}

.empty-state .search-form {
	margin-inline: auto;
}

/* ==========================================================================
   9. Single post
   ========================================================================== */

.single-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding-block: clamp(28px, 4vw, 48px) clamp(36px, 5vw, 64px);
	border-bottom: 1px solid var(--c-border);
}

.single-hero__bg {
	position: absolute;
	inset: -40px;
	z-index: -1;
}

.single-hero__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: blur(36px) saturate(140%);
	opacity: 0.45;
	transform: scale(1.1);
}

.single-hero__bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(var(--c-bg-rgb), 0.5) 0%, var(--c-bg) 100%);
}

.breadcrumbs {
	margin-bottom: clamp(20px, 3vw, 32px);
	color: var(--c-muted);
	font-size: 0.88rem;
}

.breadcrumbs a {
	color: var(--c-text);
	text-decoration: none;
}

.breadcrumbs a:hover {
	color: var(--c-heading);
	text-decoration: underline;
}

.breadcrumbs .sep {
	margin-inline: 8px;
	opacity: 0.5;
}

.single-hero__grid {
	display: grid;
	gap: clamp(24px, 4vw, 56px);
	align-items: center;
}

.single-hero__grid.has-cover {
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}

.single-hero__cover img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: var(--radius-lg);
	border: 1px solid var(--c-border-strong);
	box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}

.single-hero__chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
}

.single-hero__title {
	margin: 0 0 14px;
	font-size: clamp(2rem, 4.6vw, 3.5rem);
	line-height: 1.05;
	letter-spacing: -0.035em;
}

.is-article .single-hero__info {
	max-width: 820px;
}

.single-hero__tagline {
	max-width: 56ch;
	margin-bottom: 22px;
	color: var(--c-text);
	font-size: 1.12rem;
}

.single-hero__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: var(--c-muted);
	font-size: 0.9rem;
}

.single-hero__meta .icon {
	width: 16px;
	height: 16px;
}

.single-hero__meta .sep {
	opacity: 0.5;
}

.single-layout {
	display: grid;
	gap: clamp(32px, 4vw, 56px);
	padding-block: clamp(32px, 5vw, 56px);
}

.single-layout--sidebar {
	grid-template-columns: minmax(0, 1fr) 320px;
	align-items: start;
}

.single-layout:not(.single-layout--sidebar) .single-main {
	max-width: 820px;
	margin-inline: auto;
	width: 100%;
}

.single-aside {
	position: sticky;
	top: calc(var(--header-h) + 24px);
	display: grid;
	gap: 24px;
}

.trailer {
	margin-bottom: 32px;
}

.lite-yt {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--radius);
	background: #000;
	box-shadow: var(--shadow);
}

.lite-yt img,
.lite-yt iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: cover;
}

.lite-yt__btn {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	width: 100%;
	border: 0;
	background: linear-gradient(0deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.1));
	color: #fff;
	cursor: pointer;
}

.lite-yt__btn .icon {
	width: 76px;
	height: 76px;
	padding: 20px 18px 20px 22px;
	border-radius: 50%;
	background: var(--c-accent);
	box-shadow: 0 10px 40px -8px var(--c-accent);
	transition: transform 0.25s var(--ease);
}

.lite-yt__btn:hover .icon {
	transform: scale(1.08);
}

.get-it {
	margin: 40px 0;
	padding: 28px;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-lg);
	background:
		radial-gradient(80% 140% at 100% 0%, color-mix(in srgb, var(--c-accent) 16%, transparent) 0%, transparent 60%),
		var(--c-surface);
}

.get-it__title {
	margin-bottom: 16px;
	color: var(--c-heading);
	font-size: 1.35rem;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.get-it .store-buttons {
	margin: 0;
}

.info-card {
	padding: 22px;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	background: var(--c-surface);
}

.info-card__title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
	font-size: 1rem;
	letter-spacing: 0;
}

.info-card__title .icon {
	color: var(--c-accent);
}

.info-card__list {
	margin: 0;
}

.info-card__list > div {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 10px 0;
	border-bottom: 1px solid var(--c-border);
	font-size: 0.9rem;
}

.info-card__list > div:last-child {
	border-bottom: 0;
}

.info-card__list dt {
	flex: none;
	color: var(--c-muted);
}

.info-card__list dd {
	margin: 0;
	color: var(--c-heading);
	font-weight: 600;
	text-align: right;
}

.tag-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 32px 0 0;
	padding: 0;
	list-style: none;
}

.tag-list a {
	display: inline-block;
	padding: 6px 12px;
	border: 1px solid var(--c-border);
	border-radius: 999px;
	color: var(--c-text);
	font-size: 0.85rem;
	text-decoration: none;
}

.tag-list a::before {
	content: "#";
	opacity: 0.5;
}

.tag-list a:hover {
	color: var(--c-heading);
	border-color: var(--c-border-strong);
}

.post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-top: 40px;
}

.post-nav a {
	display: flex;
	flex-direction: column;
	gap: 4px;
	height: 100%;
	padding: 16px 20px;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	color: var(--c-heading);
	font-weight: 700;
	text-decoration: none;
	transition: border-color 0.2s;
}

.post-nav a:hover {
	border-color: var(--c-border-strong);
	color: var(--c-heading);
}

.post-nav small {
	color: var(--c-muted);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.post-nav__next {
	grid-column: 2;
	text-align: right;
}

.section--related {
	background: var(--c-bg-2);
	border-top: 1px solid var(--c-border);
}

.page-cover img {
	width: 100%;
	border-radius: var(--radius-lg);
}

.page-cover {
	margin: 0 0 32px;
}

/* ==========================================================================
   10. Entry content
   ========================================================================== */

.entry-content {
	font-size: 1.0625rem;
	line-height: 1.75;
	overflow-wrap: break-word;
}

.entry-content > * {
	margin-block: 0 1.25em;
}

.entry-content h2 {
	margin-top: 1.8em;
	font-size: 1.75rem;
}

.entry-content h3 {
	margin-top: 1.6em;
	font-size: 1.35rem;
}

.entry-content h4 {
	margin-top: 1.4em;
	font-size: 1.1rem;
}

.entry-content a:not(.wp-block-button__link):not(.store-btn) {
	color: var(--c-accent);
	text-decoration: underline;
}

.entry-content a:not(.wp-block-button__link):not(.store-btn):hover {
	color: var(--c-heading);
}

.entry-content img {
	border-radius: var(--radius-sm);
}

.entry-content figure {
	margin-inline: 0;
}

.entry-content figcaption,
.wp-caption-text {
	margin-top: 8px;
	color: var(--c-muted);
	font-size: 0.85rem;
	text-align: center;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.4em;
}

.entry-content li {
	margin-bottom: 0.4em;
}

.entry-content li::marker {
	color: var(--c-accent);
}

.entry-content blockquote,
.wp-block-quote {
	margin-inline: 0;
	padding: 4px 0 4px 22px;
	border-left: 3px solid var(--c-accent);
	color: var(--c-heading);
	font-size: 1.15rem;
	font-style: italic;
}

.entry-content hr,
.wp-block-separator {
	border: 0;
	border-top: 1px solid var(--c-border-strong);
	margin-block: 2.5em;
}

.entry-content code,
.entry-content kbd {
	padding: 0.15em 0.4em;
	border-radius: 6px;
	background: var(--c-surface-2);
	font-family: var(--font-mono);
	font-size: 0.88em;
}

.entry-content pre {
	overflow-x: auto;
	padding: 18px 20px;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-sm);
	background: var(--c-surface);
	font-family: var(--font-mono);
	font-size: 0.9rem;
	line-height: 1.6;
}

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

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

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

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

.entry-content iframe {
	max-width: 100%;
	border-radius: var(--radius-sm);
}

/* Classic-editor YouTube iframes without a responsive wrapper. */
.entry-content > iframe[src*="youtube"],
.entry-content p > iframe[src*="youtube"] {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
}

.wp-block-embed__wrapper iframe {
	border-radius: var(--radius-sm);
}

.alignleft {
	float: left;
	margin: 0.3em 1.5em 1em 0;
}

.alignright {
	float: right;
	margin: 0.3em 0 1em 1.5em;
}

.aligncenter {
	margin-inline: auto;
	text-align: center;
}

.aligncenter img {
	margin-inline: auto;
}

.entry-content::after {
	content: "";
	display: table;
	clear: both;
}

.wp-caption {
	max-width: 100%;
}

.wp-block-button__link {
	border-radius: 999px;
	background: var(--c-accent);
	color: var(--c-on-accent);
	font-weight: 700;
	text-decoration: none;
}

.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--c-heading);
	border: 1px solid var(--c-border-strong);
}

.wp-block-image img,
.wp-block-gallery img {
	border-radius: var(--radius-sm);
}

.wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
	border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.page-links {
	display: flex;
	gap: 8px;
	align-items: center;
	margin-top: 24px;
}

.sticky {
	position: relative;
}

.bypostauthor {
	position: relative;
}

.gallery-caption {
	font-size: 0.85rem;
}

/* ==========================================================================
   11. Ads
   ========================================================================== */

.ad-slot {
	position: relative;
	margin: 32px auto;
	max-width: 100%;
	overflow: hidden;
	text-align: center;
}

.ad-slot__label {
	display: block;
	margin-bottom: 6px;
	color: var(--c-muted);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	opacity: 0.7;
}

.ad-slot--top {
	margin: 24px auto 0;
}

.ad-slot--grid {
	grid-column: 1 / -1;
	margin: 8px 0;
}

.ad-slot--sidebar {
	margin: 0;
}

.ad-widget + .ad-widget {
	margin-top: 16px;
}

/* ==========================================================================
   12. Widgets & sidebar
   ========================================================================== */

.widget {
	margin-bottom: 32px;
}

.widget-title {
	margin-bottom: 14px;
	color: var(--c-muted);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.widget li {
	padding: 8px 0;
	border-bottom: 1px solid var(--c-border);
}

.widget li:last-child {
	border-bottom: 0;
}

.widget a {
	color: var(--c-text);
	text-decoration: none;
}

.widget a:hover {
	color: var(--c-heading);
}

.single-aside .widget {
	padding: 22px;
	margin: 0;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	background: var(--c-surface);
}

.single-aside .widget-area {
	display: grid;
	gap: 24px;
}

.widget .search-form {
	flex-wrap: wrap;
}

.widget .search-form__submit {
	display: none;
}

.wp-block-latest-posts__featured-image img {
	border-radius: 8px;
}

/* ==========================================================================
   13. Comments
   ========================================================================== */

.comments-wrap {
	padding-block: clamp(32px, 5vw, 56px);
}

.comments__title {
	font-size: 1.5rem;
}

.comment-list {
	margin: 0 0 32px;
	padding: 0;
	list-style: none;
}

.comment-list .children {
	margin: 0;
	padding-left: clamp(16px, 4vw, 40px);
	list-style: none;
}

.comment-body {
	padding: 18px 0;
	border-bottom: 1px solid var(--c-border);
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--c-heading);
}

.comment-author .avatar {
	border-radius: 50%;
}

.comment-author .says {
	display: none;
}

.comment-metadata {
	margin: 4px 0 8px 56px;
	font-size: 0.82rem;
}

.comment-metadata a {
	color: var(--c-muted);
	text-decoration: none;
}

.comment-content {
	margin-left: 56px;
}

.reply {
	margin-left: 56px;
	font-size: 0.88rem;
	font-weight: 700;
}

.comment-respond {
	margin-top: 24px;
}

.comment-form label {
	display: block;
	margin-bottom: 6px;
	color: var(--c-heading);
	font-weight: 600;
	font-size: 0.9rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--c-border-strong);
	border-radius: var(--radius-sm);
	background: var(--c-surface);
	color: var(--c-heading);
}

.comment-form-cookies-consent {
	display: flex;
	gap: 8px;
	align-items: flex-start;
}

.comment-form-cookies-consent label {
	font-weight: 400;
}

/* ==========================================================================
   14. 404
   ========================================================================== */

.not-found {
	padding-block: clamp(56px, 10vw, 120px) clamp(24px, 4vw, 40px);
	text-align: center;
}

.not-found__code {
	margin: 0;
	font-size: clamp(6rem, 20vw, 11rem);
	font-weight: 900;
	line-height: 0.9;
	letter-spacing: -0.06em;
	background: linear-gradient(120deg, var(--c-accent), var(--c-accent-2));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.not-found__title {
	margin-top: 12px;
	font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.not-found__text {
	color: var(--c-muted);
}

.not-found .search-form {
	margin: 28px auto 20px;
}

/* ==========================================================================
   15. Footer
   ========================================================================== */

.site-footer {
	padding-top: clamp(48px, 6vw, 72px);
	border-top: 1px solid var(--c-border);
	background: var(--c-bg-2);
	font-size: 0.95rem;
}

.site-footer__top {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(180px, 1fr));
	gap: clamp(32px, 4vw, 56px);
	padding-bottom: clamp(32px, 5vw, 56px);
}

.site-footer__about {
	max-width: 42ch;
	margin: 16px 0 20px;
	color: var(--c-muted);
}

.social-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.social-links a {
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border: 1px solid var(--c-border);
	border-radius: 12px;
	color: var(--c-heading);
	transition: border-color 0.2s, background-color 0.2s, transform 0.2s var(--ease);
}

.social-links a:hover {
	color: var(--c-heading);
	border-color: var(--c-accent);
	background: color-mix(in srgb, var(--c-accent) 14%, transparent);
	transform: translateY(-2px);
}

.social-links .icon {
	width: 20px;
	height: 20px;
}

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	padding-block: 22px;
	border-top: 1px solid var(--c-border);
	color: var(--c-muted);
	font-size: 0.88rem;
}

.site-footer__copy {
	margin: 0;
}

.footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-menu a {
	color: var(--c-muted);
	text-decoration: none;
}

.footer-menu a:hover {
	color: var(--c-heading);
}

/* ==========================================================================
   16. Responsive
   ========================================================================== */

@media (max-width: 1023px) {
	.home-hero__inner,
	.intro__inner,
	.single-layout--sidebar {
		grid-template-columns: minmax(0, 1fr);
	}

	.single-aside {
		position: static;
	}

	.home-hero__more {
		display: none;
	}

	.single-hero__grid.has-cover {
		grid-template-columns: minmax(0, 1fr);
	}

	.single-hero__cover {
		max-width: 640px;
	}
}

@media (max-width: 640px) {
	:root {
		--header-h: 64px;
	}

	body {
		--header-h: 64px;
	}

	.home-hero {
		min-height: 0;
		padding-top: calc(var(--header-h) + 160px);
	}

	.home-hero__bg::after {
		background:
			linear-gradient(0deg, var(--c-bg) 0%, rgba(var(--c-bg-rgb), 0.85) 45%, rgba(var(--c-bg-rgb), 0.2) 100%);
	}

	.store-buttons--lg .store-btn {
		flex: 1 1 150px;
	}

	.section-header {
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
	}

	.post-nav {
		grid-template-columns: 1fr;
	}

	.post-nav__next {
		grid-column: auto;
	}

	.search-form__submit {
		display: none;
	}

	.stats {
		gap: 8px;
	}

	.stat {
		padding: 14px;
	}

	.stat__label {
		font-size: 0.78rem;
	}

	.site-footer__top {
		grid-template-columns: minmax(0, 1fr);
	}

	.alignleft,
	.alignright {
		float: none;
		margin: 0 0 1em;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
