/*
Theme Name: Coleton Visser
Theme URI: https://coletonvisser.com
Author: Coleton Visser
Description: Custom block theme for coletonvisser.com. Design lives in code (theme.json, templates, patterns); content is edited in the Block Editor.
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 7.4
Version: 0.2.0
License: GNU General Public License v2 or later
Text Domain: coletonvisser
*/

/* Most styling lives in theme.json. Only add CSS here that theme.json can't express. */

/* Smooth focus ring for keyboard users */
:where(a, button, .wp-element-button):focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 3px;
}

/* Sticky header */
.cv-header {
	position: sticky;
	top: 0;
	z-index: 50;
	backdrop-filter: saturate(140%) blur(8px);
	background: color-mix(in srgb, var(--wp--preset--color--paper) 88%, transparent);
}
body.admin-bar .cv-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .cv-header { top: 46px; } }

/* Small uppercase label used above section headings */
.cv-eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--wp--preset--color--muted);
}

/* Work cards: gentle lift on hover (desktop pointers only) */
@media (hover: hover) {
	.cv-card { transition: transform 0.25s ease; }
	.cv-card:hover { transform: translateY(-4px); }
}

/* Images in cards keep a consistent crop */
.cv-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* Respect reduced-motion settings */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Hero image keeps a consistent crop */
.cv-hero-media img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* Keep words whole: never split a word mid-way across lines */
body h1, body h2, body h3, body h4, body h5, body h6, body .wp-block-heading, body p {
	overflow-wrap: normal !important;
	word-break: normal !important;
	hyphens: manual !important;
}
