*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-deep: #020306;
  --glass-bg: rgba(20, 22, 34, 0.42);
  --glass-bg-strong: rgba(22, 24, 38, 0.62);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.55),
                  0 8px 24px -12px rgba(0, 0, 0, 0.4),
                  inset 0 1px 0 rgba(255, 255, 255, 0.12);

  --label-primary: #f5f5f7;
  --label-secondary: rgba(245, 245, 247, 0.72);
  --label-tertiary: rgba(245, 245, 247, 0.56);
  --label-quaternary: rgba(245, 245, 247, 0.38);
  --tint: #ff9f0a;
  --tint-dim: rgba(255, 159, 10, 0.22);

  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 26px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text',
          'Helvetica Neue', 'Helvetica', system-ui, sans-serif;
  --font-mono: 'SF Mono', ui-monospace, 'Menlo', 'Consolas', monospace;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; min-width: 320px; }

body {
  background: var(--bg-deep);
  color: var(--label-primary);
  font-family: var(--font);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 24px;
  position: relative;
  overflow-x: hidden;
  isolation: isolate;
}

body::before, body::after {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -2;
  pointer-events: none;
}

body::before {
  background:
    radial-gradient(40% 35% at 18% 22%, rgba(255, 159, 10, 0.35), transparent 70%),
    radial-gradient(38% 30% at 82% 18%, rgba(64, 112, 255, 0.30), transparent 70%),
    radial-gradient(50% 40% at 78% 85%, rgba(214, 64, 255, 0.22), transparent 72%),
    radial-gradient(45% 45% at 15% 85%, rgba(48, 209, 88, 0.18), transparent 70%),
    linear-gradient(180deg, #0a0b14 0%, #05060a 60%, #02030a 100%);
  filter: saturate(1.1);
  animation: meshFloat 40s ease-in-out infinite alternate;
}

body::after {
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 1px 2px;
  opacity: 0.6;
  mix-blend-mode: overlay;
}

@keyframes meshFloat {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(2%, -3%) scale(1.05); }
  100% { transform: translate(-2%, 2%) scale(1.02); }
}

.skip-link {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
  z-index: 1000; font-family: var(--font);
}

.skip-link:focus {
  position: fixed; top: 20px; left: 20px; z-index: 1000;
  width: auto; height: auto; padding: 12px 22px;
  background: var(--tint); color: #111;
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 700; text-decoration: none;
  outline: 3px solid #fff; outline-offset: 2px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.glass {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
}

.glass::before {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.38) 0%,
    rgba(255, 255, 255, 0.08) 22%,
    rgba(255, 255, 255, 0) 55%,
    rgba(255, 255, 255, 0.06) 85%,
    rgba(255, 255, 255, 0.22) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}

.page {
  width: 100%;
  max-width: 960px;
  padding: 40px 40px;
  animation: enter 0.6s var(--ease) both;
}

@keyframes enter { from { opacity: 0; transform: translateY(14px); } }

.page__back {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px 12px 18px;
  color: #1a1200;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1px;
  margin-bottom: 40px;
  background: linear-gradient(180deg, #ffb84a 0%, #ff9f0a 100%);
  border: 1px solid rgba(255, 184, 74, 0.6);
  border-radius: var(--radius-full);
  box-shadow:
    0 8px 20px rgba(255, 159, 10, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  overflow: hidden;
  animation: backBreath 3.6s ease-in-out infinite;
  transition: transform 0.3s var(--spring),
              box-shadow 0.3s var(--ease),
              filter 0.2s var(--ease);
}

.page__back::before {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 100%
  );
  transform: skewX(-18deg);
  animation: backShimmer 5.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes backBreath {
  0%, 100% {
    box-shadow:
      0 8px 20px rgba(255, 159, 10, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.45);
  }
  50% {
    box-shadow:
      0 10px 26px rgba(255, 159, 10, 0.42),
      inset 0 1px 0 rgba(255, 255, 255, 0.55);
  }
}

@keyframes backShimmer {
  0%, 20%   { left: -60%; }
  55%, 100% { left: 120%; }
}

.page__back > * { position: relative; z-index: 1; }

.page__back svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.35s var(--spring);
  animation: backArrowNudge 3.6s ease-in-out infinite;
}

@keyframes backArrowNudge {
  0%, 70%, 100% { transform: translateX(0); }
  82%           { transform: translateX(-3px); }
}

.page__back:hover {
  transform: translateY(-1px);
  box-shadow:
    0 14px 32px rgba(255, 159, 10, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  filter: brightness(1.06);
  animation-play-state: paused;
}

.page__back:hover svg {
  animation: none;
  transform: translateX(-4px);
}

.page__back:active {
  transform: translateY(0);
}

.page__back:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .page__back,
  .page__back svg,
  .page__back::before {
    animation: none;
    transition: none;
  }
  .page__back:hover { transform: none; }
  .page__back:hover svg { transform: none; }
}

h1 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.7px;
  line-height: 1.2;
  margin-bottom: 24px;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.72) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.3px;
  line-height: 1.3;
  margin-top: 36px;
  margin-bottom: 14px;
  color: var(--label-primary);
}

p, li {
  font-size: 15px;
  line-height: 1.65;
  color: var(--label-secondary);
  margin-bottom: 12px;
}

ul, ol { padding-left: 22px; margin-bottom: 16px; }
ol { list-style: decimal; }
ul { list-style: disc; }
li { margin-bottom: 8px; }
li::marker { color: var(--tint); }

a { color: var(--tint); text-decoration: underline; text-underline-offset: 2px; }

.citable {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--tint);
  padding: 20px 22px;
  border-radius: var(--radius-md);
  margin: 22px 0;
}

.citable p { margin-bottom: 0; color: var(--label-secondary); }

:focus-visible { outline: 2px solid var(--tint); outline-offset: 3px; border-radius: 6px; }
:focus:not(:focus-visible) { outline: none; }

h1, h2, p, li { overflow: visible; max-height: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  body::before { animation: none; }
}

.site-footer {
  display: block;
  margin: 40px auto 0;
  padding: 24px;
  text-align: center;
  width: 100%;
  max-width: 960px;
}

.site-footer__heading {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--label-quaternary);
  margin: 0 0 16px;
}

.site-footer__list,
.channels__list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
@media (min-width: 560px) {
  .site-footer__list,
  .channels__list { grid-template-columns: 1fr 1fr; }
}

.site-footer__list li,
.channels__list li {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  margin: 0;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);

  min-width: 0;
  overflow: hidden;
}
.site-footer__list li:hover,
.channels__list li:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.site-footer__link,
.channels__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  color: var(--label-primary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.channel-avatar {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15),
    0 2px 6px rgba(0, 0, 0, 0.35);
  background: linear-gradient(135deg, #5b6ee1 0%, #3a4ab8 100%);
}
.channel-avatar[data-tone="1"] { background: linear-gradient(135deg, #5b6ee1 0%, #3a4ab8 100%); }
.channel-avatar[data-tone="2"] { background: linear-gradient(135deg, #e16b5b 0%, #b83a3a 100%); }
.channel-avatar[data-tone="3"] { background: linear-gradient(135deg, #5bc7e1 0%, #3a8fb8 100%); }
.channel-avatar[data-tone="4"] { background: linear-gradient(135deg, #e1a85b 0%, #b8783a 100%); }
.channel-avatar[data-tone="5"] { background: linear-gradient(135deg, #9b5be1 0%, #6b3ab8 100%); }
.channel-avatar[data-tone="6"] { background: linear-gradient(135deg, #5be195 0%, #3ab86b 100%); }

.site-footer__handle {
  color: var(--label-quaternary);
  font-size: 13px;
  font-family: var(--font-mono);
  margin-left: auto;

  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-footer__name {
  color: var(--label-primary);
  font-size: 14px;
  font-weight: 500;

  min-width: 0;
  flex: 0 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-footer__privacy {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: var(--label-tertiary);
  line-height: 1.55;
}

.fundraising-bar {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 900;
  background:
    linear-gradient(90deg,
      rgba(255, 159, 10, 0.28) 0%,
      rgba(255, 69, 58, 0.22) 50%,
      rgba(255, 159, 10, 0.28) 100%),
    rgba(10, 10, 14, 0.7);
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  border-bottom: 1px solid rgba(255, 159, 10, 0.35);
  padding: 12px 16px;
  padding-top: calc(12px + env(safe-area-inset-top, 0px));
  text-align: center;
  font-family: var(--font);
  box-shadow:
    0 6px 28px rgba(0, 0, 0, 0.45),
    0 0 48px rgba(255, 159, 10, 0.18),
    inset 0 -1px 0 rgba(255, 159, 10, 0.3);
}

.fundraising-bar__text {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  color: #ffffff;
  margin: 0;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.fundraising-bar__link {
  display: inline-block;
  font-weight: 700;
  letter-spacing: 0.8px;
  margin-left: 10px;
  color: #141414;
  text-decoration: none;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 55%),
    linear-gradient(160deg, #ffb84a 0%, #ff9f0a 55%, #e07a00 100%);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow:
    0 4px 14px rgba(255, 159, 10, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -3px 8px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1);
  animation: pulseCTA 2.6s ease-in-out infinite;
}
.fundraising-bar__link:hover {
  transform: translateY(-1px) scale(1.03);
  text-decoration: none;
}
@keyframes pulseCTA {
  0%, 100% { box-shadow:
      0 4px 14px rgba(255, 159, 10, 0.55),
      inset 0 1px 0 rgba(255, 255, 255, 0.7),
      inset 0 -3px 8px rgba(0, 0, 0, 0.18),
      0 0 0 0 rgba(255, 159, 10, 0.55); }
  50%      { box-shadow:
      0 4px 14px rgba(255, 159, 10, 0.55),
      inset 0 1px 0 rgba(255, 255, 255, 0.7),
      inset 0 -3px 8px rgba(0, 0, 0, 0.18),
      0 0 0 8px rgba(255, 159, 10, 0); }
}

body.has-fundraising-bar { padding-top: calc(98px + env(safe-area-inset-top, 0px)); }
body.has-fundraising-bar .skip-link:focus { top: calc(76px + env(safe-area-inset-top, 0px)); }

@media (max-width: 520px) {
  body { padding: 16px; }
  .page { padding: 24px 20px; border-radius: var(--radius-lg); }
  .glass { border-radius: var(--radius-lg); }
  h1 { font-size: 26px; }
  h2 { font-size: 18px; margin-top: 28px; }
  body.has-fundraising-bar { padding-top: calc(80px + env(safe-area-inset-top, 0px)); }
  body.has-fundraising-bar .skip-link:focus { top: calc(64px + env(safe-area-inset-top, 0px)); }
}

@supports (padding: env(safe-area-inset-bottom)) {
  body { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: var(--glass-bg-strong); }
  .fundraising-bar { background: rgba(10, 10, 14, 0.92); }
  body::before,
  body::after { animation: none; }
}

@media (forced-colors: active) {
  .glass { background: Canvas; border: 1px solid ButtonText; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .glass::before { display: none; }
  body::before, body::after { display: none; }
  a:focus-visible { outline-color: Highlight; }
}

@media (max-width: 480px) {
  .glass {
    -webkit-backdrop-filter: blur(12px) saturate(150%);
            backdrop-filter: blur(12px) saturate(150%);
  }
  body::before {
    animation: none;
  }

  body::after {
    display: none;
  }

  .page {
    animation: none;
  }

  .page__back,
  .page__back svg,
  .page__back::before {
    animation: none;
  }
  .page__back::before {
    display: none;
  }

  .fundraising-bar {
    -webkit-backdrop-filter: none;
            backdrop-filter: none;
    background:
      linear-gradient(90deg,
        rgba(255, 159, 10, 0.32) 0%,
        rgba(255, 69, 58, 0.26) 50%,
        rgba(255, 159, 10, 0.32) 100%),
      rgba(10, 10, 14, 0.92);
  }
  .fundraising-bar__link {
    animation: none;
  }

  @media (prefers-reduced-motion: reduce) {
    body::before,
    body::after {
      animation: none;
    }
  }
}

