/* Beige metallic, yellow hacker-themed, frosted-glass CSS (mobile-first) */

:root {
  --bg-beige: #f1e6cc;
  --bg-beige-dark: #e6d3a9;
  --glass: rgba(255, 255, 255, 0.25);
  --glass-dark: rgba(0, 0, 0, 0.08);
  --accent: #ffd166;
  --accent-dark: #c69600;
  --text: #2b2a0c;
}

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

html, body { height: 100%; }
html { font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto; }
body {
  margin: 0;
  padding: 1rem;
  min-height: 100dvh;
  color: var(--text);
  display: grid;
  place-items: center;
  background: var(--bg-beige);
  background-image:
    linear-gradient(135deg, rgba(255,255,255,.20) 0%, rgba(255,255,255,0) 40%),
    linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.04)),
    linear-gradient(#f5e7cc, #e7d6a6);
  background-blend-mode: overlay;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* subtle metallic sheen stripes across the page */
  position: relative;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(-45deg, rgba(255,255,255,.08) 0 6px, transparent 6px 12px);
  mix-blend-mode: overlay;
  opacity: .6;
  z-index: 0;
}

main {
  width: 100%;
  max-width: 1000px;
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 1rem;
}

.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: 0 12px 40px rgba(0,0,0,.15);
  position: relative;
  display: block;
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .3s ease;
}
.image-frame:hover img {
  transform: scale(1.03);
}
/* Frosted glass overlay to create the glassy, hacker aesthetic */
.image-frame::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  backdrop-filter: blur(6px) saturate(1.2);
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.6);
  z-index: 1;
  pointer-events: none;
}

/* Footer + CTA styling (featured product) */
footer {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 1.5rem 0;
  gap: 1.25rem;
  z-index: 1;
  position: relative;
}
.product-ad {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: .75rem;
  border-radius: 12px;
  background: rgba(255,255,255,.28);
  border: 1px solid rgba(255,255,255,.7);
  backdrop-filter: blur(3px);
}
.product-ad h3 {
  margin: 0 0 .25rem;
  font-size: 1rem;
  letter-spacing: .2px;
}
.product-ad a { text-decoration: none; }
.product-ad a p {
  margin: 0;
  padding: .72rem 1.05rem;
  border-radius: 999px;
  background: linear-gradient(#ffd84d, #f8c200);
  color: #2b2a00;
  font-weight: 700;
  border: 1px solid rgba(0,0,0,.08);
  transition: transform .2s ease;
}
.product-ad a:hover p { transform: translateY(-1px); }

footer p {
  margin: 0.5rem 0 0;
  color: #6b5c0a;
  font-size: .9rem;
  text-align: center;
  width: 100%;
  display: block;
  opacity: .9;
}

/* Focus styles for accessibility on links/buttons */
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}
a:focus:not(:focus-visible) { outline: none; }

/* Accessibility: reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  .image-frame img { transition: none; }
  .image-frame:hover img { transform: none; }
  .product-ad a p { transition: none; }
}

/* Responsive tweaks */
@media (min-width: 700px) {
  main { padding: 0; }
  .image-frame { width: min(80vw, 900px); }
}
@media (min-width: 1024px) {
  .image-frame { width: min(720px, 78vw); }
  footer { justify-content: center; }
}