/* Base tokens: charcoal + olive cyberpunk palette */
:root{
  --bg: #0b1116;
  --bg-2: #141a20;
  --surface: rgba(20,26,22,0.72);
  --text: #e8f4d8;
  --muted: #a6b8a0;
  --olive: #8db600;
  --olive-2: #6b9a1a;
  --accent: #a3d468;
  --accent-2: #5a8f24;
  --border: rgba(140,180,60,0.5);
  --glass-border: rgba(140,180,60,0.36);
  --shadow: rgba(0,0,0,0.5);
  --glow: 0 6px 18px rgba(0,0,0,.35);
  --radius: 12px;
}

/* Layered, future-cyber background (gradient + scanlines + subtle noise) */
html, body {
  height: 100%;
}
html {
  background: #000;
}
body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  font-size: clamp(14px, 2.0vw, 18px);
  line-height: 1.5;
  background:
    /* main gradient layer (charcoal base) */
    linear-gradient(135deg, rgba(10,12,14,.98) 0%, rgba(12,16,20,.98) 60%, rgba(14,18,22,.98) 100%),
    /* olive glow accents in background */
    radial-gradient(circle at 20% 10%, rgba(141,198,58,.15), transparent 28%),
    /* subtle scanlines */
    repeating-linear-gradient(to bottom, rgba(0,0,0,.04) 0 2px, transparent 2px 4px);
  background-blend-mode: normal, overlay, overlay;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Layout helpers */
.container {
  width: 100%;
  max-width: clamp(320px, 88vw, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}

.grid {
  display: grid;
  gap: 1rem;
}
.card {
  background: rgba(10,12,14,0.55);
  border: 1px solid rgba(140,180,60,0.4);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--glow);
}

/* Glass panel (frosted glass) with fallback */
.glass {
  background: rgba(15, 21, 26, 0.22);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
@supports not (backdrop-filter: blur(12px)) {
  .glass {
    background: rgba(15, 21, 26, 0.75);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* Structural selectors required by the page */
html, body, header, nav, main, article, footer, aside {
  /* ensure consistent stacking and spacing behavior */
  box-sizing: border-box;
}
*, *::before, *::after { box-sizing: inherit; }

/* Header styling */
header {
  padding: 1rem 0;
}
header h1 {
  font-size: clamp(1.25rem, 5vw, 2rem);
  line-height: 1.15;
  margin: 0 0 .25rem;
  letter-spacing: .2px;
}
header .meta {
  color: var(--muted);
  font-size: clamp(0.8rem, 2.5vw, 0.95rem);
  margin: 0;
}
nav {
  margin-top: .5rem;
}
nav a {
  color: var(--text);
  text-decoration: none;
  padding: .25rem .5rem;
  border-radius: 6px;
  border: 1px solid rgba(140,180,60,0.4);
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
nav a:hover { background: rgba(141,198,58,0.18); text-decoration: underline; }
nav a:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 2px;
  background: rgba(141,198,58,0.22);
  text-decoration: underline;
}

/* Main content and article styling */
main {
  padding: 1rem 0 2rem;
}
article {
  display: block;
}
.featured-image {
  margin: .5rem 0 1rem;
}
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(140,180,60,.45);
  background: #0b0f12;
  box-shadow: 0 6px 18px rgba(0,0,0,.4), inset 0 0 0 1px rgba(0,0,0,.15);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.95);
}
h2 {
  font-size: clamp(1.1rem, 3.5vw, 1.4rem);
  margin: .75rem 0 .5rem;
  color: #eefbd0;
}
p, li {
  color: #eaf7d9;
}
blockquote {
  border-left: 3px solid var(--olive);
  padding-left: .75rem;
  margin: .75rem 0;
  color: #e3f0d8;
  font-style: italic;
  background: rgba(141,198,58,0.08);
  border-radius: 6px;
}
ol, ul {
  padding-left: 1.25rem;
  color: #eaf7d9;
}
ul { list-style: disc; }
ol { list-style: decimal; }

/* Content helper for potential .content class (not required by HTML) */
.content { color: var(--text); }

/* Product ad / footer glass panels */
footer {
  padding: 1rem 0;
  margin-top: 1rem;
}
.product-ad, .sponsored-page {
  display: block;
  width: 100%;
}
.product-ad a, .sponsored-page a {
  display: block;
  text-align: center;
  text-decoration: none;
  color: var(--text);
}
.product-ad {
  margin-bottom: .75rem;
}
.sponsored-page { margin-bottom: .75rem; }

/* Glass panels in footer */
.product-ad, .sponsored-page {
  padding: .75rem;
}
.product-ad a, .sponsored-page a {
  padding: .75rem;
}
.product-ad, .sponsored-page { 
  background: rgba(14,20,22,0.45);
  border: 1px solid rgba(140,180,60,0.4);
  border-radius: 12px;
  transition: transform .2s ease, background .2s ease;
}
.product-ad:hover, .sponsored-page:hover { transform: translateY(-1px); background: rgba(14,20,22,0.55); }

/* Link and button styles (interactive states) */
a, button, .btn, .cta {
  font-family: inherit;
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(140,180,60,.5);
  background: rgba(16,22,28,.6);
  padding: .55rem . Nine?;
/* Note: fix invalid token from placeholder; replace with proper sizes below */
}
}

/* Corrected button rules (compact and production-ready) */
a, button, .btn, .cta {
  font-family: inherit;
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(140,180,60,.5);
  background: rgba(16,22,28,.6);
  padding: .5rem 1rem;
  border-radius: 6px;
  display: inline-block;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
a.btn, button.btn, .cta {
  text-shadow: 0 1px 0 rgba(0,0,0,.2);
}
a:hover, button:hover, .btn:hover, .cta:hover {
  background: rgba(16,22,28,.8);
  border-color: rgba(140,180,60,.8);
  text-decoration: underline;
}
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(141,198,58,.25);
}

/* Primary vs outline variants (compact helpers) */
.btn--solid {
  background: linear-gradient(135deg, rgba(121,170,45,.95), rgba(140,180,60,.95));
  border: none;
  color: #0e1400;
}
.btn--outline {
  background: transparent;
  border: 1px solid rgba(140,180,60,.7);
  color: var(--text);
}
.btn + .btn { margin-left: .5rem; }

/* Tag utility */
.tag {
  display: inline-block;
  padding: .25rem .5rem;
  border-radius: 999px;
  font-size: .75rem;
  color: #102a0a;
  background: linear-gradient(135deg, rgba(141,198,58,.95), rgba(120,170,40,.95));
  border: 1px solid rgba(120,170,40,.9);
}

/* Image frame adjustments for article media if used elsewhere */
.image-frame {
  margin: .5rem 0 1rem;
}
.image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(140,180,60,.5);
  box-shadow: 0 6px 16px rgba(0,0,0,.4);
}

/* Print styles: basic readability */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; }
}
