:root {
  /* Palette tokens derived from glowstick green + crimson accents */
  --bg: #050a05;
  --bg-2: #0b120f;
  --text: #eafff5;
  --muted: #b6e8c9;
  --accent: #39ff14;      /* glowstick green
  --accent-2: #e6002e;     /* crimson */
  --glass: rgba(255, 255, 255, 0.08);
  --glass-strong: rgba(255, 255, 255, 0.14);
  --border: rgba(255, 255, 255, 0.25);
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.42);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --text-emphasis: 0 0 8px rgba(57, 255, 20, 0.6);
  --focus: 2px solid var(--accent-2);
}

/* Section: Global & Background */
html, body { height: 100%; }
* { box-sizing: border-box; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
body {
  margin: 0;
  color: var(--text);
  background:
    /* subtle glow scatter and scanlines (CSS-only) */
    repeating-linear-gradient(to bottom,
      rgba(0,0,0,0.04) 0px, rgba(0,0,0,0.04) 1px, transparent 1px, transparent 2px),
    radial-gradient(circle at 20% 10%, rgba(57,255,20,0.14) 0%, transparent 40%),
    radial-gradient(circle at 85% 0%, rgba(230,0,46,0.12) 0%, transparent 40%),
    linear-gradient(135deg, rgba(2,6,4,0.9) 0%, rgba(0,0,0,0.95) 100%);
  background-color: var(--bg);
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Section: Typography & Layout primitives */
.container { width: 100%; max-width: clamp(320px, 92vw, 1100px); margin-inline: auto; padding: 0 1rem; }
.grid { display: grid; gap: 1rem; }
.card { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.25); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); }
.tag { display: inline-block; padding: .25em .6em; border-radius: 999px; font-size: .75rem; background: rgba(57,255,20,0.15); color: #dfffdf; border: 1px solid rgba(57,255,20,0.5); }

/* Section: Core layout elements in HTML (styling targets) */
html, body, header, nav, main, article, footer, aside { /* reset scaffolding defaults for predictable rendering */ }
header { text-align: center; padding: 1.25rem 1rem 0.75rem; }
header h1 { font-size: clamp(1.75rem, 4vw + 0.25rem, 3.5rem); line-height: 1.04; margin: 0.25rem 0 0.25rem; color: var(--text); letter-spacing: .2px; font-weight: 700; }
header .meta { color: var(--muted); font-size: 0.92rem; margin-top: .25rem; }
nav { margin-top: .25rem; }
nav a { color: var(--accent-2); text-decoration: none; padding: .25rem .5rem; border-radius: 6px; border: 1px solid rgba(230,230,230,.0); }
nav a:hover { text-decoration: underline; }
main { padding: 0.75rem 1rem 2rem; display: block; }

/* Section: Glass panels (fallback included) */
article {
  margin: 1rem auto;
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--text);
}
@supports not (backdrop-filter: blur(12px)) {
  article { background: rgba(255,255,255,0.16); }
}
.image-frame { display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; border: 1px solid rgba(255,255,255,.25); margin: .5rem 0 1rem; }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(1.02); }
.content { padding: 0; }

/* Section: Lists & content types */
ul, ol { margin: 0 0 0.75rem 1.25rem; padding: 0; }
li { margin: .25rem 0; }
/* Links & focus visibility */
a, button, .btn, .cta { font-family: inherit; }
a { color: var(--accent-2); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; border-radius: 4px; }

/* Section: Buttons & CTAs */
.btn, .cta, button {
  display: inline-block;
  padding: .75rem 1.1rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(0,0,0,0.2);
  color: #fff;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.btn { background: linear-gradient(135deg, rgba(0,170,0,1) 0%, rgba(0,120,0,1) 100%); color: #eafff5; border: 1px solid rgba(255,255,255,.25); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); opacity: 0.95; }
.btn.secondary, .cta {
  background: rgba(255,255,255,0.08);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.4);
}
.btn:focus-visible, .cta:focus-visible {
  outline: var(--focus);
  outline-offset: 2px;
}

/* Section: Utilities & layout helpers */
.container { padding: 0 1rem; margin-inline: auto; }
.grid { display: grid; gap: 1rem; }

/* Section: Typography scale (responsive) */
p { margin: 0 0 1rem; }
h2 { font-size: clamp(1.25rem, 2.5vw + 0.75rem, 2rem); margin: 1rem 0 .5rem; color: var(--text); }

/* Section: Image framing & accents */
.featured-image { margin: 0 0 1rem; border-radius: 12px; overflow: hidden; }

/* Section: Page footer / ads (glass-like blocks) */
.product-ad { margin: 0.5rem 0; padding: .6rem 0; border-radius: var(--radius-sm); text-align: center; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.25); }
.product-ad a { display: inline-block; padding: .6rem 1rem; border-radius: 999px; background: rgba(0,0,0,0.25); color: #fff; text-decoration: none; }
.footer { padding: 1rem; text-align: center; }
.sponsored-page { margin-top: .5rem; padding: .6rem 0; border-radius: var(--radius-sm); background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.25); }
footer p { margin: .5rem 0 0; color: var(--muted); }

/* Section: Responsiveness & motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  header { padding: 1.75rem 1rem 0.75rem; }
  article { padding: 1.25rem; }
  .container { padding: 0 0.75rem; }
}
@media print {
  body { background: white; color: #000; }
  a { text-decoration: underline; }
}

/* Section: Print-safe adjustments (minimal) */
@page { size: auto; margin: 1cm; }