/* Box sizing rules */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
    margin: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
    list-style: none;
}

/* Set core root defaults */
html:focus-within {
    scroll-behavior: smooth;
}

/* Set core body defaults */
body {
    min-height: 100vh;
    text-rendering: optimizeSpeed;
    line-height: 1.5;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
    text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
    max-width: 100%;
    display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
    font: inherit;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
    html:focus-within {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Galen's code */
body {
    padding: 0rem 1rem;
    background-color: hsl(36, 100%, 99%);
    font-family: 'Inter', sans-serif;
}

header {
    display: flex;
    padding: 1.5rem 0rem;
    justify-content: space-between;
}

.menu-open {
    height: 1.5rem;
    width: 3.5rem;
}

nav {
    display: none;
}

ul {
    display: flex;
}

li {
    list-style: none;
}

.sidebar {
    width: 0rem;
    position: fixed;
    height: 100%;
    right: 0;
    transition: 0.2s;
    margin-top: -1.5rem;
    background-color: hsl(36, 100%, 99%);
    display: flex;
    flex-direction: column;
}

.menu-close {
    align-self: flex-end;
    margin: 1.2rem;
}

.sidebar ul {
    flex-direction: column;
    margin-left: -1rem;
}

.sidebar li {
    padding-bottom: 1.25rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 2.5rem;
    padding: 1.5rem 0rem;
}

p {
    color: hsl(236, 13%, 42%);
}

button {
    display: block;
    background-color: hsl(5, 85%, 63%);
    border-style: none;
    color: white;
    text-transform: uppercase;
    padding: .8rem 2rem;
    font-size: .8rem;
    letter-spacing: .3rem;
    margin-top: 1.5rem;
}

.new {
    background-color: hsl(240, 100%, 5%);
    margin-top: 4rem;
    padding: 1rem;
}

.new h2 {
    color: hsl(35, 77%, 62%);
    font-size: 1.8rem;
}

.new section {
    padding: 2rem 0rem;
}

.new section:nth-of-type(2) {
    border: solid;
    border-width: 1px 0px;
    border-color: hsl(236, 13%, 42%);
}

.new h3 {
    color: white;
}

.new p {
    color: hsl(233, 8%, 70%);
}

footer {
    margin-top: 4rem;
}

footer section {
    display: flex;
    margin: 2rem 0rem;
    align-items: center;
}

footer img {
    max-width: 7rem;
    max-height: 8.1rem;
}

footer .text {
    margin-left: 1.5rem;
}

footer h2 {
    color: hsl(233, 8%, 79%);
    font-size: 2rem;
}

footer h3 {
    font-weight: 800;
    margin-bottom: .5rem;
}

footer p {
    font-size: .94rem;
    line-height: 1.5rem;
}

.attribution {
    font-size: 11px;
    text-align: center;
}

.attribution a {
    color: hsl(228, 45%, 44%);
}

@media (min-width: 1100px) {
    main {
        display: flex;
    }

    picture img {
        max-width: 52rem;
    }

    .headline section {
        display: flex;
    }

    .headline p {
        padding-top: 1.5rem;
        max-width: 27rem;
        padding-right: 4rem;
    }

    h1 {
        font-size: 3.8rem;
        line-height: 3.8rem;
        width: 40rem;
    }

    .new {
        margin-top: 0;
        padding: 1.5rem;
        margin-left: 2rem;
        max-height: 34rem;
    }

    .new p {
        margin-top: .5rem;
    }

    footer {
        margin-top: 0rem;
    }

    footer article {
        display: flex;
        justify-content: space-between;
    }

    footer section {
        max-width: 22rem;
    }

    /* Navbar modifications */
    header {
        align-items: center;
    }

    nav {
        display: flex;
    }

    nav ul {
        padding-right: 1rem;
    }

    nav li {
        padding-left: 3rem;
    }

    .menu-open {
        display: none;
    }

    .sidebar {
        display: none;
    }
}

/* Hover states */
li:hover {
    color:hsl(5, 85%, 63%);
}

button:hover {
    background-color: hsl(240, 100%, 5%);
}

.new h3:hover {
    color:hsl(35, 77%, 62%)
}

footer h3:hover {
    color: hsl(5, 85%, 63%);
}

/* Javascript classes */
.sidebar-open {
    width: 16rem;
    box-shadow: 0 0 0 10000px rgba(0, 0, 0, .50);
}