/* Palette & Foundations */
:root {
  --bg: #0a0a0f;
  --bg-2: #14161a;
  --text: #f7fbf9;
  --muted: #a6b4c2;
  --accent: #7fff00;      /* chartreuse */
  --accent-2: #ff7a00;    /* sunset orange */
  --glass: rgba(255, 255, 255, 0.08);
  --glass-2: rgba(255, 255, 255, 0.18);
  --border: rgba(255, 255, 255, 0.28);
  --surface: rgba(255, 255, 255, 0.08);
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  --radius: 14px;
  --focus: 0 0 0 3px rgba(127, 255, 0, 0.65);
}

/* Layout & Typography (Mobile-First) */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial; }
body {
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  /* Layered background: gradient + subtle noise/scanlines */
  background-image:
    linear-gradient(135deg, rgba(255, 127, 0, 0.22) 0%, rgba(0,0,0,0) 60%),
    linear-gradient(to bottom, rgba(0,0,0,0.75), rgba(0,0,0,0.92)),
    repeating-linear-gradient(to bottom, rgba(0,255,0,0.04) 0 2px, transparent 2px 4px);
  background-blend-mode: normal, overlay, overlay;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
  min-height: 100dvh;
  overflow-x: hidden;
}

/* Subtle global focus visibility helper */
:focus-visible { outline: none; outline: var(--focus); outline-offset: 2px; }

/* Containers & Utilities */
.container { width: min(1100px, 92%); margin-inline: auto; padding: 1rem 0; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); }

/* Core page sections */
header, nav, main, article, aside, footer { padding: 0; }
header {
  display: grid;
  align-items: start;
  gap: .4rem;
  padding: 1rem;
  margin: 0 auto 1rem;
  max-width: 1100px;
}
header h1 { margin: 0; font-size: clamp(1.75rem, 4vw + 1rem, 3rem); line-height: 1.15; font-weight: 800; }
header .meta { margin: .25rem 0 0; font-size: clamp(0.9rem, 0.6vw + 0.8rem, 1rem); color: var(--muted); }

/* Main content styling */
main { padding: 1rem 0; }
article { margin: 0 auto; max-width: 72ch; padding: 0 1rem; }

/* Image frame with aspect-ratio and glow */
.image-frame {
  margin: .75rem 0 1rem;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #000;
  box-shadow: 0 8px 26px rgba(0,0,0,.5);
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Content wrapper (used by requirement) */
.content { color: var(--text); line-height: 1.6; font-size: clamp(14px, 1.3vw + 12px, 18px); }

/* Text elements & lists (typography hierarchy) */
h2 { font-size: clamp(1.6rem, 2.2vw + 1rem, 2.5rem); margin: 1.1rem 0 0.4rem; }
h3 { font-size: clamp(1.25rem, 1.6vw + 0.9rem, 1.6rem); margin: .9rem 0 .4rem; }
p { margin: 0 0 1rem; }
ol, ul { padding-left: 1.25rem; margin: 0 0 1rem; }
li { margin: .25rem 0; }
blockquote {
  margin: 1rem 0;
  padding: .75rem 1rem;
  border-left: 4px solid var(--accent-2);
  background: rgba(0,0,0,.25);
  border-radius: 6px;
}

/* Links & interactive elements */
a, button, .btn, .cta { color: var(--text); text-decoration: none; }
a { color: var(--accent-2); }
a:hover, a:focus { text-decoration: underline; color: var(--accent); }
button, .btn, .cta {
  font: inherit;
  cursor: pointer;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 999px;
  padding: .68rem 1rem;
  color: #fff;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn { background: rgba(0,0,0,.28); }
.btn:hover { transform: translateY(-1px); background: rgba(0,0,0,.34); }
.btn-outline {
  background: transparent;
  border: 1px solid var(--accent-2);
  color: var(--text);
}
.btn-outline:hover { background: rgba(0,0,0,.25); }
:focus-visible { outline: 3px solid rgba(127,255,0,0.9); outline-offset: 2px; }

/* Glass panels with accessible fallbacks */
.backdrop-glass {
  background: var(--glass);
  border: 1px solid var(--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)) {
  .backdrop-glass {
    background: rgba(255,255,255,0.12);
  }
}

/* Utility chips / tags */
.tag {
  display: inline-block;
  padding: .15rem .5rem;
  font-size: .75rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.25);
  color: var(--text);
}

/* Footer with compact promotional panels */
footer {
  padding: 1rem;
  margin-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.15);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
  align-items: stretch;
  background: rgba(0,0,0,.25);
}
.product-ad, .sponsored-page {
  padding: .75rem;
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-ad a, .sponsored-page a { display: block; width: 100%; height: 100%; color: var(--text); text-decoration: none; }

/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; }
  .backdrop-glass { background: #fff; border: 0; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
} 

/* Section headers (commented for organization) */
 /* Palette & Foundations: tokens defined in :root */
 /* Layout & Typography: mobile-first sizing & typography rules */
 /* Glass Panels: backdrop-filter with graceful fallback */
 /* Core components: header, main, article, footer, image-frame, content */
 /* Interactive states: focus-visible, hover, active, and outline variants */
 /* Utilities: container, grid, card, tag, and print styles */