* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.4;
  color: #222;
  background: #fafafa;
}

.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 1rem;
}

header {
  border-bottom: 1px solid #ddd;
  margin-bottom: 1rem;
}

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

.brand-image {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

a {
  color: #1d4ed8;
}

a:focus,
button:focus,
textarea:focus {
  outline: 2px solid #1d4ed8;
  outline-offset: 2px;
}

.muted {
  color: #666;
}

.success {
  color: #065f46;
}

.error {
  color: #b91c1c;
}

.poem-list {
  padding-left: 1.25rem;
}

.poem-list article {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
}

pre {
  white-space: pre-wrap;
  margin: 0;
  font-family: inherit;
}

textarea {
  width: 100%;
  min-height: 12rem;
  padding: 0.75rem;
  border: 1px solid #bbb;
  border-radius: 6px;
  font: inherit;
}

.char-counter {
  margin: 0.5rem 0 0;
}

button {
  margin-top: 0.75rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid #2563eb;
  border-radius: 6px;
  background: #2563eb;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

button:hover {
  background: #1d4ed8;
}
