/*
Theme Name: Refinatrix
Theme URI: https://refinatrix.com
Author: Refinatrix
Author URI: https://refinatrix.com
Description: A Gutenberg-first dark theme for Refinatrix — a Las Vegas studio that takes mobile games, casino games, and apps from idea to playable prototype.
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: refinatrix
Tags: block-theme, full-site-editing, dark, portfolio, one-column, custom-logo, featured-images, translation-ready
*/

/* Extra presentation that theme.json cannot express */

.refinatrix-logo img,
.wp-block-site-logo img {
	height: 42px;
	width: auto;
	max-width: 240px;
}

@media (max-width: 781px) {
	header .wp-block-buttons {
		display: none;
	}
	.project-grid .wp-block-post-template.is-layout-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

.project-grid .wp-block-post,
.project-grid .wp-block-post-template > li {
	margin: 0;
}

.project-card,
.wp-block-post-featured-image {
	border-radius: 16px;
	overflow: hidden;
}

.project-card a,
.wp-block-post-featured-image a,
.wp-block-post-featured-image img {
	display: block;
	aspect-ratio: 1 / 1;
	width: 100%;
	object-fit: contain;
	background: #0a0a0a;
}

.wp-block-post-featured-image img {
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.wp-block-post:hover .wp-block-post-featured-image img,
.project-card:hover img {
	transform: scale(1.03);
	box-shadow: 0 0 0 1px #f5a62366, 0 0 28px #f5a62333;
}

.refinatrix-form {
	display: grid;
	gap: 16px;
}

.refinatrix-form label {
	display: grid;
	gap: 8px;
	font-size: 0.9rem;
	color: #cfcfcf;
}

.refinatrix-form input,
.refinatrix-form textarea {
	width: 100%;
	border: 1px solid #2a2a2a;
	background: #111;
	color: #f5f5f5;
	border-radius: 10px;
	padding: 12px 14px;
	font: inherit;
}

.refinatrix-form input:focus,
.refinatrix-form textarea:focus {
	outline: 2px solid #32d74b;
	border-color: #32d74b;
}

.refinatrix-form button,
.wp-block-button__link {
	cursor: pointer;
}

.refinatrix-notice {
	padding: 12px 16px;
	border-radius: 10px;
	margin-bottom: 16px;
}

.refinatrix-notice.is-success {
	background: #12351c;
	color: #7dff9a;
}

.refinatrix-notice.is-error {
	background: #3a1414;
	color: #ff8d8d;
}

body .is-layout-constrained > .alignfull {
	margin-left: 0;
	margin-right: 0;
}

@media (max-width: 781px) {
	.refinatrix-logo img,
	.wp-block-site-logo img {
		height: 36px;
	}
}
