/* Base tokens */
:root{
  --bg: #1a1d21;
  --bg-2: #0e1116;
  --surface: rgba(12, 22, 14, 0.38);
  --surface-2: rgba(14, 28, 16, 0.42);
  --text: #e8f7e4;
  --muted: #a6b5a0;
  --accent: #9ac84a; /* olive */
  --accent-2: #6b8f2f;
  --card: rgba(12, 24, 14, 0.34);
  --border: rgba(255, 255, 255, 0.28);
  --shadow: 0 8px 28px rgba(0,0,0,.25);
  --focus: 0 0 0 3px rgba(154, 200, 74, .6);
}

/* Reset & base */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans"; }
body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(135deg, var(--bg), #0f141a 60%, var(--bg-2));
  min-height: 100vh;
  line-height: 1.55;
  position: relative;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  /* layered: plasma-like glow + subtle scanlines/noise (pure CSS) */
  background-image:
    radial-gradient(circle at 20% 15%, rgba(140, 255, 120, .08), transparent 28%),
    radial-gradient(circle at 70% 0%, rgba(60, 120, 0, .07), transparent 32%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-blend-mode: screen, overlay, overlay;
  opacity: .25;
  pointer-events: none;
  z-index: 0;
  filter: saturate(1.1);
}
:where(*){ scrolling-margin: 1px; }

/* Layout utilities */
.container {
  max-width: clamp(320px, 92vw, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem;
  box-shadow: var(--shadow);
}
.tag {
  display: inline-block;
  padding: .15em .5em;
  font-size: .75rem;
  border-radius: 999px;
  background: rgba(154,200,74,.25);
  border: 1px solid rgba(154,200,74,.5);
  color: var(--text);
}

/* Sections & surfaces */
header, main, footer, aside, article {
  /* Glassy surfaces where appropriate; individual elements add their own specifics */
}
header {
  padding: .9rem 0;
  margin: 1rem auto;
  border-radius: 12px;
  background: rgba(12, 18, 12, .38);
  border: 1px solid rgba(110, 180, 110, .35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  max-width: clamp(320px, 92vw, 1100px);
  z-index: 1;
}
header h1 {
  font-size: clamp(1.6rem, 2.6vw + 1rem, 2.75rem);
  line-height: 1.12;
  margin: 0 0 .25rem;
  letter-spacing: .2px;
}
header .meta {
  color: var(--muted);
  font-size: .9rem;
  margin: 0 0 .25rem;
}
nav {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
nav a {
  color: var(--text);
  text-decoration: none;
  padding: .25rem .5rem;
  border-radius: 6px;
  border: 1px solid rgba(154,200,74,.5);
  background: rgba(154,200,74,.15);
}
main {
  padding: 1rem 0 2rem;
}
article {
  background: rgba(12,24,16,.38);
  border: 1px solid rgba(110,180,110,.25);
  border-radius: 12px;
  padding: 1rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.image-frame, .image-frame img {
  display: block;
}
.image-frame {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  background: #000;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover;
}
.featured-image {
  margin: .75rem 0;
  display: block;
  border-radius: 12px;
  overflow: hidden;
}
.content { padding: 1rem; }

/* Typography & content structure */
h2 { color: #eaffd6; margin: .5rem 0 0.25rem; }
h3 { color: #eaffd6; margin: .75rem 0 0.25rem; }
ul { padding-left: 1.25rem; margin: .5rem 0; }
blockquote {
  margin: .5rem 0; padding: .5rem 1rem;
  border-left: 3px solid var(--accent);
  background: rgba(0,0,0,.15);
  border-radius: 6px;
}
p { margin: .5rem 0 1rem; }

/* Ad & footer blocks */
.product-ad {
  display: grid;
  grid-template-columns: 1fr;
  gap: .5rem;
  padding: .75rem;
  border-radius: 12px;
  background: rgba(15, 26, 16, .32);
  border: 1px solid rgba(88,132,60,.5);
}
.product-ad a { display: block; text-align: center; padding: .4rem; border-radius: 6px; border: 1px solid rgba(255,255,255,.25); text-decoration: none; color: var(--text); background: rgba(133,209,110,.15); }
footer {
  padding: 1rem 0;
  color: var(--muted);
  text-align: center;
}
.sponsored-page a {
  display: block; padding: .4rem; border-radius: 6px;
  background: rgba(20,20,20,.3);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--text); text-decoration: none;
}
a, button, .btn, .cta { color: var(--text); text-decoration: none; }

/* Interactive controls */
a:hover, a:focus-visible { text-decoration: underline; outline: none; }
.btn {
  display:inline-block;
  padding:.6em 1em;
  border-radius:8px;
  border:1px solid rgba(154,200,74,.95);
  background: linear-gradient(#9ac84a, #6f9a2a);
  color:#041200;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(0,0,0,.25); }
.cta {
  background: transparent;
  padding:.6em 1em;
  border:1px solid rgba(154,200,74,.95);
  border-radius:8px;
  color: var(--text);
  cursor: pointer;
}
.cta:hover { background: rgba(154,200,74,.12); text-decoration: underline; }

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  html, * { animation: none !important; transition: none !important; }
}

/* Print */
@media print {
  body { background: white; color: black; }
  a { text-decoration: underline; }
  header, main, footer { background: transparent; box-shadow: none; border: none; }
}