/* Token palette */
:root {
  /* Void purple base with chartreuse accents */
  --bg: #0a0020;
  --bg-2: #1a0030;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-2: rgba(255, 255, 255, 0.14);
  --text: #eaf2ff;
  --muted: #b6b8d9;
  --accent: #a8ff00;           /* chartreuse */
  --accent-2: #7bff00;
  --border: rgba(168, 255, 0, 0.42);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  --radius: 14px;
  --radius-sm: 10px;
  --focus: 0 0 0 4px rgba(168, 255, 0, 0.6);
}

/* Global resets and layout primitives */
*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, sans-serif; font-size: 16px; color: var(--text); background: transparent; }

body {
  margin: 0;
  min-height: 100vh;
  line-height: 1.5;
  background: linear-gradient(135deg, rgba(8,0,40,0.95) 0%, rgba(18,0,60,0.95) 60%, rgba(8,0,40,0.95) 100%),
              radial-gradient( circle at 20% 0%, rgba(0, 255, 110, 0.10) 0%, transparent 25% ),
              radial-gradient( circle at 80% 60%, rgba(0, 255, 140, 0.05) 0%, transparent 25%);
  background-blend-mode: overlay, normal, normal;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  z-index: 0;
}

/* Subtle layered noise/scanline effect (pure CSS) */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
body::before {
  /* gentle gradient sheen as a background veil */
  background: radial-gradient(circle at 25% 15%, rgba(0, 255, 180, 0.08) 0 8%, transparent 8.1%),
              radial-gradient(circle at 70% 40%, rgba(120, 0, 255, 0.08) 0 8%, transparent 8.1%);
  mix-blend-mode: overlay;
  filter: saturate(110%);
}
body::after {
  /* scanline texture for cyberpunk feel (very light) */
  background: repeating-linear-gradient(to bottom,
              rgba(255,255,255,0.04) 0px,
              rgba(255,255,255,0.04) 2px,
              transparent 2px,
              transparent 4px);
  opacity: 0.25;
  mix-blend-mode: overlay;
}

/* Layout helpers (utility classes) */
.container {
  width: 100%;
  max-width: clamp(720px, 62vw, 1100px);
  padding-inline: 1rem;
  margin-inline: auto;
}

.grid {
  display: grid;
  grid-gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
}
@supports not (backdrop-filter: blur(12px)) {
  .card { background: rgba(255,255,255,0.12); }
}

.tag {
  display: inline-block;
  padding: 0.15em 0.5em;
  border-radius: 999px;
  font-size: 0.75rem;
  line-height: 1;
  color: #041100;
  background: rgba(168,255,0,0.28);
  border: 1px solid rgba(168,255,0,0.65);
}

/* Typography (fluid, accessible) */
h1, h2, h3 {
  line-height: 1.04;
  margin: 0 0 0.5rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}
h1 { font-size: clamp(1.75rem, 2.6vw + 1rem, 3.75rem); }
h2 { font-size: clamp(1.25rem, 1.4vw + 1rem, 2.25rem); }
h3 { font-size: clamp(1rem, 1vw + 0.75rem, 1.5rem); }

p { margin: 0 0 1rem; font-size: clamp(0.95rem, 0.8vw + 0.9rem, 1.15rem); color: var(--text); }

/* Header, nav, main, article, aside, footer styling (glass-friendly) */
header {
  position: relative;
  z-index: 1;
  padding: 1.25rem;
}
header > .inner { max-width: 1100px; margin: 0 auto; width: 100%; padding: 1rem; }

header h1 {
  font-size: clamp(1.6rem, 2.4vw + 1rem, 3.4rem);
  margin: 0 0 0.25rem;
  letter-spacing: 0.2px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
header .meta {
  color: var(--muted);
  font-size: clamp(0.8rem, 0.8vw + 0.7rem, 0.95rem);
  margin-bottom: 0.25rem;
}
nav {
  margin-top: 0.25rem;
}
nav a {
  color: var(--text);
  text-decoration: none;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.25);
}
nav a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Main content areas */
main { padding: 1rem 0 2rem; position: relative; z-index: 1; }
.article {
  display: grid;
  gap: 1rem;
}
.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
  transform: scale(1.0);
  transition: transform 0.3s ease;
}
.image-frame:hover img { transform: scale(1.03); }

/* Content area (glassy panels) */
.content {
  display: block;
  padding: 1rem;
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  .content { background: rgba(255,255,255,0.14); }
}

/* HTML structure alignment */
ul { margin: 0 0 1rem 1.25rem; padding: 0; }
li { margin: .25rem 0; }

/* Product ad area (footer) */
footer { padding: 1rem 0 2rem; }
.product-ad, .sponsored-page {
  display: inline-block;
  width: auto;
  margin: 0.25rem;
}
footer p { text-align: center; color: var(--muted); font-size: 0.9rem; }

/* Links and buttons (interactive states) */
a, button, .btn, .cta {
  font-family: inherit;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border-radius: 999px;
  display: inline-block;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 0;
  box-shadow: var(--focus);
  outline-offset: 0;
}
.btn {
  padding: 0.65rem 1.05rem;
  border-radius: 999px;
  border: 1px solid rgba(168,255,0,0.6);
  background: rgba(0,0,0,0.25);
  color: #f9fff1;
}
.btn--solid {
  background: linear-gradient(135deg, #9aff57 0%, #7fff00 100%);
  color: #062200;
  border: 1px solid rgba(0,0,0,0.15);
}
.btn--solid:hover { transform: translateY(-1px); }
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(168,255,0,0.9);
}
.btn--outline:hover { background: rgba(168,255,0,0.08); transform: translateY(-0.5px); }

/* Image and image-related utilities on various selectors */
.aside { padding: 1rem; }

/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  header, nav, footer { display: none; }
  main { display: block; padding: 1in; }
  article { page-break-after: auto; }
}

/* Accessibility & motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .image-frame img { transform: none !important; }
}
 
/* Responsive layout helpers (grid utilities) */
@media (min-width: 680px) {
  .article { grid-template-columns: 1fr; gap: 1.25rem; }
}
@media (min-width: 980px) {
  .article {
    display: grid;
    grid-template-columns: 2fr 1fr;
    align-items: start;
  }
}
