/*
Theme Name: Anthony McEvoy
Theme URI: https://anthonymcevoy.com/
Description: Child theme of Twenty Twenty-Five for anthonymcevoy.com (Option C, hybrid layout). Self-hosted Poppins, approved green palette, core blocks only.
Author: Anthony McEvoy
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.7
Tested up to: 7.1
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: anthonymcevoy
*/

/* Colors, fonts and spacing live in theme.json. This file holds only what theme.json can't express. */

/* Keyboard focus: always visible, never removed. */
:where(a, button, input, textarea, select, summary, .wp-element-button):focus-visible {
	outline: 3px solid var(--wp--preset--color--link);
	outline-offset: 3px;
	border-radius: 2px;
}
.has-primary-background-color :where(a, .wp-element-button):focus-visible {
	outline-color: var(--wp--preset--color--on-dark);
}

/* Skip link sits above the green header. */
.skip-link.screen-reader-text:focus { background: var(--wp--preset--color--base); color: var(--wp--preset--color--contrast); }

/* Links on dark green (header, welcome band, footer). */
.has-primary-background-color a:where(:not(.wp-element-button)) { color: var(--wp--preset--color--on-dark); }
.has-primary-background-color a:where(:not(.wp-element-button)):hover { color: var(--wp--preset--color--surface); }

/* Button on the dark band: same solid button, plus a pale outline so its edge shows on the green. */
.am-band .wp-element-button { border: 2px solid var(--wp--preset--color--on-dark); }

/* Status tag (post tags shown as a small pill). */
.am-status { margin: 0; }
.am-status a {
	display: inline-block;
	padding: 0.2em 0.75em;
	border-radius: 999px;
	background: var(--wp--preset--color--tint);
	color: var(--wp--preset--color--primary);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	text-decoration: none;
	line-height: 1.6;
}
.am-status a:hover { text-decoration: underline; }
.am-status .wp-block-post-terms__separator { display: none; }
.am-status a + a { margin-left: 0.4em; }

/* "Follow along" read-more styled as the solid button. */
.wp-block-read-more.am-button {
	display: inline-block;
	background: var(--wp--preset--color--button);
	color: var(--wp--preset--color--surface);
	padding: 0.7em 1.4em;
	border-radius: 999px;
	font-weight: 600;
	text-decoration: none;
}
.wp-block-read-more.am-button:hover { background: var(--wp--preset--color--primary); color: var(--wp--preset--color--surface); text-decoration: underline; }

/* Cards: equal height in the grid. */
.am-card-grid .wp-block-post-template > li { display: flex; }
.am-card-grid .am-card { flex: 1; }

/* Fallbacks so any parent-theme template or pattern that still names Twenty Twenty-Five's
   accent slots gets an approved color instead of nothing. Not shown in the editor palette. */
:root {
	--wp--preset--color--accent-1: var(--wp--preset--color--tint);
	--wp--preset--color--accent-2: var(--wp--preset--color--tint);
	--wp--preset--color--accent-3: var(--wp--preset--color--primary);
	--wp--preset--color--accent-4: var(--wp--preset--color--muted);
	--wp--preset--color--accent-5: var(--wp--preset--color--tint);
	--wp--preset--color--accent-6: var(--wp--preset--color--line);
}

@media (prefers-reduced-motion: reduce) {
	* { scroll-behavior: auto !important; transition: none !important; }
}
html { scroll-behavior: smooth; }
