/* index.css - Solana Acolytes Donation Page (mobile-first, blue striped background with gold accents) */
*,
*::before,
*::after { box-sizing: border-box; }

:root {
  --gold: #d4af37;
  --gold-dark: #b0891a;
  --teal: #0b9fb6;
  --glass: rgba(255, 255, 255, 0.85);
  --border: rgba(0, 0, 0, 0.12);
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
  --focus: 0 0 0 3px rgba(0, 255, 170, 0.6);
}

html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  color: #0b0b0b;
  /* Blue striped background with subtle overlay to read text easily */
  background: #e8f1ff;
  background-image:
    repeating-linear-gradient(90deg, rgba(70,130,180,0.25) 0 12px, rgba(0,0,0,0) 12px 24px),
    linear-gradient(135deg, #e8f1ff 0%, #d6eefe 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: #0a5a9a; 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.8rem 1rem;
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,0);
}
.brand {
  font-weight: 900;
  font-size: 1.05rem;
  color: #0b4e6b;
  text-shadow: 0 0 14px rgba(0, 170, 200, 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, 94%);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.25rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.90); /* frosted glass */
  border: 1px solid rgba(0, 0, 0, 0.12);
  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: #0b1a2b;
}
.subhead {
  font-size: clamp(1rem, 3.5vw, 1.25rem);
  color: #2b5e4d;
  margin: 0 0 0.75rem 0;
}
.telegram-link a {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 128, 128, 0.65);
  background: rgba(0, 128, 128, 0.15);
  color: #1b1a00;
  font-weight: 700;
}
.telegram-link a:hover {
  background: rgba(0, 128, 128, 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);
  mask-image: linear-gradient(#000, #000 70%, transparent);
  /* keep image crisp on all devices */
  image-rendering: crisp-edges;
}

/* 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 / advertisement styling */
.site-footer { padding: 1rem; text-align: center; color: #0a2a5a; }
.footer-ad { margin-bottom: 0.5rem; }
.footer-ad a {
  color: #b06c00;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px dashed rgba(176,108,0,.6);
}
.gratitude {
  margin: 0.25rem 0 0;
  color: #2b3a2a;
}

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

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