:root {
  color-scheme: dark;
  --bg: #0a0a0c;
  --panel: #131316;
  --border: #2a2a30;
  --text: #e6e6ea;
  --muted: #8b8b94;
  --accent: #8b0000;
  --accent-bright: #b3261e;
  --error: #ff6b6b;
  --success: #7fd88f;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at top, #16141a 0%, var(--bg) 60%);
  color: var(--text);
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  line-height: 1.6;
  padding: 3rem 1.25rem;
}

main {
  max-width: 640px;
  margin: 0 auto;
}

header h1 {
  font-size: 2rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
  color: #f2f2f4;
}

.tagline {
  color: var(--muted);
  margin-top: 0;
  margin-bottom: 2rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

label {
  font-size: 0.95rem;
  margin-top: 1.25rem;
  color: #d5d5da;
}

.optional {
  color: var(--muted);
  font-weight: normal;
  font-size: 0.85rem;
}

textarea, input[type="text"] {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem;
  resize: vertical;
}

textarea:focus, input[type="text"]:focus {
  outline: none;
  border-color: var(--accent-bright);
}

.counter {
  font-size: 0.8rem;
  color: var(--muted);
  align-self: flex-end;
}

.counter.over-limit {
  color: var(--error);
}

input[type="file"] {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 0.5rem 0;
}

#image-list {
  align-self: stretch;
  text-align: left;
}

/* Honeypot: off-screen, not display:none (some bots skip display:none
   fields), unreachable by tab, hidden from assistive tech. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

button {
  margin-top: 1.75rem;
  padding: 0.85rem 1.5rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

button:hover:not(:disabled) {
  background: var(--accent-bright);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#status {
  min-height: 1.4em;
  font-size: 0.9rem;
}

#status.error { color: var(--error); }
#status.success { color: var(--success); }
