/*
 * base.css — reset, elements, typography.
 *
 * Design tokens come from theme.json (--wp--preset--* custom properties).
 * This file only wires those tokens onto element defaults and provides a
 * light reset. Theme-authored tokens use the --eb-* namespace.
 */

:root {
	--eb-measure: var(--wp--style--global--content-size, 67.5rem);
}

/* --- Reset --- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	background-color: var(--wp--preset--color--background);
	color: var(--wp--preset--color--foreground);
	font-family: var(--wp--preset--font-family--serif);
	font-size: var(--wp--preset--font-size--base);
	line-height: 1.4;
}

img,
picture,
svg,
video {
	max-width: 100%;
	height: auto;
}

img {
	display: block;
}

/* --- Typography --- */

h1, h2, h3, h4, h5, h6 {
	font-family: var(--wp--preset--font-family--serif);
	font-weight: 500;
	line-height: 1.3;
	margin: 0 0 0.5em;
	color: var(--wp--preset--color--accent);
	text-wrap: balance;
}

p,
ul,
ol,
blockquote,
figure,
table {
	margin: 0 0 var(--wp--preset--spacing--30);
}

a {
	color: var(--wp--preset--color--accent);
	text-decoration: none;
}

a:hover,
a:focus {
	text-decoration: underline;
}

blockquote {
	margin-inline: 0;
	padding-inline-start: var(--wp--preset--spacing--40);
	border-inline-start: 2px solid var(--wp--preset--color--rule);
}

hr {
	border: 0;
	border-top: 2px solid var(--wp--preset--color--rule);
	margin-block: var(--wp--preset--spacing--50);
}

figcaption {
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--muted);
}

code,
pre,
kbd {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.9em;
}

/* --- Forms --- */

input,
button,
select,
textarea {
	font: inherit;
	color: inherit;
}

.search-field {
	padding: 0.4em 0.6em;
	border: 2px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--background);
}

.search-submit {
	padding: 0.4em 0.9em;
	border: 2px solid var(--wp--preset--color--accent);
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--background);
	cursor: pointer;
}

/* --- Accessibility helpers --- */

.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;
}

.skip-link {
	position: absolute;
	left: -9999px;
	z-index: 100;
	padding: 0.6em 1em;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--background);
}

.skip-link:focus {
	left: 0.5rem;
	top: 0.5rem;
}

:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}
