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

:root {
  --olive: #6b8f3f;
  --olive-dark: #4b6f2a;
  --bg: #0a1f0a;
  --card: rgba(9, 28, 9, 0.7);
  --text: #e6f8e0;
  --text-dim: #cdebd1;
  --accent: #8cff8a;
  --neon: #2cff72;
  --shadow: 0 8px 24px rgba(0,0,0,.25);
}

html, body { height: 100%; }

/* Light reset on page start */
html { font-size: 100%; }
body {
  margin: 0;
  padding: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.5;
  /* Green paper texture (soft, olive-tinted) */
  background-image:
    radial-gradient(circle at 10px 10px, rgba(255,255,255,.05) 1px, transparent 2px),
    radial-gradient(circle at 60px 40px, rgba(0,0,0,.08) 1px, transparent 2px),
    radial-gradient(circle at 120px 0px, rgba(0,0,0,.04) 1px, transparent 2px);
  background-size: 40px 40px, 40px 40px, 40px 40px;
  background-blend-mode: overlay;
  position: relative;
}

/* Frosted glass hero around the image */
.image-frame {
  width: min(92vw, 720px);
  border-radius: 14px;
  padding: 1rem;
  margin: 2rem auto;
  background: rgba(10, 32, 10, 0.65);
  border: 1px solid rgba(120, 210, 120, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 0 40px rgba(120, 210, 120, 0.15),
              0 6px 24px rgba(0,0,0,.25);
}

/* Ensure the image fits nicely with olive glow */
.image-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(40, 120, 40, 0.6);
  background: #0a1410;
  box-shadow: 0 0 12px rgba(40, 200, 120, 0.5);
}

main {
  min-height: calc(100vh - 180px);
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 1.5rem;
  /* subtle page separation for hacker vibe */
  isolation: isolate;
}

/* Footer + product ad */
footer {
  margin-top: 1rem;
  padding: 1.25rem;
  text-align: center;
  color: var(--text-dim);
  background: rgba(2, 12, 6, 0.6);
  border-top: 1px solid rgba(120, 210, 120, 0.5);
}

.product-ad {
  display: inline-block;
  text-align: left;
  margin: 0 auto 0.75rem;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  background: rgba(12, 28, 12, 0.65);
  border: 1px solid rgba(100, 180, 100, 0.8);
  min-width: 280px;
}

.product-ad h3 {
  font-size: 1rem;
  margin: 0 0 0.5rem 0;
  color: #d5ffd8;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  text-shadow: 0 0 6px rgba(120, 255, 180, 0.6);
}

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

.product-ad a p {
  display: inline-block;
  padding: 0.55rem 0.95rem;
  border-radius: 6px;
  background: linear-gradient(#1a3e0f, #0f5a0f);
  color: #eaffd8;
  border: 1px solid rgba(100,180,100,0.95);
  box-shadow: 0 0 8px rgba(60, 210, 100, 0.6);
  transition: transform 0.15s ease;
}
.product-ad a p:hover { transform: translateY(-1px); }

/* Focus styles for accessibility on focus-visible */
:focus-visible {
  outline: 3px solid #4affac;
  outline-offset: 2px;
  border-radius: 4px;
}
a:focus-visible, button:focus-visible {
  outline: 3px solid #4affac;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Light color-scheme hint for users preferring light mode */
@media (prefers-color-scheme: light) {
  :root {
    --text: #143d1e;
    --text-dim: #2b5d2b;
  }
  body {
    background-color: #eefbe8;
    color: #163419;
  }
  .image-frame {
    background: rgba(230, 255, 230, 0.75);
    border: 1px solid rgba(60, 120, 60, 0.8);
    box-shadow: inset 0 0 40px rgba(120, 210, 120, 0.25);
  }
  .image-frame img {
    border: 1px solid rgba(60, 120, 60, 0.8);
  }
  .product-ad {
    background: rgba(50, 110, 50, 0.75);
    border: 1px solid rgba(120, 210, 120, 0.9);
  }
  .product-ad a p {
    background: linear-gradient(#298039, #1b7a2a);
  }
}

/* Responsive tweaks - mobile-first: stack nicely, scale as width grows */
@media (min-width: 768px) {
  main { gap: 1rem; }
  .image-frame { padding: 1.25rem; }
}
