:root {
  --bg: #fbf7f1;
  --surface: #ffffff;
  --ink: #2a2420;
  --muted: #6b5f57;
  --line: #e7ded3;
  --accent: #b4532a;
  --accent-ink: #ffffff;
  --good: #4f6b4a;
  --pending-bg: #fff1c2;
  --pending-ink: #7a5a00;
  --radius: 14px;
  --serif: "Fraunces", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1815;
    --surface: #26211d;
    --ink: #f3ece4;
    --muted: #b4a89d;
    --line: #3a332d;
    --accent: #d9774a;
    --accent-ink: #1c1815;
    --good: #8fae86;
    --pending-bg: #4a3b10;
    --pending-ink: #ffe08a;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
}

main, .top, footer { max-width: 680px; margin: 0 auto; padding: 0 16px; }

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  padding-bottom: 14px;
  font-size: 15px;
}
.top .brand { font-family: var(--serif); font-weight: 600; }
.top a { color: var(--muted); }

.draft {
  background: var(--pending-bg);
  color: var(--pending-ink);
  text-align: center;
  font-size: 14px;
  padding: 8px 16px;
}

.pending {
  background: var(--pending-bg);
  color: var(--pending-ink);
  border-radius: 4px;
  padding: 0 4px;
  font-style: italic;
}

.hero img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
}

h1, h2 { font-family: var(--serif); font-weight: 600; line-height: 1.15; }
h1 { font-size: clamp(34px, 9vw, 52px); margin: 20px 0 8px; }
h2 { font-size: 26px; margin: 48px 0 12px; }
h3 { font-size: 18px; margin: 0 0 6px; }

.lead { font-size: 19px; margin: 0 0 6px; }
.place { color: var(--muted); margin: 0; font-size: 15px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin: 14px 0;
}

.progress .amounts { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.progress .raised { font-family: var(--serif); font-size: 30px; font-weight: 600; }
.progress .goal, .progress .updated { color: var(--muted); font-size: 15px; }
.bar { height: 12px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 12px 0 8px; }
.bar > span { display: block; height: 100%; width: 0; background: var(--good); }

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  border-radius: 99px;
  padding: 12px 22px;
  font: 600 16px var(--sans);
  text-decoration: none;
  cursor: pointer;
}
.button[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
.button.small { padding: 6px 14px; font-size: 14px; }
.button.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }

.big { font-family: var(--serif); font-size: 28px; font-weight: 600; letter-spacing: 0.02em; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 8px 0 12px; }
dt { color: var(--muted); }
dd { margin: 0; }

ol.steps { margin: 8px 0 0; padding-left: 20px; color: var(--muted); font-size: 15px; }

.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; display: block; }

table { width: 100%; border-collapse: collapse; }
td { padding: 10px 0; border-bottom: 1px solid var(--line); }
td:last-child { text-align: right; white-space: nowrap; }
tr.total td { font-weight: 600; border-bottom: 0; }

.muted { color: var(--muted); }

footer { margin-top: 56px; padding-top: 20px; padding-bottom: 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
footer a { color: inherit; }
