/* index.css - Solana Acolytes Donation Page (mobile-first, purple-indigo hacker-night theme with gray noise) */
*,
*::before,
*::after { box-sizing: border-box; }

:root {
  --indigo: #4b4bdc;
  --indigo-dark: #2a2a92;
  --glass: rgba(255, 255, 255, 0.88);
  --border: rgba(0, 0, 0, 0.12);
  --shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
  --focus: 0 0 0 3px rgba(0, 255, 170, 0.6);
  --text: #0a0a0a;
}

html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  color: var(--text);
  /* Gray noise texture plus purple indigo tones for hacker night */
  background: #f6f7fb;
  background-image:
    radial-gradient(rgba(0,0,0,.04) 1px, transparent 1px),
    radial-gradient(rgba(0,0,0,.04) 1px, transparent 1px);
  background-size: 4px 4px, 4px 4px;
  background-position: 0 0, 2px 2px;
  background-attachment: fixed;
  color-scheme: light;
}
a { color: #1a3a8a; text-decoration: none; }
a:focus-visible { outline: var(--focus); outline-offset: 2px; border-radius: 6px; }

/* Layout scaffolding */
.site-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.75rem 1rem;
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,0);
}
.brand {
  font-weight: 900;
  font-size: 1.05rem;
  color: #2d2dff;
  text-shadow: 0 0 14px rgba(70, 0, 255, 0.6);
  letter-spacing: .4px;
}

/* Hero section (QR centerpiece) */
.hero {
  display: grid;
  place-items: center;
  padding: 1.75rem 1rem 2.5rem;
}
.hero-layout {
  width: min(1100px, 92%);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.25rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88); /* frosted glass */
  border: 1px solid var(--border);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: var(--shadow);
}
.hero-copy { padding: 0.75rem; }
.hero-copy h1 {
  font-size: clamp(1.4rem, 6vw, 2.2rem);
  line-height: 1.15;
  margin: 0 0 0.5rem 0;
  color: #1a1a3a;
}
.subhead {
  font-size: clamp(1rem, 3.5vw, 1.25rem);
  color: #3a2a8a;
  margin: 0 0 0.75rem 0;
}
.telegram-link a {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(74, 0, 255, 0.65);
  background: rgba(74, 0, 255, 0.15);
  color: #1b0a4a;
  font-weight: 700;
}
.telegram-link a:hover { background: rgba(74,0,255,0.25); transform: translateY(-1px); }
.hero-qr {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.75rem;
}
.hero-qr img {
  width: 100%;
  max-width: 520px;
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0,0,0,.18);
  filter: saturate(1.05);
}

/* Responsive two-column layout on larger screens for depth */
@media (min-width: 900px) {
  .hero-layout {
    grid-template-columns: 1.1fr 0.9fr;
    padding: 1.5rem;
  }
  .hero-copy { padding: 1.75rem 1.75rem 1.75rem 2rem; }
  .hero-qr { padding: 1.75rem; }
  .hero-copy h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
}

/* Footer styling */
.site-footer { padding: 1rem; text-align: center; color: #0a0a0a; }
.footer-ad { margin-bottom: 0.5rem; }
.footer-ad a {
  color: #1a3a88;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px dashed rgba(26, 58, 136, 0.6);
}
.gratitude { margin: 0.25rem 0 0; color: #2a2a2a; }

/* Accessibility helpers for motion */
@media (prefers-reduced-motion: reduce) {
  .telegram-link a, .hero-qr img { transition: none; }
}

/* Focus styles for keyboard navigation on links outside hero */
:focus { outline: none; }
@media (min-width: 0) {
  a:focus-visible { outline: 3px solid #7fff00; outline-offset: 2px; border-radius: 4px; }
}