/* Theme Tokens */
:root {
  --bg: #021a10;
  --bg-2: #041f12;
  --surface: rgba(6, 38, 12, 0.28);
  --surface-2: rgba(6, 38, 12, 0.18);
  --text: #eafff0;
  --muted: #a6f2c6;
  --accent: #00ff7a;
  --accent-2: #2aff9a;
  --border: rgba(0, 255, 140, 0.42);
  --shadow: 0 6px 20px rgba(0,0,0,.45);
  --radius: 12px;
  --focus: 2px solid rgba(0,255,122,0.95);
}

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

html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; }
body {
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  min-height: 100dvh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Layered background: gradient + neon scanlines (pure CSS) */
  background-image:
    linear-gradient(135deg, rgba(0,0,0,.6), rgba(0,0,0,.35)),
    repeating-linear-gradient(to bottom, rgba(0,255,122,.04) 0 2px, transparent 2px 4px);
  background-attachment: fixed;
  background-size: cover;
  overflow-x: hidden;
  scroll-behavior: smooth;
  padding-block: 0;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

/* Layout helpers */
.container {
  width: min(90vw, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid { display: grid; gap: 1rem; }
.card { background: rgba(0,0,0,.28); border: 1px solid rgba(0,255,140,.4); border-radius: var(--radius); padding: .75rem; box-shadow: var(--shadow); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.tag { display:inline-block; padding:.15em .6em; border-radius:999px; font-size:.75rem; background: rgba(0,255,122,.25); border:1px solid rgba(0,255,122,.5); color:#eafff0; }

/* Specific selectors required by page */
html, body, header, nav, main, article, footer, aside { }
.image-frame, .image-frame img { }

/* Header */
header {
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 40;
  margin: 0 auto;
  width: 100%;
  background: rgba(0,0,0,.28);
  border-bottom: 1px solid rgba(0,255,140,.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
header h1 {
  margin: 0 0 .25rem;
  font-size: clamp(1.6rem, 2.6vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: .2px;
  color: var(--text);
  text-shadow: 0 0 8px rgba(0,255,122,.25);
}
header .meta {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.85rem, 0.8vw, 1rem);
}
nav {
  margin-top: .25rem;
}
nav a {
  display: inline-block;
  padding: .4rem .65rem;
  margin-right: .4rem;
  border-radius: 6px;
  border: 1px solid rgba(0,255,140,.5);
  background: rgba(0,255,140,.12);
  color: var(--text);
}
nav a:focus-visible {
  outline: 3px solid rgba(0,255,122,.95);
  outline-offset: 2px;
}
nav a:hover { text-decoration: underline; }

/* Main content / Article glass panel */
main { display: block; }
article {
  background: rgba(6, 38, 12, 0.28);
  border: 1px solid rgba(0,255,140,.42);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin: 1rem 0 2rem;
}
@supports not (backdrop-filter: blur(12px)) {
  article { background: rgba(6,38,12,.48); }
}
.featured-image {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0,255,140,.5);
  margin: 0 0 1rem;
  box-shadow: 0 6px 16px rgba(0,255,140,.25);
}
.featured-image img {
  width: 100%; height: auto; display: block;
}
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0,255,140,.6);
  box-shadow: 0 0 16px rgba(0,255,140,.25);
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.content { padding: 0.25rem 0 0; }

/* Typography (fluid) */
h2 {
  font-size: clamp(1.25rem, 1.4vw + 1rem, 1.95rem);
  color: #e8ffd6;
  margin: 0.75rem 0 0.5rem;
}
h3 { font-size: clamp(1.05rem, 1vw + .8rem, 1.4rem); color: #dcffdb; margin: .75rem 0; }
p { color: #eaffed; margin: .4rem 0 0.9rem; }
blockquote {
  margin: .8rem 0; padding: .6rem 1rem; border-left: 3px solid rgba(0,255,122,.6);
  background: rgba(0,0,0,.22);
  border-radius: 6px;
}
ul { padding-left: 1.2rem; margin: .4rem 0 1rem; }
li { margin: .25rem 0; }

/* Image caption feel (optional small tweak) */
figcaption { font-size: .9rem; color: var(--muted); }

/* Footer / product ad blocks (glass panels) */
footer { padding: 1rem 0 2rem; text-align: center; }
.product-ad,
.sponsored-page {
  display: inline-block;
  padding: .6rem 1rem;
  margin: .25rem;
  background: rgba(2, 20, 12, 0.32);
  border: 1px solid rgba(0,255,140,.42);
  border-radius: 999px;
  color: var(--text);
}
.product-ad a, .sponsored-page a { color: var(--text); text-decoration: none; }

/* CTA elements (buttons) */
.btn, .cta, a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .62em 1.1em;
  border-radius: 999px;
  border: 1px solid rgba(0,255,140,.8);
  background: linear-gradient(#0ffd86, #0bdc60);
  color: #06280e;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(0,255,140,.25);
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover, .cta:hover, a.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}
.btn:focus-visible, .cta:focus-visible, a.btn:focus-visible {
  outline: var(--focus);
  outline-offset: 2px;
}
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(0,255,140,.8);
}
.btn--outline:hover { background: rgba(0,255,140,.08); }

/* Links interaction (underline on focus/hover for accessibility) */
a:focus-visible { text-decoration: underline; }

/* Utility / responsive helpers */
@media (min-width: 720px) {
  .container { padding-inline: 1.25rem; }
  article { padding: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

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