:root{
  --bg: #21060a;
  --bg-2: #2a0b0f;
  --text: #e7ffea;
  --muted: #b7f56a;
  --accent: #a8ff5e;
  --accent-2: #7fff3a;
}

html, body, header, nav, main, article, footer, aside { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  line-height: 1.6;
  font-size: clamp(14px, 2.2vw, 18px);
  background: 
    linear-gradient(to bottom right, rgba(0,0,0,0.25), rgba(0,0,0,0.75)),
    repeating-linear-gradient(to bottom, rgba(0,255,0,0.04) 0 2px, transparent 2px 4px),
    linear-gradient(to bottom right, #2a000f 0%, #0b0000 100%);
  background-blend-mode: overlay, overlay, normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Glass panel with fallback */
.glass {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  padding: 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
  .glass { background: rgba(255,255,255,0.18); }
}

a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.6em 1em;
  display: inline-block;
  cursor: pointer;
  background: rgba(0,0,0,0.25);
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
a:hover, button:hover, .btn:hover, .cta:hover { transform: translateY(-1px); }
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }

.btn, .cta {
  background: rgba(0, 0, 0, 0.25);
  border-color: rgba(255,255,255,0.4);
}
.btn.primary {
  background: rgba(168, 255, 94, 0.25);
  border-color: rgba(168, 255, 94, 0.6);
  color: #eaffea;
}
.btn.ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: var(--text);
}
.cta {
  background: rgba(0,0,0,0.25);
  border-color: rgba(255,255,255,0.4);
}
.cta.primary {
  background: rgba(0, 255, 136, 0.25);
  border-color: rgba(0, 255, 136, 0.6);
  color: #eaffea;
}

/* Layout helpers */
.container {
  width: 100%;
  padding-inline: 1rem;
  margin-inline: auto;
  max-width: clamp(320px, 92vw, 1100px);
}
.grid {
  display: grid;
  gap: 1rem;
}
.card {
  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 20px rgba(0,0,0,0.25);
}
.tag {
  display: inline-block;
  padding: 0.15em 0.5em;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(0,0,0,0.25);
  color: #eaffea;
  border: 1px solid rgba(255,255,255,0.25);
}

/* Image frame styling */
.image-frame {
  aspect-ratio: 16/9;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 8px 28px rgba(0,0,0,0.4);
  background: #000;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  image-rendering: auto;
  filter: saturate(1.05);
  transition: transform 0.3s ease;
}
.image-frame:hover img { transform: scale(1.02); }

/* Content regions */
.content { /* optional placeholder for extended pages */ }

/* Sectioned areas (these selectors exist in HTML) */
header, nav, main, article, aside, footer {
  display: block;
}
header {
  padding: 1rem 0;
}
header h1 {
  font-size: clamp(1.6rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 0.25rem;
  color: var(--text);
}
header .meta {
  color: var(--muted);
  font-size: clamp(0.8rem, 1.6vw, 1rem);
}

/* Hero area (top of content) uses glass panels for emphasis when possible */
main {
  padding: 1rem 0 2rem;
}
.featured-image { margin: 0 0 1rem; }

.product-ad, .sponsored-page {
  display: block;
  text-align: center;
  margin: 0.5rem 0;
}
.product-ad a, .sponsored-page a { display: block; padding: 0.75rem 1rem; border-radius: 8px; }
.product-ad { background: rgba(0,0,0,0.25); border: 1px solid rgba(255,255,255,0.25); }
.product-ad p, .sponsored-page p { margin: 0; font-size: 0.95rem; }
footer { padding: 1rem 0; }

/* Lists and typography tweaks for readability and accessibility */
ul { padding-left: 1.25rem; margin: 0.5rem 0; }
li { margin: 0.25rem 0; }

/* Print styles (basic readability) */
@media print {
  body { background: white; color: #000; }
  a { text-decoration: underline; color: inherit; }
}
 
/* Responsive tweaks */
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
@media (min-width: 1024px) {
  .container { padding-inline: 2rem; }
  article { display: block; }
}