/* Global reset and parchment aesthetic */
*, *::before, *::after { box-sizing: border-box; }
html, body { padding: 0; margin: 0; height: 100%; }
:root {
  --bg: #f1e5cc;          /* parchment base */
  --bg-deep: #e5d5b8;
  --ink: #1b170e;          /* dark text for contrast */
  --muted: #5a503a;
  --glass: rgba(255,255,255,0.18);
  --glass-stroke: rgba(255,255,255,0.55);
  --border: rgba(255,255,255,0.65);
  --accent: #87f1d5;        /* cool cyber glow */
  --accent-2: #f29bd6;      /* pink neon accent */
  --cta: rgba(168, 135, 60, 0.95);
  --cta-border: rgba(255,255,255,0.95);
  --shadow: 0 10px 28px rgba(0,0,0,.12);
  --focus: 3px solid rgba(135, 239, 242, 0.9);
  --radius: 14px;
}
html { font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto; color: var(--ink); }
body {
  background: var(--bg);
  /* subtle parchment texture */ 
  background-image:
    repeating-linear-gradient(135deg,
      rgba(0,0,0,0.04) 0px, rgba(0,0,0,0.04) 2px,
      rgba(0,0,0,0) 2px, rgba(0,0,0,0) 6px),
    linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,0) 60%);
  background-blend-mode: multiply;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-x: hidden;
  position: relative;
}

/* Subtle cyber/parchment glow behind content (futuristic halo) */
body::before {
  content: "";
  position: fixed;
  width: 70vmax;
  height: 70vmax;
  left: -10vmax;
  top: -10vmax;
  background: radial-gradient(circle at 30% 30%, rgba(135, 239, 242, .25), rgba(0,0,0,0) 60%);
  filter: blur(8px);
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}

main {
  width: min(960px, 92%);
  margin-top: 4rem;
  z-index: 1;
  display: grid;
  place-items: center;
}

.image-frame {
  width: 100%;
  max-width: 860px;
  padding: 1rem;
  border-radius: calc(var(--radius) + 6px);
  background: rgba(255,255,255,0.20);
  border: 1px solid var(--glass-stroke);
  box-shadow: var(--shadow);
  backdrop-filter: saturate(120%) blur(6px);
  -webkit-backdrop-filter: saturate(120%) blur(6px);
  position: relative;
  overflow: hidden;
}
.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  /* soft neon edge sweep */
  background: linear-gradient(120deg,
    rgba(135, 239, 242, 0.25) 0%,
    rgba(135, 239, 242, 0.0) 40%,
    rgba(139, 196, 255, 0.25) 100%);
  mix-blend-mode: screen;
  opacity: 0.7;
}
.image-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.65);
  background: #fff;
}

/* Frosted glass hero feel for the whole page section */
.section-halo {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
  backdrop-filter: saturate(120%) blur(6px);
  -webkit-backdrop-filter: saturate(120%) blur(6px);
}

/* Footer / product ad */
footer {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 2rem 0 4rem;
  margin-top: auto;
  z-index: 1;
}
.product-ad {
  width: min(860px, 92%);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.50);
  box-shadow: var(--shadow);
  backdrop-filter: saturate(120%) blur(6px);
  -webkit-backdrop-filter: saturate(120%) blur(6px);
}
.product-ad h3 {
  margin: 0;
  font-size: 1rem;
  color: #2b2a1f;
  letter-spacing: .4px;
}
.product-ad a {
  align-self: flex-start;
  text-decoration: none;
}
.product-ad a > p {
  display: inline-block;
  padding: .55rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  color: #111;
  background: var(--cta);
  border: 1px solid var(--cta-border);
  margin: 0;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease;
}
.product-ad a:hover > p,
.product-ad a:focus-visible > p {
  transform: translateY(-1px);
  background: color-m-mix(in oklab, var(--cta) 80%, white);
}
.product-ad a:focus-visible > p {
  outline: none;
  box-shadow: 0 0 0 3px rgba(135, 239, 242, 0.9);
}
footer p {
  text-align: center;
  color: var(--muted);
  margin: 8px 0 0;
  font-size: 0.95rem;
  letter-spacing: .2px;
}

/* Typography tweaks for a cyberpunk parchment vibe on small screens */
@media (max-width: 520px) {
  .product-ad h3 { font-size: 0.95rem; }
  .product-ad a > p { padding: .5rem 0.9rem; font-size: 0.95rem; }
  .image-frame { padding: 0.9rem; border-radius: 12px; }
  body { background-blend-mode: multiply; }
}

/* Desktop and larger devices: airy spacing and stronger glow */
@media (min-width: 721px) {
  main { padding-top: 2rem; }
  .image-frame { border-radius: 18px; padding: 1.25rem; }
  .image-frame::after { opacity: 0.9; }
  .product-ad { padding: 1.25rem 1.25rem; }
  footer p { font-size: 1.01rem; }
}
