:root {
  --bg: #0a0a0f;
  --bg-2: #14121a;
  --bg-3: #0b0a0f;
  --text: #f6f6f6;
  --muted: #bdbdbd;
  --accent: #ffd400;     /* cyber yellow */
  --accent-2: #ff8a00;   /* orange accent */
  --surface: rgba(255,255,255,0.08);
  --surface-2: rgba(255,255,255,0.12);
  --glass-border: rgba(255,255,255,0.28);
  --glass: rgba(255,255,255,0.08);
  --shadow: 0 12px 30px rgba(0,0,0,.40);
  --radius: 12px;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, "Noto Sans", sans-serif;
  background: 
    linear-gradient(135deg, rgba(0,0,0,.92) 0%, rgba(15,11,8,.92) 60%, rgba(10,8,16,.92) 100%),
    radial-gradient(circle at 30% 0%, rgba(255, 214, 0, 0.15), transparent 40%),
    #000;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  isolation: isolate;
  position: relative;
}

html::focus-within, :root:focus { outline: none; }

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  /* Layered: subtle glow + scanlines (pure CSS) */
  background-image:
    linear-gradient(rgba(255, 214, 0, 0.08), rgba(255, 214, 0, 0.08)),
    repeating-linear-gradient(to bottom, rgba(0,0,0,.05) 0 1px, transparent 1px 2px),
    repeating-linear-gradient(to right, rgba(0,0,0,.04) 0 1px, transparent 1px 2px);
  background-size: 100% 2px, 100% 2px, 2px 100%;
  mix-blend-mode: overlay;
  opacity: 0.75;
  filter: saturate(0.95);
}

@media (prefers-reduced-motion: reduce) {
  body::after { display: none; }
}

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

header {
  padding: 2rem 1rem;
  text-align: center;
}

header h1 {
  margin: 0 0 .35rem;
  font-size: clamp(1.6rem, 4vw + 1rem, 2.8rem);
  line-height: 1.15;
  color: var(--text);
  letter-spacing: .2px;
}

header .meta {
  font-size: clamp(0.9rem, 0.8vw, 1rem);
  color: var(--muted);
}

nav {
  margin-top: .75rem;
}

nav a {
  display: inline-block;
  color: var(--text);
  text-decoration: none;
  padding: .25rem .5rem;
  border-radius: 6px;
}
nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

main {
  padding: 1rem 1rem 2rem;
}

article {
  display: block;
  margin: 0 auto;
  max-width: 900px;
}

.image-frame {
  width: min(90%, 720px);
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.28);
  overflow: hidden;
  margin: 1rem auto;
  background: #111;
  box-shadow: 0 8px 28px rgba(0,0,0,.45);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.content {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  padding: 1rem 1rem;
  margin: 0.75rem 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  color: #f7f7f7;
}
@supports not ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
  .content { background: rgba(255,255,255,0.14); }
}

h2, h3 {
  color: #fff;
  margin-top: 1rem;
}
p { color: #e9e9e9; line-height: 1.6; margin: .5rem 0 1rem; }

blockquote {
  margin: 1rem 0;
  padding: .5rem 1rem;
  border-left: 3px solid var(--accent);
  color: #fff;
  opacity: .95;
  background: rgba(0,0,0,.15);
  border-radius: 6px;
}

ul { padding-left: 1.25rem; margin: .5rem 0 1rem; }
li { margin: .25rem 0; color: #e9e9e9; }
li strong { color: #fff; }

.product-ad,
.sponsored-page {
  margin: 1rem 0;
  padding: .75rem;
  border-radius: 12px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: var(--shadow);
}

.product-ad a,
.sponsored-page a {
  color: #fff;
  text-decoration: none;
  display: block;
  padding: .75rem;
  border-radius: 10px;
}
.product-ad a:hover,
.sponsored-page a:hover,
.product-ad a:focus-visible,
.sponsored-page a:focus-visible {
  text-decoration: underline;
  outline: none;
}
@media (min-width: 640px) {
  .product-ad a { padding: .9rem 1rem; }
}

footer {
  padding: 1.5rem;
  text-align: center;
  color: var(--muted);
}

/* Utility classes required by spec */
a,
button,
.btn,
.cta {
  cursor: pointer;
  transition: transform .25s ease, background-color .25s ease, color .25s ease;
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
  border-radius: 4px;
}
.btn,
.cta {
  display: inline-block;
  padding: .6rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.4);
  font-weight: 600;
  background: linear-gradient(135deg, rgba(255,214,0,.95), rgba(255,138,0,.95));
  color: #111;
  text-shadow: none;
}
.btn { background: linear-gradient(135deg, rgba(255,214,0,.95), rgba(255,140,0,.95)); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); opacity: .95; }

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.5);
}
.btn--outline:hover { background: rgba(255,255,255,.08); }

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

.card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.tag {
  display: inline-block;
  padding: .15rem .5rem;
  border-radius: 999px;
  font-size: .75rem;
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,.4);
}

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

/* Respect users who prefer reduced motion globally */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}