/* Global reset and base styles */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  padding: 0;
  color: #f5e7d7;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  line-height: 1.4;
  background: #1b0000;
  /* maroon galaxy with stars using layered gradients */
  background-image:
    radial-gradient(circle at 10% 20%, rgba(255,255,255,.9) 0 1px, transparent 2px),
    radial-gradient(circle at 70% 40%, rgba(200,210,255,.8) 0 1px, transparent 2px),
    radial-gradient(circle at 30% 70%, rgba(255,255,200,.7) 0 1px, transparent 2px),
    radial-gradient(circle at 90% 10%, rgba(200,180,160,.8) 0 1px, transparent 2px),
    linear-gradient(#2b0000 0%, #180001 100%);
  background-size: 2px 2px, 2px 2px, 2px 2px, 2px 2px, cover;
  background-blend-mode: screen;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Layout: mobile-first, hero centered with frosted glass overlay on image frame */
main {
  display: grid;
  place-items: center;
  padding: 1.5rem 1rem;
}
.image-frame {
  position: relative;
  width: 100%;
  max-width: 880px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.25);
  box-shadow: 0 20px 40px rgba(0,0,0,.5);
}
.image-frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.image-frame::after {
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height: 40%;
  background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,0) 60%);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  pointer-events:none;
}

/* Footer / product ad with frosted glass feel */
footer {
  padding: 2rem 1rem;
  text-align: center;
  color: #e6d4c6;
  background: linear-gradient(#2b0000 0%, #160000 100%);
}
.product-ad {
  display: inline-block;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(20,12,8,.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 6px 20px rgba(0,0,0,.4);
  margin-bottom: .75rem;
}
.product-ad h3 {
  margin: 0 0 .5rem;
  color: #ffdcb5;
  font-family: ui-sans-serif, system-ui;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .3px;
}
.product-ad a {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 12px;
  background: linear-gradient(#5e2a1f, #3f1d14);
  color: #fff;
  text-decoration: none;
  font-family: inherit;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,.25);
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-ad a p { margin: 0; padding: 0; }
.product-ad a:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(0,0,0,.45); }
.product-ad a:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(255,210,170,.8); border-color: rgba(255,255,255,.7); }

/* Global typography tweaks for titles */
h1, h2, h3 {
  font-family: ui-sans-serif, system-ui;
  color: #f7e6d0;
}
h3 { font-size: 1.05rem; }

/* Accessibility: focus styles for keyboard navigation */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,214,168,.8);
  border-radius: 6px;
}

/* Responsive adjustments */
@media (min-width: 600px) {
  main { padding: 2rem 2rem; }
  .image-frame { max-width: 960px; }
}
@media (min-width: 1024px) {
  main { padding: 3rem 4rem; }
  .image-frame { max-width: 1100px; }
}
@media (max-width: 420px) {
  .product-ad { width: 100%; }
  .product-ad a { width: 100%; text-align: center; }
}