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

html,
body {
    touch-action: pan-y;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

/* Prevent font size inflation */
html {
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

/* Remove default margin in favour of better control in authored CSS */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ol,
ul,
figure,
blockquote,
dl,
dd {
    margin: 0;
}

strong {
	font-weight: 500;
}

/* 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;
    padding: 0;
    margin: 0;
}

ul {
    list-style-type: none;
}

/* Set core body defaults */
body {
    min-height: 100vh;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
}


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

a {
    color: inherit;
    text-decoration: none;
}

/* 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;
    color: inherit;
    margin: 0;
}

button {
    background: none;
    border: none;
    cursor: pointer;
}

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

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

p:last-child,
ul:last-child,
ol:last-child {
    margin-block-end: 0;
}

address {
    font-style: normal;
}

figure {
    margin: 0;
    padding: 0;
}

img {
    border-style: none;
    display: block;
    font-size: 0;
    vertical-align: bottom;
    width: 100%;
    max-width: 100%;
    height: auto;
}

:focus {
    outline: none !important;
    outline-offset: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Remove animations for reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

