/**
 * GET YOUR SAVE base styles.
 *
 * Global reset and readable defaults for the SNES archive storefront.
 */

*,
*::before,
*::after {
	box-sizing: border-box;
	border-radius: var(--radius-none);
}

html {
	min-height: 100%;
	scroll-behavior: smooth;
	text-size-adjust: 100%;
}

body {
	min-height: 100%;
	margin: 0;
	background: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: var(--font-size-base);
	line-height: var(--line-height-base);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea {
	font-family: var(--font-body);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 var(--space-4);
	color: var(--color-text);
	font-family: var(--font-pixel);
	font-weight: 700;
	line-height: var(--line-height-tight);
	letter-spacing: 0;
}

p {
	margin: 0 0 var(--space-4);
}

a {
	color: var(--color-blue);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

a:hover {
	color: var(--color-red);
}

img,
picture,
svg,
video,
canvas {
	display: block;
	max-width: 100%;
	height: auto;
}

img {
	border-radius: var(--radius-none);
}

button,
input,
select,
textarea {
	border-radius: var(--radius-none);
	box-shadow: none;
	font: inherit;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
	appearance: none;
	border: var(--border-hard);
	background: var(--color-panel);
	color: var(--color-text);
	cursor: pointer;
}

button:disabled,
[aria-disabled="true"],
.is-disabled {
	cursor: not-allowed;
	opacity: 0.55;
}

input,
select,
textarea {
	width: 100%;
	border: var(--border-hard);
	background: var(--color-panel-alt);
	color: var(--color-text);
	padding: var(--space-3);
}

textarea {
	min-height: 8rem;
	resize: vertical;
}

table {
	width: 100%;
	border-collapse: collapse;
}

th,
td {
	border: var(--border-hard);
	padding: var(--space-3);
	text-align: left;
	vertical-align: top;
}

ul,
ol {
	margin-top: 0;
	margin-bottom: var(--space-4);
	padding-left: var(--space-6);
}

hr {
	height: 0;
	margin: var(--space-8) 0;
	border: 0;
	border-top: var(--border-hard);
}

:focus {
	outline: none;
}

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

::selection {
	background: var(--color-yellow);
	color: var(--color-black);
}

[hidden] {
	display: none !important;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@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;
	}
}
