:root {
  --bg: #0b1410;
  --bg-2: #0f2b1a;
  --text: #e8f7e8;
  --muted: #b7d8b0;
  --accent: #ff1e9e;
  --accent-2: #7bd389;
  --glass: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.28);
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  --radius: 12px;
}

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

html, body {
  height: 100%;
  color: var(--text);
  background: linear-gradient(135deg, rgba(11,20,13,.92) 0%, rgba(15, 40, 28, .92) 60%, rgba(8, 14, 10, .92) 100%), #000;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layered background: subtle noise & scanlines (pure CSS) */
html::before, body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
html::before {
  /* subtle neon glow grid */
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.04) 1px, transparent 1px),
    radial-gradient(circle at 1px 1px, rgba(255,0,140,.04) 1px, transparent 1px),
    linear-gradient(135deg, rgba(0,0,0,.0) 0, rgba(0,0,0,.0) 50%, rgba(0,0,0,.08) 50%, rgba(0,0,0,.0) 100%);
  background-size: 4px 4px, 4px 4px, 100% 4px;
  mix-blend-mode: overlay;
  opacity: 0.25;
}
body::before {
  /* scanlines */
  background-image: repeating-linear-gradient(
      to bottom,
      rgba(0,0,0,.0) 0,
      rgba(0,0,0,.0) 2px,
      rgba(0,0,0,.08) 2px,
      rgba(0,0,0,.08) 4px
    );
  opacity: 0.25;
  mix-blend-mode: overlay;
}

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

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

.card {
  background: rgba(10, 15, 12, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text);
}

.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.15);
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
  margin: 0 auto;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  image-rendering: crisp-edges;
  filter: saturate(1.05);
}

/* Base typography */
html { font-size: 100%; }
body {
  line-height: 1.5;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: var(--text);
  margin: 0;
}
h1, h2, h3, h4, h5, h6 { color: var(--text); line-height: 1.15; margin: .75rem 0 0.5rem; }
p { margin: 0 0 1rem; }
ul { margin: .5rem 0 1rem 1.25rem; padding: 0; }
li { margin: .25rem 0; }

/* Glass panels (fallback included) */
.glass {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 6px 24px rgba(0,0,0,.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text);
}
.no-backdrop { background: rgba(0,0,0,0.25); border: 1px solid rgba(255,255,255,.25); }

/* Header, Nav, Main, Article, Aside, Footer styles */
header {
  padding: 1.75rem 1rem;
  text-align: center;
  position: relative;
  z-index: 1;
}
header > h1 {
  font-size: clamp(1.5rem, 1.2vw + 1.2rem, 2.75rem);
  margin: 0 0 .25rem;
  line-height: 1.08;
}
header .meta {
  font-size: clamp(0.85rem, 0.4vw + 0.8rem, 1.05rem);
  color: var(--muted);
}
nav {
  margin-top: .75rem;
}
nav a {
  color: var(--accent);
  text-decoration: none;
  padding: .25rem .5rem;
  border-radius: 6px;
}
nav a:hover, nav a:focus { text-decoration: underline; outline: none; }

/* Main column layout */
main { padding: 1rem 0 2rem; }
article { padding: 0 0.25rem; }

/* Content container for article text (fluid typography) */
.content { max-width: 70ch; margin: 0 auto; padding: 0 0.25rem; }

/* Hero / featured image section wrapper compatibility */
.featured-image { padding: 0.25rem 0 0; }

/* Content helpers */
.tag {
  display: inline-block;
  padding: .15rem .6rem;
  font-size: .75rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(0,0,0,.15);
  color: var(--text);
}

/* Product/ad sections in footer as glass panels */
footer {
  padding: 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  align-items: stretch;
  border-top: 1px solid rgba(255,255,255,.15);
  background: linear-gradient(to bottom, rgba(0,0,0,.25), rgba(0,0,0,.15) 60%, rgba(0,0,0,.25) 100%);
}
.product-ad, .sponsored-page {
  display: block; text-align: center;
  text-decoration: none;
}
.product-ad a, .sponsored-page a { color: inherit; text-decoration: none; display: block; height: 100%; }
.product-ad { padding: 1rem; }
.sponsored-page { padding: 1rem; }

/* Interaction styling for CTAs (buttons/links) */
.btn, .cta, button {
  font: inherit;
  padding: .75rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: linear-gradient(135deg, rgba(255,0,150,.95), rgba(255,0,150,.75));
  color: #fff;
  cursor: pointer;
  display: inline-block;
  transition: transform .15s ease, box-shadow .2s ease;
}
.btn:hover, .cta:hover, button:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(0,0,0,.25); }
.btn:active, .cta:active, button:active { transform: translateY(0); }
.btn:focus-visible, .cta:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border: none;
}
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.5);
}
.btn--outline:hover { background: rgba(255,255,255,.06); }

/* Link visibility on focus/hover */
a:focus-visible, a:hover { text-decoration: underline; }

/* Image frame used for other images if present */
.image-frame--fallback {
  width: 100%; height: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: rgba(0,0,0,.15);
}

/* Print styles for basic readability */
@media print {
  body { color: #000; background: #fff; }
  header, nav, footer { display: block; }
  .image-frame { page-break-inside: avoid; }
  a { color: #000; text-decoration: underline; }
}

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