* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

main {
    max-width: 720px;
    margin: 0 auto;
    padding: 20px;
}

body {
    background-color: #1c1a18;
    color: #8a9baa;
    text-align: center;
}

header {
    background-color: #252220;
    padding: 12px 16px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* story title in header - links back to home */
.site-title {
    font-family: 'Tagesschrift', sans-serif;
    color: #6a8fa8;
    font-size: clamp(1.8rem, 5vw, 2rem);
    text-decoration: none;
}

h6 {
    margin: 20px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 20px;
    line-height: 1.5;
    font-weight: 500;
    font-style: italic;
}

h5 {
    margin: 20px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 24px;
    font-weight: 500;
    font-style: italic;
}

h4 {
    margin: 20px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 28px;
    font-weight: 500;
    font-style: italic;
}



p {
    margin: 20px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 500;
    font-style: italic;
}

/* images */
.horizontal {
    width: 100%;
}

/* images */
.vertical {
    width: 50%;
    display: block;
    margin: 0 auto;
}

/* chapter list on story index */
.chapter-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 20px;
}

.chapter-link {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-style: italic;
    font-weight: 500;
    color: #6a8fa8;
    border: 1px solid #6a8fa8;
    padding: 12px 16px;
    text-decoration: none;
}

.chapter-link:visited {
    color: #4a6878;
    border-color: #4a6878;
}

.chapter-link:hover {
    color: #8ab4c8;
    border-color: #8ab4c8;
}

/* previous and next buttons on chapter pages */
.chapter-nav {
    display: flex;
    justify-content: space-between;
    margin: 20px;
}

.chapter-nav a {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-style: italic;
    font-weight: 500;
    color: #6a8fa8;
    border: 1px solid #6a8fa8;
    padding: 10px 24px;
    text-decoration: none;
}

.chapter-nav a:hover {
    color: #8ab4c8;
    border-color: #8ab4c8;
}