/* Minimal reset and grid-paper foundation */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  padding: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  color: #2b1a0b; /* deep brown text for contrast on brown-theme UI */
  /* white grid paper background with brownish grid lines */
  background: #ffffff;
  background-image:
    linear-gradient(to right, rgba(120, 70, 40, 0.15) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(120, 70, 40, 0.15) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Layout foundation (mobile-first) */
main {
  display: grid;
  justify-items: center;
  align-items: start;
  gap: 1.75rem;
  padding: 2rem 1rem 1.5rem;
  min-height: calc(100vh - 120px);
}
footer {
  width: 100%;
  display: grid;
  place-items: center;
  padding: 1.5rem 1rem 2rem;
  margin-top: 0.25rem;
  color: #6d5949;
  background: transparent;
}

/* Frosted glass hero/image frame (brown hacker vibe) */
.image-frame {
  width: min(92vw, 900px);
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  border-radius: 20px;
  padding: 0;
  overflow: hidden;
  /* frosted glass look over the grid paper */
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  box-shadow:
    0 10px 28px rgba(0,0,0,.25),
    inset 0 0 0 1px rgba(255,255,255,.15);
  outline: 1px solid rgba(120, 60, 20, 0.35);
}

/* Image inside frame fills nicely */
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* slight warm glaze to emphasize brown hacker theme */
  filter: saturate(1.05) contrast(1.02);
}

/* Subtle neon/brown accent edge to enhance cyberpunk vibe */
.image-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  border: 2px solid rgba(212, 132, 52, 0.6);
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.9;
  filter: saturate(120%);
}

/* Featured product card (footer area) as prominent CTA region */
.product-ad {
  width: min(92vw, 680px);
  padding: 1.25rem 1.35rem;
  border-radius: 14px;
  background: rgba(26, 15, 9, 0.75);
  color: #f6efe9;
  text-align: left;
  border: 1px solid rgba(120, 60, 20, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 10px 28px rgba(0,0,0,.25);
}
.product-ad h3 {
  margin: 0 0 0.4rem 0;
  font-size: 1.05rem;
  letter-spacing: .2px;
}
.product-ad p {
  margin: 0;
  font-size: 0.95rem;
  color: #fbeee4;
}
.product-ad a {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #8a4a15 0%, #5d2a0a 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: inset 0 0 0 rgba(0,0,0,0);
  transition: transform .15s ease, box-shadow .15s ease;
}
.product-ad a:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
}
.product-ad a:focus-visible {
  outline: 3px solid #a5f3fc;
  outline-offset: 2px;
}
footer p {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  color: #6b5343;
  text-align: center;
}

/* Accessibility helpers for focus visibility on any interactive element */
:focus-visible {
  outline: 3px solid #7bd389;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Responsive tweaks (desktop/tablet) */
@media (min-width: 768px) {
  main {
    padding: 3rem 2rem 2rem;
  }
  .image-frame {
    width: min(70vw, 860px);
  }
  footer { padding: 2rem 0 2.5rem; }
}
@media (min-width: 1024px) {
  main {
    padding: 4rem 2.5rem 3rem;
  }
  .image-frame {
    width: min(60vw, 980px);
  }
}
