/*
 * Based on A Modern CSS Reset
 * https://www.joshwcomeau.com/css/custom-css-reset/
 */


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

html {
    --scroll-offset: 8rem !important;

    scroll-behavior: smooth;
    scroll-padding-top: var(--scroll-offset);
    scroll-snap-type: y proximity; /* Snap to the nearest section; defaults to 'proximity', option for 'mandatory' */
} 

body {
  /* Add accessible line-height */
  line-height: 1.5;
  /* Improve text rendering */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* Inherit fonts for form controls */
input, button, textarea, select {
    font: inherit;
}

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