@font-face {
  font-family: Roboto;
  src: url("/Roboto-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Roboto;
  src: url("/Roboto-Light.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
}
:root {
  color-scheme: light dark;
  --green: #1e8451;
  --green-dark: #186941;
  --page: #f4f4f4;
  --surface: #fff;
  --text: #333;
  --muted: #666;
  --border: #e0e0e0;
  --hero: #333;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #121212;
    --surface: #242424;
    --text: #f0f0f0;
    --muted: #bbb;
    --border: #333;
    --hero: #1a1a1a;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--page);
  line-height: 1.6;
}
.site-width {
  width: min(680px, calc(100% - 48px));
  margin-inline: auto;
}
header {
  padding: 28px 0 22px;
  background: var(--hero);
  color: #fff;
  border-bottom: 1px solid var(--border);
}
.header-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.brand {
  color: #fff;
  font-size: clamp(1.9rem, 5vw, 2.25rem);
  font-weight: 300;
  letter-spacing: -0.035em;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.45);
  text-decoration: none;
}
nav {
  display: flex;
  gap: 20px;
  font-size: 0.9rem;
}
nav a {
  color: #bbbbbb;
}
main.site-width {
  margin-block: 32px 48px;
  padding: 32px;
  background: var(--surface);
}
main > h1,
main > p {
  text-align: center;
}
main > p {
  max-width: 480px;
  margin-inline: auto;
}
h1,
h2,
h3 {
  font-weight: 300;
  line-height: 1.3;
  margin: 0 0 12px;
  letter-spacing: -0.025em;
}
h1 {
  font-size: 2rem;
}
h2 {
  font-size: 1.5rem;
}
h3 {
  font-size: 1.15rem;
  margin-top: 22px;
}
p {
  margin: 0 0 14px;
  color: var(--muted);
}
section {
  margin-top: 32px;
}
section + section {
  border-top: 1px solid var(--border);
  padding-top: 28px;
}
a {
  color: var(--green-dark);
  text-underline-offset: 3px;
}
a:focus-visible,
button:focus-visible,
.table-scroll:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}
.funding-display {
  margin-top: 20px;
}
.funding-display p {
  margin-bottom: 7px;
}
#funding-status {
  font-weight: 400;
  color: var(--text);
}
#goal,
.note {
  font-size: 0.9rem;
  color: var(--muted);
}
.progress {
  height: 8px;
  margin: 12px 0;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--green);
}
button,
.contribution-link {
  display: inline-block;
  font: inherit;
  padding: 10px 18px;
  margin-top: 10px;
  border: 1px solid var(--green);
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  text-decoration: none;
}
button:disabled {
  cursor: not-allowed;
  color: var(--muted);
  background: var(--surface);
  border-color: var(--border);
}
.balances {
  margin: 0 0 20px;
  font-size: 0.95rem;
}
.balances div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 5px 0;
}
dd {
  margin: 0;
  text-align: right;
}
.table-scroll {
  width: 100%;
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}
th,
td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th {
  font-weight: 400;
}
.amount {
  text-align: right;
  white-space: nowrap;
}
th.amount {
  white-space: normal;
}
td a {
  overflow-wrap: anywhere;
}
footer {
  padding: 24px;
  color: #bbb;
  background: var(--hero);
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.9rem;
}
footer span {
  color: #fff;
}
.skip {
  position: absolute;
  top: -100px;
  background: var(--surface);
  padding: 8px;
  z-index: 1;
}
.skip:focus {
  top: 8px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.test-label {
  color: var(--text);
  font-weight: 400;
  text-decoration: underline;
}
[hidden] {
  display: none !important;
}
.contribution-form label {
  display: block;
  margin-top: 14px;
}
.contribution-form input {
  width: 150px;
  max-width: 100%;
  padding: 9px;
  margin-right: 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
  color: var(--text);
  background: var(--surface);
}
.contribution-form input:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}
#payment-status {
  margin-top: 12px;
  color: var(--text);
}
@media (max-width: 480px) {
  .site-width {
    width: calc(100% - 32px);
  }
  main.site-width {
    margin-block: 24px 32px;
    padding: 24px 16px;
  }
  header {
    padding-block: 22px 18px;
  }
  nav {
    gap: 16px;
  }
  th,
  td {
    padding: 8px 5px;
  }
  table {
    font-size: 0.8rem;
  }
  .balances {
    font-size: 0.88rem;
  }
  .balances div {
    gap: 10px;
  }
}
