*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, system-ui, sans-serif;
  background: #f8fafc;
  color: #0f172a;
  min-height: 100vh;
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem 1rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

header {
  text-align: center;
  margin-bottom: 2rem;
}

header h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}

textarea {
  width: 100%;
  resize: vertical;
  padding: 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font: inherit;
  background: white;
  min-height: 100px;
}

textarea + div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
}

#charCount {
  font-size: 0.875rem;
  color: #64748b;
}

button {
  border: none;
  background: black;
  color: white;
  font: inherit;
  padding: 0.7rem 1.25rem;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}

button:hover {
  background: #1d4ed8;
}

button:active {
  transform: translateY(1px);
}

#board {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

#board > div {
  background: white;
  padding: 1.25rem;
  border-radius: 12px;
  border-left: 4px solid black;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

#board p {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

#board .text-xs {
  color: #94a3b8;
  font-size: 0.8rem;
}

footer {
  text-align: center;
  margin-top: 3rem;
  padding-top: 1rem;
}

footer a {
  color: #64748b;
  text-decoration: none;
  font-size: 0.9rem;
}

footer a:hover {
  color: #2563eb;
}
