/*

Josh's Custom CSS Reset
https://www.joshwcomeau.com/css/custom-css-reset/

*/

*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        interpolate-size: allow-keywords;
    }
}

body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

p {
    text-wrap: pretty;
}
h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;
}

#root, #__next {
    isolation: isolate;
}

/*

Progressive font-size

*/

@media (min-width: 576px) {
    html {
        font-size: 106.25%;
    }
}
@media (min-width: 768px) {
    html {
        font-size: 112.5%;
    }
}
@media (min-width: 1024px) {
    html {
        font-size: 118.75%;
    }
}
@media (min-width: 1280px) {
    html {
        font-size: 125%;
    }
}
@media (min-width: 1536px) {
    html {
        font-size: 131.25%;
    }
}

/*

Project design

*/

::selection {
    background-color: #3399ff;
    color: #fff;
}

body {
    font-family: system-ui, sans-serif;
    background-color: #fff;
    color: #1f2328;
    min-height: 100dvh;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

a {
    color: #0969da;
}

header,
main,
footer {
    padding: 1rem;
}

header > *,
main > *,
footer > * {
    max-width: 50rem;
    margin: 0 auto;
}

header {
    background-color: #f6f8fa;
    box-shadow: rgba(209, 217, 224, 0.7) 0px -1px 0px 0px inset;
}

main {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

main p {
    margin-bottom: 1rem;
}

footer {
    text-align: center;
    font-size: .7rem;
}
