:root {
  /* Palette tokens derived from olive base with neon pink accents */
  --bg: #2c3f0a;
  --bg-2: #0a1f04;
  --text: #eafff0;
  --muted: #a8d8a8;
  --accent: #ff2ab3;
  --accent-2: #e6009b;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-strong: rgba(255, 255, 255, 0.14);
  --border: rgba(255, 255, 255, 0.28);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  --radius: 14px;
  --focus: 3px solid rgba(255, 255, 255, 0.95);
  --focus-offset: 2px;
  --c-h1: clamp(1.75rem, 0.8rem + 4vw, 4rem);
  --c-h2: clamp(1.25rem, 0.6rem + 2vw, 2.5rem);
}

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

html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif; font-size: clamp(14px, 1.2vw, 16px); }
body {
  margin: 0;
  color: var(--text);
  min-height: 100dvh;
  line-height: 1.6;
  background:
    linear-gradient(135deg, #2c3f0a 0%, #0a1f04 60%, #0a0f08 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px),
    repeating-linear-gradient(to right, rgba(0,0,0,.04) 0 1px, transparent 1px 2px);
  background-blend-mode: normal, overlay, overlay;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  /* Subtle LED glow vibe via blur on edges if supported */
  text-rendering: optimizeLegibility;
}

header,
nav,
main,
article,
aside,
section,
footer {
  display: block;
}

/* Layout helpers */
.container {
  max-width: min(1100px, 92vw);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid { display: grid; gap: 1rem; }
.card { background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* Glass/frosted panels with fallback */
.glass {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
.no-backdrop {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}

/* Header / Hero styling */
header {
  padding: 1rem;
  margin: 0 auto 1rem;
}
.header-inner {
  display: grid;
  gap: 0.75rem;
  align-items: center;
}
h1 {
  font-size: var(--c-h1);
  line-height: 1.05;
  margin: 0;
  color: var(--text);
  letter-spacing: .2px;
}
.meta {
  color: var(--muted);
  font-size: clamp(0.9rem, 0.8vw + 0.7rem, 1.05rem);
  margin: 0;
}
nav { display: block; margin-top: 0.25rem; }

/* Image blocks */
.featured-image { border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.25); box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.featured-image img { width: 100%; height: auto; display: block; }

/* Image frame helper (for any .image-frame usage) */
.image-frame { aspect-ratio: 16 / 9; width: 100%; display: block; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.25); box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Content area */
.content { color: var(--text); }

/* Typography helpers for headings and body */
h2 { font-size: var(--c-h2); margin: .75rem 0 0.5rem; color: var(--text); }
p { margin: 0 0 1rem; color: rgba(234, 248, 230, 0.95); }
ul { margin: 0 0 1rem 1.25rem; padding: 0; }
li { margin: .25rem 0; }

/* Primary vs secondary CTAs */
a,
button,
.btn,
.cta {
  color: #fff;
  text-decoration: none;
  display: inline-block;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.4);
  padding: .75rem 1.15rem;
  background: linear-gradient(135deg, rgba(0,0,0,.25), rgba(0,0,0,.15));
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
  outline: none;
}
a:hover, button:hover, .btn:hover, .cta:hover {
  text-decoration: underline;
  transform: translateY(-1px);
}
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.cta:focus-visible {
  outline: var(--focus);
  outline-offset: var(--focus-offset);
}
a.primary,
.btn.primary,
.cta.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: 1px solid rgba(255,255,255,.6);
  color: #fff;
}
a.secondary,
.btn.secondary {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.32);
  color: #fff;
}
a.primary:hover,
.btn.primary:hover,
.cta.primary:hover {
  filter: brightness(1.05);
}
a.secondary:hover,
.btn.secondary:hover {
  background: rgba(255,255,255,.14);
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; transform: none !important; }
}

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

/* Footer / supplementary sections */
footer { padding: 1rem; margin-top: 1rem; border-top: 1px solid rgba(255,255,255,.15); }
.product-ad,
.sponsored-page { display: block; text-align: center; padding: .75rem; border-radius: var(--radius); }
.product-ad { background: rgba(0,0,0,.25); }
.sponsored-page { background: rgba(0,0,0,.18); }

/* Inline small helpers for polish */
.tag {
  display:inline-block;
  padding:.15rem .5rem;
  border-radius:999px;
  font-size:.75rem;
  border:1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.15);
  color:#fff;
}

/* Form elements (if present) */
input,
textarea,
select {
  width: 100%;
  padding: .65rem .75rem;
  border-radius: .5rem;
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(0,0,0,.25);
  color: var(--text);
  outline: none;
}
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: var(--focus);
  outline-offset: var(--focus-offset);
}
::placeholder { color: rgba(255,255,255,.6); }

/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; }
  header, main, footer { background: transparent; color: #000; }
}
