/***** RESET *****/

h1, h2, h3, p, ul, ol {
	margin: 0;
	padding: 0;
}

ul, ol {
	list-style-type: none;
}

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

/***** TYPOGRAPHY *****/

header {
    font-family: "Inter";
    font-weight: 400;
    font-size: .85em;
}

h1 {
    font-weight: 700;
    font-size: 4.4em;
    text-transform: uppercase;
    color: #3d280a;
}

h2 {
    font-weight: 500;
    font-size: 2.26em;
    color: #3d280a;
}

h3 {
    font-weight: 500;
    font-size: 1.4em;
    color: #d3212a;
}

strong {
    font-weight: 600;
}

main {
    font-family: "Fredoka";
    color: #3d280a;
    font-size: 1.1em;
}

figcaption {
    color: gray;
    font-size: 0.85em;
    font-weight: 400;
    font-style: italic;
}

/* .text-entry {
    font-family: "Inter";
    font-weight: 400;
} */

.entry p {
    font-family: "Quicksand";
    font-weight: 500;
}

footer {
    font-family: "Inter";
    font-weight: 400;
    color: #3d280a;
}

/***** LINKS *****/

a:link {
    text-decoration: none;
    color: #3d280a;
}

article a:link, article a:visited {
    text-decoration: none;
    color: #d3212a;
}

a:hover {
    color: #d3212a;
}

main a:hover {
    color: #d3212a;
}
  
a:visited {
    color: inherit;
}

footer a:link {
    text-decoration: underline;
}

/***** ELEMENTS *****/

body {
    width: 100%;
    height: 100%;
    margin: auto;
    align-content: center;
}

header {
    text-align: left;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 22em;
    grid-template-rows: 65px;
    grid-template-areas:
        "A A A B"
        "C C C B";
    /* column-gap: 15px; */
    background-color: #FFFBEF;
    border-bottom: 3px solid #E8E3D6;
    margin-bottom: 52px;
    padding: 40px 60px;
}

h1 {
    grid-area: A;
}

h2 {
    grid-area: C;
}

header img {
    animation: opacity 4s;
    animation-iteration-count: infinite;

    float: right;
    grid-area: B;
    padding-top: 10px;
}

main img {
    display: block;
    margin: auto;
    width: 1000px;
    padding: 15px;
    box-sizing: border-box;
}

footer {
    display: flex;
    bottom: 0;

    background-color: #FFFBEF;
    border-top: 3px solid #E8E3D6;
    padding: 32px 50px 32px 50px;
    margin-top: 50px;
    text-align: center;
}

footer p {
    align-items: center;
    justify-content: center;
    margin: auto;
}

.spacer {
    padding: 15px;
}

/****** ANIMATION *****/

@keyframes opacity {
    0% { opacity: 1; }
    12.5% { opacity: .9; }
    25% { opacity: .8; }
    37.5% { opacity: .7; }
    50% { opacity: .6; }
    62.5% { opacity: .7; }
    75% { opacity: .8; }
    87.5% { opacity: .9; }
    100% { opacity: 1;} 
}

/****** RESPONSIVE *****/

/* Phone */
@media screen and (max-width: 480px) {

    h1 {
        line-height: 0.9em;
    }

    header {
        font-size: 0.52em;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    header img {
        padding-top: 10px;
        float: left;
        animation: opacity infinite;
    }
}

/* Tablet */
@media screen and (max-width: 768px) {

    h1 {
        line-height: 0.9em;
    }

    header {
        font-size: 0.65em;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    header img {
        padding-top: 10px;
        float: left;
        animation: opacity infinite;
    }

    footer {
        font-size: 0.9em;
    }
}

/* Smaller Desktop */
@media screen and (min-width: 768px) and (max-width: 1040px) {

    h1 {
        line-height: 0.9em;
    }

    header {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
}