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

/* Theme & helpers */
:root {
  --bg-teal: #0b3a37;
  --bg-teal-deep: #0a2f2b;
  --red: #e53935;
  --red-dark: #b71c1c;
  --text: #eafaf9;
  --glass: rgba(255,255,255,.08);
  --shadow: 0 12px 28px rgba(0,0,0,.25);
}
html, body { height: 100%; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial;
  color: var(--text);
  background: var(--bg-teal);
  /* Teal parchment vibe with subtle textures */
  background-image:
    radial-gradient(circle at 15% 0%, rgba(255,255,255,.08), transparent 25%),
    radial-gradient(circle at 85% 100%, rgba(0,0,0,.15), transparent 25%),
    linear-gradient(135deg, rgba(0,0,0,.08), rgba(0,0,0,0) 40%),
    linear-gradient(#0b3a37, #0b3a37);
  background-blend-mode: overlay, overlay, normal, normal;
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
}

/* Layout */
main { display: grid; place-items: center; padding: 2rem 1rem; width: 100%; }

/* Hero image frame with frosted glass overlay title */
.image-frame {
  width: min(94vw, 1100px);
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  background: #0b3a37;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.15);
  display: block;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.05);
  transform: scale(1.01);
}
.image-frame::after {
  content: "Desert Nightmares: Lost in Sand";
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  background: rgba(255,255,255,0.10);
  color: #eafff5;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  font-size: 0.95rem;
  line-height: 1.2;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.25);
  text-shadow: 0 1px 0 rgba(0,0,0,.4);
  pointer-events: none;
  white-space: nowrap;
}

/* Subtle focus ring for accessibility if anything inside frame gains focus */
.image-frame:focus-within {
  outline: 2px solid var(--red);
  outline-offset: 2px;
  border-radius: 18px;
}

/* Footer with frosted glass ad block */
footer {
  padding: 1.25rem;
  display: grid;
  justify-items: center;
  gap: .75rem;
}
.product-ad {
  width: min(92vw, 680px);
  padding: .75rem 1rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.25);
}
.product-ad h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #e6ffff;
  margin: 0;
  letter-spacing: .04em;
}
.product-ad a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .65rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  background: linear-gradient(135deg, var(--red) 0%, #ff6b6b 60%);
  color: white;
  font-weight: 700;
  border: 1px solid rgba(0,0,0,.2);
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
  transition: transform .15s ease, box-shadow .15s ease;
}
.product-ad a:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(0,0,0,.28); }
.product-ad a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
.product-ad p {
  margin: 0;
  color: #ffd9d9;
  font-weight: 600;
  white-space: nowrap;
}
footer p {
  color: #d2f5f0;
  font-size: .9rem;
  opacity: .9;
}

/* Responsiveness (mobile-first) */
@media (min-width: 640px) {
  .image-frame { border-radius: 20px; }
  .image-frame::after { font-size: 1rem; padding: .8rem 1.1rem; }
}
@media (min-width: 900px) {
  footer { padding: 1.5rem 0; }
  .product-ad { width: min(60vw, 760px); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}