/* ==========================================================================
   BMT (British Messaging Thingyimajig) — reset.css
   Purpose: strip browser default styling so layout.css and the theme
   files have a clean, predictable base to work from. No visual style
   opinions live here — just neutralizing inconsistencies.
   ========================================================================== */

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

html {
  /* Prevent iOS/Android from auto-resizing text, which breaks pixel-precise
     retro layouts */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeSpeed;
  display: flex;
  flex-direction: column;
}

/* Remove default list styling — buddy lists and message logs will use
   <ul>/<li> and we don't want bullets/indent fighting the layout */
ul,
ol {
  list-style: none;
}

/* Images/media never overflow their containers (buddy icons, emoticons) */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* Form elements inherit fonts instead of using OS defaults — important
   since we want everything, including inputs/buttons, to look like part
   of the retro chat UI, not the native OS chrome */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

button {
  cursor: pointer;
}

/* Links reset to plain text color/no underline by default; theme files
   decide how links (e.g. in chat messages) actually look */
a {
  color: inherit;
  text-decoration: none;
}

/* Tables (unlikely, but just in case a layout uses one for window chrome) */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Headings don't carry any bold/size assumptions — theme files define
   all typography intentionally */
h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
}

/* Respect users who've asked for reduced motion (e.g. door open/close
   animations, window transitions) */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}