:root {
  --bg-body: #252a34;
  --bg-input: #1e2229;
  --text-primary: #eaeaea;
  --text-content: #d2d2d2;
  --text-muted: #a0a4aa;
  --accent: #00adb5;
  --accent-hover: #00d4de;
  --accent-active: #009ba3;
  --border: #393e46;
  --btn-text: #fff;
}

body {
  background: var(--bg-body);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Roboto", "Segoe UI",
    "Helvetica Neue", "Lucida Grande", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  padding: 0;
  margin: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--accent-hover);
  text-decoration: underline;
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

/* ---------- Comments ---------- */

.comment-author {
  margin: 0 0 0.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.comment-author strong {
  color: var(--text-primary);
  font-weight: 600;
}

.comment-author a {
  color: var(--accent);
}

.comment-author a:hover,
.comment-author a:focus {
  color: var(--accent-hover);
}

.comment-content {
  margin: 0 0 1.25rem;
  color: var(--text-content);
  word-wrap: break-word;
}

/* ---------- Comment Form ---------- */

.comment-form h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 0.85rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

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

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="url"],
.form-group textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.65rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group textarea {
  resize: vertical;
}

button[type="submit"] {
  display: inline-block;
  padding: 0.55rem 1.25rem;
  font-size: 0.9rem;
  font-family: inherit;
  font-weight: 600;
  color: var(--btn-text);
  background: var(--accent);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease;
}

button[type="submit"]:hover,
button[type="submit"]:focus {
  background: var(--accent-active);
}

/* ---------- Validation Errors ---------- */

.field-error {
  border-color: #e74c3c !important;
}

.error-message {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.8rem;
  color: #e74c3c;
}
