/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

* {
	box-sizing: border-box;
}

/* --- PAGE STYLING --- */

body {
    font-family: Inter, 'Helvetica Neue', 'Sergoe UI', sans-serif; /* this sets the font for the whole document. Prefered font is put in the HTML head*/
   	font-weight: 200;
   	color: #252525;
   	background-color: #f5f2f0;
}

main {
    width: 80vw;
	max-width: 600px;
    margin: 2em auto;
}

figure, h3, main figure:first-of-type figcaption, main figure:last-of-type img {
    margin-top: 40px;
}

figure img, main figure:first-of-type figcaption {
    max-width: 400px;
}

section p {
	border-left: solid #dcb480 3px;
	padding-left: 1em;
	margin: 0 1em 1.5em 0;
}

footer {
    background-color: #b0b9a8;
	margin-top: 1em;
	padding: 2em 0 1em;
	width: 100%;
}

/* --- TYPOGRAPHY --- */

h1, h2, h3 {
    font-family: Newsreader, Georgia, 'Times New Roman', Times, serif;
}

h1 {
    font-size: 2.5em;
    text-align: center;
}

h2 {
    font-size: 4em;
}

h3 {
    font-size: 2.2em;
    margin-bottom: 0.2em;
}

h1, figure h2+p {
	border-bottom: solid #b0b9a8 3px;
}

figure h2+p {
    padding-bottom: 0.3em;
}

p {
    font-size: 1.1em;
    line-height: 1.6em;
}

p span {
    font-style: italic;
}

figcaption p+p {
    margin-top: 1em;
}

main>p:first-of-type {
    background-color: #dcb480;
	font-size: 1.4em;
	font-style: italic;
	text-align: center;
	margin: 40px auto;
	padding: 1em;
}

/* --- IMAGES ---*/

figure img, figure figcaption {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

footer p {
    text-align: center;
}

/* --- MEDIA QUERIES ---*/

@media (min-width: 900px) {
    main {
        max-width: 800px;
    }
    
    main>p:first-of-type, h3 {
        margin-top: 60px;
    }

    figure {
        display: flex;
        gap: 2em;
        align-items: end;
        margin-top: 60px;
    }

    main figure:last-of-type img {
        margin: 0;
    }
}