/*
Theme Name: M-Theme
Theme URI: https://markusfriedemann.de
Author: Markus Friedemann
Author URI: https://markusfriedemann.de
Description: Ultraleichtes WordPress-Theme für den M-Editor mit schlankem Markup, Header-/Footer-Templates und minimalem Frontend-CSS.
Version: 0.1.1
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: m-theme
Tags: custom-header, custom-menu, editor-style, accessibility-ready
*/

:root {
	--m-theme-bg: #fff;
	--m-theme-fg: #111;
	--m-theme-muted: #6f6f6f;
	--m-theme-focus: currentColor;
}

html {
	box-sizing: border-box;
	min-height: 100%;
	max-width: 100%;
	overflow-x: clip;
	-webkit-text-size-adjust: 100%;
}

@supports not (overflow-x: clip) {
	html,
	body {
		overflow-x: hidden;
	}
}

*,
*::before,
*::after {
	box-sizing: inherit;
}

body {
	min-height: 100%;
	max-width: 100%;
	overflow-x: clip;
	margin: 0;
	background: var(--m-theme-bg);
	color: var(--m-theme-fg);
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	text-rendering: optimizeLegibility;
}

img,
svg,
video,
canvas {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-underline-offset: .15em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 2px solid var(--m-theme-focus);
	outline-offset: 3px;
}

.m-theme-skip-link {
	position: absolute;
	left: 1rem;
	top: 1rem;
	z-index: 100000;
	padding: .625rem .875rem;
	background: var(--m-theme-fg);
	color: var(--m-theme-bg);
	transform: translateY(-160%);
}

.m-theme-skip-link:focus {
	transform: translateY(0);
}

.m-theme-site-header,
.m-theme-site-footer,
.m-theme-main {
	width: 100%;
}

.m-theme-main {
	min-height: 50vh;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	clip: auto !important;
	clip-path: none;
	display: block;
	height: auto;
	left: 1rem;
	top: 1rem;
	width: auto;
	z-index: 100000;
}
