:root {
  --bg: #0a0505;
  --panel: #150808;
  --red: #8a1212;
  --red-bright: #c42020;
  --text: #e6d8d0;
  --muted: #9a8a84;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  padding: 14px 0;
  font-variant: small-caps;
  letter-spacing: 0.08em;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--red-bright);
}

.banner {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

h1, h2 {
  font-weight: normal;
  letter-spacing: 0.04em;
  text-align: center;
}

.tagline {
  text-align: center;
  color: var(--muted);
  font-style: italic;
  margin: 24px 0;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--red);
  padding: 20px;
  margin: 24px 0;
}

label {
  display: block;
  margin: 12px 0 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

input[type="text"],
textarea {
  width: 100%;
  background: #0a0505;
  color: var(--text);
  border: 1px solid var(--red);
  padding: 8px 10px;
  font: inherit;
}

textarea { min-height: 90px; resize: vertical; }

button {
  margin-top: 16px;
  background: var(--red);
  color: var(--text);
  border: 1px solid var(--red-bright);
  padding: 8px 20px;
  font: inherit;
  cursor: pointer;
}

button:hover { background: var(--red-bright); }
button:disabled { opacity: 0.5; cursor: default; }

.msg-status { margin-top: 12px; min-height: 1.4em; }
.msg-status.error { color: #e07070; }

.entry {
  border-bottom: 1px solid #2a1212;
  padding: 14px 0;
}

.entry:last-child { border-bottom: 0; }
.entry .handle { color: var(--red-bright); font-weight: bold; }
.entry .when { color: var(--muted); font-size: 0.8rem; margin-left: 8px; }
.entry p { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }

.empty { color: var(--muted); text-align: center; font-style: italic; }

.hp { position: absolute; left: -9999px; }

.admin-actions button { margin: 8px 8px 0 0; padding: 4px 14px; }
