/*
Theme Name: Alex Rivera
Author: Jymyl Bandong
Author URI: https://jymyl.dev
Description: One-page block theme for Dr Alex Rivera, Clinical Psychologist and Trainer.
Requires at least: 7.0
Tested up to: 7.1
Requires PHP: 8.1
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: alex-rivera
*/
/*
 * Focus: a 3px accent outline (7.62:1 on base, 6.82:1 on surface).
 * :focus-visible shows it for keyboard users without a ring on every mouse click.
 */
a:focus-visible,
button:focus-visible {
	outline: 3px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

/*
 * Header. The nav is plain HTML (a Custom HTML block), so theme.json can't
 * style it. Links here aren't body text, so they're underlined on hover only.
 * Padding keeps each link at least 24px tall (WCAG 2.5.8).
 */
.site-name {
	font-weight: 700;
	margin: 0;
}

.site-name a,
.main-nav a {
	color: var(--wp--preset--color--contrast);
	display: inline-block;
	padding-block: 0.25rem;
	text-decoration: none;
}

.site-name a:hover,
.main-nav a:hover {
	text-decoration: underline;
}

.main-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0 1.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

/*
 * Hero photo. width/height attributes reserve the 4:5 space before it loads;
 * height: auto keeps that ratio as the width shrinks. 25rem = 400px, matching
 * the sizes attribute.
 */
.hero-photo {
	display: block;
	height: auto;
	max-width: 25rem;
	width: 100%;
}

/*
 * Course length: "Length" and its value on one line, wrapping on narrow screens.
 * No margin here: the card's flow layout supplies the block gap above it, the
 * same as between the other blocks in the card.
 */
.course-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0 0.5rem;
}

.course-meta dt {
	font-weight: 700;
}

.course-meta dd {
	margin: 0;
}

/*
 * Bio: sections use the full 64rem width so every heading shares one left
 * edge. A 68-character line keeps the long paragraph readable. It sits in a
 * flow-layout group (see patterns/about.php), so it stays left-aligned.
 */
.bio {
	max-width: 68ch;
}
