/* Modern CSS Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-family: var(--font-sans);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
    height: 100%;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* Typography Defaults */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: var(--font-weight-black);
    line-height: 1.2;
    margin-bottom: var(--space-4);
    color: var(--color-gray-900);
}

h1 {
    font-size: var(--text-3xl);
}

@media (max-width: 768px) {
    h1 {
        font-size: var(--text-2xl);
    }
}

h2 {
    font-size: var(--text-2xl);
}

h3 {
    font-size: var(--text-xl);
}

p {
    margin-bottom: var(--space-4);
    max-width: 65ch;
    /* Readable line length */
}

a {
    color: var(--color-primary-600);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    transition: var(--transition-base);
}

a:hover {
    color: var(--color-primary-700);
    text-decoration: underline;
}

ul,
ol {
    list-style-position: inside;
    margin-bottom: var(--space-4);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-4);
    padding-right: var(--space-4);
}

@media (min-width: 640px) {
    .container {
        padding-left: var(--space-6);
        padding-right: var(--space-6);
    }
}

main.container {
    flex: 1;
    /* Push footer down */
    padding-top: var(--space-8);
    padding-bottom: var(--space-12);
}

/* Button Reset & Base */
button {
    font-family: inherit;
    border: none;
    cursor: pointer;
    background: transparent;
}