/**
 * Global reset and body defaults.
 *
 * Adapted from Andy Bell's "A (more) Modern CSS Reset"
 * (https://piccalil.li/blog/a-more-modern-css-reset/), CC BY licensed.
 *
 * Loads before every other theme stylesheet (compositions, utilities, block
 * styles) so they build on a predictable baseline instead of fighting
 * unpredictable user-agent defaults. This is the layer beneath CUBE's
 * Composition step, not part of it.
 */

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

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

/* Remove default margin in favour of spacing from composition primitives only. */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role="list"],
ol[role="list"] {
  list-style: none;
}

ul {
  padding-left: 0;
  margin-left: 1.0625rem;
}

li {
  list-style: disc;
  list-style-position: outside;
}

li::marker {
  color: var(--wp--preset--color--primary, #79addb);
}

/* Set core body defaults */
body {
  min-block-size: 100vh;
  line-height: 1.2;
  font-size: var(--wp--preset--font-size--medium, 1.2rem);
}

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

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

h1 {
  max-inline-size: 30ch;
}

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

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

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

/* 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: 150px;
}

.cmplz-links ul li {
  list-style-type: none !important;
  margin-block-start: 0 !important;
  font-size: unset !important;
}
