/* Self-hosted, no external fonts or CDNs (scaffold spec §2). Brand tokens land with @hc/core/ui. */
:root {
  --hc-ink: #1f2430;
  --hc-paper: #fbfaf7;
  --hc-accent: #7a5c3e;
  --hc-muted: #6b7280;
  --hc-ok: #1b7f4b;
  --hc-warn: #a15c00;
  --hc-err: #b3261e;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html {
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
}
body {
  margin: 0;
  padding: 1rem;
  background: var(--hc-paper);
  color: var(--hc-ink);
  line-height: 1.5;
  max-width: 52rem;
  margin-inline: auto;
}
main {
  padding-block: 1rem;
}
h1,
h2,
h3 {
  line-height: 1.2;
}
a {
  color: var(--hc-accent);
}
label {
  display: block;
  margin-block: 0.75rem 0.25rem;
  font-weight: 600;
}
input,
select,
button,
textarea {
  font: inherit;
  padding: 0.6rem 0.75rem;
  border: 1px solid #c9c4b8;
  border-radius: 6px;
  width: 100%;
  max-width: 28rem;
  background: #fff;
}
button {
  background: var(--hc-accent);
  color: #fff;
  border-color: var(--hc-accent);
  cursor: pointer;
  width: auto;
}
button.secondary {
  background: #fff;
  color: var(--hc-ink);
  border-color: #c9c4b8;
}
.notice {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  background: #f1ede4;
  margin-block: 1rem;
}
.notice.err {
  background: #fbe9e7;
  color: var(--hc-err);
}
.notice.ok {
  background: #e6f4ec;
  color: var(--hc-ok);
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
}
th,
td {
  text-align: left;
  padding: 0.5rem;
  border-bottom: 1px solid #e5e0d6;
  vertical-align: top;
}
.muted {
  color: var(--hc-muted);
}
.progress {
  height: 0.9rem;
  background: #e5e0d6;
  border-radius: 999px;
  overflow: hidden;
}
.progress > span {
  display: block;
  height: 100%;
  background: var(--hc-ok);
}
@media (max-width: 480px) {
  body {
    padding: 0.75rem;
  }
}

/* The donate form's email opt-in: unticked, one plain sentence (M5 §6). */
.give-optin {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-weight: normal;
  margin: 1rem 0;
}
.give-optin input {
  width: auto;
  margin-top: 0.25rem;
}
