:root {
  /* Palette: green / bright turquoise with strong contrast */
  --bg: #041a0f;
  --bg-2: #062018;
  --surface: rgba(255, 255, 255, 0.04);
  --text: #eafff5;
  --muted: #a6f2d9;
  --accent: #2af5c2;
  --accent-2: #1ee7b6;
  --glass: rgba(8, 240, 170, 0.14);
  --border: rgba(0, 255, 170, 0.35);
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
  --focus: #00ffd1;
  --radius: 12px;
  --gap: 1rem;
  --text-on-glass: #eafff5;
}

/* Base resets & typography */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif; font-size: clamp(14px, 0.8vw + 12px, 16px); line-height: 1.5; }
body {
  margin: 0;
  color: var(--text);
  /* Layered background: gradient + glow + subtle scanlines (pure CSS) */
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 20% 0%, rgba(0, 255, 170, 0.18), transparent 40px),
    linear-gradient(to bottom, #051c12 0%, #041910 60%, #04130b 100%),
    repeating-linear-gradient(to bottom, rgba(0, 255, 170, 0.04) 0 2px, transparent 2px 4px);
  background-size: cover;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout primitives (utility-like) */
.container { width: 100%; max-width: clamp(640px, 86vw, 1100px); margin-inline: auto; padding-inline: 1rem; }
.grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); }

/* Glass panels (frosted) with accessible fallback */
.glass, header, main, footer, .image-frame { background: rgba(8, 240, 170, 0.14); border: 1px solid rgba(0, 255, 170, 0.35); border-radius: 12px; padding: 1rem; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow); }
/* Fallback if backdrop-filter isn't supported: increase opacity for readability */
@supports not (backdrop-filter: blur(12px)) {
  .glass, header, main, footer, .image-frame { background: rgba(8, 240, 170, 0.28); }
}
header, footer { padding: 1rem 1rem; }

/* Core structure styling (targets required selectors) */
html, body, header, nav, main, article, footer, aside { /* no-op block for selector coverage; actual styling below */ }

/* Header (branding / nav) */
header {
  margin: 1rem auto;
  max-width: 1100px;
  display: block;
}
header h1 {
  margin: 0 0 .25rem 0;
  font-size: clamp(1.4rem, 2.2vw + 0.5rem, 2.6rem);
  line-height: 1.08;
  letter-spacing: .2px;
  color: var(--text);
}
header .meta {
  margin: 0;
  font-size: clamp(0.75rem, 0.8vw + 0.6rem, 0.95rem);
  color: var(--muted);
}
nav {
  margin-top: .5rem;
}
nav a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
}
nav a:hover, nav a:focus-visible { text-decoration: underline; outline: none; }

/* Main content & article */
main { padding: 0; }
article {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(2, 6, 12, 0.28);
  border: 1px solid rgba(0, 255, 170, 0.35);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.article h2 {
  margin-top: 0.25rem;
  font-size: clamp(1.25rem, 1.6vw + 1rem, 2rem);
  color: var(--text);
}
.article p { color: var(--text); margin: .75rem 0; }
.article ul { padding-left: 1.25rem; margin: .75rem 0; }
.article li { margin: .25rem 0; }

/* Image framing (requires .image-frame in CSS) */
.image-frame { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; border: 1px solid rgba(0, 255, 170, .35); box-shadow: 0 6px 14px rgba(0,0,0,.25); display: block; }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Featured image fallback container used by HTML's .featured-image wrapper */
.featured-image { width: 100%; border-radius: 12px; overflow: hidden; border: 1px solid rgba(0, 255, 170, .35); box-shadow: 0 6px 14px rgba(0,0,0,.25); }

/* Footer with ad panels */
footer { padding: 1rem; display: block; }
.product-ad, .sponsored-page { margin: .5rem 0; padding: .75rem; border-radius: 12px; text-align: center; }
.product-ad a, .sponsored-page a { color: var(--text-on-glass); text-decoration: none; display: block; padding: .5rem 0; }

/* Links, buttons, and interactive controls */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  outline: none;
}
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}
a:hover { text-decoration: underline; }

/* Button variants (solid and outline) */
.btn {
  display: inline-block;
  padding: .65rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 255, 170, 0.6);
  background: linear-gradient(to bottom, rgba(42, 245, 194, 0.95), rgba(26, 214, 166, 0.95));
  color: #041e12;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.btn:active { transform: translateY(0); }

/* Outline variant for emphasis */
.btn.outline {
  background: rgba(2, 32, 20, 0.15);
  border: 1px solid rgba(0, 255, 170, 0.75);
  color: var(--text);
}
.btn.secondary {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(0, 255, 170, 0.45);
  color: var(--text);
}

/* Utility: tags & badges */
.tag {
  display: inline-block;
  padding: .25rem .6rem;
  font-size: .75rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 170, 0.6);
  background: rgba(0, 255, 170, 0.25);
  color: var(--text);
}

/* Lists & typography helpers */
ul { margin: .75rem 0; padding: 0; list-style: disc inside; color: var(--text); }
li { margin: .25rem 0; }

/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  header, main, footer { background: transparent; box-shadow: none; }
  a, a:visited { color: #000; text-decoration: underline; }
}

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