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

:root {
  --bg: #ffffff;
  --card: #ffffff;
  --text: #000000;
  --text-muted: #999999;
  --border: rgba(0, 0, 0, 0.12);
  --border-hover: rgba(0, 0, 0, 0.35);
  --success: #059669;
  --error: #dc2626;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 4px 8px rgba(0, 0, 0, 0.08);
}

body {
  font-family: 'Inknut Antiqua', Georgia, 'Times New Roman', serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  letter-spacing: 0.03em;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 2rem 1rem;
}

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

/* Text Area */
.text-area {
  width: 100%;
  min-height: 200px;
  max-height: 400px;
  background: var(--card);
  color: var(--text);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  font-family: inherit;
  font-size: 0.75rem;
  line-height: 1.7;
  letter-spacing: 0.03em;
  resize: vertical;
  overflow-y: auto;
  outline: none;
  transition: border-color 0.2s ease;
}

.text-area:focus {
  border-color: var(--border-hover);
}

.text-area::placeholder {
  color: var(--text-muted);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.75rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease;
}

.stat-card:hover {
  border-color: var(--border-hover);
}

.stat-number {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.stat-label {
  font-size: 0.55rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Branding */
.branding-badge {
  margin-top: auto;
  text-align: center;
  font-size: 0.65rem;
  padding: 2rem 0 1.5rem;
}

.branding-badge a {
  color: var(--text-muted);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
  letter-spacing: 0.05em;
}

.branding-badge a:hover {
  color: var(--text);
}

/* Responsive */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .limit-label {
    min-width: 80px;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
