/* inheritance: all elements inherit this font from body */
body {
    background-color: #f4f8f6;
    font-family: Arial, Helvetica, sans-serif;
}

header {
    background-color: #dfeae4;
    padding: 1em;
}

main {
    width: 80%;
    margin: 0 auto;
}
/* selector grouping: one rule for both */
section,
article {
    border: 1px solid grey;
    padding: 1.25em;
    margin: 1em 0;
    background-color: white;
    min-height: 8em;
}

h1 {
    color: navy;
    font-size: 2.25rem;
    text-align: center;
    text-shadow: 1px 1px 2px lightgray;
}

h2 {
    color: teal;
    font-size: 1.5rem;
    text-transform: uppercase;
}

p {
    line-height: 1.6;
    color: darkblue;
}

ul {
    margin: 1em 0;
    padding: 0 0 0 2em;
    list-style-type: circle;
    list-style-position: inside;
}

ol {
    margin: 1em 0;
    padding: 0 0 0 2em;
    list-style-type: upper-roman;
}

dl {
    margin: 1em 0;
    padding: 0 0 0 2em;
}

dd {
    font-style: italic;
}

a {
    color: blue;
}

/* descendant selector: overrides the a color only inside nav */
nav a {
    color: #e0f2e9;
    text-decoration: none;
}

nav {
    background-color: darkgreen;
    padding: 0.5em 1em;
}

.highlight {
    font-weight: bold;
    background-color: burlywood;
}

#intro {
    font-size: 1.2em;
    background-color: beige;
}

img {
    max-width: 100%;
}
/* rule order: same selector as the earlier a rule (same specificity),
   so this later rule wins and links are green instead of blue */
a {
    color: green;
}