/*
 * ArtistlyHub Design System
 * Gutenberg-compatible adaptation of the supplied ArtistlyHub main.css.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
	--ah-bg: #0e1014;
	--ah-bg-elevated: #13171d;
	--ah-card: #161b22;
	--ah-soft: #1c232c;
	--ah-text: #e6e9ec;
	--ah-text-secondary: #c5cbd3;
	--ah-muted: #8b96a3;
	--ah-accent: #b8c5d4;
	--ah-link: #aec4d9;
	--ah-link-hover: #c8daf0;
	--ah-border: rgba(255,255,255,.09);
	--ah-container: 1180px;
}

html, body {
	background: var(--ah-bg);
}

body {
	font-family: "Inter", sans-serif;
	font-weight: 400;
	line-height: 1.6;
	color: var(--ah-text);
	background: var(--ah-bg);
}

body, .wp-site-blocks {
	min-height: 100%;
}

.wp-site-blocks {
	background: var(--ah-bg);
	color: var(--ah-text);
}

a {
	color: var(--ah-link);
	text-underline-offset: 3px;
}

a:hover {
	color: var(--ah-link-hover);
}

h1, h2, h3, h4, h5, h6,
.wp-block-heading {
	font-family: "Inter", sans-serif;
	color: var(--ah-text);
	font-weight: 700;
}

p, .wp-block-paragraph {
	font-family: "Inter", sans-serif;
	color: var(--ah-text);
	font-weight: 400;
}

/* Gutenberg buttons */
.wp-block-button__link,
.wp-element-button {
	font-family: "Inter", sans-serif;
	font-weight: 600;
	background: var(--ah-text);
	color: #000;
	border: 1px solid var(--ah-border);
	border-radius: 14px;
	padding: 0 22px;
	min-height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	transition: transform .15s ease, background-color .15s ease, color .15s ease;
}

.wp-block-button__link:hover,
.wp-element-button:hover {
	background: #fff;
	color: #000;
	transform: translateY(-1px);
}

.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--ah-text);
	border-color: var(--ah-border);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: rgba(255,255,255,.05);
	color: #fff;
}

/* Gutenberg content container */
.wp-site-blocks > .wp-block-group,
.wp-site-blocks > .wp-block-cover,
.wp-site-blocks > .wp-block-columns {
	max-width: var(--ah-container);
	margin-left: auto;
	margin-right: auto;
}

/* Useful Gutenberg utility classes for matching the supplied source */
.ah-container {
	width: min(100% - 48px, var(--ah-container));
	margin-inline: auto;
}

.ah-hero {
	padding: 72px 0 64px;
}

.ah-hero-grid {
	display: grid;
	grid-template-columns: 1.2fr .8fr;
	gap: 56px;
	align-items: center;
}

.ah-hero h1 {
	font-size: clamp(42px, 6vw, 78px);
	line-height: .96;
	letter-spacing: -.06em;
	margin: 0 0 24px;
}

.ah-hero p {
	font-size: 18px;
	color: var(--ah-text-secondary);
	max-width: 700px;
	margin: 0 0 28px;
}

.ah-hero-card {
	background: var(--ah-card);
	border: 1px solid var(--ah-border);
	border-radius: 18px;
	padding: 32px;
}

.ah-hero-card h2 {
	font-size: 28px;
	line-height: 1.1;
	letter-spacing: -.03em;
	margin: 0 0 14px;
}

.ah-hero-card p {
	font-size: 16px;
	margin-bottom: 24px;
}

.ah-stack-item {
	padding: 16px 0;
	border-top: 1px solid var(--ah-border);
}

.ah-stack-item:first-child {
	border-top: 0;
	padding-top: 0;
}

.ah-stack-item:last-child {
	padding-bottom: 0;
}

.ah-stack-item strong {
	display: block;
	font-weight: 600;
	color: var(--ah-text);
	margin-bottom: 4px;
}

.ah-stack-item span {
	display: block;
	font-size: 14px;
	color: var(--ah-muted);
}

/* Cards / cornerstones */
.ah-card {
	background: var(--ah-card);
	border: 1px solid var(--ah-border);
	border-radius: 18px;
	padding: 28px;
}

.ah-card h2,
.ah-card h3 {
	margin-top: 0;
}

.ah-muted {
	color: var(--ah-muted);
}

.ah-secondary {
	color: var(--ah-text-secondary);
}

/* Metadata / captions */
.wp-block-post-date,
.wp-block-post-author,
.wp-block-caption,
.ah-caption {
	color: var(--ah-muted);
	font-size: 14px;
	line-height: 1.5;
}

/* Query / post lists */
.wp-block-query .wp-block-post-title a {
	color: var(--ah-text);
}

.wp-block-query .wp-block-post-title a:hover {
	color: var(--ah-link-hover);
}

/* Footer */
.ah-footer {
	color: var(--ah-muted);
	font-size: 13px;
	border-top: 1px solid var(--ah-border);
	padding: 32px 0;
}

.ah-footer a {
	color: var(--ah-muted);
}

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

/* Editor canvas: keep the design visible while editing */
.editor-styles-wrapper {
	font-family: "Inter", sans-serif;
	background: var(--ah-bg);
	color: var(--ah-text);
}

.editor-styles-wrapper a {
	color: var(--ah-link);
}

.editor-styles-wrapper h1,
.editor-styles-wrapper h2,
.editor-styles-wrapper h3,
.editor-styles-wrapper h4,
.editor-styles-wrapper h5,
.editor-styles-wrapper h6 {
	color: var(--ah-text);
	font-family: "Inter", sans-serif;
	font-weight: 700;
}

@media (max-width: 900px) {
	.ah-hero-grid {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.ah-hero {
		padding: 56px 0 48px;
	}
}

@media (max-width: 640px) {
	.ah-container {
		width: min(100% - 32px, var(--ah-container));
	}

	.ah-hero h1 {
		font-size: clamp(40px, 13vw, 58px);
	}

	.ah-hero-card,
	.ah-card {
		padding: 22px;
	}
}
