/* Reset and base */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

:root {
  --bg: #f3c07a;            /* parchment orange base */
  --bg-overlay: rgba(255, 255, 255, 0.20);
  --fg: #0b1a1a;
  --cyan: #00e7ff;
  --cyan-dark: #008a9a;
  --card: rgba(255, 255, 255, 0.22);
  --card-border: rgba(255, 255, 255, 0.5);
}

body {
  margin: 0;
  color: var(--fg);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  line-height: 1.6;
  background: var(--bg);
  /* subtle parchment texture using gradients */
  background-image:
    radial-gradient(circle at 10% 0%, rgba(255,255,255,0.75) 0 40%, rgba(255,255,255,0) 40%),
    radial-gradient(circle at 90% 20%, rgba(0,0,0,0.05) 0 40%, rgba(0,0,0,0) 40%);
  background-blend-mode: overlay;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* Light reset for spacing */
main, footer { width: 100%; }

/* Layout: mobile-first, hero center */
main {
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  flex: 1 1 auto;
  min-height: calc(100vh - 120px);
}

.image-frame {
  width: min(92vw, 720px);
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  overflow: hidden;
}

/* Image inside frosted frame */
.image-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

/* Frosted glass accents on the frame edge via subtle halo (optional effect) */
.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25);
  mix-blend-mode: screen;
}

/* Footer area with product ad and copyright */
footer {
  padding: 1.75rem 1rem 2rem;
  text-align: center;
  color: rgba(0,0,0,0.72);
  background: rgba(255,255,255,0.04);
}

/* Product ad block styled as a frosted card with a cyan emphasis */
.product-ad {
  display: grid;
  gap: 0.75rem;
  justify-items: center;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  width: min(92vw, 720px);
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.product-ad h3 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--cyan);
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.8);
  letter-spacing: .4px;
}

.product-ad a {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: #00e7ff;
  color: #001b1c;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(0,0,0,0.15);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-ad a:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.28);
}

.product-ad a:focus {
  outline: 3px solid rgba(0, 231, 255, 0.9);
  outline-offset: 2px;
}

/* Copy the existing footer copyright text style cleanly */
footer p {
  margin: 0.6rem 0 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Responsive tweaks */
@media (min-width: 600px) {
  main { padding: 3rem 2rem; }
  .image-frame { padding: 1.25rem; }
  .product-ad { padding: 1rem 1.25rem; }
}

@media (min-width: 1024px) {
  main { padding: 4rem 2rem; }
  .image-frame { border-radius: 20px; padding: 1.25rem; }
}