/* 1) Global tokens & base */
:root {
  /* Palette derived from forest green + lime */
  --bg: #0b2a18;
  --bg-2: #0e4a1a;
  --text: #eafff0;
  --muted: #b8e6a6;
  --accent: #9cff4d;
  --accent-2: #7fff00;
  --card: rgba(255, 255, 255, 0.08);
  --card-strong: rgba(255, 255, 255, 0.14);
  --glass-border: rgba(120, 255, 120, 0.45);
  --shadow: 0 8px 24px rgba(0,0,0,.25);
  --radius: 14px;
  --focus: 0 0 0 3px rgba(156, 255, 110, 0.65);
  --link: #c8ff7a;
  --link-underline: rgba(200, 255, 150, 0.9);
}
html, body { height: 100%; }
* { box-sizing: border-box; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial; }
body {
  margin: 0;
  min-height: 100dvh;
  color: var(--text);
  background: radial-gradient(circle at 20% 0%, rgba(124,255,120,.08), transparent 40%),
              linear-gradient(135deg, rgba(9,40,10,.92), rgba(6,14,6,.95) 60%);
  background-color: #0b2a18;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* Layered background: gradient + subtle noise/scanlines (pure CSS) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(135deg, rgba(0,0,0,.0) 0 60%, rgba(0,0,0,.08) 60% 100%),
    repeating-linear-gradient(-45deg, rgba(0,0,0,.05) 0 2px, transparent 2px 4px);
  background-size: 60px 60px, 60px 60px;
  mix-blend-mode: overlay;
  opacity: .25;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 2px 2px;
  mix-blend-mode: overlay;
  opacity: .25;
  filter: contrast(105%);
}
main { position: relative; z-index: 1; }

/* 2) Layout helpers & utilities */
.container {
  max-width: clamp(680px, 90vw, 1120px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid {
  display: grid;
  gap: 1rem;
}
.card {
  background: var(--card);
  border: 1px solid rgba(120,255,120,.35);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}
.tag {
  display: inline-block;
  font-size: .75rem;
  padding: .25em .5em;
  border-radius: 999px;
  background: rgba(124,255,120,.25);
  border: 1px solid rgba(120,255,120,.6);
  color: var(--muted);
}

/* 3) Typography & forms */
h1, h2, h3, h4 { margin: 0.25em 0 0.5em; line-height: 1.15; font-weight: 700; }
p { margin: 0 0 1em; color: #eafff0; }
h1 { font-size: clamp(1.75rem, 4vw, 3rem); letter-spacing: .2px; }
h2 { font-size: clamp(1.25rem, 2.5vw, 1.9rem); color: var(--text); }
h3 { font-size: clamp(1.05rem, 2vw, 1.25rem); color: #baff82; }
ul { margin: .75em 0 1em 1.25em; padding: 0; }
ul li { margin: .25em 0; color: #e9ffd9; }

/* 4) Headers & navigation (glass look) */
header {
  padding: 1.75rem 1rem;
  text-align: center;
  margin: 1rem auto;
  border-radius: var(--radius);
  background: rgba(8, 24, 12, 0.34);
  border: 1px solid rgba(120,255,120,.38);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
header h1 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); margin-bottom: .25rem; }
header .meta { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas; font-size: .9rem; color: var(--muted); }
nav { margin-top: .5rem; }
nav a {
  color: var(--text);
  text-decoration: none;
  padding: .4rem .75rem;
  border-radius: 999px;
  border: 1px solid rgba(120,255,120,.5);
  background: rgba(0,0,0,.15);
}
nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
nav a:focus-visible { outline: none; box-shadow: var(--focus); }

/* 5) Featured image frame */
.image-frame {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  border: 1px solid rgba(80,255,120,.5);
  box-shadow: 0 8px 22px rgba(0,0,0,.25);
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(1.02);
}
.main-hero { display: grid; gap: 1rem; }

/* 6) Main content styling (glass panels) */
article { max-width: clamp(640px, 85vw, 980px); margin: 0 auto; padding: 0 1rem 2rem; }
.article-glass {
  background: rgba(8, 24, 12, 0.28);
  border: 1px solid rgba(120,255,120,.40);
  border-radius: var(--radius);
  padding: 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* 7) Buttons & links (solid + outline variants) */
.btn, .cta {
  display: inline-block;
  padding: .75rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.btn.primary {
  background: var(--accent);
  color: #0a2100;
  border-color: rgba(0,0,0,.0);
}
.btn.primary:hover { transform: translateY(-1px); }
.btn.primary:focus-visible { outline: none; box-shadow: var(--focus); }

.btn.outline {
  background: transparent;
  color: var(--text);
  border-color: rgba(120,255,120,.6);
}
.btn.outline:hover { background: rgba(120,255,120,.12); transform: translateY(-1px); }
.btn.outline:focus-visible { outline: none; box-shadow: var(--focus); }

/* Link styling for focus/hover underline */
a { color: var(--link); text-decoration: none; }
a:focus-visible, a:hover { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--link-underline); }

/* 8) Footer & "ads" panels (glass) */
footer { padding: 2rem 1rem 3rem; }
footer .product-ad,
footer .sponsored-page {
  display: inline-block;
  width: 44%;
  min-width: 240px;
  vertical-align: top;
  margin: .25rem 0.5%;
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(8, 24, 12, 0.28);
  border: 1px solid rgba(120,255,120,.40);
  text-align: center;
  box-shadow: var(--shadow);
}
footer p { text-align: center; color: var(--muted); margin-top: .75rem; }

/* 9) Print styles (readable) */
@media print {
  body { background: #fff; color: #000; }
  header, footer { background: #fff; border: none; box-shadow: none; }
  a, a:visited { color: inherit; text-decoration: underline; }
}
@media (min-width: 860px) {
  /* 10) Desktop niceties: subtle two-column main area if content grows */
  .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
}
