/**
 * Gut Shot Base Styles & Typography
 */

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

html {
	font-size: 16px;
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	padding: 0;
	background-color: var(--gs-paper);
	color: var(--gs-midnight);
	font-family: var(--gs-font-body);
	font-size: var(--gs-text-body);
	line-height: var(--gs-lh-body);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
	margin-top: 0;
	margin-bottom: var(--gs-space-16);
	font-family: var(--gs-font-display);
	font-weight: 400;
	color: var(--gs-midnight);
	letter-spacing: -0.01em;
}

h1 {
	font-size: var(--gs-text-h1);
	line-height: var(--gs-lh-h1);
	word-break: break-word;
}

h2 {
	font-size: var(--gs-text-h2);
	line-height: var(--gs-lh-h2);
}

@media (max-width: 640px) {
	h1 {
		font-size: clamp(32px, 8vw, 42px);
		line-height: 1.1;
	}

	h2 {
		font-size: 26px;
	}
}

h3 {
	font-size: var(--gs-text-h3);
	line-height: var(--gs-lh-h3);
}

p {
	margin-top: 0;
	margin-bottom: var(--gs-space-20);
}

/* Links */
a {
	color: var(--gs-felt-deep);
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: color var(--gs-transition-fast);
}

a:hover,
a:focus {
	color: var(--gs-vermilion-deep);
}

/* Focus styles */
:focus-visible {
	outline: 3px solid var(--gs-marigold);
	outline-offset: 2px;
}

/* Layout Container */
.gs-container {
	width: 100%;
	max-width: var(--gs-container-max);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--gs-gutter);
	padding-right: var(--gs-gutter);
}

@media (max-width: 640px) {
	.gs-container {
		padding-left: var(--gs-space-20);
		padding-right: var(--gs-space-20);
	}
}

/* Media defaults */
img,
svg,
video {
	max-width: 100%;
	height: auto;
	display: block;
}

/* Screen reader text (Accessibility) */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: var(--gs-paper);
	border-radius: var(--gs-radius-tag);
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: var(--gs-midnight);
	display: block;
	font-family: var(--gs-font-mono);
	font-size: 14px;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

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

	.gs-card:hover,
	.gs-fanned-card:hover,
	.gs-quote-card:hover,
	.gs-search-card:hover,
	.gs-guest-card:hover {
		transform: none !important;
	}
}
