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

html,
body {
  min-height: 100%;
  overflow-x: clip;
}

html {
  background: var(--bg-deep);
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--txt);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

button {
  cursor: pointer;
}

input {
  cursor: text;
}

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

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

img {
  height: auto;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: color-mix(in srgb, var(--accent) 45%, transparent);
  color: var(--flesh);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-thumb {
  background: #334036;
  border-radius: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

#app {
  min-height: 100%;
  overflow-x: clip;
  padding-top: var(--nav-h);
  padding-bottom: 24px;
}

body[data-bleed] #app {
  padding-top: 0;
}

.page {
  min-height: calc(100vh - var(--nav-h));
}

.page.is-enter {
  animation: page-in-fwd 0.32s var(--ease-out) both;
}

.page.is-enter-back {
  animation-name: page-in-back;
}

@keyframes page-in-fwd {
  from {
    opacity: 0;
    transform: translate3d(18px, 0, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes page-in-back {
  from {
    opacity: 0;
    transform: translate3d(-18px, 0, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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