/* Core tokens */
:root {
  --bg: #02140a;
  --bg-2: #04160f;
  --text: #eafff0;
  --muted: #a6f5be;
  --forest: #1f6b3c;
  --forest-2: #0f4710;
  --accent: #39ff14;
  --accent-2: #2b9e4a;
  --glass: rgba(6, 24, 14, 0.22);
  --glass-2: rgba(0, 0, 0, 0.25);
  --border: rgba(57, 255, 114, 0.40);
  --radius: 12px;
  --shadow: 0 6px 28px rgba(0,0,0,.35);
}

/* Global reset */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-size: 16px; }
body {
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  line-height: 1.5;
  background:
    /* Scanline / noise layer (subtle) */
    repeating-linear-gradient(to bottom, rgba(0,0,0,.05) 0 2px, transparent 2px 4px),
    /* Neon glow gradient overlay */
    radial-gradient(circle at 20% 0%, rgba(57,255,110,.15), transparent 25%),
    linear-gradient(135deg, rgba(2, 12, 6, .60), rgba(0,0,0,.60) 60%, rgba(4,24,12,.70)),
    #04140f;
  background-blend-mode: overlay, overlay, normal;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

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

/* Header/navigation */ 
header {
  padding: 1rem 0.75rem;
  text-align: center;
  position: relative;
}
header h1 {
  font-size: clamp(1.4rem, 2vw + 1rem, 2.4rem);
  margin: .25rem 0 .5rem;
  letter-spacing: .5px;
}
header .meta { font-size: .75rem; color: rgba(234,255,240,.75); margin-top: .25rem; }

/* Glassy surfaces (fallback if backdrop-filter unavailable) */
header,
main,
footer,
article,
aside {
  background: var(--glass);
  border: 1px solid var(--glass-2);
  border-radius: var(--radius);
  padding: .75rem;
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  header, main, footer, article, aside { background: rgba(6, 24, 14, 0.60); }
}

/* Main content */
main { padding: 1rem 0; display: grid; place-items: start; }
article { padding: 1rem; }

/* Featured image frame */
.image-frame {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(57, 255, 114, .40);
  background: rgba(0,0,0,.25);
  box-shadow: 0 8px 26px rgba(0,0,0,.5);
  aspect-ratio: 16 / 9;
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Content helpers */
.content { padding: 0.5rem 0; color: var(--text); }

/* Lists and typography */
ul { padding-left: 1.25rem; }
li { margin: .25rem 0; }

/* Utility & components */
.container.grid { display: grid; gap: 1rem; }
.card {
  background: rgba(6, 24, 14, .28);
  border: 1px solid rgba(57, 255, 114, .40);
  border-radius: 12px;
  padding: .75rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.28);
  backdrop-filter: blur(8px);
}
.tag {
  display: inline-block;
  padding: .15rem .5rem;
  border-radius: 999px;
  font-size: .75rem;
  color: #041a0a;
  background: linear-gradient(180deg, rgba(57,255,114,.85), rgba(18,120,50,.85));
  border: 1px solid rgba(0,0,0,.15);
}
.product-ad {
  display: inline-block;
  padding: .6rem .9rem;
  border-radius: 10px;
  background: rgba(6, 24, 14, .28);
  border: 1px solid rgba(57,255,114,.40);
  text-align: center;
  text-decoration: none;
  color: var(--text);
}
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  display: inline-block;
  border-radius: 999px;
  border: 0;
  padding: .55rem .95rem;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}
a:hover, button:hover, .btn:hover, .cta:hover { transform: translateY(-1px); }
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.btn {
  background: linear-gradient(#2cff7a, #18b852);
  color: #06240c;
  padding: .6rem 1rem;
  border-radius: 999px;
  font-weight: 600;
}
.btn.outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(57,255,114,.6);
}
.cta { font-weight: 600; }

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

/* Layout utilities for responsive grids */
.grid { display: grid; gap: 1rem; }
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  header { padding: 1.25rem 0.75rem; }
  article { padding: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Footer layout */
footer { margin-top: auto; padding: 1rem 0.75rem; display: grid; grid-template-columns: 1fr; gap: .75rem; justify-items: center; }
@media (min-width: 768px) {
  footer { grid-template-columns: repeat(3, 1fr); align-items: center; }
}
footer p { text-align: center; margin: .25rem 0; color: rgba(234,255,240,.85); }

/* Print-friendly tweaks (basic readability) */
@media print {
  body { background: white; color: #000; }
  header, main, article, footer { background: transparent; border: none; box-shadow: none; }
}
