:root {
  --bg: #f6f4ef;
  --surface: #fffdf8;
  --ink: #1f1b16;
  --muted: #6b6258;
  --accent: #0f5c4c;
  --danger: #9b2c2c;
  --border: #e4ddd2;
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

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

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

.container {
  width: min(44rem, calc(100% - 2rem));
  margin: 0 auto;
  padding-bottom: 3rem;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  margin-bottom: 1.5rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.site-title {
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

h1, h2, h3 {
  line-height: 1.2;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.post-list h2 {
  margin-top: 0;
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.post-body p:first-child {
  margin-top: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.stack {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

input[type="text"],
textarea {
  width: 100%;
  font: inherit;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.button,
button,
input[type="submit"] {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
}

.button-danger {
  background: var(--danger);
}

.flash {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.flash-notice {
  background: #e4f4ee;
  color: #145c45;
}

.flash-alert {
  background: #fdecec;
  color: var(--danger);
}

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

.comments h2 {
  margin-top: 2rem;
}
