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

/* Year colour (set per ročník on <body> by the theme; these are the fallbacks):
 * y = fill, yi = ink on white, yt = tint, yo = text on the fill. */
:root {
	--rv-y: #a7054b;
	--rv-yi: #a7054b;
	--rv-yt: #f6e6ed;
	--rv-yo: #ffffff;
}

*,
*::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--jost);
	font-size: var(--wp--preset--font-size--base);
	font-weight: 400;
	line-height: 1.55;
	color: var(--wp--preset--color--ink);
	background: var(--wp--preset--color--white);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--wp--preset--font-family--jost);
	font-weight: 700;
	line-height: 1.15;
	margin-block: 0 0.5em;
}

/* A section heading directly inside a <section> is centred; headings inside columns stay left. */
section > h2 {
	text-align: center;
	font-size: var(--wp--preset--font-size--x-large);
	margin-block: 0 30px;
}

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--crimson);
	text-underline-offset: 0.15em;

	&:hover {
		text-decoration-thickness: 2px;
	}
}

:focus-visible {
	outline: 2px solid var(--wp--preset--color--crimson);
	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;
	}
}
