/*
Theme Name: OSG Arcade
Description: A dark, game-flavoured child of Twenty Twenty-Five for Open Source Games.
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.7
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: osg-arcade
Update URI: false
*/

/* Header: a thin accent line along the top, and a bottom border. */
.osg-header {
	border-top: 3px solid var(--wp--preset--color--accent-1);
	border-bottom: 1px solid var(--wp--preset--color--accent-6);
	background: color-mix(in srgb, var(--wp--preset--color--base) 92%, black);
}
.osg-header .wp-block-site-logo img {
	image-rendering: pixelated;
	border-radius: 6px;
}

/* Small labels: categories, genres, the hero's kicker. */
.osg-kicker,
.osg-kicker a {
	font-family: var(--wp--preset--font-family--fira-code);
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--wp--preset--color--accent-1);
	margin-bottom: 0.25rem;
}
.osg-meta,
.osg-meta a {
	font-family: var(--wp--preset--font-family--fira-code);
	font-size: 0.8rem;
	color: var(--wp--preset--color--accent-4);
}

/* Cards: post grids and the game directory. */
.osg-card {
	background: var(--wp--preset--color--accent-5);
	border: 1px solid var(--wp--preset--color--accent-6);
	border-radius: 10px;
	overflow: hidden;
	height: 100%;
	transition: border-color 0.15s ease, transform 0.15s ease;
}
.osg-card:hover {
	border-color: var(--wp--preset--color--accent-1);
	transform: translateY(-2px);
}
.osg-card .wp-block-post-featured-image,
.osg-card .osg-card-image {
	margin: 0 0 0.75rem;
}
.osg-card .wp-block-post-featured-image img,
.osg-card .osg-card-image img {
	aspect-ratio: 16 / 9;
	object-fit: cover;
	width: 100%;
	display: block;
}
.osg-card .osg-card-image figcaption {
	padding: 0 1rem;
	font-size: 0.65rem;
	opacity: 0.75;
}
.osg-card-body,
.wp-block-column.osg-card > :not(figure) {
	padding-left: 1.1rem;
	padding-right: 1.1rem;
}
.osg-card-body {
	padding-bottom: 1.1rem;
}
.wp-block-column.osg-card > :last-child {
	padding-bottom: 1.1rem;
}
.osg-card .wp-block-post-title {
	font-size: 1.2rem;
	margin: 0.25rem 0 0.5rem;
}
.osg-card .wp-block-post-title a {
	color: var(--wp--preset--color--contrast);
}
.osg-card .wp-block-post-excerpt {
	color: var(--wp--preset--color--accent-4);
	font-size: 0.95rem;
}
.osg-card h3 {
	scroll-margin-top: 2rem;
}
.osg-dir-row {
	margin-bottom: var(--wp--preset--spacing--40);
}

/* Home page hero. */
.osg-hero h1 {
	font-size: clamp(2.4rem, 6vw, 4.2rem);
	max-width: 16ch;
}
.osg-hero .osg-lede {
	font-size: 1.2rem;
	max-width: 46ch;
	color: var(--wp--preset--color--contrast);
}
.wp-block-button.is-style-outline > .wp-block-button__link {
	border-color: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--contrast);
	background: transparent;
}

/* Calls to action: bordered panels. */
.osg-panel {
	background: linear-gradient(135deg, var(--wp--preset--color--accent-5), color-mix(in srgb, var(--wp--preset--color--accent-3) 18%, var(--wp--preset--color--accent-5)));
	border: 1px solid var(--wp--preset--color--accent-6);
	border-radius: 12px;
}

/* Post pages. */
.osg-author-box {
	background: var(--wp--preset--color--accent-5);
	border: 1px solid var(--wp--preset--color--accent-6);
	border-radius: 10px;
}
.osg-author-box .wp-block-post-author-biography {
	color: var(--wp--preset--color--accent-4);
	font-size: 0.95rem;
}
.osg-featured-credit {
	font-size: 0.7rem;
	color: var(--wp--preset--color--accent-4);
	margin-top: 0.4rem;
}
.wp-block-post-content figure.wp-block-image img {
	border-radius: 8px;
}
.wp-block-post-content :not(pre) > code {
	font-family: var(--wp--preset--font-family--fira-code);
	background: var(--wp--preset--color--accent-5);
	border: 1px solid var(--wp--preset--color--accent-6);
	border-radius: 4px;
	padding: 0.05em 0.35em;
	font-size: 0.88em;
}
.wp-block-table td,
.wp-block-table th {
	border-color: var(--wp--preset--color--accent-6);
}
.wp-block-post-tags a,
.wp-block-tag-cloud a {
	display: inline-block;
	border: 1px solid var(--wp--preset--color--accent-6);
	border-radius: 999px;
	padding: 0.1rem 0.6rem;
	margin: 0 0.3rem 0.4rem 0;
	font-size: 0.75rem !important;
}

/* Footer. */
.osg-footer {
	border-top: 1px solid var(--wp--preset--color--accent-6);
	background: color-mix(in srgb, var(--wp--preset--color--base) 92%, black);
	font-size: 0.9rem;
}
.osg-footer h2 {
	font-size: 0.8rem;
	font-family: var(--wp--preset--font-family--fira-code);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--wp--preset--color--accent-4);
}
.osg-footer ul {
	list-style: none;
	padding-left: 0;
}
.osg-footer li {
	margin-bottom: 0.35rem;
}
.osg-footer a {
	color: var(--wp--preset--color--contrast);
}

/* The EN | ES language switch, at the end of the header. */
.osg-header-end {
	align-items: center;
}
.osg-lang-switch {
	display: inline-flex;
	border: 1px solid var(--wp--preset--color--accent-6);
	border-radius: 999px;
	overflow: hidden;
	font-family: var(--wp--preset--font-family--fira-code);
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	line-height: 1;
	flex-shrink: 0;
}
.osg-lang-switch .osg-lang {
	padding: 0.4rem 0.65rem;
	color: var(--wp--preset--color--accent-4);
	text-decoration: none;
}
.osg-lang-switch a.osg-lang:hover,
.osg-lang-switch a.osg-lang:focus-visible {
	color: var(--wp--preset--color--contrast);
	background: var(--wp--preset--color--accent-5);
}
.osg-lang-switch .osg-lang.is-current {
	background: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--base);
	font-weight: 700;
}
