/* ── Reset ── */
/* Use a more-intuitive box-sizing model */
*, *::before, *::after {
box-sizing: border-box;
}

/* Remove default margin */
*:not(dialog) {
    margin: 0;
}

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

@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;
    }
}  

html {
    scrollbar-gutter: stable;
    scroll-behavior: smooth;
}

body {
    /* Increase line-height */
    line-height: 1.5;
    /* Improve text rendering */
    -webkit-font-smoothing: antialiased;
}

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

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

/* Improve line wrapping */
p {
    text-wrap: pretty;	
}

h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;
    margin-top: 0;
    margin-bottom: 1rem;
    text-box-edge: cap alphabetic;
    text-box-trim: trim-both;
}
h1 {
    margin-bottom: 1.5rem;
}

button,
[role="button"],
label,
summary,
select {
    cursor: pointer;
}

body {
    margin: 0;
    font-family: var(--mackay-font-body);
    font-size: 18px;
    line-height: 1.6;
    color: var(--mackay-text-body);
    background: var(--mackay-surface-white);
}

a {
    color: var(--mackay-primary-teal);
}

[hidden] {
    display: none !important;
}