/**
 *  Cordan Young theme
 * (based on the original Foundation Theme - Copyright (c) John Sundell 2019)
 *  MIT license, see LICENSE file for details
 */

:root {
    --primary: #000; /* #000 */
    --footer-color: #8a8a8a; /* #8a8a8a */
    --tag-color: #ffffff; /* #ddd */
    --body-background-light: #fff; /* #fff */
    --body-background-dark: #222; /* #222 */
    --header-color-light: #000; /* #000 */
    --header-color-dark: #ddd; /* #ddd */
    --header-background-light: #eee; /* #eee */
    --header-background-dark: #000; /* #000 */
    --list-background-dark: #333; /* #333 */
}

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

body {
    background: var(--body-background-light);
    color: var(--primary);
    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: var(--header-background-light);
}

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

header a {
    text-decoration: none;
}

header .site-name {
    font-size: 1.5em;
    color: var(--header-color-light);
    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;
}

.description {
    margin-bottom: 40px;
}

.item-list > li {
    display: block;
    padding: 20px;
    border-radius: 20px;
    background-color: var(--header-background-light);
    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: var(--primary);
    color: var(--tag-color);
    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: var(--footer-color);
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: var(--body-background-dark);
    }

    body,
    header .site-name {
        color: var(--header-color-dark);
    }

    .item-list > li {
        background-color: var(--list-background-dark);
    }

    header {
        background-color: var(--header-background-dark);
    }
}

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