:root {
  --bg: #141310;
  --elevated: #24221e;
  --ivory: #f4efe6;
  --sand: #c4a574;
  --mute: #9a9386;
  --line: #3a362f;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ivory);
  font: 16px/1.5 ui-sans-serif, system-ui, -apple-system, sans-serif;
}

.wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.eyebrow {
  margin: 0 0 0.4rem;
  color: var(--sand);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1 {
  margin: 0 0 0.6rem;
  font-size: 2rem;
  font-weight: 600;
}

.lede, footer, .status, label, h2 {
  color: var(--mute);
}

.lede { margin: 0 0 1.75rem; }

.card {
  background: var(--elevated);
  border-radius: 20px;
  padding: 1.25rem 1.25rem 1.4rem;
  margin-bottom: 1rem;
}

label, h2 {
  display: block;
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

input, textarea, select, button {
  font: inherit;
  color: var(--ivory);
}

input, textarea, select {
  width: 100%;
  background: #1a1916;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  margin-bottom: 0.6rem;
}

textarea { resize: vertical; }

.row {
  display: flex;
  gap: 0.55rem;
  align-items: stretch;
}

.row input, .row select { margin-bottom: 0; }

button {
  background: var(--sand);
  color: #1a1916;
  border: 0;
  border-radius: 12px;
  padding: 0.7rem 1rem;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
}

button.ghost {
  background: transparent;
  color: var(--sand);
  border: 1px solid var(--sand);
}

.status { min-height: 1.4em; margin: 0.7rem 0 0; }

#events {
  list-style: none;
  margin: 0;
  padding: 0;
}

#events li {
  border-top: 1px solid var(--line);
  padding: 0.75rem 0;
}

#events li:first-child { border-top: 0; }

#events .meta {
  color: var(--sand);
  font-size: 0.85rem;
}

footer { font-size: 0.92rem; }
footer p { margin: 0.35rem 0; }
code { color: var(--ivory); }

@media (max-width: 640px) {
  .row { flex-direction: column; }
}
