/* Reset and foundational styles */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --beige: #f3e5d0;
  --beige-dark: #e6d5ba;
  --lime-1: #c6f04d;
  --lime-2: #a6e30a;
  --lime-3: #8bd013;
  --text: #1e1e1e;
  --glass: rgba(255, 255, 255, 0.18);
  --border: rgba(255, 255, 255, 0.55);
  --shadow: 0 20px 40px rgba(0, 0, 0, .25);
}

html, body { height: 100%; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto;
  color: var(--text);
  background: var(--beige);
  /* Lime low-poly triangles background (stylized) */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='600' height='600' viewBox='0 0 600 600'><polygon fill='%23bade62' points='0,600 260,360 0,360'/><polygon fill='%23c6f067' points='260,360 520,260 520,600'/><polygon fill='%23aee04e' points='0,0 180,140 0,260'/><polygon fill='%23d7f07a' points='180,140 380,60 520,260'/><polygon fill='%23b5f049' points='380,60 600,0 600,200'/></svg>");
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Layout */
main {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.image-frame {
  position: relative;
  width: min(860px, 92vw);
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 10px 40px rgba(0,0,0,.25), inset 0 1px 2px rgba(255,255,255,.6);
  backdrop-filter: saturate(1.2) blur(6px);
  -webkit-backdrop-filter: saturate(1.2) blur(6px);
  /* subtle neon feel */
  isolation: isolate;
}
.image-frame::before {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 80px rgba(0, 255, 170, 0.25);
  pointer-events: none;
}
.image-frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0, 255, 170, 0.15), transparent 40%), linear-gradient(315deg, rgba(0, 255, 170, 0.12), transparent 40%);
  mix-blend-mode: screen;
  pointer-events: none;
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(1.05);
}

footer {
  padding: 1.25rem;
  text-align: center;
  color: #2b2b2b;
  background: rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.product-ad {
  display: inline-block;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.6);
  margin-bottom: 0.5rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.product-ad h3 {
  font-size: 1rem;
  margin: 0 0 0.25rem;
}
.product-ad a { text-decoration: none; }
.product-ad p {
  display: inline-block;
  padding: 0.5rem 0.8rem;
  font-weight: 700;
  color: #1a1a1a;
  background: rgba(251, 251, 235, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-ad p:hover, .product-ad p:focus {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

a:focus-visible, button:focus-visible {
  outline: 3px solid #9be77b;
  outline-offset: 2px;
  border-radius: 6px;
}

/* Accessibility and interactions improvements */
:focus-visible { outline: 3px solid #9be77b; outline-offset: 2px; }

/* Responsive tweaks (mobile-first) */
@media (min-width: 600px) {
  .product-ad { margin-top: 0; }
}
@media (min-width: 900px) {
  main { padding: 3rem 2rem; }
  .image-frame { width: 860px; }
}