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

html {
  min-width: 0;
  background: var(--color-bg);
  color: var(--color-text);
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(246, 237, 220, 0.9), rgba(246, 237, 220, 0.96)),
    url("/assets/stardew-ui/bg-paper.png") center / 720px auto repeat;
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.65;
}

body.public-site,
.site-frame {
  min-height: 100vh;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.pixel,
.pixel-icon {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  object-fit: contain;
  flex-shrink: 0;
}

:focus-visible {
  outline: 3px solid rgba(217, 179, 92, 0.45);
  outline-offset: 2px;
}

::selection {
  background: rgba(217, 179, 92, 0.35);
}

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