/* 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: #111111;
  --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: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial;
  background-color: var(--bg);
  /* Black & dark grey grid paper with beige lines */
  background-image:
    linear-gradient(to right, rgba(230, 210, 170, 0.55) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(230, 210, 170, 0.55) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: 0 0;
}

/* Frosted glass surfaces for hacker-night theme */
.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: 14px 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: 72vh;
  padding: 28px 12px;
  gap: 20px;
}

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

.qr-code {
  width: 68vmin;
  max-width: 560px;
  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;
}

.hero h1 {
  font-size: 2rem;
  line-height: 1.15;
  margin: 0;
  color: #f8ecd9;
}

.hero h2 {
  font-size: 1.15rem;
  color: #e6d2b3;
  margin: 0;
  font-weight: 500;
}

.telegram-link {
  font-size: 0.95rem;
  color: #e9dbbf;
  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: 16px;
  text-align: center;
  color: #d9c8ae;
  background: rgba(255, 255, 255, 0.04);
  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;
  font-variant-numeric: tabular-nums;
}
.gratitude {
  margin-top: 6px;
  font-size: 0.95rem;
}

/* Focus visibility for accessibility on keyboard users */
: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.4rem;
  }

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

  .qr-code {
    width: 52vmin;
  }

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