/* =========================
   Minimal Modern Reset
   ========================= */

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

/* Remove default margins */
* {
  margin: 0;
}

/* Base body setup */
html,
body {
  height: 100%;
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
  font-kerning: normal;
  font-optical-sizing: auto;
  font-feature-settings: "kern" 1, "liga" 1, "clig" 1;
  font-variant-ligatures: common-ligatures contextual;
  text-rendering: optimizeLegibility;
}

/* Media defaults */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* Remove built-in form typography styles */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* Buttons behave like buttons, not weird boxes */
button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

/* Anchor defaults */
a {
  text-decoration: none;
  color: inherit;
}

/* Lists without bullets */
ul,
ol {
  list-style: none;
  padding: 0;
}

/* Tables */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Remove default fieldset styles */
fieldset {
  border: 0;
  padding: 0;
}

/* Improve text wrapping */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* Avoid weird long-word overflow */
:where(p, h1, h2, h3, h4, h5, h6) {
  hyphens: auto;
}

/* Root stacking context (helps avoid z-index chaos later) */
#root,
#__next {
  isolation: isolate;
}
