:root {
  --paper: #F7F5F0;
  --ink: #1A1A1A;
  --accent: #2F6F5E;
  --muted: #8A8578;
  --border: #E3DFD4;
  --font-serif: 'Lora', Georgia, serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-serif);
  line-height: 1.6;
}

header {
  padding: 2rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
}

header h1 {
  font-size: 1.5rem;
  margin: 0;
}

header h1 a {
  color: var(--ink);
  text-decoration: none;
}

nav a {
  color: var(--accent);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.post {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.post:last-child {
  border-bottom: none;
}

.post-id {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.post h2 {
  font-size: 1.4rem;
  margin: 0.25rem 0 0.5rem;
}

.post p {
  color: #333;
  margin: 0 0 1rem;
}

.post-actions a,
.post-actions button {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-right: 1rem;
  text-decoration: none;
}

.post-actions button:hover,
.post-actions a:hover {
  text-decoration: underline;
}

form.page-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

form.page-form label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
}

form.page-form input,
form.page-form textarea {
  font-family: var(--font-serif);
  font-size: 1rem;
  padding: 0.6rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
}

form.page-form textarea {
  min-height: 160px;
  resize: vertical;
}

.btn {
  align-self: flex-start;
  font-family: var(--font-mono);
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
}

.btn:hover {
  opacity: 0.9;
}

footer {
  text-align: center;
  padding: 1.5rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

@media (max-width: 480px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }
}
header {
  animation: slideDown 0.6s ease-out;
}

footer {
  animation: fadeIn 0.8s ease-out 0.2s both;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

nav a {
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}

nav a:hover::after {
  width: 100%;
}

header h1 a {
  transition: color 0.25s ease;
}

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