:root {
  --color-brand: #8b3a3a;
  --color-accent: #a07828;
  --color-bg: #faf6f0;
  --color-surface: #f4ede3;
  --color-text: #1c1814;
  --color-muted: #7a6f65;
  --color-border: #ddd5c8;
  --color-urgent: #b23b3b;
  --color-ok: #3a6b4a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: system-ui, sans-serif;
  line-height: 1.5;
}

h1,
h2 {
  font-family: Georgia, serif;
}

main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 4rem;
}

.notice {
  padding: 0.75rem 1rem;
  border-radius: 0.25rem;
  margin-bottom: 1rem;
}

.notice--error {
  background: #f6dede;
  color: var(--color-urgent);
}

.notice--success {
  background: #e3ede6;
  color: var(--color-ok);
}

.name-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.name-buttons form {
  margin: 0;
}

.name-button {
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-surface);
  cursor: pointer;
}

.name-button--active {
  background: var(--color-brand);
  color: white;
  border-color: var(--color-brand);
}

.date-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
}

.date-row--urgent {
  background: #f9efe0;
}

.date-row__date {
  font-weight: 600;
  min-width: 6rem;
}

.date-row__claimants {
  flex: 1;
  color: var(--color-muted);
}

.ministry-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ministry-card {
  display: block;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-surface);
  text-decoration: none;
  color: var(--color-text);
}

.status--ok {
  color: var(--color-ok);
}

.status--gap {
  color: var(--color-urgent);
}
