:root {
  --background: #101114;
  --raised: #191B20;
  --foreground: #F5F5F5;
  --heading: #F5F5F5;
  --muted: #A3A7B0;
  --line: #2B2E35;
  --blue: #3C5E82;
  --blue-hover: #4C729A;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Familjen Grotesk", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--foreground);
  background: var(--background);
  overflow-x: clip;
}
a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--foreground);
  outline-offset: 2px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--background);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto;
  min-height: 64px;
  padding: 8px 24px;
}
.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--raised);
  color: var(--heading);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--heading);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.brand img { display: block; width: 22px; height: 22px; }
.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; }
.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.nav-link:hover { color: var(--heading); background: var(--raised); }
.nav-discord,
.nav-discord:hover {
  color: var(--foreground);
  background: var(--blue);
}
.nav-discord:hover { background: var(--blue-hover); }

.page { max-width: 1080px; margin: 0 auto; padding: 32px 24px 80px; }
h1 {
  margin: 0;
  color: var(--heading);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.muted { color: var(--muted); }
.panel { margin-top: 0; }
.donate-list { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.donate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.donate-row h2 {
  margin: 0;
  color: var(--heading);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.donate-time { margin: 2px 0 0; }
.hub-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: var(--foreground);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: var(--blue-hover); }
.btn.ghost {
  background: transparent;
  color: var(--heading);
  border: 1px solid var(--line);
}
.btn.ghost:hover { background: transparent; color: var(--foreground); border-color: var(--blue); }
.btn, .nav-link, .menu-btn {
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

@media (prefers-reduced-motion: reduce) {
  .btn, .nav-link, .menu-btn { transition: none; }
}

@media (max-width: 800px) {
  .menu-btn { display: inline-flex; margin-left: auto; }
  .topbar-inner { flex-wrap: wrap; padding: 8px 16px; }
  .nav-links {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 8px;
  }
  .topbar.nav-open .nav-links { display: flex; }
  .nav-link { min-height: 44px; }
  .page { padding: 24px 16px 64px; }
  h1 { font-size: 32px; }
  .donate-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hub-actions { width: 100%; }
  .hub-actions .btn { width: 100%; }
}
