/*
Theme Name: Red Crafta Child
Theme URI: https://redcrafta.com
Description: Child theme for Red Crafta: earth-inspired, purely handcrafted Sri Lankan studio ceramics. Hand-built page templates, self-hosted type, no external CDNs.
Author: Red Crafta
Template: twentytwentyfive
Version: 2.8.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.0
Text Domain: red-crafta-child
*/

/*
 * Design tokens do NOT live here. They are in assets/css/tokens.css, which is
 * the single external token file every rule references. This stylesheet loads
 * on every page of the site, so it holds nothing but the few resets our
 * templates need in order to own the whole document.
 */

/*
 * The parent is a block theme and injects its own layout and spacing onto
 * generic elements. :where() keeps these at zero specificity, so every rule in
 * home.css wins without having to out-shout anything.
 */
:where(body.rc) {
	margin: 0;
	padding: 0;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

:where(body.rc) * {
	box-sizing: border-box;
}

:where(body.rc h1, body.rc h2, body.rc h3, body.rc h4, body.rc p, body.rc figure, body.rc ul, body.rc ol) {
	margin: 0;
	padding: 0;
}

:where(body.rc ul, body.rc ol) {
	list-style: none;
}

:where(body.rc img, body.rc svg) {
	display: block;
	max-width: 100%;
}

:where(body.rc img) {
	height: auto;
}

:where(body.rc a) {
	color: inherit;
}

:where(body.rc button) {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	cursor: pointer;
}

/* The admin bar sits over a sticky nav otherwise. */
body.rc.admin-bar .rc-nav {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.rc.admin-bar .rc-nav {
		top: 46px;
	}
}
