/* CSS for Orange parchment + pink hacker theme with frosted glass (mobile-first) */

:root{
  --parch: #f5e0c0;
  --parch-dark: #d9b27a;
  --pink: #ff4fb3;
  --pink-dark: #e40092;
  --text: #2a1a12;
  --glass: rgba(255, 255, 255, 0.22);
  --glass-border: rgba(255, 255, 255, 0.58);
  --radius: 18px;
  --shadow: 0 10px 28px rgba(0,0,0,.15);
}

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

html, body{ height: 100%; }

body{
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--parch);
  /* subtle parchment texture with pink accents for hacker vibe */
  background-image:
    linear-gradient(0deg, rgba(255, 140, 180, .18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 140, 180, .18) 1px, transparent 1px);
  background-size: 40px 40px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

main{
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6vmin 4vmin;
  min-height: calc(100vh - 140px);
}

.image-frame{
  width: 100%;
  max-width: 720px;
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.55);
  /* frosted glass look */
  backdrop-filter: blur(8px) saturate(110%);
  -webkit-backdrop-filter: blur(8px) saturate(110%);
  /* neon subtle glow for cyberpunk vibe */
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.25),
    0 18px 50px rgba(255, 0, 140, .22),
    0 0 40px rgba(255, 0, 170, .15);
  display: block;
}

.image-frame img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* slight color punch for hacker aesthetic */
  filter: saturate(1.05);
}

footer{
  padding: 2rem 4rem;
  display: grid;
  justify-items: center;
  gap: 1rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.16);
  border-top: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  /* keep the footer readable over parchment background */
  box-shadow: 0 -6px 20px rgba(0,0,0,.08);
}

.product-ad{
  width: min(92%, 720px);
  padding: 1rem 1.25rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 8px 28px rgba(0,0,0,.14);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: center;
}

.product-ad h3{
  font-size: 1.05rem;
  margin: 0;
  color: #2b0b0b;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.product-ad a{
  display: inline-block;
  text-decoration: none;
  padding: 0.92rem 1.25rem;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #ff4f8a 0%, #e10079 60%, #ff6fbd 100%);
  border: none;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(255,0,140,.28);
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-ad a:hover,
.product-ad a:focus{
  transform: translateY(-1px);
  outline: none;
  box-shadow: 0 8px 20px rgba(255,0,140,.5);
}
.product-ad a:focus-visible{
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.product-ad p{
  margin: 0;
  font-weight: 700;
  color: #2b0a0a;
}

/* Mobile-first: stack nicely on small screens */
@media (max-width: 640px){
  .product-ad{
    grid-template-columns: 1fr;
    text-align: center;
  }
  footer{ padding: 1.5rem 1.5rem; }
  .image-frame{ max-width: 680px; }
}

/* Larger screens: roomy layout with subtle scaling for cyberpunk vibe */
@media (min-width: 961px){
  main{ padding: 8vmin 6vmin; }
  .image-frame{ max-width: 900px; border-radius: 22px; }
  footer{ padding: 2.5rem 4rem; }
  .product-ad{ padding: 1.5rem; }
  .product-ad a{ padding: 0.95rem 1.6rem; font-size: 1rem; }
}

/* Small accessibility tweaks for focus visibility on interactive element(s) */
:focus-visible{ outline: 3px solid #fff; outline-offset: 2px; }

/* Ensure a clean, compact reset on all pages under 20KB size */