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

:root {
  --parchment: #f5ecd3;      /* white parchment base */
  --parchment-dark: #e6d8b8;
  --text: #1b1b1b;
  --lime: #9aff5a;            /* hacker lime accent */
  --lime-dark: #68d300;
  --glass: rgba(255, 255, 255, 0.18);
  --glass-border: rgba(255, 255, 255, 0.55);
  --shadow: 0 8px 24px rgba(0,0,0,.18);
  --focus: 3px solid #c6ff66;
}

html, body { height: 100%; }
html { font-size: 16px; }
body {
  background: var(--parchment);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  text-rendering: optimizeLegibility;
}

/* Layout: mobile-first, content centered */
main {
  flex: 1 0 auto;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.image-frame {
  width: min(100%, 860px);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.22); /* frosted glass backdrop */
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px) saturate(1.2);
  -webkit-backdrop-filter: blur(6px) saturate(1.2);
  box-shadow: var(--shadow);
  margin: 1rem 0;
}

.image-frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* Footer with a neon-hacker vibe */
footer {
  padding: 1.25rem;
  text-align: center;
  color: #4b4b4b;
  border-top: 1px solid rgba(0,0,0,.06);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.product-ad {
  margin: 0.5rem auto 0;
  padding: 0.75rem;
  display: inline-block;
  text-align: center;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.50);
  border-radius: 12px;
}

.product-ad h3 {
  font-size: 0.95rem;
  color: #2b2b2b;
  margin-bottom: 0.25rem;
  letter-spacing: .2px;
}

.product-ad a {
  display: inline-block;
  padding: 0.65rem 1.05rem;
  border-radius: 8px;
  text-decoration: none;
  color: #062a00;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(166,255,140,0.98), rgba(120,255,60,0.98));
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-ad a:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}

.product-ad a:focus {
  outline: var(--focus);
  outline-offset: 2px;
}

.product-ad a > p { margin: 0; }

/* Footer copy style */
footer p {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: #6e6e6e;
}

/* Accessibility: ensure focus visibility for keyboard users */
:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Subtle responsive tweaks */
@media (min-width: 640px) {
  .image-frame { border-radius: 20px; }
  .product-ad { padding: 1rem; }
}

@media (min-width: 900px) {
  body {
    /* faint cyberpunk vignette on larger screens */
    background: linear-gradient(135deg, rgba(0,0,0,0.04), rgba(0,0,0,0.02));
  }
  main { padding: 2rem; }
  .image-frame { width: 88%; }
  .product-ad { padding: 1.25rem; }
}