/*
  Global style sheet for the novel site. This palette strives to
  emulate printed paper: a light beige background, dark gray text,
  and subtle borders. The serif font improves readability in long
  form fiction.
*/

body {
    margin: 0;
    font-family: 'Times New Roman', serif;
    background-color: #fdf6e3; /* light beige/paper tone */
    color: #333333;
    line-height: 1.6;
}

a {
    color: #336699;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

header {
    background-color: #eee8d5;
    border-bottom: 1px solid #e0d8b0;
    padding: 10px 0;
    margin-bottom: 20px;
}

.container {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
}

.site-title {
    margin: 0;
    font-size: 1.8rem;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 15px;
}

nav li {
    font-size: 0.9rem;
}

footer {
    margin-top: 40px;
    padding: 20px 0;
    text-align: center;
    background-color: #eee8d5;
    border-top: 1px solid #e0d8b0;
}

h1, h2, h3, h4, h5 {
    color: #222222;
}

.novel-list, .chapter-list {
    padding-left: 0;
    list-style-type: none;
}

.novel-list li, .chapter-list li {
    margin-bottom: 15px;
}

.novel-list li h3 {
    margin: 0 0 5px 0;
}

.description {
    margin: 0 0 10px 0;
    font-style: italic;
    color: #555555;
}

.admin-list {
    width: 100%;
    border-collapse: collapse;
}

.admin-list th, .admin-list td {
    border: 1px solid #d8c490;
    padding: 8px;
    text-align: left;
}

.admin-list th {
    background-color: #eee8d5;
}

form input[type="text"], form input[type="password"], form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #d8c490;
    border-radius: 3px;
    background-color: #fefcf5;
}

form button {
    padding: 8px 16px;
    background-color: #d8c490;
    color: #3b321f;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 1rem;
}

form button:hover {
    background-color: #c2ab6f;
}

.chapter-content {
    padding: 15px;
    border: 1px solid #e0d8b0;
    background-color: #fefcf5;
}

.error {
    color: #c00;
}

/* Table of contents numbering for chapters */
.chapter-list {
    counter-reset: chapternumber;
}
.chapter-list li {
    counter-increment: chapternumber;
    margin-bottom: 8px;
}
.chapter-list li::before {
    content: counter(chapternumber) ". ";
    font-weight: bold;
}

.danger-button {
    padding: 6px 12px;
    background-color: #a94442;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.9rem;
}

.danger-button:hover {
    background-color: #843534;
}