/* Base & Tokens */
:root {
  --bg: #041f11;
  --bg-2: #0a2f1a;
  --text: #eafff3;
  --muted: #a8c8a1;
  --accent: #f8f07a;       /* pastel yellow */
  --accent-2: #e8f089;
  --green: #4bd36b;
  --green-2: #0a7a3a;
  --surface: rgba(12, 36, 20, 0.18); /* glass panel tint (0.18) */
  --surface-strong: rgba(12, 36, 20, 0.28);
  --border: rgba(255, 255, 255, 0.25);
  --focus: #9cff5b;
  --shadow: 0 8px 28px rgba(0,0,0,.25);
  --ring: 0 0 0 3px rgba(156, 255, 91, .6);
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  height: 100%;
  background: layered-gradient;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Layered background: gradient + pastel glow + subtle scanline/noise (pure CSS) */
html {
  background: 
    radial-gradient(circle at 20% 0%, rgba(204, 243, 128, 0.18), transparent 40%),
    radial-gradient(circle at 90% 20%, rgba(176, 235, 140, 0.14), transparent 40%),
    linear-gradient(135deg, #052012 0%, #0b2510 60%, #0a2b14 100%);
}
html::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  /* faint growl texture + scanlines for a cyberpunk feel */
  background:
    repeating-linear-gradient(to bottom, rgba(0,0,0,0.04) 0 1px, transparent 1px 2px),
    linear-gradient(to bottom right, rgba(0,0,0,0.0), rgba(0,0,0,0.06) 60%, rgba(0,0,0,0.0) 100%);
  mix-blend-mode: overlay;
  opacity: 0.6;
  z-index: -1;
}
@supports not (backdrop-filter: blur(8px)) {
  html::before { opacity: 0.45; }
}

/* Layout helpers */
.container {
  width: min(100%, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid { display: grid; gap: 1rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 1rem; box-shadow: var(--shadow); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

/* Section structure styling */
header, nav, main, article, aside, footer {
  display: block;
}
header {
  text-align: center;
  padding: 2rem 1rem;
}
header h1 {
  font-size: clamp(2rem, 2.6vw + 1rem, 3.75rem);
  line-height: 1.05;
  margin: 0 0 .25rem;
  letter-spacing: .2px;
}
header .meta {
  color: var(--muted);
  font-size: clamp(0.9rem, 0.6vw + 0.8rem, 1.05rem);
}
nav {
  margin-top: .75rem;
}
nav a {
  color: #e9ffd8;
  text-decoration: none;
  padding: .35rem .6rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(0,0,0,.18);
}
nav a:hover, nav a:focus-visible {
  text-decoration: underline;
  outline: none;
}
main { padding: 1rem 0 2rem; }
article { max-width: min(900px, 92%); margin: 0 auto; }

.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 8px 22px rgba(0,0,0,.28);
  background: #0b1111;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.image-frame:hover img { transform: scale(1.03); }

/* Featured image wrapper (also supports .image-frame styling elsewhere) */
.featured-image { margin: 1rem 0 1rem; }

/* Typography & content blocks */
 p, li { color: #eafff0; line-height: 1.6; }
 h2 { font-size: clamp(1.6rem, 1.2rem + 2vw, 2.75rem); margin:.75rem 0 0.5rem; }
 h3 { font-size: clamp(1.15rem, 0.9rem + 1.5vw, 1.6rem); margin: .75rem 0; }
 ul { margin: .5rem 0 1rem 1.25rem; padding: 0; }
 li { margin: .25rem 0; }

/* Content container (glass panels) */
.content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  color: var(--text);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
@supports not (backdrop-filter: blur(10px)) {
  .content { background: rgba(12, 28, 18, 0.28); }
}
.aside { /* subtle placeholder for future content */ }

/* Product ad / footer panels (glass treatment) */
.product-ad, .sponsored-page {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .75rem;
  text-align: center;
  margin: .5rem 0;
  box-shadow: var(--shadow);
}
.product-ad a, .sponsored-page a { color: var(--text); text-decoration: none; display: block; }
.product-ad:hover, .sponsored-page:hover { transform: translateY(-1px); transition: transform .2s ease; }

/* Link & button styling (interactive states) */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  outline: none;
}
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  outline-offset: 2px;
}
a:hover { text-decoration: underline; }

/* Buttons: solid and outline variants */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .65rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(0,0,0,.25);
  color: #eafff0;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease;
  font-size: 0.95rem;
}
.btn:hover { transform: translateY(-1px); background: rgba(255,255,255,.22); }
.btn:active { transform: translateY(0); }
.btn.outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,.6);
  color: var(--text);
}
.cta {
  background: linear-gradient(135deg, rgba(150, 255, 150, 0.95) 0%, rgba(0, 255, 120, 0.8) 100%);
  border: 1px solid rgba(0,0,0,.25);
  color: #062b0f;
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .btn { transition: none; }
}

/* Lists & decorative tags */
ul.tag, li.tag, .tag { /* helper utility for future chips */ }
.tag {
  display:inline-block;
  padding:.15rem .5rem;
  border-radius:999px;
  font-size:.85rem;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28);
  color: #eafff0;
}

/* Form elements (if present) */
input, textarea, select, button {
  font: inherit;
  color: inherit;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 6px;
  padding: .5rem .75rem;
}
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-color: rgba(156, 255, 91, 0.9);
}

/* Print styles (basic readability) */
@media print {
  html, body { background: white; color: black; }
  nav, .product-ad, .sponsored-page { display: none; }
  .container { width: auto; padding: 0; }
}

/* Responsive helpers */
@media (min-width: 640px) {
  main { padding: 1.5rem 0; }
}
@media (min-width: 900px) {
  .grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .image-frame { border-radius: 14px; }
}