:root {
  --ink: #2b3a33;
  --muted: #6f8177;
  --bg: #faf7f0;
  --panel: #ffffff;
  --accent: #3d7a5c;
  --accent-soft: #e4efe8;
  --line: #e6e0d2;
  --max-width: 720px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

.hero { padding: 4.5rem 0 2.5rem; text-align: center; }
.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.hero h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin: 0 0 0.9rem; letter-spacing: -0.01em; }
.hero p { color: var(--muted); max-width: 46ch; margin: 0 auto; font-size: 1.05rem; }

/* ---------- Form ---------- */
.sign-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.75rem;
  margin: 2rem 0 3rem;
  box-shadow: 0 1px 3px rgba(43, 58, 51, 0.06);
}
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: 0.82rem; color: var(--muted); margin-bottom: 0.4rem; font-weight: 600; }
.field input, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  font-size: 0.96rem;
  font-family: inherit;
  background: var(--bg);
  color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 80px; }
.char-count { text-align: right; font-size: 0.75rem; color: var(--muted); margin-top: 0.3rem; }

.btn-sign {
  width: 100%;
  padding: 0.85rem;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn-sign:hover { background: #326a4f; transform: translateY(-1px); }
.btn-sign:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.form-message {
  margin-top: 0.9rem;
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  font-size: 0.88rem;
  display: none;
}
.form-message.show { display: block; }
.form-message.error { background: #fbeceb; color: #a13a34; border: 1px solid #f0c9c6; }

/* ---------- Entries ---------- */
.entries-heading {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.entries-list { display: flex; flex-direction: column; gap: 0.9rem; padding-bottom: 4rem; }
.entry {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 1.1rem 1.3rem;
  animation: fade-in 0.3s ease;
}
@keyframes fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}
.entry .entry-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.35rem; gap: 0.75rem; }
.entry .entry-name { font-weight: 700; }
.entry .entry-time { font-size: 0.78rem; color: var(--muted); white-space: nowrap; }
.entry .entry-message { color: #46564d; font-size: 0.95rem; word-wrap: break-word; }

.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 2.5rem 1rem;
  border: 1px dashed var(--line);
  border-radius: 12px;
  font-size: 0.92rem;
}

footer { text-align: center; color: var(--muted); font-size: 0.82rem; padding-bottom: 2.5rem; }
