/* Light, mobile-first reset and base */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-gold: #d4a017;
  --brown: #3b2a0a;
  --glass: rgba(255, 255, 255, 0.18);
  --glass-border: rgba(0, 0, 0, 0.25);
  --cta: #6a3f1b;
  --cta-hover: #7b481d;
}

html, body { height: 100%; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  color: var(--brown);
  background: var(--bg-gold); /* gold solid background */
  display: grid;
  min-height: 100vh;
  place-items: center;
  line-height: 1.4;
}

/* Layout: mobile-first hero with frosted glass card and a footer ad */
main {
  width: 100%;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.image-frame {
  position: relative;
  width: min(92vw, 720px);
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.14); /* frosted glass look on gold */
  border: 1px solid rgba(0,0,0,0.25);
  backdrop-filter: blur(6px) saturate(1.2);
  -webkit-backdrop-filter: blur(6px) saturate(1.2);
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

.image-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  pointer-events: none;
}

.image-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.25);
}

/* Footer Ad: frosted glass block with a bold CTA button look */
footer {
  width: 100%;
  padding: 1.25rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-ad {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(0,0,0,0.25);
  backdrop-filter: blur(4px);
  color: #fff;
  text-align: center;
  min-width: 240px;
}

.product-ad h3 {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas;
  font-size: 1rem;
}

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

.product-ad p {
  margin: 0;
  padding: 0.55rem 0.9rem;
  border-radius: 6px;
  background: var(--cta);
  color: #fff;
  font-weight: 700;
  letter-spacing: .4px;
  border: 1px solid rgba(0,0,0,0.25);
  transition: background 0.15s ease;
}

.product-ad p:hover { background: var(--cta-hover); }

/* Focus accessibility for keyboard users on links and buttons */
a:focus-visible, button:focus-visible {
  outline: 3px solid #ffd54a;
  outline-offset: 2px;
  border-radius: 6px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .image-frame, .product-ad { transition: none; }
  .image-frame { backdrop-filter: blur(0); -webkit-backdrop-filter: blur(0); }
}

/* Small tweaks for larger screens (still mobile-first) */
@media (min-width: 768px) {
  image-frame { padding: 1.25rem; }
  .product-ad { min-width: 320px; }
}