/* ==========================================
   MODERN CSS RESET
   Ensures consistent styling across browsers
   ========================================== */

/* Box sizing reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* HTML & Body */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    min-height: 100vh;
    line-height: var(--leading-normal);
}

/* Media elements */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

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

/* Headings and paragraphs */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

/* Links */
a {
    text-decoration: none;
    color: inherit;
}

/* Buttons */
button {
    cursor: pointer;
    border: none;
    background: none;
}

/* Lists */
ul,
ol {
    list-style: none;
}

/* Remove default button styles */
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

/* Table */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Remove tap highlight on mobile */
* {
    -webkit-tap-highlight-color: transparent;
}
