/*  a clean, mobile-first style for a violet-polka dot background with orange hacker theme and frosted glass */

/* Color tokens - violet base with orange CTA glow */
:root {
  --cta: linear-gradient(135deg, #ff9a00 0%, #ff6b00 60%, #ff3a00 100%);
  --text: #ffffff;
  --panel: rgba(255, 255, 255, 0.22);
  --shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* Violet background with subtle polka dots using a soft glow */
  background: #2a0066;
  background-image: radial-gradient(circle at 10px 10px, rgba(255, 140, 0, 0.25) 2px, transparent 2px),
                    radial-gradient(circle at 60px 40px, rgba(255, 188, 110, 0.25) 2px, transparent 2px);
  background-size: 24px 24px, 24px 24px;
  background-blend-mode: overlay;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body:before {
  content: "";
  position: fixed;
  inset: -20vmin;
  background: radial-gradient(circle at 25% 25%, rgba(0, 255, 255, 0.25) 0 40px, rgba(0,0,0,0) 40px),
              radial-gradient(circle at 75% 75%, rgba(255, 140, 0, 0.25) 0 40px, rgba(0,0,0,0) 40px);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
  animation: drift 18s linear infinite;
  mix-blend-mode: screen;
}
@keyframes drift { to { transform: translateX(20px); } }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(15, 15, 25, 0.75);
  border-bottom: 1px solid rgba(255, 140, 0, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.branding {
  padding: 0.75rem 1rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: .4px;
}

/* Main layout center content with grid for mobile-first responsiveness */
main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 1rem;
}

/* Frosted glass hero panel */
.hero {
  display: grid;
  gap: 1rem;
  width: min(100%, 900px);
  padding: 1.75rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  text-align: center;
  align-items: center;
  justify-items: center;
}

/* Typography: single H1 per page to satisfy hierarchy requirement */
.hero h1 {
  font-size: clamp(1.8rem, 4vw + 1rem, 3rem);
  margin: 0;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0,0,0,0.25);
}
.subhead {
  font-size: clamp(0.95rem, 1.4vw + 0.6rem, 1.15rem);
  color: rgba(255,255,255,0.95);
  margin: 0;
  line-height: 1.4;
}

/* Centerpiece image + CTA */
.hero-media {
  display: grid;
  gap: 1rem;
  justify-items: center;
  width: 100%;
}
.hero-media img {
  width: min(92%, 720px);
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 14px 32px rgba(0,0,0,0.25);
}
.cta {
  display: inline-block;
  padding: 0.95rem 1.75rem;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  color: #041014;
  background: var(--cta);
  border: 1px solid rgba(0,0,0,0.25);
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,0.3); }
.cta:focus-visible { outline: 3px solid #dff9ff; outline-offset: 2px; }

/* Footer styles to keep a lightweight, readable look */
footer {
  padding: 1rem;
  text-align: center;
  color: #2b2013;
  background: #fff;
  border-top: 1px solid rgba(0,0,0,0.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.footer-ad a {
  color: #7a3b1a;
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  background: rgba(122, 29, 29, 0.15);
  border: 1px solid rgba(0,0,0,0.15);
  font-weight: 700;
}
.closing-note {
  font-size: 0.95rem;
  opacity: 0.95;
  margin-top: 0.25rem;
}

/* Keyboard focus visuals */
a:focus-visible {
  outline: 3px solid rgba(0, 170, 255, 0.9);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Responsive tweaks for larger screens */
@media (min-width: 768px) {
  .hero { padding: 2rem; border-radius: 22px; }
  .hero-media img { width: 60%; max-width: 800px; }
}