:root{
  /* Palette: brown base with lime accents */
  --bg: #0f0a07;
  --bg-2: #1a120f;
  --text: #eaf8e7;
  --muted: #a6b8a0;
  --accent: #befe49;       /* lime accent */
  --accent-2: #86ff2a;      /* secondary lime */
  --panel: rgba(18, 14, 12, 0.28);
  --panel-2: rgba(22, 18, 14, 0.34);
  --border: rgba(190, 255, 120, 0.35);
  --shadow: 0 6px 18px rgba(0,0,0,.45);
  --radius: 14px;
}

html, body, header, nav, main, article, footer, aside {}

/* Base resets */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  line-height: 1.5;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-2) 100%);
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-size: clamp(14px, 1.2vw + 10px, 18px);
}

/* Layered background: gradient + subtle noise/scanline (pure CSS) */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
body::before {
  /* subtle crosshatch / noise feel */
  background-image:
    radial-gradient(circle at 20% 0%, rgba(110, 255, 90, 0.04), transparent 35%),
    radial-gradient(circle at 80% 20%, rgba(110, 255, 90, 0.03), transparent 40%);
  background-size: 1200px 1200px, 900px 900px;
  mix-blend-mode: overlay;
  opacity: 0.25;
}
body::after {
  /* fine scanlines for cyber vibe */
  background-image:
    repeating-linear-gradient(to bottom, rgba(0,0,0,0.15) 0 1px, transparent 1px 2px);
  opacity: 0.22;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f3f0;
    --bg-2: #e7e0d9;
    --text: #1a1a1a;
    --muted: #555d4f;
    --accent: #2b7a0b;
    --accent-2: #1e9f3a;
    --panel: rgba(255,255,255,0.72);
    --panel-2: rgba(240,240,240,0.75);
    --border: rgba(0,0,0,0.12);
    --shadow: 0 4px 12px rgba(0,0,0,.15);
  }
  body::before { opacity: 0.15; }
  body::after { opacity: 0.16; }
}

/* Layout helpers (utilities) */
.container {
  width: min(1100px, 90%);
  margin-inline: auto;
  padding: 1rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.card {
  background: rgba(9,9,9,0.25);
  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;
  font-size: .75rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.3);
  color: var(--text);
  background: rgba(0,0,0,.15);
}

/* Header / hero styles */
header {
  padding: 1.25rem 1rem;
}
header h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw + 1rem, 3.2rem);
  line-height: 1.15;
  letter-spacing: .4px;
  color: var(--text);
  text-shadow: 0 0 8px rgba(180, 255, 120, 0.2);
}
header h1::selection { background: rgba(130, 255, 120, 0.25); }

/* Main content + image framing */
main {
  padding: 0 0.5rem 1rem;
}
.image-frame {
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #111;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  display: block;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.02);
  transition: transform 0.6s ease;
}
.image-frame:hover img { transform: scale(1.03); }

/* Glass panels (fallback + backdrop-filter) */
.glass {
  background: rgba(12,9,6,0.28);
  border: 1px solid rgba(190, 255, 120, 0.35);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  .glass { background: rgba(12,9,6,0.68); }
}

/* Links, buttons, CTAs */
a, button, .btn, .cta {
  text-decoration: none;
  color: var(--text);
}
a:focus-visible,
a:focus,
button:focus-visible,
button:focus,
.btn:focus-visible,
.cta:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}
a:hover,
button:hover,
.btn:hover,
.cta:hover {
  text-decoration: underline;
  color: var(--accent-2);
}
.btn {
  display: inline-block;
  padding: .65em 1.05em;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.25);
  background: linear-gradient(#2a220f, #1a140b);
  color: #e9f7d6;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn--outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}
.btn--outline:hover { background: rgba(182,255,110,.15); }
.cta { display:inline-flex; align-items:center; gap:.5rem; }

/* Misc elements styling */
ul, li { margin: 0; padding: 0; list-style: none; }
.product-ad, .sponsored-page {
  display: inline-block;
  margin: .25rem .5rem 0 0;
  padding: .6rem 0.8rem;
}
.product-ad a, .sponsored-page a { color: var(--text); display: inline-flex; align-items: center; gap: .5rem; padding: .25rem .5rem; border-radius: 8px; }
.product-ad a:hover, .sponsored-page a:hover { text-decoration: underline; }

/* Footer layout */
footer {
  padding: 1rem;
}
footer p { margin: .5rem 0 0; color: var(--muted); font-size: .92rem; }

/* Typography tweaks for sections */
h1, h2, h3 { line-height: 1.15; }

/* Color-safe link accents in dark themes */
@media (prefers-color-scheme: dark) {
  a { color: #b9ff80; }
  .btn { border-color: rgba(190,255,120,.5); }
}

/* Accessibility helpers */
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 4px; }

/* Print styles (basic readability) */
@media print {
  body { background: white; color: black; }
  a, button { text-decoration: underline; color: black; }
  .image-frame { border: 1px solid #000; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}