:root {
    --bg: #efe9df;
    --panel: #fffdf8;
    --border: #d7cab4;
    --text: #1e1b17;
    --muted: #665d53;
    --accent: #9b3618;
    --accent-dark: #6f220b;
    --deleted: #ebe2d4;
    --shadow: 0 18px 36px rgba(44, 31, 18, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    color: var(--text);
    background:
        radial-gradient(circle at top, rgba(155, 54, 24, 0.12), transparent 30%),
        linear-gradient(180deg, #ece0ce 0%, var(--bg) 45%, #ede5d8 100%);
}

a {
    color: var(--accent-dark);
}

.wrap {
    width: min(1040px, calc(100vw - 2rem));
    margin: 0 auto;
    padding: 2rem 0 3rem;
}

.hero {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 1rem;
    align-items: start;
    margin-bottom: 1rem;
}

.hero.compact {
    grid-template-columns: 1fr;
}

.eyebrow {
    margin: 0 0 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    font-size: 0.78rem;
}

.grid {
    display: grid;
    grid-template-columns: minmax(280px, 360px) 1fr;
    gap: 1rem;
}

.card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.2rem;
    box-shadow: var(--shadow);
}

.rules ul {
    margin: 0;
    padding-left: 1.25rem;
}

.chat-form,
form {
    display: grid;
    gap: 0.85rem;
}

label {
    display: grid;
    gap: 0.35rem;
    font-weight: 700;
}

input,
textarea,
button {
    font: inherit;
}

input,
textarea {
    width: 100%;
    padding: 0.8rem 0.9rem;
    border-radius: 12px;
    border: 1px solid #b8ad99;
    background: #fffdfa;
    color: var(--text);
}

button {
    width: fit-content;
    padding: 0.8rem 1.15rem;
    border: 0;
    border-radius: 999px;
    background: var(--accent);
    color: white;
    font-weight: 700;
    cursor: pointer;
}

.muted {
    color: var(--muted);
}

.messages {
    display: grid;
    gap: 0.85rem;
}

.message {
    border: 1px solid #d8ccb8;
    border-radius: 14px;
    padding: 0.9rem 1rem;
    background: #fff;
}

.message.is-deleted {
    background: var(--deleted);
    border-style: dashed;
}

.message-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.35rem;
}

@media (max-width: 820px) {
    .hero,
    .grid {
        grid-template-columns: 1fr;
    }
}
