/**
 * Coemans Starter - reset.css
 *
 * A small, modern CSS reset. Adapted from Andy Bell's "A (more) modern
 * CSS reset" - https://andy-bell.co.uk/a-more-modern-css-reset/
 *
 * Loads BEFORE main.css. Do not put design-system tokens here, this
 * file only neutralises browser defaults. Visual styling belongs in
 * main.css.
 */

/* Box sizing on every element + pseudo */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Prevent automatic font-size adjustments on mobile (iOS rotation, etc.) */
html {
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
}

/* Remove default trailing margin on common blocks */
body,
h1, h2, h3, h4, h5, h6,
p,
figure,
blockquote,
dl, dd {
    margin: 0;
}

/* Lists that are actually used as lists keep their semantics but lose bullets */
ul[role='list'],
ol[role='list'] {
    list-style: none;
    padding: 0;
}

/* Sensible body defaults */
body {
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Tighter line-height on headings + interactive elements */
h1, h2, h3, h4,
button, input, label {
    line-height: 1.2;
}

/* Better text wrapping for readability */
h1, h2, h3, h4 {
    text-wrap: balance;
}

p, li {
    text-wrap: pretty;
}

/* Unstyled anchors keep their parent colour, but still get readable underlines */
a:not([class]) {
    text-decoration-skip-ink: auto;
    color: currentColor;
}

/* Responsive media by default */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

/* Form elements inherit type */
input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
}

textarea:not([rows]) {
    min-height: 10em;
}

/* Anchors that link to a fragment scroll with some breathing room */
:target {
    scroll-margin-block: 5ex;
}

/* Respect user 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;
    }
}
