/**
*  Publish Foundation theme
*  Copyright (c) John Sundell 2019
*  MIT license, see LICENSE file for details
*/

* {
    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: #7d10bd;
}

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

header a {
    text-decoration: none;
}

header .site-name {
    font-size: 3.5em;
    color: #fff;
    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;
    border-bottom: 4px solid #7d10bd;
}

h3 {
    font-weight: lighter;
    margin-bottom: 1em;
}
h1 + h3 {
    margin-top: -1em;
}
h3 .release {
    float: right;
    padding-top: 0.333em;
    font-size: 0.8em;
    font-style: normal;
}

p {
    margin-bottom: 10px;
}

a {
    color: inherit;
}

td, th {
    padding: 0.1em 0.25em;
}

details {
    margin-left: -1em;
}
details p:first-of-type {
    border-top: 1px solid gray;
    padding-top: 0.2em;
}
details p {
    padding-left: 1em;
}

.description {
    margin-bottom: 40px;
}

.content-warning {
    padding-bottom: 0.66em;
    font-style: italic;
}
.content-warning summary {
    font-weight: bold;
}

.credits {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
}

.credits > li {
    margin-right: 1em;
}

.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;
}

.adventure-code {
    padding-left: 0.5em;
    color: #444;
    font-weight: lighter;
    font-size: 0.8em;
    font-style: normal;
}

.entry-label {
    padding-left: 0.5em;
    font-size: 0.9em;
    font-variant: small-caps;
    font-style: normal;
}

.illegal {
    text-decoration: line-through;
}

.spellbook {
    margin-bottom: 10px;
}
.spellbook ol {
    padding-left: 1em;
    font-size: 0.9em;
    list-style-type: none;
}
.spellbook ol p {
    margin-bottom: 3px;
}
.spellbook p + ol {
    margin-top: -5px;
}

.story-award {
    padding-bottom: 0.5em;
}
.story-award summary, p.story-award {
    font-size: 1.1em;
}
.story-award ul {
    padding-left: 2em;
    padding-bottom: 0.5em;
}
.story-award table {
    padding-left: 0.75em;
}

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

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

.all-tags.spell li, .tag-list li.spell {
    background-color: #293695;
}
.all-tags.rarity li, .tag-list li.rarity {
    background-color: #ba1111;
}

.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;
}

.missing {
    color: #ccc;
}

footer {
    color: #8a8a8a;
}

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

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

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

    header {
        background-color: #000;
    }
}

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