/* Minimal reset and brown-paper, lime-hacker theme with frosted glass */

/* Reset and base */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { font-size: 16px; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  color: #eaffdc;
  line-height: 1.5;
  /* Brown paper texture (no image assets) */
  background-color: #6a4a2a;
  background-image:
    linear-gradient(0deg, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 4px 4px;
  /* Subtle paper wash for depth */
  background-blend-mode: multiply;
}

/* Global accents (lime hacker theme) */
:root {
  --lime: #B6FF00;
  --lime-dark: #8cff00;
  --bg-glass: rgba(255,255,255,.08);
  --glass-border: rgba(0,0,0,.25);
  --shadow: 0 10px 28px rgba(0,0,0,.25);
  --text: #eaffdc;
}

main {
  display: grid;
  place-items: center;
  padding: 2rem 1rem 1.5rem;
}

/* Frosted glass container around the image (hero) */
.image-frame {
  width: min(92vw, 760px);
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0,0,0,.25);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), var(--shadow);
  overflow: hidden;
  position: relative;
}

/* Subtle inner vignette to enhance frosted glass feel */
.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,.25), transparent 40%);
  mix-blend-mode: overlay;
  opacity: .6;
}

/* Image fills frame with rounded corners */
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  filter: saturate(1.05);
  border: 1px solid rgba(0,0,0,.15);
}

/* Footer area with frosted glass card for ad + copyright */
footer {
  width: 100%;
  margin-top: 2rem;
  display: grid;
  justify-items: center;
  padding: 1rem;
  background: rgba(10, 10, 10, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.product-ad {
  display: inline-block;
  padding: .65rem .9rem;
  border-radius: 999px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(0,0,0,.35);
  text-align: center;
  transition: transform .2s ease;
}
.product-ad h3 {
  margin: 0 0 .4rem 0;
  font-size: .95rem;
  color: #d6ffd0;
  letter-spacing: .4px;
}
.product-ad a {
  display: inline-block;
  padding: .8rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  color: #062309;
  background: linear-gradient(#c0ff5a, #8fff1a);
  border: 1px solid rgba(102, 255, 0, .65);
  box-shadow: 0 6px 14px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.6);
}
.product-ad a:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 2px;
}
.product-ad a:hover {
  transform: translateY(-1px);
}
footer p {
  margin: .6rem 0 0;
  font-size: .85rem;
  color: #d8ffd8;
  text-align: center;
}

/* Accessibility: focus for all interactive elements if keyboard nav */
:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Responsive tweaks (mobile-first) */
@media (min-width: 640px) {
  main { padding: 3rem 1.5rem; }
  .image-frame { border-radius: 22px; padding: 1.25rem; }
}
@media (min-width: 900px) {
  footer { align-items: center; justify-items: center; }
  .product-ad { padding: .75rem 1.25rem; }
}
