/* Minimal reset and hacker-theme styling (olive + silver crosshatch) */
:root{
  --olive: #6b8e23;
  --olive-deep: #4b6f1a;
  --text: #eaf6e9;
  --bg: #0b0f12;
  --glass: rgba(255,255,255,.18);
  --glass-dark: rgba(0,0,0,.25);
  --border: rgba(255,255,255,.28);
  --shadow: 0 12px 28px rgba(0,0,0,.35);
  --focus: #8af7a1;
}

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

html, body { height: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.5;
  /* silver crosshatch background */
  background-image:
    linear-gradient(45deg, rgba(210,210,210,.22) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(210,210,210,.22) 25%, transparent 25%);
  background-size: 12px 12px;
  background-position: 0 0, 6px 6px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout basics (mobile-first) */
main { display: grid; place-items: center; padding: 2rem 1rem; }

.image-frame {
  width: 100%;
  max-width: 720px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--glass);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.image-frame img {
  display: block;
  width: 100%;
  height: auto;
  /* slight cyberpunk tint for mood (optional) */
  filter: saturate(1.02) contrast(1.05);
}

/* Footer with frosted-glass product ad */
footer {
  padding: 1.5rem 1rem;
  text-align: center;
  color: #e8f7e8;
  background: rgba(0,0,0,.25);
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 1rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.product-ad {
  display: inline-block;
  padding: .25rem;
  border-radius: 10px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.28);
  margin-bottom: .75rem;
}

.product-ad h3 {
  font-size: .95rem;
  margin: 0 0 .25rem;
  color: #d5eec9;
  letter-spacing: .4px;
}

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

.product-ad a p {
  margin: 0;
  padding: .55rem 1rem;
  display: inline-block;
  border-radius: 6px;
  background: linear-gradient(#2b380f, #1a2b0d);
  color: #eaffd8;
  border: 1px solid rgba(255,255,255,.4);
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
}
.product-ad a p:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,0,0,.32);
}
.product-ad a p:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* Ensure readable text over olive tones on small screens */
@media (min-width: 520px) {
  body { color: #eaf6ec; }
  .product-ad h3 { color: #d9f0d7; }
}

/* Subtle focus for keyboard navigation on links/buttons elsewhere */
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Responsive tweaks for larger viewports (still mobile-first) */
@media (min-width: 768px) {
  main { padding: 3rem 2rem; }
  .image-frame { border-radius: 20px; max-width: 820px; }
  footer { padding: 2rem 1rem; }
  .product-ad { transform: translateZ(0); }
}
