/* CSS: Green polka-dot background with beige frosted glass hacker vibe, mobile-first */

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

/* Base page */
html, body { height: 100%; }

:root {
  --beige: #efe6cf;
  --beige-dark: #e5d2b0;
  --text: #f2f0e3;
  --glass: rgba(255, 255, 255, 0.22);
  --glass-border: rgba(255, 255, 255, 0.45);
  --shadow: 0 12px 28px rgba(0,0,0,.25);
  --focus: 3px solid #fff;
  --focus-offset: 2px;
  --bg-green: rgba(0, 200, 120, 0.25);
  --bg-green-darker: rgba(0, 160, 100, 0.25);
}

/* Light green polka-dot background pattern (grid of dots) */
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  color: var(--text);
  background-color: #0b1510;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(0, 255, 128, 0.9) 2px, transparent 3px),
    radial-gradient(circle at 10px 10px, rgba(0, 255, 128, 0.6) 2px, transparent 3px);
  background-size: 20px 20px, 20px 20px;
  background-position: 0 0, 10px 10px;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Header spacing (branding intentionally empty) */
.site-header { height: 64px; }

/* Hero: frosted glass panel with grid layout (mobile-first) */
.hero {
  width: min(92%, 860px);
  margin: 2rem auto;
  padding: 1.75rem 1.5rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.22); /* beige frosted glass */
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  box-shadow: var(--shadow);
  display: grid;
  gap: 1rem;
  text-align: center;
  grid-template-rows: auto auto auto auto;
  isolation: isolate;
}

/* Typography */
.hero h1 {
  font-size: 1.6rem;
  margin: 0;
  color: #1b1b12;
}
.subhead {
  font-size: 1rem;
  color: #1e1a0a;
  opacity: 0.95;
  margin: 0;
}

/* Centerpiece image styling */
.hero-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  max-width: 820px;
  margin: 0 auto;
  box-shadow: 0 14px 34px rgba(0,0,0,.28);
}

/* CTA: prominent visual centerpiece (link styled as button) */
.cta {
  display: inline-block;
  padding: 1rem 1.75rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: #0b0b0b;
  text-decoration: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffe6a3 0%, #ffd17a 60%, #f5b34a 100%);
  border: 1px solid rgba(0,0,0,.08);
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0,0,0,.25); }
.cta:focus-visible { outline: var(--focus); outline-offset: var(--focus-offset); }

/* Footer: small advertisement + closing note */
.site-footer {
  padding: 1rem;
  text-align: center;
  font-size: 0.92rem;
  color: #e9f0ff;
}
.site-footer .ad a {
  color: #ffb347;
  text-decoration: underline;
}
.site-footer .gratitude {
  margin-top: .5rem;
  color: #eef4ff;
}

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

/* Desktop refinements for larger screens */
@media (min-width: 768px) {
  .hero { padding: 2.25rem; gap: 1.75rem; }
  .hero h1 { font-size: 2rem; }
  .subhead { font-size: 1.02rem; }
  .cta { font-size: 1.3rem; padding: 1.15rem 2rem; }
}