/* Light reset and mobile-first baseline */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --olive: #3a4a1a;          /* olive solid background */
  --beige: #e8d9b8;          /* beige text */
  --beige-dark: #d9c59b;     /* beige accents */
  --glass: rgba(255,255,255,0.14);       /* frosted glass color */
  --glass-border: rgba(255,255,255,0.28);
  --shadow: 0 8px 24px rgba(0,0,0,.25);
  --neo: 0 0 8px rgba(120,255,200,.6);    /* neon glow hint */
  --focus: #9ff0c9;
}

html, body { height: 100%; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--beige);
  background: var(--olive);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

/* Global typography tweaks for hacker/cyberpunk feel */
h1, h2, h3 { text-shadow: 0 0 6px rgba(0,255,180,.25); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
a { color: inherit; text-decoration: none; }

/* Layout: mobile-first hero container centered */
main {
  display: grid;
  place-items: center;
  padding: 28px 16px;
  flex: 1;
}

/* Frosted glass frame containing the image (hero) */
.image-frame {
  width: min(92vw, 720px);
  border-radius: 16px;
  padding: 12px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px) saturate(1.2);
  -webkit-backdrop-filter: blur(8px) saturate(1.2);
}

.image-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  filter: saturate(1.05);
  /* Subtle cyberpunk tint for mood without reducing accessibility */
  mix-blend-mode: normal;
  outline: 1px solid rgba(255,255,255,.15);
}

/* Footer with a Product Ad card styled as a CTA */
footer {
  text-align: center;
  padding: 20px 16px;
  color: rgba(232, 210, 183, 0.95);
  width: 100%;
}

.product-ad {
  display: inline-block;
  text-align: left;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(235, 232, 220, 0.25);
  border: 1px solid rgba(255,255,255,0.28);
  margin-bottom: 12px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.product-ad h3 {
  font-size: 0.95rem;
  color: #e8d5a8;
  text-shadow: 0 0 6px rgba(0,255,180,.7);
  margin-bottom: 6px;
}

.product-ad a { text-decoration: none; }
.product-ad a p {
  display: inline-block;
  margin: 0;
  padding: 10px 14px;
  border-radius: 999px;
  background: #efe2ce;
  color: #3b3a15;
  font-weight: 600;
  border: 1px solid rgba(0,0,0,.1);
  /* Subtle hover cue via a separate rule to keep CSS small */
}
.product-ad a:focus-visible,
a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

/* Small footer note styling */
footer p { margin-top: 6px; font-size: 0.9rem; opacity: 0.9; }

/* Accessibility: ensure good contrast by tweaking for dark/light preferences */
@media (prefers-color-scheme: dark) {
  :root { --beige: #f2e5c7; }
  .product-ad { background: rgba(30,30,30,.28); border-color: rgba(100,255,200,.25); }
  .product-ad a p { background: rgba(80,60,22,.9); color: #e8e5d0; }
}

/* Responsive adjustments (desktop/tablet) */
@media (min-width: 768px) {
  main { padding: 48px 0; }
  .image-frame { width: min(800px, 78vw); }
  .product-ad { font-size: 0.95rem; }
}
@media (min-width: 1024px) {
  main { align-items: start; padding-top: 60px; }
  .image-frame { width: 720px; padding: 14px; }
}