/* CSS: Brown sunset gradient with silver accents for hacker vibe, frosted glass, mobile-first */

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

/* Color palette */
:root {
  --bg-1: #2a1a0a;
  --bg-2: #6b3a1a;
  --sunset-1: #f2c27a;
  --sunset-2: #d08a34;
  --sunset-3: #8b4a1a;
  --silver: #cbd5e1;
  --text: #f5f5f5;
  --glass: rgba(255, 255, 255, 0.28);
  --glass-border: rgba(255, 255, 255, 0.5);
  --shadow: 0 12px 28px rgba(0,0,0,.25);
  --focus: 3px solid #fff;
  --focus-offset: 2px;
}

/* Page background: brown sunset gradient with a subtle silver shimmer */
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  color: var(--text);
  background: linear-gradient(135deg, #2a1a0a 0%, #6b3a1a 60%, #8b4a1a 100%);
  background-attachment: fixed;
  background-image:
    linear-gradient(135deg, rgba(255,255,255,.08) 0 50%, rgba(0,0,0,0) 50% 100%),
    linear-gradient(135deg, rgba(255, 215, 120, 0.25) 0%, rgba(255, 215, 120, 0.25) 60%, rgba(0,0,0,0) 60%);
  background-blend-mode: overlay, overlay;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

/* Hero container: frosted glass with grid-based 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.28);
  border: 1px solid rgba(255, 255, 255, 0.5);
  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: #f9f9f9;
}
.subhead {
  font-size: 1rem;
  color: #eee8d5;
  opacity: 0.95;
  margin: 0;
}

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

/* CTA button: stands out with warm gradient */
.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, #ffd96a 0%, #f6b24a 60%, #e0852e 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: 3px solid #fff; outline-offset: 2px; }

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

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

/* Desktop refinements */
@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; }
}