/* Global reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { color-scheme: dark; }
body {
  margin: 0;
  padding: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  line-height: 1.5;
  color: #eae4ff;
  /* Yellow parchment paper texture (stylized) */
  background-color: #f6e16a;
  background-image:
    radial-gradient(circle at 20% 15%, rgba(0,0,0,.05) 0 2px, transparent 2px),
    radial-gradient(circle at 80% 25%, rgba(0,0,0,.05) 0 2px, transparent 2px),
    linear-gradient(135deg, rgba(248,217,110,.95) 0%, rgba(238,208,110,.95) 60%, rgba(247,198,105,.95) 100%);
  background-size: 100% 100%;
  background-attachment: fixed;
  /* Subtle glow halo for cyber vibe */
  text-shadow: 0 0 0 rgba(0,0,0,0);
}

/* Small CSS reset for content layout */
main { display: grid; place-items: center; padding: 1.25rem 1rem; min-height: 60vh; }
footer { padding: 1.25rem 1rem; }

/* Frosted glass base style (applied to panels) */
.glass {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  box-shadow: 0 12px 28px rgba(0,0,0,.25);
  padding: 1rem;
  color: #e9e3ff;
}

/* Hero image frame (mobile-first) */
.image-frame {
  width: min(92vw, 720px);
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  box-shadow: 0 14px 32px rgba(0,0,0,.28);
}
.image-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: inset 0 0 0 rgba(0,0,0,0);
}

/* Footer product ad styling (cyberpunk purple vibe) */
.product-ad {
  width: min(92vw, 720px);
  margin: 0 auto;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(124, 0, 255, 0.28);
  border: 1px solid rgba(255,255,255,.28);
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 0.5rem;
  align-items: center;
  color: #fff;
  text-align: left;
}
.product-ad h3 {
  font-size: 1rem;
  margin: 0;
  color: #fff;
  text-shadow: 0 0 8px rgba(180, 0, 255, 0.9);
}
.product-ad a { text-decoration: none; }
.product-ad a p {
  display: inline-block;
  margin: 0;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #a04bff 0%, #6c1bd6 100%);
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
  transition: transform .2s ease, filter .2s ease;
}
.product-ad a:hover p { transform: translateY(-1px); filter: brightness(1.05); }
.product-ad a:focus-visible p { outline: 3px solid #ffd166; outline-offset: 2px; }

/* Subtle link focus for accessibility on all anchors */
a:focus-visible, button:focus-visible {
  outline: 3px solid #ffd166;
  outline-offset: 2px;
  border: none;
}
a, button { color: inherit; }

/* Typographic hero accents (purple hacker vibe) */
h3, h4 { margin: 0; color: #f0e7ff; text-shadow: 0 0 10px rgba(128,0,255,.8); }

/* Small screens: stack cleanly, maintain readability */
@media (min-width: 520px) {
  .image-frame { padding: 1.25rem; }
  .product-ad { grid-template-columns: auto; }
}
@media (min-width: 900px) {
  main { padding: 2rem 0; }
  .image-frame { padding: 1.36rem; }
  .product-ad { padding: 1.25rem; }
}
