@import url("https://fonts.googleapis.com/css?family=Merriweather+Sans");

body {
    margin: 0;
    font-family: "Merriweather Sans", sans-serif;
}

h1 {
    font-family: "Merriweather Sans", sans-serif;
    font-size: 36px;
    font-weight: 900;
    color: #999999;
}

h2 {
    font-family: "Merriweather Sans", sans-serif;
    font-size: 22px;
    font-weight: 900;
    color: #999999;
    text-transform: lowercase;
    margin: 0 0 .8em 0;
}

ul {
    font-family: "Merriweather Sans", sans-serif;
    font-weight: 500;
    color: #000000;
    list-style-type: none;
    padding: 0;
}

ul.links {
    font-size: 22px;
}

ul.things-list {
    font-size: 15px;
    line-height: 1.45;
}

li {
    margin: .3em 0;
}

ul.things-list li {
    margin: 0;
    padding: 0;
}

A:link      { text-decoration: none; color: #aaaaaa; }
A:visited   { text-decoration: none; color: #aaaaaa; }
A:active    { text-decoration: none; color: #aaaaaa; }
A:hover     { text-decoration: none; color: black; }

ul.things-list > li > a {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 10px 0;
    color: #444;
    border-bottom: 1px solid #f0f0f0;
}
ul.things-list > li:last-child > a {
    border-bottom: none;
}
ul.things-list > li > a:hover {
    color: #000;
}
ul.things-list > li > a:hover .text {
    color: #000;
}

.thing-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Merriweather Sans", sans-serif;
    font-weight: 900;
    font-size: 22px;
    color: #fff;
    line-height: 1;
    overflow: hidden;
}
.thing-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.thing-icon.thing-icon--small {
    font-size: 15px;
    letter-spacing: -.02em;
}

ul.things-list.things-list--small {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px 22px;
    font-size: 13px;
}
ul.things-list.things-list--small .thing-icon {
    width: 36px;
    height: 36px;
    font-size: 17px;
}
ul.things-list.things-list--small > li > a {
    gap: 10px;
    padding: 8px 0;
}

ul.things-list > li:nth-child(5n+1) .thing-icon { background: #6c7a89; } /* slate */
ul.things-list > li:nth-child(5n+2) .thing-icon { background: #8e7c9e; } /* mauve */
ul.things-list > li:nth-child(5n+3) .thing-icon { background: #6f9a8d; } /* sage */
ul.things-list > li:nth-child(5n+4) .thing-icon { background: #c0a062; } /* ochre */
ul.things-list > li:nth-child(5n)   .thing-icon { background: #a06b5a; } /* terracotta */

.thing-text {
    flex: 1;
    color: #444;
    align-self: center;
}
ul.things-list > li > a:hover .thing-icon {
    filter: brightness(1.08);
}

#page {
    max-width: 1240px;
    margin: 90px auto 80px auto;
    padding: 0 40px;
}

#hero {
    text-align: center;
}

#hero h1 {
    margin: 0 auto .9em auto;
}

#hero ul.links {
    display: flex;
    justify-content: space-evenly;
    column-gap: 2.5em;
    row-gap: .5em;
    flex-wrap: wrap;
    margin: 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
#hero ul.links li {
    margin: 0;
}

#things {
    margin-top: 5em;
}
#things h2,
#recent h2 {
    text-align: center;
    margin-bottom: 1.5em;
}
#recent {
    margin-top: 4em;
}

ul.things-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px 28px;
}

#page.story {
    display: block;
    max-width: 760px;
    margin: 80px auto 80px auto;
    padding: 0 24px;
}
.story h1 {
    font-size: 32px;
    margin: 0 0 1.2em 0;
}
.story p {
    font-size: 17px;
    line-height: 1.6;
    color: #222;
    margin: 0 0 1.1em 0;
}
.story figure {
    margin: 2.4em 0;
}
.story figure img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid #ddd;
}
.story figcaption {
    font-size: 13px;
    color: #888;
    margin-top: .5em;
    text-align: center;
}
.story .back {
    font-size: 14px;
    color: #999;
    margin-bottom: 2em;
    display: inline-block;
}
.story .sources {
    margin-top: 3em;
    padding-top: 1.5em;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: #666;
}
.story .sources h3 {
    font-size: 14px;
    font-weight: 900;
    color: #999;
    text-transform: lowercase;
    margin: 0 0 .6em 0;
}
.story .sources ul {
    font-size: 14px;
}
.story .sources li {
    margin: .3em 0;
}

@media (max-width: 1000px) {
    ul.things-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    ul.things-list.things-list--small {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    #page {
        margin-top: 50px;
        padding: 0 20px;
    }
    h1 {
        font-size: 26px;
    }
    #hero ul.links {
        column-gap: 2em;
        font-size: 18px;
    }
    ul.things-list {
        grid-template-columns: 1fr;
    }
}
