/*
Theme Name: Akeem
Description: A custom block theme scaffolded by Studio Code.
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: akeem
Tags: full-site-editing, block-patterns, block-styles, wide-blocks, accessibility-ready, style-variations
*/

/* WordPress inserts a margin-block-start equal to the block gap (24px unless
   theme.json sets styles.spacing.blockGap) between the template's top-level
   sections (header part, main, footer part) — a gap that exists even when no
   markup asks for it. Zero it so sections butt edge-to-edge and own their
   vertical rhythm via padding; this does not affect block gaps inside nested
   layouts. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* With that gap gone, main carries its own vertical padding so templates this
   theme does not author (WooCommerce shop, product, cart…) still clear the
   header and footer. A descendant selector, not a child one: WooCommerce wraps
   the single-product main in an extra group. Templates built from full-bleed
   sections opt out with is-flush and let the sections own the rhythm. */
.wp-site-blocks main {
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--70);
}
.wp-site-blocks main.is-flush {
	padding-block: 0;
}

/* ---- Midnight: header & footer ---- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(15, 27, 51, 0.92);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	border-bottom: 1px solid rgba(58, 79, 120, 0.4);
}
.site-header .wp-block-site-title {
	font-size: 1.5rem;
	font-weight: 500;
	letter-spacing: -0.01em;
}
.site-nav .wp-block-navigation-item__content {
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(243, 237, 224, 0.75);
}
.site-nav .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--primary);
}
.site-footer {
	border-top: 1px solid rgba(58, 79, 120, 0.4);
}
.site-footer .wp-block-paragraph {
	color: var(--wp--preset--color--muted);
	font-size: 0.9rem;
}

/* ---- Midnight: typographic helpers ---- */
.eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-weight: 600;
	margin-bottom: 0.5em;
}
.band-heading,
.page-headline {
	margin-bottom: 0.4em;
}
.hero-sub {
	opacity: 0.85;
	max-width: 30em;
}
.gold-word {
	color: var(--wp--preset--color--primary);
}
.band-note {
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-weight: 600;
}

/* ---- Midnight: bands ---- */
.wp-site-blocks .band {
	padding-block: clamp(4rem, 8vw, 7rem);
}

/* ---- Midnight: hero cover (left-aligned content) ---- */
.hero-copy {
	max-width: min(760px, 100%);
	margin-right: auto;
}
.is-style-hero .wp-block-cover__inner-container {
	text-align: left;
}
.wp-block-separator.is-style-gold-rule {
	width: 64px;
	height: 2px;
	margin: 1.5rem 0 2rem;
	background: var(--wp--preset--color--primary);
	border: none;
}

/* ---- Midnight: cards ---- */
.project-card {
	border: 1px solid rgba(58, 79, 120, 0.45);
	border-radius: 4px;
	overflow: hidden;
	color: var(--wp--preset--color--text);
}
.card-media img {
	aspect-ratio: 4 / 3;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.card-media {
	margin: 0;
}
.project-card .card-label {
	margin: 1.25rem 1.5rem 0.2rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 0.7rem;
	font-weight: 600;
}
.project-card .card-title {
	margin: 0 1.5rem;
	font-size: 1.5rem;
}
.project-card .card-text {
	margin: 0.5rem 1.5rem 1.5rem;
	color: rgba(243, 237, 224, 0.72);
}
.about-portrait,
.about-portrait img {
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: 4px;
}

/* ---- Midnight: skill list ---- */
.skill-list {
	color: var(--wp--preset--color--text);
}
.skill-list li {
	margin-block: 0.55em;
	padding-left: 1.1em;
	text-indent: -1.1em;
}
.skill-list li::before {
	content: "◆";
	color: var(--wp--preset--color--primary);
	font-size: 0.7em;
	display: inline-block;
	width: 1.1em;
}

/* ---- Midnight: outline button ---- */
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--text);
	border: 1px solid var(--wp--preset--color--primary);
	padding: 13px 24px;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--background);
}

/* ---- Midnight: contact form fields ---- */
.wp-block-jetpack-contact-form input,
.wp-block-jetpack-contact-form textarea {
	background: var(--wp--preset--color--panel);
	color: var(--wp--preset--color--text);
	border: 1px solid var(--wp--preset--color--muted);
	border-radius: 4px;
	padding: 12px 14px;
}
.wp-block-jetpack-contact-form .wp-block-jetpack-button,
.wp-block-jetpack-contact-form .wp-block-button {
	margin-top: 1rem;
}

/* ---- Midnight: WooCommerce polish ---- */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.wp-block-woocommerce-product-collection .wp-block-post-title {
	font-family: var(--wp--preset--font-family--fraunces);
	font-weight: 500;
}
.wc-block-components-product-price,
.price,
.woocommerce-Price-amount {
	color: var(--wp--preset--color--primary);
}
.wp-block-woocommerce-product-collection .wc-block-components-product-button .wp-block-button__link,
.woocommerce a.button, .woocommerce button.button {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--background);
	border-radius: 4px;
	padding: 12px 22px;
	font-weight: 600;
}
