* {
  box-sizing: border-box;
}

:root {
  --bg: white;
  --fg: rgb(47, 34, 135);
  --accent: magenta;
  --notice: violet;
  --danger: red;
  --muted: slateblue;
  --field-bg: lavender;
  --button-bg: var(--fg);
  --line: gainsboro;
}

body {
  margin: 0 auto;
  max-width: 35rem;
  padding: 3.5rem;
  font-family: serif;
  line-height: 1.15;
  color: var(--fg);
  background: var(--bg);
}

h1 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

.field {
  margin-bottom: 1.25rem;
}

label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.hint {
  font-weight: 400;
  color: var(--muted);
}

input[type="text"],
textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font: inherit;
  color: inherit;
  background: var(--field-bg);
  border: 1px solid var(--line);
  border-radius: 6px;
}

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

input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

button {
  padding: 0.65rem 1.4rem;
  font: inherit;
  font-weight: 600;
  color: var(--bg);
  background: var(--button-bg);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}
button:hover {
  background-color: var(--accent);
}

.notice {
  margin-bottom: 1.5rem;
  padding: 0.85rem 1rem;
  background: var(--notice);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.notice.error {
  color: var(--danger);
  border-color: var(--danger);
}

/* Honeypot: off-screen for humans, but bots that fill every field will trip it. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.entry {
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}

.entry-meta {
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.entry-body {
  margin: 0;
  white-space: pre-wrap;
}

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

footer {
  margin-top: 3rem;
  font-size: 0.85rem;
  color: var(--muted);
}

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