/* Minimal reset and gold grid paper background with coral hacker feel */

/* Reset and base */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
:root {
  --paper: #f0d888;          /* warm gold/amber background tint */
  --grid: rgba(0,0,0,.08);     /* grid line color */
  --coral: #ff6f61;            /* coral hacker accent */
  --coral-dark: #e65f50;
  --glass: rgba(255,255,255,.16);
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial;
  color: #111;
  /* gold grid paper background */
  background-color: var(--paper);
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  /* Subtle vignette for cyberpunk mood (optional but lightweight) */
  /* No heavy images to stay under 20KB */
}
img { display: block; max-width: 100%; height: auto; }

*, a { -webkit-t-tap-highlight-color: transparent; }

/* Layout */
main {
  display: flex;
  flex-direction: column;
  min-height: 60vh;
  padding: 1rem;
  align-items: center;
}
.image-frame {
  position: relative;
  width: min(92vw, 720px);
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.65);
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
  /* frosted glass feel with neon cyber glow */
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  box-shadow: 0 6px 28px rgba(0,0,0,.25), inset 0 0 0 rgba(0,0,0,0);
  border: 1px solid rgba(255,255,255,.75);
  /* coral glow around the frame */
  outline: 1px solid rgba(255, 110, 100, .6);
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; }

/* Subtle neon accent for hacker vibe on the frame edge */
.image-frame::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 40px rgba(255,110,100,.25);
  mix-blend-mode: screen;
  border-radius: 20px;
}

/* Footer / CTA area */
footer {
  width: 100%;
  padding: 1rem 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.product-ad {
  width: min(92vw, 720px);
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 14px;
  padding: .75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.product-ad h3 {
  margin: 0;
  font-size: 1rem;
  color: #111;
  letter-spacing: .2px;
}
.product-ad a {
  display: inline-block;
  text-decoration: none;
}
.product-ad p {
  margin: 0;
  padding: .55rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  color: #fff;
  /* coral gradient CTA for visibility */
  background: linear-gradient(135deg, #ff6a4e 0%, #ff3a7a 100%);
  transition: transform .18s ease, box-shadow .18s ease;
  box-shadow: 0 6px 14px rgba(255,90,120,.55);
}
.product-ad a:focus-visible {
  outline: 3px solid #ffd166;
  outline-offset: 2px;
  border-radius: 999px;
}
.product-ad a:focus:not(:focus-visible) { outline: none; }

/* Footer caption */
footer p {
  text-align: center;
  margin: .25rem 0 0;
  color: #333;
  font-size: .9rem;
}

/* Hover / focus hints for accessibility */
.product-ad a:hover p {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(255,110,120,.65);
}

/* Responsive tweaks (mobile-first) */
@media (min-width: 720px) {
  main { padding: 3rem 2rem; }
  .image-frame { border-radius: 22px; }
}
