:root {
  --bg: #fdfcf8;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --line: #ddd8cc;
  --accent: #8a2b0e;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121110;
    --text: #e8e4da;
    --muted: #9a958a;
    --line: #2e2b27;
    --accent: #e0866a;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0 auto;
  max-width: 42rem;
  padding: 2rem 1rem 4rem;
  background: var(--bg);
  color: var(--text);
  font: 1.1rem/1.6 Georgia, "Times New Roman", serif;
}

a {
  color: var(--text);
}

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

header h1 {
  margin: 0 0 2.5rem;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
}

header h1 a {
  text-decoration: none;
}

.feed {
  list-style: none;
  margin: 0;
  padding: 0;
}

.feed li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
}

.feed a {
  text-decoration: none;
}

.meta,
.empty {
  color: var(--muted);
  font-size: 0.9rem;
}

.content {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.tag {
  color: var(--accent);
  font-size: 0.85rem;
}

.error {
  color: var(--accent);
}

input,
textarea,
button {
  font: inherit;
  color: inherit;
}

input,
textarea {
  width: 100%;
  padding: 0.5rem;
  background: transparent;
  border: 1px solid var(--line);
}

textarea {
  min-height: 16rem;
  resize: vertical;
}

button {
  padding: 0.3rem 0.8rem;
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
}

button:hover {
  border-color: var(--accent);
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 0.75rem 0;
}

.admin-item {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
}
