/* Parchement-orange hacker style with frosted glass and neon green accents */
/* Mobile-first, single stylesheet */

:root {
  --bg: #f6e1c3;
  --bg-2: #e9c48a;
  --parchment: #f3d8b0;
  --text: #1a3a20;
  --green: #39ff14;
  --green-dark: #0a8a24;
  --glass: rgba(255, 255, 255, 0.20);
  --border: rgba(0, 255, 120, 0.55);
  --shadow: rgba(0, 0, 0, 0.25);
}

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

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto;
  color: var(--text);
  /* orange parchment background with subtle texture */
  background:
    linear-gradient(135deg, #f8e0c2 0%, #e1c086 60%, #d0893b 100%);
  background-size: 100% 100%;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.image-frame {
  width: min(92%, 720px);
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.25);
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: saturate(1.15) blur(6px);
  -webkit-backdrop-filter: saturate(1.15) blur(6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  position: relative;
  outline: 2px solid rgba(0, 255, 120, 0.45);
}

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

.image-frame::after {
  content: "";
  position: absolute;
  left: -40px;
  right: -40px;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0, rgba(0, 255, 120, 0.9) 50%, transparent 100%);
  animation: scan 6s linear infinite;
  pointer-events: none;
  mix-blend-mode: screen;
}
@keyframes scan {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

footer {
  padding: 1.5rem;
  display: grid;
  justify-items: center;
  gap: .75rem;
  margin-top: 1.25rem;
}

.product-ad {
  display: grid;
  grid-auto-flow: row;
  align-items: start;
  justify-items: start;
  background: rgba(16, 40, 16, 0.25);
  border: 1px solid rgba(0, 255, 120, 0.6);
  padding: 1rem 1.25rem;
  border-radius: 12px;
  max-width: 720px;
  width: 100%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 6px 18px rgba(0, 0, 0, 0.15);
}

.product-ad h3 {
  margin: 0 0 .5rem 0;
  color: #d6ffd6;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .2px;
  text-shadow: 0 0 6px rgba(0, 255, 120, 0.8);
}

.product-ad a {
  display: inline-block;
  padding: .75rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  color: #062e0b;
  font-weight: 900;
  font-size: 0.95rem;
  background: linear-gradient(180deg, rgba(60, 255, 145, 0.95), rgba(24, 180, 100, 0.95));
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-ad a:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}
.product-ad a:focus-visible {
  outline: 3px solid #9aff90;
  outline-offset: 2px;
}
.product-ad a p { margin: 0; padding: 0; }

footer p {
  color: rgba(0, 0, 0, 0.6);
  font-size: 0.9rem;
  text-align: center;
}

/* Focus styles for keyboard users on links and potential interactive elements */
a:focus-visible {
  outline: 3px solid #9aff90;
  outline-offset: 2px;
  border-radius: 6px;
}

@media (min-width: 768px) {
  main { padding: 3rem 2rem; }
  .image-frame { width: min(70%, 860px); }
  .product-ad { justify-self: start; }
}