/*
Theme Name: Growth Mindset Tutoring
Theme URI: https://example.com/growth-mindset-tutoring
Author: Growth Mindset Tutoring
Author URI: https://example.com
Description: A warm, friendly block theme for Growth Mindset Tutoring. Built for the WordPress block editor so every heading, paragraph, and button can be edited from the admin with no code.
Requires at least: 6.5
Tested up to: 7.1
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: growth-mindset-tutoring
Tags: blog, education, one-column, block-patterns, full-site-editing, custom-colors, custom-menu, editor-style, featured-images, template-editing, wide-blocks
*/

/*
 * Most styling lives in theme.json so that it is exposed in the editor UI.
 * This file only holds the few rules that theme.json cannot express.
 */

/* ---------- Base niceties ---------- */

:where(body) {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

a {
	text-underline-offset: 0.2em;
}

/* ---------- Skip link ---------- */

.skip-link:focus {
	background-color: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--primary);
	padding: 0.75rem 1.25rem;
	z-index: 100000;
}

/* ---------- Header ---------- */

.gmt-header {
	position: relative;
	z-index: 10;
}

.gmt-header .wp-block-site-title a {
	text-decoration: none;
}

.gmt-header .wp-block-navigation {
	font-weight: 500;
}

.gmt-header .wp-block-navigation a:where(:not(.wp-element-button)):hover {
	text-decoration: underline;
	text-decoration-thickness: 2px;
}

/* Current page gets a subtle marker in the nav. */
.gmt-header .wp-block-navigation .current-menu-item > a,
.gmt-header .wp-block-navigation .wp-block-pages-list__item.current-menu-item > a {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.35em;
}

/* ---------- Cards ---------- */

/* Cards fill their column so that a row of them lines up along the bottom.
   Only when the card is the lone child, though: stacked cards would each claim
   the full column height and spill over the section below. Cards that are grid
   items already stretch on their own. */
.gmt-card:only-child {
	height: 100%;
}

.gmt-card > :last-child {
	margin-bottom: 0;
}

/* Numbered step badges (used by the "How it works" pattern). */
.gmt-step-number {
	align-items: center;
	border-radius: 999px;
	display: flex;
	font-weight: 700;
	height: 2.75rem;
	justify-content: center;
	line-height: 1;
	width: 2.75rem;
}

/* Core pads any element carrying a background colour; that would stretch the
   badge into a wide pill, so undo it here. */
.gmt-step-number.has-background {
	flex-shrink: 0;
	padding: 0;
}

/* ---------- Eyebrow / kicker text ---------- */

.gmt-eyebrow {
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

/* ---------- Quotes ---------- */

.wp-block-quote.is-style-gmt-testimonial {
	border: 0;
	margin: 0;
	padding: 0;
}

.wp-block-quote.is-style-gmt-testimonial cite {
	display: block;
	font-size: var(--wp--preset--font-size--small);
	font-style: normal;
	font-weight: 600;
	margin-top: 1rem;
	opacity: 0.85;
}

/* ---------- Post lists ---------- */

.wp-block-post-title a {
	text-decoration: none;
}

.wp-block-post-title a:hover {
	text-decoration: underline;
}

.wp-block-post-featured-image img {
	border-radius: var(--wp--custom--radius--medium);
}

/* ---------- Footer ---------- */

.gmt-footer a {
	text-decoration: none;
}

.gmt-footer a:hover {
	text-decoration: underline;
}

/* ---------- Accessibility helpers ---------- */

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal;
}

:where(a, button, input, textarea, select, .wp-block-navigation a):focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}
