/*
Theme Name: Direct Machining Control
Author: NeoDigify
Author URI: https://neodigify.com
Description: Block theme for directmachining.com.
Requires at least: 7.1
Tested up to: 7.1
Requires PHP: 8.2
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: directmachining
*/
@media (max-width: 767px) {
	html:root {
		--wp--custom--zoom: 1px;
		--wp--custom--gutter: 18px;
		--wp--custom--header-height: 69px;
		--wp--preset--font-size--large: 20px;
		--wp--preset--font-size--xx-large: 36px;
		--wp--preset--font-size--display: 40px;
		--wp--custom--line-height--large: 1.4;
		--wp--custom--line-height--xx-large: 1.2222;
		--wp--custom--line-height--display: 1.2;
		--wp--preset--spacing--stack-36: 24px;
		--wp--preset--spacing--stack-48: 36px;
		--wp--preset--spacing--section-80: 48px;
		--wp--preset--spacing--section-120: 60px;
		--wp--preset--spacing--section-136: 56px;
		--wp--preset--spacing--section-140: 108px;
		--wp--preset--spacing--section-160: 80px;
		--wp--preset--spacing--section-136-80: 80px;
		--wp--preset--spacing--stack-110: 36px;
		--wp--preset--spacing--inset-24: 16px;
		--wp--preset--spacing--inset-36: 16px;
	}
}

:where(.wp-site-blocks) > :is(.site-header, .site-main, .site-footer) {
	margin-block-start: 0;
}

:root :where(.has-x-small-font-size) {
	line-height: var(--wp--custom--line-height--x-small);
}

:root :where(.has-small-font-size) {
	line-height: var(--wp--custom--line-height--small);
}

:root :where(.has-medium-large-font-size) {
	line-height: var(--wp--custom--line-height--medium-large);
}

:root :where(.has-large-font-size) {
	line-height: var(--wp--custom--line-height--large);
}

:root :where(.has-x-large-font-size) {
	line-height: var(--wp--custom--line-height--x-large);
}

:root :where(.has-xx-large-font-size) {
	line-height: var(--wp--custom--line-height--xx-large);
}

:root :where(.has-display-font-size) {
	line-height: var(--wp--custom--line-height--display);
}

::selection {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

:where(.wp-block-button) .wp-block-button__link {
	vertical-align: top;
}

.flip {
	position: relative;
	display: inline-flex;
	height: max-content;
	overflow: hidden;
}

.flip > span {
	position: relative;
	transition: all 0.4s ease;
}

.flip > span::after {
	content: attr(data-text);
	position: absolute;
	top: 100%;
	left: 0;
}

:is(.wp-element-button, .wp-block-button__link):is(:hover, :focus-visible) .flip > span {
	transform: translateY(-100%);
}

mark.has-accent-underline-color {
	background: none;
	color: inherit !important;
	background-image: linear-gradient(var(--wp--preset--color--accent-underline), var(--wp--preset--color--accent-underline));
	background-repeat: no-repeat;
	background-size: 100% calc(4 * var(--wp--custom--zoom));
	background-position: left bottom;
	padding-bottom: calc(4 * var(--wp--custom--zoom));
}

@media (max-width: 767px) {
	mark.has-accent-underline-color {
		background-image: none;
		padding-bottom: 0;
		text-decoration: underline;
		text-decoration-color: var(--wp--preset--color--accent-underline);
	}
}

:is(a, button, summary, .wp-element-button, .wp-block-button__link):focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

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

*,
*::before,
*::after {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}
