/* Reset and base styles */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
:root {
  --bg: #0a0a1a;
  --fg: #e6eaff;
  --muted: #cbd5e1;
  --magenta: #ff00ff;
  --magenta2: #e400ff;
  --glass: rgba(255,255,255,.08);
}
html, body { margin: 0; padding: 0; }

/* Indigo grid paper background with a hacker vibe */
body {
  color: var(--fg);
  background-color: var(--bg);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: center;
}

/* Frosted glass emphasis on header, hero look */
header {
  padding: 3rem 1rem;
  text-align: center;
  background: rgba(15,0,40,.6);
  border-bottom: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 10;
}
header h1 {
  font-size: clamp(1.8rem, 4vw + .5rem, 3.6rem);
  color: var(--magenta);
  margin: .25rem 0 .5rem;
  text-shadow: 0 0 8px rgba(255,0,255,.7);
  letter-spacing: .5px;
}
header .meta {
  color: #e8eafc;
  opacity: .95;
  font-size: .92rem;
}

/* Main content layout */
main { padding: 1rem; }
article {
  max-width: 860px;
  margin: 0 auto;
  padding: 1.5rem;
  border-radius: 14px;
  background: rgba(2,6,25,.42);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #f5f8ff;
}
.featured-image { margin: 1rem 0 1.25rem; border-radius: 12px; overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,.4); }
.featured-image img { width: 100%; height: auto; display: block; }

/* Paragraph rhythm inside article */
p { margin: .75rem 0; }

/* Footer and CTA styling */
footer { padding: 1.5rem; text-align: center; color: #cbd5e1; }
.product-ad {
  display: inline-block;
  padding: .75rem 1rem;
  border-radius: 12px;
  background: rgba(255,0,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  margin-bottom: .75rem;
}
.product-ad h3 {
  margin: 0 0 .25rem;
  font-size: 1rem;
  color: #fff;
}
.product-ad a {
  display: inline-block;
  text-decoration: none;
  background: var(--magenta);
  color: #fff;
  padding: .5rem 1rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.5);
  transition: transform .2s ease, background .2s ease;
}
.product-ad a:hover { transform: translateY(-1px); background: var(--magenta2); }
.product-ad a:focus-visible { outline: 3px solid #59ffa6; outline-offset: 2px; }

/* Focus styles for accessibility on interactive elements */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--magenta);
  outline-offset: 2px;
  border-radius: 4px;
}
a, button, input { color: inherit; text-decoration: none; }

/* Responsive, mobile-first tweaks */
@media (min-width: 768px) {
  main { padding: 2rem 1.25rem; }
  article { padding: 2rem; }
  header { padding: 4rem 1rem; }
  header h1 { font-size: clamp(2.5rem, 3vw + 1rem, 4rem); }
}
@media (min-width: 1024px) {
  article { padding: 2.5rem; }
  .product-ad { margin-top: .5rem; }
}