/* stylelint-disable -- CSS Reset should be left with no transformations */

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

/* Remove default margin in favour of better control in authored CSS: */
*:not(dialog) {
  margin: 0;
}

/* Prevent font size inflation: */
html {
  text-size-adjust: none;

  /* Enable keyword animations: */
  @media (prefers-reduced-motion: no-preference) {
    interpolate-size: allow-keywords;
  }
}

/* Set core body defaults: */
body {
  min-block-size: 100dvb;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Balance text wrapping on headings: */
h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

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

/* Set shorter line heights on headings and interactive elements: */
h1,
h2,
h3,
h4,
button,
input,
label {
  line-height: 1.1;
}

/* Prettify text wrapping on paragraphs: */
p {
  text-wrap: pretty;
}

/* Inherit fonts for inputs and buttons: */
input,
button,
textarea,
select {
  font: inherit;
}

/* Make images easier to work with: */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-inline-size: 100%;
}

/* Remove list styles on ul, ol elements with a list role: */
ul[role="list"],
ol[role="list"] {
  list-style: "";
}

/* A elements that don't have a class get default styles: */
a:not([class]) {
  color: currentColor;
  text-decoration-skip-ink: auto;
}

/* Make sure textareas without a rows attribute are not tiny: */
textarea:not([rows]) {
  min-block-size: 10em;
}

/* Anything that has been anchored to should have extra scroll margin: */
:target {
  scroll-margin-block: 5ex;
}

/* Create root stacking context: */
#root,
#__next {
  isolation: isolate;
}
