/*
 * Base: minimal reset, typography and element defaults.
 * Colors, fonts and sizes come from theme.json (--wp--preset--*).
 */

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--base);
	line-height: 1.65;
	color: var(--wp--preset--color--text);
	background: var(--wp--preset--color--cream);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	line-height: 1.08;
	color: var(--wp--preset--color--ink);
	margin-block: 0 0.5em;
}

p, ul, ol, dl, blockquote, figure, table, pre {
	margin-block: 0 1.25em;
}

img,
svg,
video,
iframe {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--wp--preset--color--gold-dark);
	text-underline-offset: 0.15em;

	&:hover {
		color: var(--wp--preset--color--gold-darker);
		text-decoration-thickness: 2px;
	}
}

:focus-visible {
	outline: 3px solid var(--wp--preset--color--gold-dark);
	outline-offset: 2px;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
