/* Hacker olive crosshatch theme with frosted glass, mobile-first */

/* Reset and base */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --olive: #556b2f;
  --olive-dark: #324b1a;
  --olive-dk: #2a3510;
  --yellow: #ffd166;
  --yellow-dark: #e0b100;
  --text: #e9f3d8;
  --glass: rgba(255, 255, 255, 0.14);
  --glass-border: rgba(255, 255, 255, 0.28);
  --shadow: 0 12px 28px rgba(0,0,0,.28);
  --focus: 0 0 0 4px rgba(255, 209, 102, 0.65);
}

html, body { height: 100%; }

body {
  min-height: 100dvh;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial;
  color: var(--text);
  background-color: var(--olive-dark);
  /* Olive crosshatch background */
  background-image:
    repeating-linear-gradient(45deg, rgba(0,0,0,.08) 0 2px, transparent 2px 6px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,.08) 0 2px, transparent 2px 6px),
    linear-gradient(#2f4313 0%, #1e2c0b 100%);
  background-blend-mode: overlay;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Layout */
main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vw 1rem;
  min-height: calc(100dvh - 120px);
}

.image-frame {
  width: min(92vw, 860px);
  border-radius: 16px;
  overflow: hidden;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  backdrop-filter: saturate(1.2) blur(6px);
  -webkit-backdrop-filter: saturate(1.2) blur(6px);
}

/* Image scales nicely on small/mobile */
.image-frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  /* subtle neon edge glow for hacker vibe when image is dark */
  filter: saturate(1.05);
  mix-blend-mode: normal;
}

/* Footer with frosted glass CTA */
footer {
  padding: 2rem 1rem;
  text-align: center;
  color: rgba(233, 245, 224, 0.92);
}

.product-ad {
  display: inline-block;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  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 {
  font-size: 1.05rem;
  margin: 0 0.5rem 0.25rem;
  letter-spacing: .2px;
  color: #eefaad;
  text-shadow: 0 0 6px rgba(255, 209, 102, 0.6);
}

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

/* CTA pill button inside the ad (neon yellow) */
.product-ad a p {
  display: inline-block;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color: #1a1a1a;
  background: linear-gradient(135deg, var(--yellow), #f2be37);
  box-shadow: 0 6px 14px rgba(255, 209, 102, 0.6);
  transition: transform .2s ease, box-shadow .2s ease;
  isolation: isolate;
}
.product-ad a p:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(255, 209, 102, 0.8);
}
.product-ad a:focus-visible p {
  outline: none;
  box-shadow: var(--focus);
  transform: translateY(-1px);
}

/* Global focus styles for accessibility on interactive elements */
a:focus-visible,
button:focus-visible,
:focus {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 6px;
}

/* Small screens: tighten spacing, keep hero prominent */
@media (min-width: 640px) {
  main { padding: 5vw 2rem; }
  .image-frame { border-radius: 20px; }
  .product-ad h3 { font-size: 1.1rem; }
}

/* Large screens: give hero more breathing room and subtle glow */
@media (min-width: 1024px) {
  main { padding: 6vw 3rem; min-height: calc(100dvh - 140px); }
  .image-frame { width: min(760px, 60vw); }
  footer { padding: 3rem 0; }
}