:root {
  --ink: #2e2730;
  --muted: #786d76;
  --rose: #b86b77;
  --rose-dark: #8f4453;
  --paper: #fffaf8;
  --line: #eadfe1;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.navbar {
  backdrop-filter: blur(10px);
}

.home-hero {
  min-height: calc(100vh - 58px);
  display: flex;
  align-items: center;
  background:
    linear-gradient(rgba(255, 250, 248, 0.9), rgba(255, 250, 248, 0.92)),
    url("/static/img/paper-texture.svg");
}

.eyebrow {
  color: var(--rose-dark);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.display-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 12vw, 5rem);
  line-height: 1;
}

.date-line {
  color: var(--rose-dark);
  font-size: 1.25rem;
  font-weight: 600;
}

.lead {
  max-width: 34rem;
  color: var(--muted);
}

.action-stack {
  display: grid;
  gap: 0.75rem;
  max-width: 22rem;
}

.btn-primary {
  --bs-btn-bg: var(--rose);
  --bs-btn-border-color: var(--rose);
  --bs-btn-hover-bg: var(--rose-dark);
  --bs-btn-hover-border-color: var(--rose-dark);
}

.btn-outline-primary {
  --bs-btn-color: var(--rose-dark);
  --bs-btn-border-color: var(--rose);
  --bs-btn-hover-bg: var(--rose);
  --bs-btn-hover-border-color: var(--rose);
}

.collected,
.upload-panel,
.camera-box,
.empty-state,
.stat,
.admin-photo {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.collected {
  display: inline-block;
  padding: 0.75rem 1rem;
}

.narrow {
  max-width: 560px;
}

.page-heading h1,
.toolbar h1 {
  font-family: Georgia, "Times New Roman", serif;
  margin: 0;
}

.page-heading p,
.toolbar p {
  color: var(--muted);
  margin: 0.25rem 0 1rem;
}

.upload-panel {
  padding: 1rem;
}

.camera-box {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #171417;
}

.camera-box video,
.camera-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.success-mark {
  color: var(--rose);
  font-size: 3rem;
  line-height: 1;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.photo-grid {
  columns: 2 150px;
  column-gap: 0.75rem;
}

.photo-tile {
  display: block;
  break-inside: avoid;
  margin-bottom: 0.75rem;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
}

.photo-tile img {
  width: 100%;
  display: block;
}

.pagination-row {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.empty-state {
  padding: 2rem;
  color: var(--muted);
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}

.stat {
  padding: 1rem;
}

.stat span {
  color: var(--muted);
  display: block;
}

.stat strong {
  font-size: 1.8rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}

.admin-photo {
  overflow: hidden;
}

.admin-photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.admin-photo-body {
  padding: 0.75rem;
}

@media (min-width: 768px) {
  .photo-grid {
    columns: 4 180px;
  }
}
