/* Global reset and silver grid paper background (mobile-first) */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Palette for beige hacker theme with frosted glass accents */
  --beige-900: #2b1f14;
  --beige-700: #5e4a32;
  --beige-500: #b89f7a;
  --beige-400: #d9cfa0;
  --beige-300: #efe0c0;

  --bg: #0e0e12;
  --text: #e8e0c7;

  --grid: rgba(170, 170, 170, 0.25);
  --glass: rgba(255, 255, 255, 0.14);
  --glass-border: rgba(255, 255, 255, 0.28);

  --cta-shadow: rgba(0,0,0,.4);
  --cta-hover: #f1e6c9;
}

html, body {
  height: 100%;
  background-color: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Silver grid paper background */
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: 0 0, 0 0;
}

main {
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.image-frame {
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  background: rgba(20, 20, 20, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 14px 50px rgba(0,0,0,0.55);
  isolation: isolate;
}

/* Frosted glass overlay at the bottom of the hero image */
.image-frame::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 42%;
  background: linear-gradient(to top, rgba(255,255,255,0.55), rgba(255,255,255,0));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
  opacity: 0.95;
  mix-blend-mode: screen;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.02);
}

/* Footer product ad with prominent CTA button-like link */
footer {
  padding: 1.5rem;
  text-align: center;
  color: var(--text);
  font-size: 0.95rem;
  background: rgba(0,0,0,0.15);
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* Ad block styling as a pill/button combo */
.product-ad {
  display: inline-block;
  padding: 0.25rem;
  border-radius: 12px;
  background: rgba(214, 205, 178, 0.12);
  border: 1px solid rgba(214,205,178,0.4);
  margin-bottom: 0.75rem;
}

.product-ad h3 {
  font-size: 0.95rem;
  margin: 0 0 0.25rem;
  color: #efe5d1;
}

.product-ad a { text-decoration: none; color: inherit; }

.product-ad a p {
  display: inline-block;
  padding: 0.75rem 1.15rem;
  border-radius: 10px;
  background: linear-gradient(#f0e0c0, #d7c29a);
  color: #1a1206;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .2px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
  border: 1px solid rgba(0,0,0,.08);
  transition: transform .2s ease;
}

.product-ad a p:hover { transform: translateY(-1px); }

/* Focus styles for accessibility on keyboard navigation */
.product-ad a:focus-visible, .product-ad a:focus {
  outline: 3px solid #ffd27a;
  outline-offset: 2px;
  border-radius: 10px;
}

/* Responsive tweaks (mobile-first) */
@media (min-width: 768px) {
  main { padding: 3rem 2rem; }

  .image-frame {
    border-radius: 22px;
  }

  .product-ad a p {
    padding: 0.85rem 1.25rem;
    font-size: 1.02rem;
  }

  footer { font-size: 1.02rem; }
}