:root {
  /* Palette tokens (lime cyberpunk / cyber yellow) */
  --bg: #0a0f14;
  --bg-2: #0b1418;
  --panel: rgba(255, 255, 255, 0.08);
  --panel-soft: rgba(255, 255, 255, 0.12);
  --text: #eafff5;
  --muted: #b8f5b1;
  --accent: #c7ff00;       /* lime neon */
  --accent-2: #ffd400;     /* cyber yellow */
  --glass-border: rgba(255, 255, 255, 0.28);
  --glass: rgba(255, 255, 255, 0.08);
  --shadow: 0 8px 28px rgba(0,0,0,.28);
  --focus: #ffffff;
  --radius: 14px;
  --grid-gap: 1rem;
  --container-max: clamp(320px, 88vw, 1200px);
}

/* Base / Layout */
html, body {
  height: 100%;
}
* { box-sizing: border-box; }
html, body, header, nav, main, article, aside, footer {
  display: block;
}
html, body {
  margin: 0;
  padding: 0;
  color: var(--text);
  background: 
    radial-gradient(circle at 15% 10%, rgba(198,255,0,.15) 0, transparent 40%),
    linear-gradient(135deg, #0a0f14 0%, #0b1518 60%, #0a0f14 100%),
    repeating-linear-gradient(to bottom, rgba(0,0,0,.0) 0, rgba(0,0,0,.0) 2px, rgba(0,0,0,.04) 2px, rgba(0,0,0,.04) 4px);
  background-blend-mode: normal, normal, overlay;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Typography scale (fluid) */
h1, h2, h3 { margin: 0 0 .5rem; font-weight: 700; letter-spacing: .2px; }
h1 { font-size: clamp(1.75rem, 2.5vw + 1rem, 3.25rem); line-height: 1.08; }
h2 { font-size: clamp(1.25rem, 1.4vw + .8rem, 2rem); line-height: 1.15; }
p { margin: 0 0 1rem; color: rgba(234, 255, 245, .95); }

/* Sections and containers */
.container {
  width: min(100%, var(--container-max));
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid {
  display: grid;
  gap: var(--grid-gap);
}
.header, .main, .footer { padding: 1rem 0; }

/* Glass panels (with backdrop-filter fallback) */
.glass {
  background: var(--panel);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  .glass { background: rgba(255, 255, 255, 0.22); }
}

/* Image frame styling */
.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.image-frame:hover img { transform: scale(1.03); }

/* Content helpers */
.content { color: rgba(234, 255, 245, 0.97); }

/* Product promo blocks (footer) */
.product-ad, .sponsored-page {
  padding: .75rem;
  margin: .5rem 0;
}
.product-ad a, .sponsored-page a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: var(--text);
}
.product-ad { min-width: 0; }
.product-ad p, .sponsored-page p { margin: 0; font-weight: 600; }

footer { padding: 1rem 0 2rem; }

/* Links and actions */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  transition: opacity .2s ease, transform .2s ease;
  outline: none;
}
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
a:hover, a:focus { text-decoration: underline; text-underline-offset: 3px; }

/* Buttons (solid + outline) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .725rem 1.25rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: .2px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn.primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #041e0a;
  text-shadow: 0 1px 0 rgba(255,255,255,.25);
}
.btn.secondary {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--text);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Utility for image caption or tag chips */
.tag {
  display: inline-block;
  padding: .25rem .6rem;
  font-size: .75rem;
  border-radius: 999px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.25);
  color: #eaffc6;
}

/* Layout specifics for the page structure */
header {
  padding: 1.25rem 1rem;
}
header h1 { color: #eaffff; margin-bottom: .25rem; }
header .meta { font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .8rem; color: rgba(234, 255, 245, .9); margin: .25rem 0 0; }

main {
  display: grid;
  place-items: center;
  padding: 1rem 0 2rem;
}
article { max-width: 860px; width: 100%; }

/* Section tweaks for readability on glass panels */
article p, article ul { font-size: clamp(1rem, 0.9rem + 0.4vw, 1.125rem); line-height: 1.6; color: rgba(234,255,245,.95); }
article ul { padding-left: 1.25rem; }
article li { margin: .25rem 0; }

/* Featured image wrapper alignment in article */
.featured-image { margin: 1rem 0 1.25rem; }

/* Responsive helpers */
@media (min-width: 720px) {
  .grid { grid-template-columns: 1fr; }
}
@media (min-width: 1024px) {
  main { padding: 2rem 0 3rem; }
  article { padding: 0 0; }
}

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

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