/*
Theme Name: OAU Blog
Template: twentytwentyfive
Author: OAU
Description: Minimal modern child theme for a personal blog — clean typography, single accent color, generous whitespace.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: oau-blog
*/

/* Smooth rendering */
html {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

body {
	font-feature-settings: "ss01", "cv11";
}

/* Link styling — subtle underline, accent on hover */
.wp-block-post-content a,
.entry-content a {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	text-decoration-color: color-mix(in srgb, currentColor 30%, transparent);
	transition: text-decoration-color 0.15s ease, color 0.15s ease;
}

.wp-block-post-content a:hover,
.entry-content a:hover {
	color: var(--wp--preset--color--accent-1);
	text-decoration-color: var(--wp--preset--color--accent-1);
}

/* Post list — tighter, cleaner cards */
.wp-block-post-title a {
	text-decoration: none;
	transition: color 0.15s ease;
}

.wp-block-post-title a:hover {
	color: var(--wp--preset--color--accent-1);
}

/* Pull-quotes / blockquote accent */
.wp-block-quote {
	border-left: 2px solid var(--wp--preset--color--accent-1);
	padding-left: 1.25em;
	font-style: normal;
}

/* Code blocks — subtle surface */
.wp-block-code,
code {
	font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.92em;
}

.wp-block-code {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 6px;
	padding: 1em 1.25em;
}

:not(pre) > code {
	background: var(--wp--preset--color--surface);
	padding: 0.15em 0.4em;
	border-radius: 4px;
	border: 1px solid var(--wp--preset--color--border);
}

/* Horizontal rule — thinner, quieter */
hr.wp-block-separator {
	border: 0;
	border-top: 1px solid var(--wp--preset--color--border);
	margin: 3em auto;
	max-width: 80px;
}

/* Site header — minimal */
.wp-block-site-title,
.wp-block-site-title a {
	text-decoration: none;
	font-size: 1.25rem !important;
	font-weight: 800 !important;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	color: #0a0a0a !important;
}

.wp-block-site-title a:hover {
	color: var(--wp--preset--color--accent-1) !important;
}

/* Buttons */
.wp-block-button__link {
	border-radius: 6px;
	font-weight: 500;
	transition: transform 0.1s ease, opacity 0.15s ease;
}

.wp-block-button__link:hover {
	opacity: 0.9;
}

/* Selection */
::selection {
	background: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--base);
}

/* ---- Post cards (home grid) ---- */
.oau-post-grid .wp-block-post-template {
	gap: 24px !important;
}

.oau-card {
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
	background: var(--wp--preset--color--base);
}

.oau-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.12);
	border-color: color-mix(in srgb, var(--wp--preset--color--accent-1) 40%, var(--wp--preset--color--border)) !important;
}

.oau-card .wp-block-post-featured-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

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

.oau-card .wp-block-post-featured-image {
	overflow: hidden;
}

.oau-card .wp-block-post-title {
	font-size: 1.125rem;
	line-height: 1.3;
}

.oau-card .wp-block-post-title a {
	text-decoration: none;
	color: var(--wp--preset--color--contrast);
}

.oau-card:hover .wp-block-post-title a {
	color: var(--wp--preset--color--accent-1);
}

/* ---- Hero post (editorial, borderless) ---- */
.oau-hero-post .wp-block-post-featured-image {
	overflow: hidden;
}

.oau-hero-post .wp-block-post-featured-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.oau-hero-post .wp-block-post-featured-image:hover img {
	transform: scale(1.015);
}

.oau-hero-post .wp-block-post-title a {
	text-decoration: none;
	color: var(--wp--preset--color--contrast);
	transition: color 0.15s ease;
	background-image: linear-gradient(var(--wp--preset--color--accent-1), var(--wp--preset--color--accent-1));
	background-size: 0 2px;
	background-position: 0 100%;
	background-repeat: no-repeat;
	transition: background-size 0.3s ease;
}

.oau-hero-post .wp-block-post-title a:hover {
	background-size: 100% 2px;
	color: var(--wp--preset--color--contrast);
}

.oau-hero-post .wp-block-post-excerpt__more-link,
.oau-hero-post .wp-block-post-excerpt__more-text {
	display: none !important;
}

/* Meta column: vertical divider line that gives the editorial feel */
.oau-hero-meta {
	position: relative;
	padding-top: 4px;
}

.oau-hero-meta::before {
	content: "";
	display: block;
	width: 32px;
	height: 2px;
	background: var(--wp--preset--color--accent-1);
	margin-bottom: 20px;
}

@media (max-width: 782px) {
	.oau-hero-meta {
		flex-basis: auto !important;
	}
	.oau-hero-meta::before {
		margin-bottom: 12px;
	}
}

/* ---- Category pill (post-terms) ---- */
.wp-block-post-terms a {
	text-decoration: none !important;
}

/* ---- Pagination ---- */
.wp-block-query-pagination a,
.wp-block-query-pagination .page-numbers {
	text-decoration: none;
	padding: 0.5em 0.85em;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 6px;
	font-size: 0.875rem;
	color: var(--wp--preset--color--contrast);
	transition: all 0.15s ease;
}

.wp-block-query-pagination a:hover,
.wp-block-query-pagination .page-numbers.current {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	border-color: var(--wp--preset--color--contrast);
}

/* ---- Header nav links ---- */
.wp-block-navigation a {
	text-decoration: none;
	transition: color 0.15s ease;
}

.wp-block-navigation a:hover {
	color: var(--wp--preset--color--accent-1);
}

/* ---- Responsive: 2 cols on tablet, 1 col on mobile ---- */
@media (max-width: 900px) {
	.oau-post-grid .wp-block-post-template.is-layout-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

@media (max-width: 600px) {
	.oau-post-grid .wp-block-post-template.is-layout-grid {
		grid-template-columns: 1fr !important;
	}
}
