/* ========================================
   Unexpected Outcome
   gloriously uncomplicated CSS
   ======================================== */


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

body {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;

    background-color: #f2f1ed;
    color: black;

    font-family: Verdana, Arial, sans-serif;
    line-height: 1.6;
}


/* ----- BANNER ----- */

.site-banner {
    width: 100%;
    overflow: hidden;
}

.banner {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    margin: 0;
}


/* ----- LINKS ----- */

a:link {
    color: #0000ff;
}

a:visited {
    color: #551a8b;
}

a:hover {
    background-color: yellow;
}


/* ----- IMAGES ----- */

img {
    display: block;
    max-width: 700px;
    width: 100%;
    height: auto;
    margin: 20px auto;
}


/* ----- IMAGE CAPTIONS ----- */

figure {
    max-width: 700px;
    margin: 20px auto;
    text-align: center;
}

figure img {
    margin-bottom: 6px;
}

figcaption {
    font-size: 0.85em;
    color: #666;
    font-style: italic;
}


/* ----- HORIZONTAL LINES ----- */

hr {
    border: 0;
    border-top: 1px solid #aaa;
    margin: 25px 0;
}


/* ----- MOBILE ----- */

@media (max-width: 700px) {

    body {
        padding: 10px;
    }

}

/* ----- SIDEBAR LAYOUT ----- */

.layout {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 30px;
    margin-top: 20px;
}

.sidebar {
    border-right: 1px solid #aaa;
    padding-right: 20px;
    font-size: 0.9em;
    line-height: 1.7;
}

.content {
    min-width: 0;
}

/* On small screens, put sidebar above content */

@media (max-width: 700px) {

    .layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        border-right: none;
        border-bottom: 1px solid #aaa;
        padding-right: 0;
        padding-bottom: 20px;
    }

}