/* Reset & base */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: #0b1200;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #f7e26b;
  /* yellow paper texture (generated) */
  background-image:
    radial-gradient(circle at 10px 10px, rgba(0,0,0,.04) 2px, transparent 2px),
    radial-gradient(circle at 60px 60px, rgba(0,0,0,.04) 2px, transparent 2px),
    repeating-linear-gradient(45deg, rgba(0,0,0,.03) 0 2px, transparent 2px 6px),
    linear-gradient(#f7e26b, #f6e66d);
  background-blend-mode: multiply;
  padding: 1rem;
  /* subtle neon glow edge */
  outline: 1px solid rgba(0,0,0,.04);
  text-rendering: optimizeLegibility;
}
:focus { outline: none; }

/* Theme vars (lime hacker / cyberpunk) */
:root {
  --lime: #b6ff00;
  --lime-dark: #8af200;
  --card: rgba(0,0,0,.25);
  --glass: rgba(255,255,255,.18);
  --text-on-lime: #041c00;
  --shadow: 0 8px 24px rgba(0,0,0,.25);
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Layout: mobile-first */
main {
  width: 100%;
  max-width: 980px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 0.5rem;
}

/* Frosted glass card around the image (hero) */
.image-frame {
  width: 100%;
  max-width: 760px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 20px;
  padding: 14px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.image-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.6);
}

/* Footer area with a frosted product ad card */
footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 0;
}
.product-ad {
  width: 100%;
  max-width: 720px;
  padding: 1rem 1.25rem;
  border-radius: 16px;
  background: rgba(0,0,0,.15);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.05);
}
.product-ad h3 {
  margin: 0 0 .5rem 0;
  font-size: 1.05rem;
  color: #eaffd0;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.product-ad a {
  display: inline-block;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--lime), #88ff00);
  color: var(--text-on-lime);
  font-weight: 800;
  letter-spacing: .2px;
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
}
.product-ad a:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,0,0,.28);
}
.product-ad a:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(182,255,0,.25);
}
.product-ad p {
  margin: 0;
  color: #041c00;
  font-weight: 700;
}
footer p {
  text-align: center;
  color: rgba(0,0,0,.5);
  font-size: .9rem;
  margin: 0.75rem 0 0;
}

/* Focus for keyboard users on links and buttons in the layout */
a, button, [role="button"] {
  outline: none;
}
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(182,255,0,.25);
}
a:focus-visible { text-decoration: none; }

/* Responsive tweaks for larger screens (still mobile-first) */
@media (min-width: 768px) {
  main { padding: 2rem; }
  .image-frame { padding: 18px; }
  .product-ad { padding: 1.25rem 1.5rem; }
}