/* =========================================================
   CORE RESET + UTILITIES
   Neutral foundation for Rhome
   ========================================================= */

/* -------------------------------
   RESET / NORMALIZE
--------------------------------*/
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* body, colors, and typography are owned by theme-lorewalker.css
   and optionally overridden per-world (e.g., theme-rhome.css). */


/* -------------------------------
   LAYOUT HELPERS
--------------------------------*/
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.flex {
  display: flex;
  gap: 1rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

/* -------------------------------
   MEDIA / IMAGES
--------------------------------*/
img,
video {
  max-width: 100%;
  display: block;
  height: auto;
  object-fit: cover;
}

/* -------------------------------
   FORMS
   (visuals tied into Rhome tokens)
--------------------------------*/
input,
textarea,
select {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid var(--rhome-border-subtle, #3f334f);
  border-radius: 3px;
  font-family: inherit;
  background-color: transparent;
  color: inherit;
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--rhome-primary, #a452ff);
  outline-offset: 2px;
}

/* -------------------------------
   UTILITIES
--------------------------------*/
.hidden {
  display: none !important;
}

.center {
  text-align: center;
}

.mt {
  margin-top: 1rem;
}

.mb {
  margin-bottom: 1rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* -------------------------------
   ACCESSIBILITY / MOTION
--------------------------------*/
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
