/* Light reset and CSS variables */
:root {
  --pink: #ff4a92;
  --pink-dark: #e6007a;
  --bg: #f6f7fb;
  --surface: rgba(255, 255, 255, 0.22);
  --glass: rgba(255, 255, 255, 0.22);
  --shadow: 0 8px 20px rgba(0,0,0,.15);
}

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: #1b1b1f;
  background-color: var(--bg);
  /* white metallic sheen + frosted vibes */
  background-image:
    linear-gradient(135deg, rgba(255,255,255,.88) 0%, rgba(255,255,255,.68) 50%, rgba(255,255,255,.88) 100%),
    radial-gradient(circle at 20% -10%, rgba(255,255,255,.6), rgba(255,255,255,0) 40%),
    radial-gradient(circle at 90% 0%, rgba(255,0,180,.15), rgba(255,0,180,0) 40%);
  background-blend-mode: overlay;
  min-height: 100%;
}

/* Layout: mobile-first, centered content */
main {
  padding: 2rem 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Frosted glass frame around the image (hero) */
.image-frame {
  width: min(92vw, 1024px);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.45);
  backdrop-filter: saturate(1.2) blur(6px);
  -webkit-backdrop-filter: saturate(1.2) blur(6px);
  box-shadow: var(--shadow);
}

.image-frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* Footer with frosted product ad and copyright */
footer {
  padding: 1.5rem 1rem 2rem;
  display: grid;
  gap: 1rem;
  justify-items: center;
  width: 100%;
}

.product-ad {
  width: min(92vw, 720px);
  padding: 1rem;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.45);
  backdrop-filter: blur(6px) saturate(1.2);
  -webkit-backdrop-filter: blur(6px) saturate(1.2);
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
  text-align: center;
}

.product-ad h3 {
  margin: 0 0 .75rem;
  color: var(--pink);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .2px;
}

.product-ad a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,80,180,.95), rgba(214,8,164,.95));
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  min-width: 240px;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 4px 14px rgba(214,8,164,.6);
}

.product-ad a:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(214,8,164,.7);
}

.product-ad a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.product-ad a p {
  margin: 0;
  padding: .9rem 1rem;
  font-size: 1rem;
  color: #fff; /* ensure text remains readable on gradient */
  display: inline-block;
  line-height: 1;
}

/* Footer copyright text */
footer p {
  color: #555;
  margin: .25rem 0 0;
  font-size: .85rem;
}

/* Accessibility: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Desktop enhancements */
@media (min-width: 768px) {
  main { padding: 3rem 2rem 1.5rem; }
  .image-frame { border-radius: 20px; }
  .product-ad { padding: 1.25rem; }
  .product-ad h3 { font-size: 1.25rem; }
}
