/* Base & Tokens */
:root{
  --bg: #2a180c;
  --bg-2: #3b1f0b;
  --text: #e9f7ff;
  --muted: #a2a2a8;
  --accent: #00e6ff;
  --accent-2: #4bf0ff;
  --card: rgba(255,255,255,.08);
  --card-2: rgba(255,255,255,.14);
  --border: rgba(255,255,255,.25);
  --shadow: 0 8px 28px rgba(0,0,0,.28);
  --radius: 12px;
}
html, body, header, nav, main, article, footer, aside {
  box-sizing: border-box;
}
html, body {
  height: 100%;
}
* { box-sizing: border-box; }
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  margin: 0;
  color: var(--text);
  /* Layered background: brown gradient + subtle blue highlight + scanline noise */
  background:
    linear-gradient(135deg, rgba(58,25,9,.95) 0%, rgba(8,4,2,.95) 60%, rgba(26,12,6,.95) 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-blend-mode: overlay;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(14px, 1.6vw, 17px);
  line-height: 1.5;
  isolation: isolate;
}
@media (prefers-reduced-motion: reduce) {
  html, body { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
@supports not (backdrop-filter: blur(8px)) {
  /* Fallback when backdrop-filter is not supported */
  .glass { background: rgba(255,255,255,.14); }
  .image-frame { background: rgba(255,255,255,.14); }
}
@media print {
  body { background: #fff; color: #000; }
  a, button { text-decoration: underline; color: #000; }
}
img { max-width: 100%; height: auto; display: block; }

/* Layout primitives */
.container {
  width: 100%;
  max-width: clamp(320px, 90vw, 1100px);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
.grid { display: grid; gap: 1rem; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
@supports not (backdrop-filter: blur(8px)) {
  .card { background: rgba(255,255,255,.08); }
}
.content { padding: 1rem 0; }

/* Typography scale (flexible) */
h1, h2, h3 { margin: .25rem 0; font-weight: 700; }
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); line-height: 1.08; letter-spacing: .2px; }
p { margin: 0.5rem 0 0.75rem; color: var(--text); }
.small { font-size: .875rem; color: var(--muted); }

/* Elements to style per spec selectors */
html, body, header, nav, main, article, footer, aside { color-scheme: dark; }

/* Header & Navigation */
header {
  padding: 1.25rem 1rem;
  text-align: center;
}
header h1 { font-size: clamp(1.5rem, 3.5vw, 2.4rem); margin: .2rem 0 0.5rem; letter-spacing: .4px; }
nav { margin-top: .5rem; }
nav a {
  color: var(--text);
  text-decoration: none;
  padding: .35rem .6rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.25);
}
nav a:hover, nav a:focus-visible { text-decoration: underline; outline: none; }

/* Main & content flow */
main { padding: 1rem; }
article { display: block; }

/* Image frame styling */
.image-frame {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  box-shadow: 0 6px 18px rgba(0,0,0,.28), inset 0 0 20px rgba(0,0,0,.04);
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
@media (min-width: 700px) {
  .image-frame { border-width: 1.25px; }
}
@media (prefers-color-scheme: dark) {
  .image-frame { border-color: rgba(255,255,255,.35); }
}

/* Content helpers */
ul, li { margin: 0; padding: 0; list-style: none; }
.tag {
  display: inline-block;
  padding: .25em .6em;
  font-size: .75rem;
  border-radius: 999px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
}
.btn, .cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(0,0,0,.28);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
a.btn, a.cta, button.btn, button.cta {
  text-decoration: none;
}
.btn:hover, .cta:hover { background: rgba(0,0,0,.38); transform: translateY(-1px); }
.btn:focus-visible, .cta:focus-visible, a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.btn.secondary {
  background: transparent;
  border: 1px solid rgba(255,255,255,.6);
}
.btn.ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,.25);
}
.btn.primary {
  background: linear-gradient(135deg, rgba(0,230,255,.95), rgba(0,214,255,.75));
  border: 1px solid rgba(0,0,0,.25);
  color: #041018;
}
.btn:active, .cta:active { transform: translateY(0); }

/* Content container & grid utilities */
.container.section {
  padding: 0;
}
.grid.auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card.image-card { padding: .75rem; }

/* Product ad / footer related sections (glass-like panels) */
.product-ad, .sponsored-page {
  display: block;
  margin: .75rem 0;
}
.product-ad a, .sponsored-page a {
  display: block;
  text-align: center;
  padding: .75rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.35);
}
.product-ad a:hover, .sponsored-page a:hover { background: rgba(0,0,0,.38); }

/* Footer */
footer {
  padding: 1rem;
  text-align: center;
}
footer p { color: var(--muted); font-size: .92rem; margin: .25rem 0; }

/* Accessibility helpers for links */
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Responsive tweaks */
@media (min-width: 900px) {
  main { padding: 1.5rem 0; }
  header { padding: 1.75rem 1rem; }
}
```