/* comments.css — matches your existing theme variables */

.comments-wrapper {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  padding: 0 2rem;
}

.comments-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 1.75rem;
  color: var(--text);
}

/* ── Comment list ── */
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.comments-empty,
.comments-loading,
.comments-error {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-family: 'Source Sans 3', sans-serif;
}

.comment-item {
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.comment-meta {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.comment-username {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
}

.comment-date {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.comment-body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

/* ── Form ── */
.comment-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comment-form-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.comment-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.comment-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.comment-field label {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.required {
  color: var(--accent);
}

.comment-field input,
.comment-field textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.55rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color var(--transition), background var(--transition);
  resize: vertical;
  outline: none;
}

.comment-field input:focus,
.comment-field textarea:focus {
  border-color: var(--accent);
  background: var(--surface2);
}

.field-hint {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.char-count {
  text-align: right;
}

/* Turnstile widget */
.cf-turnstile {
  margin-top: 0.25rem;
}

/* Footer row */
.comment-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.comment-error {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.82rem;
  color: #c0392b;
  flex: 1;
}

.comment-submit {
  padding: 0.6rem 1.4rem;
  background: none;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: var(--accent);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

.comment-submit:hover {
  background: var(--accent);
  color: var(--bg);
}

.comment-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .comment-form-row {
    grid-template-columns: 1fr;
  }
}
