/* Base & Palette (tokenized) */
:root{
  --bg: #0b001a;
  --bg-2: #0b0411;
  --text: #eaf6ff;
  --muted: #a9b8cd;
  --accent: #7bdfff;
  --accent-2: #ff4bd6;
  --panel: rgba(255,255,255,.14);
  --panel-fallback: rgba(255,255,255,.25);
  --shadow: 0 8px 20px rgba(0,0,0,.25);
  --radius: 12px;
  --focus: 3px solid rgba(123,255,255,.95);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
html { color-scheme: dark; }
html, body { margin: 0; padding: 0; }

/* Layered background: gradient + subtle noise/scanlines (pure CSS) */
body {
  min-height: 100%;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Helvetica Neue";
  color: var(--text);
  background: transparent;
  position: relative;
  line-height: 1.55;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 5%, rgba(255,0,170,.25) 0 40%, transparent 40%),
    radial-gradient(circle at 85% 25%, rgba(0,180,255,.25) 0 40%, transparent 40%),
    linear-gradient(135deg, rgba(6,0,25,.95), rgba(6,0,25,.75) 60%, rgba(6,0,25,.95));
  background-blend-mode: screen;
  z-index: 0;
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 100% 2px, 2px 100%;
  mix-blend-mode: overlay;
  opacity: .6;
  z-index: 0;
  pointer-events: none;
  /* subtle parallax feel without heavy motion */
  transform: translateZ(0);
}

/* Layout primitives */
.container { width: 100%; max-width: clamp(720px, 88vw, 1100px); margin-inline: auto; padding-inline: 1rem; }
.grid { display: grid; gap: 1rem; }

/* Glass panels (with fallback) */
.card, footer, header, .content, .image-frame {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  .card, header, footer, .content, .image-frame { background: var(--panel-fallback); }
}
.image-frame { overflow: hidden; border: 1px solid rgba(255,255,255,.25); border-radius: 12px; }

/* Structural selectors (styled as requested) */
html, body, header, nav, main, article, footer, aside { }
.image-frame, .image-frame img { }
.content { }

/* Header / Hero */
header { padding: 2rem 1rem; text-align: center; z-index: 1; position: relative; }
header h1 { font-size: clamp(1.8rem, 4vw + 0.6rem, 3rem); line-height: 1.15; margin: .25rem 0 .4rem; letter-spacing: .2px; color: #f7fbff; text-shadow: 0 2px 6px rgba(0,0,0,.25); }
header .meta { color: var(--muted); font-size: clamp(.9rem, .6vw + .9rem, 1.05rem); }

/* Simple nav styling in header */
nav { margin-top: .75rem; }
nav a { color: var(--text); text-decoration: none; padding: .4rem .8rem; border-radius: 999px; background: rgba(0,0,0,.18); border: 1px solid rgba(255,255,255,.28); }
nav a:hover, nav a:focus-visible { text-decoration: underline; }

/* Main content */
main { padding: 1rem; z-index: 1; position: relative; }

/* Featured image frame (also styled per requirements) */
.featured-image, .image-frame { width: 100%; display: block; margin: 0 auto; }
.image-frame { aspect-ratio: 16 / 9; }

/* Image frame image specifics */
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Typography within article */
article { padding: 0; color: var(--text); }
article h2 { font-size: clamp(1.2rem, 2.4vw + .8rem, 1.5rem); margin: 1rem 0 .5rem; color: #eaffff; }
article p { margin: .4rem 0 1rem; color: rgba(234,246,255,.95); }

/* Lists */
ul, ol { padding-inline-start: 1.25rem; margin: .25rem 0 1rem; }
li { margin: .25rem 0; }

/* Utility and content blocks */
.content { padding: .75rem 0; }

/* Utility components required by spec */
.product-ad, .sponsored-page { padding: .75rem; text-align: center; border-radius: 12px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); margin: .25rem 0; }
.product-ad a, .sponsored-page a { color: var(--text); text-decoration: none; font-weight: 600; display: inline-block; padding: .4rem .75rem; border-radius: 999px; background: rgba(0,0,0,.18); border: 1px solid rgba(255,255,255,.28); }
.product-ad a:hover, .sponsored-page a:hover { text-decoration: underline; }

/* Links and interactive controls */
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; outline: none; }

/* Buttons (solid and outline variants) */
button, .btn, .cta { font: inherit; padding: .6em 1em; border-radius: 8px; border: 1px solid rgba(255,255,255,.28); background: var(--accent); color: #041018; cursor: pointer; transition: transform .2s ease, background .2s ease; display: inline-block; text-align: center; text-decoration: none; }
button:hover, .btn:hover, .cta:hover { transform: translateY(-1px); background: #9ceaff; }
button:focus-visible, .btn:focus-visible, .cta:focus-visible { outline: 3px solid rgba(123,255,255,.95); outline-offset: 2px; }

/* Outline variant utility */
.btn-outline { background: transparent; color: var(--text); border: 2px solid var(--accent); }

/* Card utility (grid items) */
.card { padding: .75rem; }

/* Tag token */
.tag { display: inline-block; font-size: .75rem; padding: .15em .5em; border-radius: 999px; background: rgba(123,255,255,.15); border: 1px solid rgba(123,255,255,.4); color: var(--text); }

/* List reset for print readability */
@media print {
  body { background: #fff; color: #000; }
  a { color: #00f; text-decoration: none; }
  nav, .image-frame, header { display: none; }
}

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