* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #fff;
    color: #000;
    font-family: Helvetica, Arial;
    text-align: center;
}

.wrapper {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 40px;
    text-align: left;
}

header {
    background-color: #b5fdff;
}

header .wrapper {
    padding-top: 30px;
    padding-bottom: 30px;
    text-align: center;
}

header a {
    text-decoration: none;
}

header .site-name {
    font-size: 1.5em;
    color: #000;
    font-weight: bold;
}

nav {
    margin-top: 20px;
}

nav li {
    display: inline-block;
    margin: 0 7px;
    line-height: 1.5em;
}

nav li a.selected {
    text-decoration: underline;
}

h1 {
    margin-bottom: 20px;
    font-size: 2em;
}

h2 {
    margin: 20px 0;
}

p {
    margin-bottom: 10px;
}

a {
    color: inherit;
}

img {
    padding: 32px 16px;
}

.description {
    margin-bottom: 40px;
}

.item-list > li {
    display: block;
    padding: 20px;
    border-radius: 20px;
    background-color: #eee;
    margin-bottom: 20px;
}

.item-list > li:last-child {
    margin-bottom: 0;
}

.item-list h1 {
    margin-bottom: 15px;
    font-size: 1.3em;
}

.item-list p {
    margin-bottom: 0;
}

.tag-list {
    margin-bottom: 15px;
}

.tag-list li,
.tag {
    display: inline-block;
    background-color: #000;
    color: #ddd;
    padding: 4px 6px;
    border-radius: 5px;
    margin-right: 5px;
}

.tag-list a,
.tag a {
    text-decoration: none;
}

.item-page .tag-list {
    display: inline-block;
}

.content {
    margin-bottom: 40px;
}

.browse-all {
    display: block;
    margin-bottom: 30px;
}

.all-tags li {
    font-size: 1.4em;
    margin-right: 10px;
    padding: 6px 10px;
}

footer {
    color: #8a8a8a;
}

/* Splash Swift Syntax Highlighting */

pre {
    margin-bottom: 1.5em;
    padding: 16px 0;
}

pre code {
    font-family: monospace;
    display: block;
    padding: 0 20px;
    color: black;
    line-height: 1.4em;
    font-size: 0.95em;
    overflow-x: auto;
    white-space: pre;
    -webkit-overflow-scrolling: touch;
}

pre code .swift-keyword {
    color: #A0449F;
    font-weight: bold;
}

pre code .swift-type {
    color: #1c464a;
}

pre code .swift-call {
    color: #6C36A9;
}

pre code .swift-property {
    color: #6C36A9;
}

pre code .swift-number {
    color: #1C00CF;
}

pre code .swift-string {
    color: #C41A16;
}

pre code .swift-comment {
    color: #5D6C79;
}

pre code .swift-dotAccess {
    color: #0F68A0;
}

pre code .swift-preprocessing {
    color: #643820;
}

/* Modifiers */

@media (prefers-color-scheme: dark) {
    body {
        background-color: #292A2F;
    }

    body,
    header .site-name {
        color: #ddd;
    }

    .item-list > li {
        background-color: #333;
    }

    header {
        background-color: #000;
    }

    pre code {
        color: #a9bcbc
    }

    pre code .swift-keyword {
        color: #FC5FA3;
    }

    pre code .swift-type {
        color: #8281ca;
    }

    pre code .swift-call {
        color: #A167E6;
    }

    pre code .swift-property {
        color: #21ab9d;
    }

    pre code .swift-dotAccess {
        color: #92b300;
    }
}

@media(max-width: 600px) {
    .wrapper {
        padding: 40px 20px;
    }
}
