/* Minimal reset and accessible base styles */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto; background: #f5ecd8; color: #1a1a1a; line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* Color tokens for a beige, hacker-red cyberpunk vibe */
:root {
  --bg-beige: #f5ecd8;
  --red: #e6002b;
  --red-dark: #b30022;
  --text: #1a1a1a;
  --card: rgba(255,255,255,0.72);
  --shadow: 0 12px 28px rgba(0,0,0,.15);
  --glass-border: rgba(0,0,0,.15);
}

/* Light reset for layout */
*, *:focus { outline: none; }
a { color: inherit; text-decoration: none; }

/* Mobile-first, hero-like spotlight on the main image (frosted glass + neon hacker glow) */
main {
  min-height: 60vh;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: var(--bg-beige);
}

.image-frame {
  position: relative;
  width: 100%;
  max-width: 860px;
  border-radius: 18px;
  background: rgba(255,255,255,0.62);
  border: 1px solid rgba(0,0,0,.15);
  padding: 0.6rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 16px 40px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.45);
  overflow: hidden;
  /* neon hacker edge glow */
  border: 1px solid rgba(230, 0, 38, 0.25);
}
.image-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  pointer-events: none;
  box-shadow: 0 0 18px 6px rgba(230,0,38,.25);
}
.image-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  filter: saturate(1.05);
  /* subtle inner glow to enhance cyberpunk mood */
  box-shadow: inset 0 0 18px rgba(0,0,0,.08);
}
.image-frame:focus-within {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(255,255,255,.6), 0 16px 40px rgba(230,0,38,.55);
}

/* Frosted glass header-like garnish (optional extra glow) */
.image-frame::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,0,0,.0), rgba(255,0,0,.45), rgba(255,0,0,.0));
  filter: blur(0.5px);
  opacity: .9;
  pointer-events: none;
}

/* Focus styles for accessibility on any interactive element inside the frame's area */
.image-frame:focus-within a, .image-frame a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
  border-radius: 6px;
  box-shadow: 0 0 0 3px rgba(255,255,255,.5);
}

/* Footer with a prominent CTA styled like a neon prompt */
footer {
  padding: 1.75rem 1rem 2rem;
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  color: #5b524e;
  background: #f5ecd8;
}
.product-ad {
  width: min(92%, 420px);
  padding: 1rem 1rem 0.75rem;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: var(--shadow);
  text-align: center;
}
.product-ad h3 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  color: #a5001a;
}
.product-ad a {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.72rem 1.25rem;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  letter-spacing: .4px;
  border: 1px solid rgba(0,0,0,.25);
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
  box-shadow: 0 8px 18px rgba(214,0,27,.55);
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-ad a:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(214,0,27,.65);
}
.product-ad a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
footer p {
  text-align: center;
  font-size: .85rem;
  color: #7b6e66;
  margin: 0.25rem 0;
}

/* Accessible color contrast helper for body text on beige */
@media (prefers-color-scheme: dark) {
  body { color: #e8e0d9; background: #f0e6d8; }
  footer { color: #e9e0d9; }
  .product-ad { background: rgba(0,0,0,.25); border-color: rgba(255,255,255,.15); }
  .product-ad a { background: #e6002b; }
}

/* Responsive tweaks (mobile-first) */
@media (min-width: 768px) {
  main { padding: 2rem; }
  footer { padding: 2rem 1.25rem 2.5rem; }
}
