:root {
  /* Palette inspired by chartreuse dots + galaxy purple */
  --bg: #0a0a12;
  --bg-2: #121522;
  --text: #f5f7ff;
  --muted: #b7b3cf;
  --accent: #ccff00;       /* chartreuse */
  --accent-2: #7d5cff;     /* galaxy purple */
  --glass: rgba(255, 255, 255, 0.08);
  --glass-2: rgba(255, 255, 255, 0.14);
  --glass-border: rgba(255, 255, 255, 0.25);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  --radius: 14px;
  --radius-sm: 10px;
  --focus: 2px solid #ffffff;
}

html, body {
  height: 100%;
}

html, body, header, nav, main, article, aside, footer {
  box-sizing: border-box;
}

/* Layered, responsive background: gradient + chartreuse dot field + scanlines */
html, body {
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: 
    radial-gradient(circle at 25px 25px, rgba(204,255,0,.10) 2px, transparent 2px) 0 0/40px 40px,
    radial-gradient(circle at 60px 110px, rgba(125,92,255,.12) 2px, transparent 2px) 0 0/40px 40px,
    linear-gradient(135deg, #0a0a12 0%, #120b1b 60%, #0a0a12 100%);
  background-attachment: fixed;
  background-blend-mode: overlay;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  isolation: isolate;
  position: relative;
}
@media (prefers-reduced-motion: reduce) {
  html, body { background-attachment: scroll; }
}
/* Scanline overlay for subtle noise feel */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.03) 0 1px, transparent 1px 2px);
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0.5;
}

/* Layout helpers */
.container {
  width: min(92%, 1200px);
  margin-inline: auto;
  padding: 1rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 1rem;
}
.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.image-frame {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  background: #000;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.image-frame:hover img {
  transform: scale(1.03);
}
.content {
  padding: 0.75rem 0 0;
}
.tag {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: .04em;
  background: rgba(204,255,0,0.15);
  border: 1px solid rgba(204,255,0,0.35);
  color: var(--text);
}
.product-ad {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  margin: 0.25rem;
  background: rgba(124, 0, 255, 0.18);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--text);
  text-decoration: none;
}
a, button, .btn, .cta {
  text-decoration: none;
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(204,255,0,.5);
  outline-offset: 2px;
}
a:hover, a:focus-visible {
  text-decoration: underline;
}
header, main, footer, aside {
  display: block;
}
nav a {
  display: inline-block;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.15);
}
nav a:hover {
  background: rgba(255,255,255,.15);
  text-decoration: none;
}
h1, h2, h3, h4 {
  margin: 0.25rem 0;
  line-height: 1.25;
}
h1 {
  font-size: clamp(1.8rem, 0.8rem + 2.5vw, 3.4rem);
  letter-spacing: .02em;
}
h2 {
  font-size: clamp(1.25rem, 0.8vw + 1.6rem, 2.25rem);
}
h3 {
  font-size: clamp(1.05rem, 0.6vw + 1.2rem, 1.4rem);
}
p {
  font-size: clamp(0.95rem, 0.4vw + 0.95rem, 1.1rem);
  line-height: 1.5;
  color: rgba(245,247,255,.92);
}
ul {
  margin: 0.5rem 0 0.75rem 1.25rem;
}
li {
  margin: 0.25rem 0;
}
header {
  margin: 1rem auto;
  padding: 1rem 1rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  max-width: clamp(320px, 90vw, 1100px);
}
header h1 { color: #fff; }
header .meta { color: var(--muted); font-size: .9rem; margin-top: .25rem; }
main {
  padding: 1rem 0 2rem;
}
.featured-image {
  margin: 0.5rem 0 1rem;
}
@media (min-width: 720px) {
  .container { padding: 0; }
}
footer {
  padding: 1rem;
}
footer .product-ad, footer .sponsored-page {
  display: inline-block;
}
footer p {
  margin: 0.5rem 0 0;
  font-size: .9rem;
  color: var(--muted);
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
@media print {
  html, body { background: #fff; color: #000; }
  body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  header, nav, main, article, footer { page-break-inside: avoid; }
  a, button { color: #000; text-decoration: underline; }
}
.btn {
  display: inline-block;
  padding: .75rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  background: linear-gradient(135deg, rgba(204,255,0,.9) 0%, rgba(125,92,255,.9) 100%);
  color: #0b1200;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(255,255,255,.6); }
.btn.outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.5);
}
.cta { display:inline-flex; align-items:center; gap:.5rem; }

/* Accessible defaults for links and inline controls on glass backdrop */
a, button, .btn, .cta { scroll-margin-top: 6px; }

/* Accessibility: high-contrast text over glass when needed */
@supports color: srgb {
  body { color-scheme: dark light; }
}
