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

html, body {
    height: 100%;
}

body {
    font-family: Georgia, "Times New Roman", serif;
    background: #faf9f7;
    color: #2c2c2c;
}

.site-main {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    text-align: center;
}

.site-inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.site-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: normal;
    letter-spacing: 0.04em;
    color: #1a1a1a;
}

.site-contact a {
    color: #5a6e5a;
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 0.02em;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.site-contact a:hover {
    border-color: #5a6e5a;
}

/* Site nav (login/logout) */
.site-nav {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 0.9rem;
}

.site-nav a {
    color: #5a6e5a;
    text-decoration: none;
    margin-left: 1rem;
}

.site-nav a:hover {
    text-decoration: underline;
}

/* Forum layout */
.forum {
    max-width: 48rem;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}

.forum h1, .forum h2 {
    font-weight: normal;
    letter-spacing: 0.03em;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.forum h1 {
    font-size: 1.75rem;
}

.forum h2 {
    font-size: 1.25rem;
}

.forum-crumbs {
    font-size: 0.85rem;
    color: #7a7a7a;
    margin-bottom: 1.5rem;
}

.forum-crumbs a {
    color: #5a6e5a;
    text-decoration: none;
}

.forum-crumbs a:hover {
    text-decoration: underline;
}

.forum-list {
    list-style: none;
    border-top: 1px solid #e3e0d8;
}

.forum-list li {
    border-bottom: 1px solid #e3e0d8;
    padding: 0.85rem 0;
}

.forum-list a {
    color: #1a1a1a;
    text-decoration: none;
}

.forum-list a:hover {
    color: #5a6e5a;
}

.forum-meta {
    font-size: 0.85rem;
    color: #7a7a7a;
    margin-top: 0.25rem;
}

.forum-post {
    border-top: 1px solid #e3e0d8;
    padding: 1rem 0;
}

.forum-post:first-of-type {
    border-top: none;
}

.forum-post-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #7a7a7a;
    margin-bottom: 0.5rem;
}

.forum-post-header .author {
    color: #1a1a1a;
    font-weight: 600;
    text-decoration: none;
}

.forum-post-body {
    white-space: pre-wrap;
    line-height: 1.55;
}

.forum-post-image {
    margin-top: 0.75rem;
    max-width: 100%;
    height: auto;
    border: 1px solid #e3e0d8;
}

.forum-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.forum-avatar--lg {
    width: 96px;
    height: 96px;
}

.forum-form {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.forum-form label {
    font-size: 0.9rem;
    color: #4a4a4a;
}

.forum-form input[type="text"],
.forum-form input[type="email"],
.forum-form input[type="password"],
.forum-form textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d0ccc0;
    background: #fff;
    font: inherit;
}

.forum-form textarea {
    resize: vertical;
    min-height: 6rem;
}

.forum-form button {
    padding: 0.5rem 1rem;
    border: 1px solid #5a6e5a;
    background: #5a6e5a;
    color: #fff;
    font: inherit;
    cursor: pointer;
    align-self: flex-start;
}

.forum-form button:hover {
    background: #4a5c4a;
}

.forum-form .errorlist {
    list-style: none;
    color: #a04040;
    font-size: 0.85rem;
}

.forum-badge {
    font-size: 0.75rem;
    color: #5a6e5a;
    border: 1px solid #5a6e5a;
    padding: 0.05rem 0.4rem;
    margin-right: 0.4rem;
    border-radius: 2px;
}

.forum-actions {
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.forum-actions a {
    color: #5a6e5a;
    text-decoration: none;
}

.forum-actions a:hover {
    text-decoration: underline;
}