/*
Theme Name: AdCraft Mind
Theme URI: https://adcraftmind.com/
Author: AdCraft Mind
Author URI: https://adcraftmind.com/about/
Description: A fast editorial block theme for AI, technology, marketing, advertising, business news, and a professional portfolio.
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 8.1
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: adcraftmind
Tags: block-patterns, full-site-editing, news, blog, portfolio
*/

:root {
	--acm-shadow: 0 24px 70px rgba(6, 15, 30, 0.12);
	--acm-shadow-small: 0 12px 30px rgba(6, 15, 30, 0.09);
	--acm-radius: 22px;
	--acm-radius-small: 12px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	overflow-x: hidden;
}

a {
	text-underline-offset: 0.16em;
	text-decoration-thickness: 1px;
}

.wp-site-blocks {
	min-height: 100vh;
}

.acm-site-header {
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	position: sticky;
	top: 0;
	z-index: 50;
	backdrop-filter: blur(18px);
}

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

.acm-brand-mark {
	align-items: center;
	background: var(--wp--preset--color--signal);
	border-radius: 8px;
	color: var(--wp--preset--color--ink);
	display: inline-flex;
	font-size: 0.7rem;
	font-weight: 900;
	height: 34px;
	justify-content: center;
	letter-spacing: -0.04em;
	text-decoration: none;
	width: 34px;
}

.acm-topic-rail {
	-ms-overflow-style: none;
	overflow-x: auto;
	scrollbar-width: none;
	white-space: nowrap;
}

.acm-topic-rail::-webkit-scrollbar {
	display: none;
}

.acm-topic-rail a {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 999px;
	color: var(--wp--preset--color--paper);
	display: inline-block;
	font-size: 0.82rem;
	font-weight: 700;
	padding: 0.55rem 0.9rem;
	text-decoration: none;
}

.acm-topic-rail a:hover,
.acm-topic-rail a:focus-visible {
	background: var(--wp--preset--color--signal);
	border-color: var(--wp--preset--color--signal);
	color: var(--wp--preset--color--ink);
}

.acm-hero {
	background:
		radial-gradient(circle at 82% 18%, rgba(45, 212, 191, 0.22), transparent 30rem),
		radial-gradient(circle at 18% 82%, rgba(255, 171, 64, 0.18), transparent 26rem),
		var(--wp--preset--color--ink);
	isolation: isolate;
	overflow: hidden;
	position: relative;
}

.acm-hero::after {
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
	background-size: 42px 42px;
	content: "";
	inset: 0;
	mask-image: linear-gradient(to bottom, black, transparent 85%);
	pointer-events: none;
	position: absolute;
	z-index: -1;
}

.acm-kicker {
	align-items: center;
	display: inline-flex;
	font-size: 0.75rem;
	font-weight: 800;
	gap: 0.55rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.acm-kicker::before {
	background: var(--wp--preset--color--signal);
	border-radius: 999px;
	box-shadow: 0 0 0 5px rgba(255, 171, 64, 0.14);
	content: "";
	height: 8px;
	width: 8px;
}

.acm-stat-strip {
	border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.acm-stat {
	border-right: 1px solid rgba(255, 255, 255, 0.14);
	min-width: 8rem;
}

.acm-stat:last-child {
	border-right: 0;
}

.acm-card {
	background: var(--wp--preset--color--paper);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--acm-radius);
	box-shadow: var(--acm-shadow-small);
	overflow: hidden;
	transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.acm-card:hover {
	border-color: rgba(19, 109, 255, 0.35);
	box-shadow: var(--acm-shadow);
	transform: translateY(-4px);
}

.acm-card .wp-block-post-featured-image {
	background:
		linear-gradient(135deg, rgba(19, 109, 255, 0.85), rgba(45, 212, 191, 0.72)),
		var(--wp--preset--color--ink);
	margin: 0;
	min-height: 210px;
	overflow: hidden;
}

.acm-card .wp-block-post-featured-image img {
	aspect-ratio: 16 / 10;
	object-fit: cover;
	transition: transform 300ms ease;
}

.acm-card:hover .wp-block-post-featured-image img {
	transform: scale(1.025);
}

.acm-card .wp-block-post-terms a {
	text-decoration: none;
}

.acm-card .wp-block-post-title a {
	text-decoration: none;
}

.acm-card .wp-block-post-title a:hover {
	color: var(--wp--preset--color--link);
}

.acm-card-body {
	padding: 1.25rem 1.35rem 1.45rem;
}

.acm-dark-card {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: var(--acm-radius);
}

.acm-feature-grid {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: repeat(12, minmax(0, 1fr));
}

.acm-feature-grid > * {
	grid-column: span 4;
}

.acm-feature-grid > *:first-child {
	grid-column: span 8;
	grid-row: span 2;
}

.acm-feature-grid > *:first-child .wp-block-post-title {
	font-size: clamp(1.75rem, 4vw, 3.4rem);
}

.acm-section-heading {
	align-items: end;
	display: flex;
	gap: 1.5rem;
	justify-content: space-between;
}

.acm-section-heading > * {
	margin: 0;
}

.acm-signal-rule {
	background: linear-gradient(90deg, var(--wp--preset--color--signal), var(--wp--preset--color--aqua));
	border: 0;
	height: 4px;
	margin-left: 0;
	width: 78px;
}

.acm-chip {
	background: var(--wp--preset--color--mist);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	display: inline-block;
	font-size: 0.82rem;
	font-weight: 700;
	margin: 0 0.35rem 0.45rem 0;
	padding: 0.48rem 0.75rem;
}

.acm-coverage-preview {
	background:
		linear-gradient(160deg, rgba(19, 109, 255, 0.18), transparent 46%),
		var(--wp--preset--color--ink);
	border-radius: var(--acm-radius);
	color: var(--wp--preset--color--paper);
	overflow: hidden;
	position: relative;
}

.acm-coverage-bar {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	height: 12px;
	overflow: hidden;
	border-radius: 999px;
}

.acm-coverage-bar span:nth-child(1) {
	background: var(--wp--preset--color--link);
}

.acm-coverage-bar span:nth-child(2) {
	background: var(--wp--preset--color--aqua);
}

.acm-coverage-bar span:nth-child(3) {
	background: var(--wp--preset--color--signal);
}

.acm-portrait-placeholder {
	align-items: center;
	aspect-ratio: 4 / 5;
	background:
		linear-gradient(150deg, rgba(45, 212, 191, 0.8), rgba(19, 109, 255, 0.88)),
		var(--wp--preset--color--ink);
	border-radius: var(--acm-radius);
	color: var(--wp--preset--color--paper);
	display: flex;
	font-size: clamp(4rem, 12vw, 8rem);
	font-weight: 900;
	justify-content: center;
	letter-spacing: -0.08em;
	overflow: hidden;
	position: relative;
}

.acm-portrait-placeholder::after {
	border: 1px solid rgba(255, 255, 255, 0.26);
	border-radius: 999px;
	content: "";
	height: 70%;
	position: absolute;
	width: 70%;
}

.acm-timeline-item {
	border-left: 3px solid var(--wp--preset--color--line);
	padding-left: 1.25rem;
	position: relative;
}

.acm-timeline-item::before {
	background: var(--wp--preset--color--signal);
	border: 4px solid var(--wp--preset--color--paper);
	border-radius: 999px;
	box-shadow: 0 0 0 1px var(--wp--preset--color--line);
	content: "";
	height: 13px;
	left: -8px;
	position: absolute;
	top: 0.35rem;
	width: 13px;
}

.acm-article-header {
	background:
		radial-gradient(circle at 80% 0%, rgba(45, 212, 191, 0.18), transparent 22rem),
		var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
}

.acm-article-content {
	font-size: 1.08rem;
	line-height: 1.8;
}

.acm-article-content > p:first-of-type {
	font-size: 1.25rem;
	line-height: 1.65;
}

.acm-article-content h2 {
	margin-top: 2.5rem;
}

.acm-article-content blockquote {
	border-left: 4px solid var(--wp--preset--color--signal);
	font-size: 1.2rem;
	font-weight: 650;
	margin: 2rem 0;
	padding: 0.5rem 0 0.5rem 1.35rem;
}

.acm-pagination .page-numbers {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 9px;
	display: inline-block;
	margin: 0.2rem;
	padding: 0.5rem 0.75rem;
	text-decoration: none;
}

.acm-pagination .current,
.acm-pagination a:hover {
	background: var(--wp--preset--color--ink);
	border-color: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
}

.acm-social-links a {
	text-decoration: none;
}

.is-style-none {
	list-style: none;
}

.acm-site-footer {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
}

.acm-site-footer a {
	color: var(--wp--preset--color--paper);
}

@media (max-width: 900px) {
	.acm-feature-grid > *,
	.acm-feature-grid > *:first-child {
		grid-column: span 6;
		grid-row: auto;
	}

	.acm-site-header {
		position: relative;
		top: auto;
	}

	.admin-bar .acm-site-header {
		top: auto;
	}
}

@media (max-width: 680px) {
	.acm-feature-grid {
		display: block;
	}

	.acm-feature-grid > * {
		margin-bottom: 1rem;
	}

	.acm-section-heading {
		align-items: start;
		flex-direction: column;
		gap: 0.6rem;
	}

	.acm-stat {
		border-bottom: 1px solid rgba(255, 255, 255, 0.14);
		border-right: 0;
	}

	.wp-block-navigation__responsive-container.is-menu-open {
		background: var(--wp--preset--color--ink) !important;
		color: var(--wp--preset--color--paper) !important;
		padding: 1.5rem;
	}
}

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

	* {
		transition-duration: 0.01ms !important;
	}
}
