/* 1) Theme tokens (sage + indigo) */
:root {
  --bg: #0a1020;
  --bg-2: #0b1a2b;
  --text: #e7f6ee;
  --muted: #a6c3a7;
  --accent: #4f5cff;       /* indigo */
  --accent-2: #7bd389;     /* sage */
  --surface: rgba(255,255,255,0.08);
  --surface-2: rgba(255,255,255,0.14);
  --border: rgba(255,255,255,0.28);
  --focus: 0 0 0 3px rgba(123,211,137,.75);
  --shadow: 0 8px 24px rgba(0,0,0,.25);
  --radius: 14px;
  --radius-sm: 10px;
}

/* 2) Global resets & background layout */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
html { font-size: 16px; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Helvetica Neue";
  color: var(--text);
  background: linear-gradient(135deg, rgba(26,40,99,.9) 0%, rgba(7,18,32,.95) 60%, rgba(9,14,28,.95) 100%), #070b14;
  min-height: 100vh;
  line-height: 1.5;
  position: relative;
  overflow-x: hidden;
}

/* Layered background: subtle scanline/noise via CSS (pure CSS) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px) 0 0/100% 2px,
    linear-gradient(rgba(0,0,0,.04) 1px, transparent 1px) 0 0/2px 100%;
  mix-blend-mode: overlay;
  z-index: 0;
}
@supports (backdrop-filter: blur(1px)) {
  /* no-op; backdrop handled on panels below */
}
@media (prefers-reduced-motion: reduce) {
  body::before { display: none; }
}

/* 3) Glass panels fallback + backdrop (with graceful fallbacks) */
.backdrop,
header, main, footer, aside, article {
  background: rgba(6, 8, 16, 0.28);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.backdrop { backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); }
@supports not (backdrop-filter: blur(10px)) {
  .backdrop { background: rgba(6,8,16,0.75); }
}

/* 4) Layout helpers (container, grid, card, tag) */
.container {
  width: 100%;
  max-width: clamp(320px, 90vw, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); border-radius: 12px; padding: 1rem; }

/* 5) Image frame styling */
.image-frame {
  width: 100%;
  max-width: 960px;
  margin: 0.75rem auto 1rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.28);
  background: #000;
  box-shadow: 0 6px 20px rgba(0,0,0,.28);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
}

/* 6) Core structure selectors (as requested) */
html, body, header, nav, main, article, footer, aside { /* layout anchors handled below */ }
h1, h2, h3 { margin: 0.35rem 0; }

/* 7) Typographic scale (mobile-first, fluid) */
:root { --font-fluid: clamp(1.125rem, 0.9rem + 1.2vw, 1.5rem); }
body { font-size: 1rem; }
h1 { font-size: clamp(1.6rem, 2.6vw + 0.6rem, 2.6rem); line-height: 1.15; font-weight: 700; letter-spacing: .2px; }
h2 { font-size: clamp(1.25rem, 1.8vw + .5rem, 2rem); line-height: 1.2; }
h3 { font-size: clamp(1rem, 1vw + .5rem, 1.25rem); }

/* paragraphs & lists */
p { margin: .75rem 0; color: #eaf8f0; }
ul { padding-left: 1.25rem; margin: .75rem 0; }
li { margin: .25rem 0; }

/* 8) Link & button treatments (accessibility) */
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover, a:focus { text-decoration: underline; color: var(--accent-2); outline: none; }
a:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }

/* Buttons & CTAs (solid and outline variants) */
.btn {
  display: inline-block; padding: .65rem 1rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.38);
  background: rgba(20,18,40,.75);
  color: #e9f4e9; font-weight: 600; cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s;
}
.btn:hover { transform: translateY(-1px); background: rgba(22,20,50,.9); }
.btn:active { transform: translateY(0); }
.btn.primary {
  background: linear-gradient(135deg, var(--accent), #5b6aff);
  border: none;
}
.btn.outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,.45);
  color: var(--text);
}
.btn:focus-visible { outline: none; box-shadow: var(--focus); }

/* 9) Layout sections (header, main, article, footer) with glassy feel */
header {
  padding: clamp(1.25rem, 4vw, 2.25rem);
  text-align: center;
  z-index: 1;
}
header h1 { color: var(--text); font-weight: 700; margin-bottom: .25rem; }
header .meta { color: var(--muted); font-size: clamp(.8rem, .8vw, 1rem); margin-top: .25rem; }

/* navigation inside header */
nav { margin-top: .5rem; }
nav a {
  color: var(--accent);
  padding: .25rem .5rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.25);
  text-decoration: none;
}
nav a:hover, nav a:focus { text-decoration: underline; background: rgba(255,255,255,.08); }

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

/* featured content area within article */
.featured-image { display: block; }

/* content container for article text (where .content could apply) */
.content { padding: 0; margin: 0; }

/* 10) Specific component styles (product-ad, utility) */
.product-ad, .sponsored-page {
  display: block;
  text-align: center;
  padding: .75rem;
  margin: .5rem 0;
  border-radius: 12px;
}
.product-ad a, .sponsored-page a { text-decoration: none; color: var(--text); display: block; }
.product-ad p, .sponsored-page p { margin: 0; }

/* footer styling (glass panel with sections) */
footer { padding: 1rem; text-align: center; position: relative; z-index: 1; }

/* 11) Print accessibility (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  header, main, footer { background: transparent; border: none; box-shadow: none; }
}
```