/* ==========================================================================
   Modern CSS Reset  —  factory baseline
   Based on the well-known Andy Bell / Josh Comeau resets, trimmed for static sites.
   Load BEFORE tokens.css and any page styles.
   ========================================================================== */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
}

body {
  min-height: 100svh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* Inherit fonts for form controls */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.15;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

/* Sensible list defaults when a list is used for navigation etc. */
ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}

/* Anchor + focus */
a {
  color: inherit;
  text-decoration-skip-ink: auto;
}

:focus-visible {
  outline: 3px solid var(--color-focus, #4c8bf5);
  outline-offset: 2px;
}

/* Respect reduced-motion preferences */
@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;
  }
}

/* Isolate root stacking context for portals/modals */
#root,
#__next {
  isolation: isolate;
}
