/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Theme and layout variables */
:root {
  --beige: #efe3cc;
  --beige-2: #f5e7cc;
  --yellow: #f6c200;
  --yellow-dark: #d9a600;
  --text: #0a0a0a;
  --glass: rgba(255,255,230,.25);
  --glass-border: rgba(255,255,255,.65);
  --shadow: 0 8px 28px 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-2);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  /* Yellow zigzag background layer (mobile-first, subtle) */
  background-image:
    linear-gradient(135deg, rgba(246,196,0,.25) 25%, transparent 25%),
    linear-gradient(315deg, rgba(246,196,0,.25) 25%, transparent 25%);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
  isolation: isolate;
}

main { width: min(1100px, 92%); margin: 4rem auto 2rem; }

/* Hero image frame (clear hero section) */
.image-frame {
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: var(--shadow);
}

.image-frame img {
  display: block;
  width: 100%;
  height: auto;
  /* slight cyber-contrast boost */
  image-rendering: optimizeQuality;
  filter: saturate(1.05);
}

footer { margin-top: auto; padding: 2rem 0; display: grid; place-items: center; }

/* Frosted-glass product ad with prominent CTA */
.product-ad {
  width: min(700px, 92%);
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(246,238,208,.28);
  border: 1px solid rgba(255,255,255,.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  transition: transform .25s ease;
}
.product-ad:hover { transform: translateY(-2px); }

.product-ad h3 {
  font-size: 1rem;
  margin: 0;
  color: #3c2f00;
  display: inline-flex; 
  align-items: center;
  gap: .5em;
}

.product-ad a { text-decoration: none; }

.product-ad p {
  font-weight: 700;
  font-size: 1.15rem;
  padding: .5rem 0.75rem;
  background: rgba(255,255,255,.92);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.95);
  color: #1a140f;
  display: inline-block;
  white-space: nowrap;
}

/* Accessibility: clear focus indication for keyboard users */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Responsive adjustments (mobile-first) */
@media (max-width: 900px) {
  .product-ad { grid-template-columns: 1fr; width: 90%; }
  .product-ad p { justify-self: start; }
}

@media (max-width: 520px) {
  main { margin: 2rem auto; }
  .image-frame { border-radius: 14px; }
}