/* Solana Acolytes Donation Page - CSS (mobile-first, single stylesheet) */

/* Color system and grid paper background (black & dark grey with beige grid) */
:root {
  --bg: #0a0a0a;
  --bg-deep: #111;
  --beige: #e6d3b0;
  --beige-dark: #d8c2a0;
  --text: #e9e0c8;
  --glass: rgba(255, 255, 245, 0.08);
  --glass-border: rgba(255, 255, 255, 0.25);
  --shadow: 0 10px 22px rgba(0, 0, 0, 0.45);
  --radius: 14px;
}

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

html, body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  background-color: var(--bg);
  /* Black & dark grey grid paper background with beige lines */
  background-image:
    linear-gradient(to right, rgba(230, 210, 170, 0.25) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(230, 210, 170, 0.25) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: 0 0;
}

/* Frosted glass surfaces for hacker-night vibe */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Layout structure */
.site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(0, 0, 0, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.brand-text {
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--beige);
  text-transform: uppercase;
  font-size: 1rem;
}

/* Main content area */
main {
  padding: 0 16px;
}

/* Hero: central, prominent QR code as centerpiece */
.hero {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 70vh;
  padding: 28px 12px;
  gap: 20px;
  margin: 0 auto;
  width: 100%;
  max-width: 980px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  /* subtle glow to emphasize futurist vibe */
  box-shadow: inset 0 0 40px rgba(255, 226, 200, 0.05), 0 20px 60px rgba(0,0,0,.4);
}

.hero .qr-area {
  width: 100%;
  display: grid;
  place-items: center;
  padding: 6px;
}

.qr-code {
  width: 68vmin;
  max-width: 520px;
  height: auto;
  aspect-ratio: 1/1;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  padding: 6px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
  display: block;
}

/* Typography within hero */
.hero h1 {
  font-size: 1.8rem;
  line-height: 1.15;
  margin: 0;
  color: var(--beige);
}

.hero h2 {
  font-size: 1.15rem;
  color: var(--beige-dark);
  margin: 0;
  font-weight: 500;
}

.telegram-link {
  font-size: 0.95rem;
  color: var(--beige);
  margin: 2px 0 0;
}

.telegram-link a {
  color: #ffd9a6;
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 221, 166, 0.6);
}
.telegram-link a:hover,
.telegram-link a:focus {
  outline: 2px solid #ffd9a6;
  outline-offset: 2px;
  border-bottom: none;
}

/* Footer: product advertisement + gratitude text */
.site-footer {
  padding: 14px;
  text-align: center;
  color: #d9c8ae;
  background: rgba(0, 0, 0, 0.34);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-ad {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 0;
}

.footer-ad a {
  color: #e7d2b0;
  text-decoration: none;
  border-bottom: 1px solid rgba(231, 210, 176, 0.8);
  padding-bottom: 2px;
}
.footer-ad a:hover,
.footer-ad a:focus {
  outline: 2px solid #ffd9a6;
  outline-offset: 2px;
  border-bottom: none;
}

.gratitude {
  margin-top: 6px;
  font-size: 0.95rem;
}

/* Accessible focus styles for keyboard users on links */
:focus-visible {
  outline: 2px solid var(--beige);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Responsive adjustments (mobile-first, then scale up) */
@media (min-width: 720px) {
  .hero {
    min-height: 78vh;
    padding: 48px 24px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero h2 {
    font-size: 1.4rem;
  }

  .qr-code {
    width: 52vmin;
  }

  .site-header {
    padding: 20px 40px;
  }
}