:root {
  --bg: #f2f1ec;
  --surface: #ffffff;
  --text: #23261f;
  --text-muted: #5c6157;
  --border: #d7dacb;
  --accent: #43604f;
  --accent-soft: #dbe4d8;
  --danger: #96683a;
  --font-display: Georgia, "Iowan Old Style", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
}

a { color: var(--accent); }

header.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 22px clamp(16px, 4vw, 40px);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

header.site-header h1 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0;
}

header.site-header nav a {
  margin-left: 18px;
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--text-muted);
}

header.site-header nav a:hover { color: var(--accent); }

main {
  max-width: 920px;
  margin: 0 auto;
  padding: 32px clamp(16px, 4vw, 40px) 80px;
}

main.review-page { max-width: 640px; }

h1, h2, h3 { font-family: var(--font-display); }

.lede { color: var(--text-muted); max-width: 60ch; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.memorial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.memorial-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--accent-soft);
}

.memorial-card .card-body { padding: 14px 16px; }

.memorial-card h3 { margin: 0 0 4px; font-size: 1.1rem; }

.memorial-card .dates {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 8px;
}

.memorial-card .epitaph {
  margin: 0;
  font-style: italic;
  color: var(--text);
}

.empty-state {
  border: 1px dashed var(--border);
  border-radius: 6px;
  padding: 32px;
  text-align: center;
  color: var(--text-muted);
  margin-top: 28px;
}

form.submission-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
}

.field { display: flex; flex-direction: column; gap: 6px; }

.field label { font-weight: 600; font-size: 0.92rem; }

.field .hint { font-size: 0.82rem; color: var(--text-muted); font-weight: 400; }

.field-row { display: flex; gap: 16px; flex-wrap: wrap; }
.field-row .field { flex: 1; min-width: 180px; }

input[type="text"], input[type="email"], input[type="date"], textarea, input[type="file"] {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

textarea { resize: vertical; min-height: 90px; }

.checkbox-field {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-field input { margin-top: 4px; }

button.primary {
  align-self: flex-start;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 12px 26px;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
}

button.primary:hover { opacity: 0.92; }
button.primary:disabled { opacity: 0.6; cursor: not-allowed; }

.form-message {
  padding: 14px 16px;
  border-radius: 4px;
  font-size: 0.95rem;
}

.form-message.success { background: var(--accent-soft); color: var(--accent); }
.form-message.error { background: #f0e2cf; color: var(--danger); }

.policy h2 { margin-top: 36px; }
.policy ul { padding-left: 1.3em; }
.policy li { margin-bottom: 8px; }

.review-photo { max-width: 100%; border-radius: 6px; margin: 16px 0; }

.status { font-weight: 600; }
.status-pending { color: #96683a; }
.status-approved { color: var(--accent); }
.status-rejected { color: #a33b3b; }

footer.site-footer {
  text-align: center;
  padding: 28px 16px 48px;
  color: var(--text-muted);
  font-size: 0.85rem;
}
