/* Palette & Theme Tokens */
:root{
  --bg: #0a0f0a;
  --bg-2: #0b1410;
  --text: #eaffde;
  --muted: #a9d7a0;
  --accent: #7fff00;       /* chartreuse */
  --accent-2: #556b2f;     /* olive */
  --glass: rgba(18, 60, 28, 0.34);
  --glass-strong: rgba(18, 60, 28, 0.52);
  --panel: rgba(18, 60, 28, 0.32);
  --panel-border: rgba(127, 255, 0, 0.45);
  --shadow: 0 10px 28px rgba(0,0,0,.28);
}

/* Base & Layout (Mobile-First) */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { color-scheme: dark; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  line-height: 1.5;
  color: var(--text);
  min-height: 100%;
  background-image:
    radial-gradient(circle at 20% -10%, rgba(127,255,0,.28), transparent 28%),
    linear-gradient(135deg, rgba(0,0,0,.22), rgba(0,0,0,.12) 60%, rgba(0,0,0,.28)),
    repeating-linear-gradient(to bottom, rgba(0,0,0,.05) 0 2px, transparent 2px 4px);
  background-blend-mode: overlay, overlay, normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding: 0;
  -webkit-taint-color: transparent;
}

/* Subtle glass panels with fallback */
header, main, article, footer, aside {
  display: block;
}

/* Header & Nav */
header {
  padding: 1rem;
  text-align: center;
  margin: 0 auto;
  max-width: clamp(320px, 92vw, 1100px);
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid rgba(127,255,0,.45);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
header h1 {
  font-size: clamp(1.4rem, 2.5vw + 1rem, 2.4rem);
  line-height: 1.1;
  margin: .25rem 0 .5rem;
}
header .meta {
  color: var(--muted);
  font-size: clamp(0.84rem, 0.5vw + 0.7rem, 0.95rem);
}
header nav { margin-top: .5rem; }

/* Main content container */
.main-wrap, main { padding: 0 1rem; }
main { display: block; }

/* Featured image frame (for consistency with .image-frame) */
.image-frame { width: 100%; max-width: 720px; margin: 1rem auto 0; border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(10, 30, 10, 0.25);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.image-frame img { width: 100%; height: auto; display: block; object-fit: cover; }

/* Article styling (glass panel with fallback) */
article {
  max-width: 760px;
  margin: 1rem auto;
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid rgba(127,255,0,.25);
  background: rgba(16, 38, 22, 0.28);
  box-shadow: 0 10px 28px rgba(0,0,0,.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
@supports not (backdrop-filter: blur(8px)) {
  article { background: rgba(18, 40, 22, 0.6); }
}
h2, h3 { color: #eaffc6; }
p, li { color: #e9ffd9; }
blockquote {
  margin: .75rem 0;
  padding: .5rem 1rem;
  border-left: 3px solid var(--accent);
  color: #eaffd0;
  background: rgba(0,0,0,.14);
}
ol, ul { padding-left: 1.25rem; }

/* Content helper (optional utility) */
.content { max-width: 65ch; }

/* Product ad / footer-like cards (glass panels) */
.product-ad {
  display: block;
  width: min(100%, 520px);
  margin: .4rem auto;
  padding: .75rem;
  border-radius: 12px;
  text-align: center;
  background: rgba(8, 40, 12, 0.28);
  border: 1px solid var(--glass-border, rgba(127,255,0,.45));
  color: var(--text);
  transition: transform .2s ease;
  backdrop-filter: blur(6px);
}
.product-ad:hover { transform: translateY(-2px); }

/* Footer sections as glass blocks */
footer {
  padding: 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
  justify-items: center;
}
footer p { margin: .25rem 0; color: var(--muted); }

/* Link, button, CTA styling with focus-visible */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  background: transparent;
  border: 1px solid rgba(127,255,0,.5);
  padding: .5rem .75rem;
  border-radius: 6px;
  display: inline-block;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
a:hover, button:hover, .btn:hover, .cta:hover {
  background: rgba(127,255,0,.15);
  border-color: rgba(127,255,0,.85);
  text-decoration: underline;
}
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
  border-color: rgba(127,255,0,.9);
}
.btn { padding: .6rem 1rem; border-radius: 8px; }

/* Chips / tags */
.tag { display:inline-block; padding: .25rem .5rem; border-radius: 999px; font-size: .75rem;
  border: 1px solid rgba(127,255,0,.5); color: var(--text); background: rgba(0,0,0,.15);
}

/* Lists styling consistency */
ul, li { margin: 0; padding: 0; }

/* Grid utility (responsive) */
.grid {
  display: grid;
  grid-gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* Glass card variant (optional reuse) */
.card {
  background: rgba(18, 60, 28, 0.28);
  border: 1px solid rgba(127,255,0,.35);
  border-radius: 12px;
  padding: .75rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Helpers for logical properties (future-proof) */
.container {
  width: 100%;
  max-width: clamp(320px, 92vw, 1100px);
  margin-inline: auto;
  padding-inline: 0;
}
@media (min-width: 700px) {
  header { padding: 1.25rem 1rem; }
  main { padding: 1.25rem; }
  footer { grid-template-columns: 1fr 1fr; }
}

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

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