:root {
  --bg: #0b0c0e;
  --fg: #f4f1ea;
  --muted: #9a958b;
  --dim: 0.38;
  --bright: 0.92;
  --line: rgba(244, 241, 234, 0.12);
  --gold: #c9a46a;
  --panel: #141518;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.page {
  min-height: 100vh;
  max-width: 44rem;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.logo-slot {
  width: min(100%, 28rem);
  margin: 0 0 3.25rem;
}
.logo-slot svg,
.logo-slot img {
  display: block;
  width: 100%;
  height: auto;
}
.projects {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.75rem 2.5rem;
  list-style: none;
  margin-bottom: 3.5rem;
}
.icon-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  width: 8.5rem;
  color: inherit;
  text-decoration: none;
  opacity: var(--dim);
  transition: opacity 0.22s ease;
}
.icon-link:hover,
.icon-link:focus-visible {
  opacity: var(--bright);
}
.icon-link:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 6px;
  border-radius: 4px;
}
.icon-mark {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
}
.icon-mark svg { width: 100%; height: 100%; display: block; }
.icon-link span {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--fg);
}
.aux {
  display: flex;
  justify-content: center;
  gap: 1.75rem;
  list-style: none;
  margin-top: auto;
  padding-top: 1rem;
}
.aux button {
  appearance: none;
  background: none;
  border: 0;
  color: var(--muted);
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: var(--dim);
  transition: opacity 0.22s ease, color 0.22s ease;
  padding: 0.35rem 0.15rem;
}
.aux button:hover,
.aux button:focus-visible {
  opacity: 1;
  color: var(--fg);
}
.aux button:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}
footer, .site-footer {
  margin-top: 3.5rem;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-align: center;
}
.legal-note {
  margin-top: 1.25rem;
  max-width: 32rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.01em;
  line-height: 1.55;
  text-align: center;
}
dialog.modal {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--fg);
  width: min(92vw, 26rem);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
dialog.modal::backdrop { background: rgba(0,0,0,0.72); }
.modal-inner { padding: 1.35rem 1.4rem 1.5rem; }
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}
.modal-head h2 {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.modal-close {
  appearance: none;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
}
.modal-close:hover,
.modal-close:focus-visible { color: var(--fg); }
.modal-close:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 2px;
}
.modal-inner p { color: var(--muted); font-size: 0.92rem; }
/* Fund page */
.fund {
  align-items: stretch;
  max-width: 40rem;
  padding-top: 3.25rem;
}
.fund header { text-align: center; margin-bottom: 2.5rem; }
.fund .kicker {
  display: inline-block;
  margin-bottom: 0.7rem;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
}
.fund .kicker:hover, .fund .kicker:focus-visible { color: var(--fg); }
.fund h1 {
  font-weight: 500;
  font-size: 1.55rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.7rem;
}
.lede {
  color: var(--muted);
  font-size: 0.95rem;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.15rem 1.2rem 1.25rem;
  margin-bottom: 1rem;
  background: var(--panel);
}
.panel h2 {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg);
  margin-bottom: 0.55rem;
}
.panel .empty {
  color: var(--muted);
  font-size: 0.9rem;
}
@media (max-width: 520px) {
  .page { padding: 3rem 1.15rem 2.25rem; }
  .projects { gap: 1.4rem 1.5rem; }
  .icon-link { width: 7.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .icon-link, .aux button { transition: none; }
}
