/* Base reset and variables */
:root {
  --bg: #000;
  --beige: #e6d8bd;
  --paper: #efe1c8;
  --glass: rgba(255,255,255,0.08);
  --glass-border: rgba(255,255,255,0.28);
  --text: #e9d9b9;
  --muted: #c5a875;
  --cta: #f2d79a;
  --cta-dark: #d8b56a;
  --shadow: 0 12px 28px rgba(0,0,0,.5);
}
*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; margin: 0; padding: 0; }

/* Black paper texture with beige hacker vibes */
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  color: var(--text);
  background-color: #000;
  background-image:
    radial-gradient(circle at 10% 0%, rgba(255,255,255,0.05) 0 6px, transparent 6px),
    radial-gradient(circle at 60% 20%, rgba(255,255,255,0.04) 0 6px, transparent 6px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 4px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 4px),
    #000;
  background-blend-mode: overlay, overlay, overlay, overlay, normal;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 160px);
  padding: 1.25rem;
}

.image-frame {
  width: min(92vw, 860px);
  aspect-ratio: 16 / 9;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  padding: 0.75rem;
  display: grid;
  place-items: center;
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  box-shadow: 0 20px 40px rgba(0,0,0,.6);
  overflow: hidden;
}

.image-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  filter: saturate(1.05);
}

footer {
  text-align: center;
  padding: 1.25rem;
  color: #e9d9b9;
}

.product-ad {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  margin-bottom: 0.75rem;
}
.product-ad h3 {
  margin: 0;
  font-size: 1rem;
  color: #f6e4c8;
  letter-spacing: .4px;
}
.product-ad a { text-decoration: none; }
.product-ad a p {
  margin: 0;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  color: #0b0b0b;
  background: linear-gradient(#f7e2c2, #e3c48a);
  border: 1px solid rgba(0,0,0,.15);
  box-shadow: 0 2px 0 rgba(0,0,0,.15);
}
.product-ad a:focus-visible,
.product-ad a:hover {
  outline: 2px solid #ffd689;
  outline-offset: 2px;
}
footer p {
  margin: 0.25rem 0 0;
  color: #b7a57a;
  font-size: 0.88rem;
}

/* Focus for accessibility on all focusable elements */
:focus-visible {
  outline: 2px solid #ffd689;
  outline-offset: 2px;
}

/* Links coloration */
a { color: #ffd89e; }

/* Responsive tweaks */
@media (min-width: 600px) {
  main { min-height: calc(100vh - 180px); }
  .product-ad h3 { font-size: 1.05rem; }
}

@media (min-width: 900px) {
  image-frame { padding: 1rem; } /* minor enhancement for larger screens if needed */
  .product-ad { padding: 0.9rem 1.1rem; }
  body { font-size: 16px; }
}