body {
    font-family: Arial, Helvetica, sans-serif;
}

/* Font stack and navy text color for h1 and h3 tags */
h1, h3 {
    font-family: Constantia, 'Lucida Bright', serif;
    color: navy;
}

article {
    text-indent: 2vw;
    border-bottom: 1px solid antiquewhite;
    display: flex;
    padding: 2vh 3vw 2vh 3vw;
}

figure {
    margin: 0;
    padding-right: 1em;
}

/* Articles that have an image get a ridge border */
article:has(img) {
    border: 2px ridge #9AC7F5;
}

/* Articles that have a figure with a figcaption */
article:has(figure figcaption) {
    border-bottom: 1px solid antiquewhite;
    border-top: none;
    border-left: none;
    border-right: none;
}

article:has(figure figcaption) img {
    border: 2px solid black;
    margin-right: 0.5em;
}

article:has(figure figcaption) figcaption {
    font-style: italic;
}

/* Styling all 5 states of the <a> tag */
a:link {
    color: #0066cc;
    text-decoration: none;
}

a:visited {
    color: #551a8b;
}

a:hover {
    color: #ff6600;
    text-decoration: underline;
}

a:active {
    color: #ff0000;
}

a:focus {
    outline: 2px dashed #0066cc;
    background-color: #e6f2ff;
}