/* 1. Box sizing: predictable layout */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* 2. Remove default margins */
html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
    margin: 0;
}

/* 3. Body defaults */
body {
    min-height: 100vh;
    line-height: 1.5;
    text-rendering: optimizeSpeed;
}

/* 4. Lists: opt-in styling */
ul,
ol {
    padding: 0;
    list-style: none;
}

/* 5. Links: no visual styling by default */
a {
    text-decoration: none;
    color: inherit;
}

/* 6. Media elements behave */
img,
picture,
video,
canvas,
svg {
    display: block;
    width: 100%;
}

/* 7. Form elements inherit font */
input,
button,
textarea,
select {
    font: inherit;
}

/* 8. Buttons behave consistently */
button {
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
}

/* 9. Tables are sane */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* 10. Remove focus outline inconsistencies (accessibility-safe) */
:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}
