/* Reset and base */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  line-height: 1.65;
  color: #e6eaf2;
  min-height: 100%;
  /* Lime sunset gradient background */
  background: linear-gradient(135deg, #a8f36d 0%, #f9d35f 28%, #ff8a3d 65%, #2b2b2b 100%);
  background-attachment: fixed;
}

/* Frosted glass utility (reusable) */
.glass {
  background: rgba(18, 20, 28, 0.60);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  padding: 1rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}

/* Header hero */
header {
  text-align: center;
  padding: 2rem 1rem;
  color: #f8fbff;
  background: rgba(8, 8, 12, 0.55); /* frosted feel on top of gradient */
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  margin: 0 auto;
  width: 100%;
  max-width: 1100px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
header h1 {
  margin: 0 0 .25rem;
  font-size: 1.8rem;
  letter-spacing: .4px;
  text-shadow: 0 0 14px rgba(0, 255, 170, .6);
}
@media (min-width: 768px) {
  header { padding: 3rem 2rem; }
  header h1 { font-size: 2.4rem; }
}
.meta {
  color: #cbd5e1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .92rem;
  margin: 0;
}

/* Main content */
main { padding: 1rem; }
main > article {
  max-width: 860px;
  margin: 1rem auto;
  padding: 1rem;
  background: rgba(10,12,20,0.55);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 14px;
  color: #eaf0f7;
  line-height: 1.68;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.featured-image { margin: 1rem auto; text-align: center; }
.featured-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.25);
  display: block;
  max-height: 420px;
  object-fit: cover;
}

/* Footer and ad */
footer { padding: 1rem; text-align: center; color: #dbe4ee; }
.product-ad {
  margin: 2rem auto;
  padding: 1rem;
  width: min(860px, 92%);
  background: rgba(5,7,12,.45);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  display: grid;
  gap: .5rem;
  justify-items: center;
}
.product-ad h3 { margin: 0; font-size: 1.1rem; }

/* CTA button styling for the ad link (accessible) */
.product-ad a {
  text-decoration: none;
  display: inline-block;
  padding: .6rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #0f1117 0%, #1b1f28 100%);
  color: #eaf3ff;
  border: 1px solid rgba(255,255,255,.4);
}
.product-ad a:hover { filter: brightness(1.05); }
.product-ad a:focus-visible { outline: 3px solid #9bf3ff; outline-offset: 3px; }

/* Global focus for links and interactive elements */
a:focus-visible {
  outline: 3px solid #9bf3ff;
  outline-offset: 2px;
}
:focus { outline: 2px solid transparent; }

/* Small helpers for readability on light gradient mix */
main > article, .product-ad {
  /* ensure legibility against the gradient with glassy panels */
  color: #eaf0f7;
}

/* Accessibility: reduce motion if user prefers */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Responsive tweaks for very small screens */
@media (max-width: 420px) {
  header { padding: 1.6rem 1rem; }
  .product-ad { padding: .75rem; }
}