/**
 * U-Home Design System — Base Styles & Resets
 */

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

html,
body {
  margin: 0;
  padding: 0;
  height: auto !important;
  min-height: 100%;
  overflow-x: clip;
  font-family: var(--uh-font-family);
  background-color: var(--uh-bg-body);
  color: var(--uh-color-text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: var(--uh-line-height-body);
}

uhome-header {
  display: block;
  position: sticky;
  top: 0;
  z-index: 1000;
}

#dc-root,
#dc-root > .sc-host {
  height: auto !important;
  min-height: 100%;
}

a {
  color: var(--uh-color-primary);
  text-decoration: none;
  transition: var(--uh-transition-fast);
}

a:hover {
  color: var(--uh-color-primary-hover);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: var(--uh-color-text-main);
  letter-spacing: -0.02em;
  line-height: var(--uh-line-height-heading);
  font-family: var(--uh-font-family);
}

p {
  margin: 0;
  color: var(--uh-color-text-muted);
}

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

input,
button,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 2px solid var(--uh-color-primary);
  outline-offset: 2px;
}
