/*
 * Base styles for every page. Genesis ships no CSS of its own, so this file
 * also provides what its markup expects (screen-reader text, skip links).
 */

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

body
{
	margin: 0;
	background: var(--hf-color-bg);
	color: var(--hf-color-text);
	font-family: var(--hf-font-text);
	font-size: var(--hf-text-m);
	line-height: var(--hf-leading-text);
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6
{
	color: var(--hf-color-heading);
	font-family: var(--hf-font-display);
	font-weight: 400;
	line-height: var(--hf-leading-tight);
}

img
{
	max-width: 100%;
	height: auto;
}

a
{
	color: var(--hf-color-primary);
}

:focus-visible
{
	outline: 3px solid var(--hf-color-focus);
	outline-offset: 3px;
}

/* Content width shared by all sections. */
.hf-container
{
	width: min(100% - 2 * var(--hf-gutter), var(--hf-container-max));
	margin-inline: auto;
}

/* Hidden visually, still read by screen readers (WordPress core class and
   the Genesis skip links). */
.screen-reader-text,
.screen-reader-shortcut
{
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	word-wrap: normal !important;
}

/* The list around the skip links takes no space. */
.genesis-skip-link
{
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Genesis skip links become visible when focused. */
.screen-reader-shortcut:focus
{
	position: fixed !important;
	z-index: 100000;
	top: var(--hf-space-xs);
	left: var(--hf-space-xs);
	width: auto;
	height: auto;
	padding: var(--hf-space-xs) var(--hf-space-s);
	background: var(--hf-color-bg);
	color: var(--hf-color-heading);
	clip-path: none;
	text-decoration: none;
}

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