/* Night Hacker - parchment background with neon green, frosted glass, mobile-first */

/* Global reset and color tokens */
:root{
  --parchment: #f7e6b0;
  --parchment-dark: #e3d28a;
  --green: #9bff7a;
  --green-deep: #2aff4f;
  --ink: #1b5d2a;
  --glass: rgba(255,255,255,.12);
  --border: rgba(0,255,140,.35);
  --shadow: 0 6px 20px rgba(0,0,0,.25);
}

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

/* Light reset for page edges */
html, body { height: 100%; margin: 0; padding: 0; }

/* Parchement-y background with subtle specks for texture (no images) */
body{
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Inter", "Helvetica Neue", Arial;
  color: var(--green);
  background: var(--parchment);
  background-image:
    radial-gradient(circle at 10% 0%, rgba(255,255,255,.15) 0, rgba(255,255,255,0) 40px),
    radial-gradient(circle at 60% 0%, rgba(0,0,0,.08) 0, rgba(0,0,0,0) 40px),
    linear-gradient(#f8edc1 0%, #f3e6a0 60%, #e9d97a 100%);
  background-size: cover;
  text-rendering: optimizeLegibility;
}

/* Layout: center hero on mobile, let footer sit below */
main{ min-height: calc(100vh - 140px); display:flex; align-items:center; justify-content:center; padding:1rem; }

/* Frosted glass card around the image (hero) */
.image-frame{
  width: min(92%, 720px);
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Image inside the frosted card */
.image-frame img{
  display:block; width:100%; height:auto; border-radius:12px;
  outline: 1px solid rgba(0,0,0,.05);
}

/* Footer with a neon-green CTA "button" and product ad styling */
footer{
  padding: 1.25rem;
  text-align: center;
  color: #1f5d2a;
}

.product-ad{
  display: inline-block;
  padding: .6rem;
  border-radius: 12px;
  background: rgba(0,60,0,.65);
  border: 1px solid rgba(0,255,140,.35);
  margin-bottom:.75rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.product-ad h3{
  margin: 0 0 .25rem;
  font-family: ui-monospace,SFMono-Regular,Consolas,Monaco,monospace;
  font-size:.95rem;
  color:#d9ffb3;
  letter-spacing:.4px;
}

.product-ad a{ text-decoration:none; }

.product-ad a p{
  display:inline-block;
  margin:0;
  padding:.5rem .85rem;
  border-radius:8px;
  font-weight:700;
  color:#021f08;
  background:#8aff78;
  border:1px solid rgba(0,0,0,.15);
  transition:transform .2s ease, box-shadow .2s ease;
  text-shadow: 0 0 6px rgba(0,0,0,.25), 0 0 8px rgba(0,255,120,.4);
}

.product-ad a:hover p,
.product-ad a:focus-visible p{
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
}

.product-ad a:focus-visible{ outline:2px solid #baff50; outline-offset:2px; }

/* Footer text under ad (e.g., copyright) */
footer p{
  margin: .25rem 0 0;
  font-size: .95rem;
  color: #2f6120;
  opacity:.95;
}

/* Focus styles for accessibility on all links */
a:focus-visible{
  outline:2px solid #baff50;
  outline-offset:2px;
  border-radius:6px;
}

/* Responsive tweaks (mobile-first) */
@media (min-width: 600px){
  main{ padding:2rem; }
  .image-frame{ padding:1.25rem; }
}

@media (min-width: 1024px){
  .image-frame{ width: min(720px, 70%); }
  footer{ padding-bottom:2rem; }
}