:root {
  --cream: #f7f1e7;
  --paper: #fffaf0;
  --stone: #d8cdbd;
  --ink: #332c23;
  --muted: #766d61;
  --sage: #8f9b7a;
  --sage-dark: #657157;
  --clay: #b98261;
  --white: rgba(255, 250, 240, .82);
  --shadow: 0 18px 60px rgba(55, 43, 31, .10);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 5%, rgba(143,155,122,.18), transparent 26rem),
    linear-gradient(180deg, var(--cream), #efe5d6 100%);
  font-family: Optima, Candara, "Avenir Next", Avenir, system-ui, sans-serif;
  line-height: 1.55;
}
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; line-height: 1.1; }
a { color: inherit; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.hero { padding: 72px 0 36px; text-align: center; }
.kicker { letter-spacing: .16em; text-transform: uppercase; color: var(--sage-dark); font-size: .78rem; }
h1 { font-size: clamp(2.4rem, 6vw, 5rem); margin: 14px 0; }
.hero p { max-width: 680px; margin: 0 auto; color: var(--muted); font-size: 1.08rem; }
.summary { margin: 28px auto 0; max-width: 760px; padding: 20px; background: var(--white); border: 1px solid rgba(101,113,87,.20); border-radius: 22px; box-shadow: var(--shadow); }
.summary-line { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--sage-dark); }
.progress { height: 10px; border-radius: 99px; background: rgba(101,113,87,.16); overflow: hidden; margin-top: 14px; }
.progress > span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--sage), var(--clay)); border-radius: inherit; transition: width .4s ease; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(275px, 1fr)); gap: 22px; padding: 24px 0 80px; }
.card { background: var(--paper); border: 1px solid rgba(101,113,87,.18); border-radius: 26px; overflow: hidden; box-shadow: 0 12px 36px rgba(55,43,31,.08); display: flex; flex-direction: column; }
.card-img { aspect-ratio: 4 / 3; background: linear-gradient(135deg, rgba(143,155,122,.18), rgba(185,130,97,.10)); display: flex; align-items: center; justify-content: center; color: rgba(51,44,35,.42); font-family: Georgia, serif; font-size: 2rem; padding: 12px; overflow: hidden; }
.card-img img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; border-radius: 16px; }
.card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.card h2 { margin: 0 0 8px; font-size: 1.55rem; }
.card p { margin: 0 0 18px; color: var(--muted); }
.meta { display: flex; justify-content: space-between; gap: 10px; margin-top: auto; color: var(--muted); font-size: .95rem; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; background: rgba(143,155,122,.18); color: var(--sage-dark); padding: 4px 10px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
button, .button { border: 0; border-radius: 999px; background: var(--sage-dark); color: #fffaf0; padding: 12px 18px; font: inherit; cursor: pointer; text-decoration: none; text-align: center; }
button:hover, .button:hover { filter: brightness(.96); }
button.secondary { background: transparent; color: var(--sage-dark); border: 1px solid rgba(101,113,87,.35); }
button.danger { background: #9a5d4e; }
.donate-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 18px; }
input, textarea { width: 100%; border: 1px solid rgba(101,113,87,.25); border-radius: 14px; background: rgba(255,250,240,.72); color: var(--ink); padding: 11px 12px; font: inherit; }
textarea { min-height: 86px; resize: vertical; }
.notice { text-align: center; margin: 16px auto; color: var(--sage-dark); }
.admin-wrap { padding: 38px 0 80px; }
.admin-top { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 20px; }
.panel { background: var(--paper); border: 1px solid rgba(101,113,87,.18); border-radius: 24px; padding: 22px; box-shadow: var(--shadow); margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 12px 8px; border-bottom: 1px solid rgba(101,113,87,.16); vertical-align: top; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.dropzone { border: 1.5px dashed rgba(101,113,87,.38); border-radius: 18px; padding: 18px; background: rgba(143,155,122,.08); text-align: center; color: var(--muted); cursor: pointer; transition: .18s ease; }
.dropzone.dragover { background: rgba(143,155,122,.18); border-color: var(--sage-dark); }
.dropzone img { display: block; width: 120px; height: 90px; object-fit: cover; border-radius: 12px; margin: 0 auto 10px; }
.dropzone strong { color: var(--sage-dark); }
.hidden { display: none !important; }
@media (max-width: 700px) {
  .hero { padding-top: 46px; }
  .grid { grid-template-columns: 1fr; gap: 18px; }
  .card-img { aspect-ratio: auto; height: 260px; padding: 14px; }
  .card-img img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
  .card h2 { font-size: 1.85rem; }
  .form-grid, .donate-row { grid-template-columns: 1fr; }
  .admin-top { display: block; }
}
