/* Tokens */
:root {
  --bg: #0b0f14;
  --bg-2: #11161c;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-2: rgba(0, 0, 0, 0.25);
  --border: rgba(255, 255, 255, 0.25);
  --text: #eafff5;
  --muted: #9fb4b1;
  --accent: #2ECC71;
  --accent-2: #00C853;
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  font-size: clamp(14px, 0.65vw + 12px, 18px);
  line-height: 1.5;
  background: linear-gradient(135deg, #1a1f24 0%, #0b0f14 60%, #0b0f14 100%), #0b0f14;
  background-attachment: fixed;
  position: relative;
  isolation: isolate;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  /* silver mosaic vibe via subtle dots */
  background-image: radial-gradient(circle at 1px 1px, rgba(210,210,210,.15) 1px, transparent 1px);
  background-size: 4px 4px;
  opacity: .9;
  mix-blend-mode: overlay;
}
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  /* scanline effect */
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,.08) 0 1px, transparent 1px 2px);
  opacity: .6;
  mix-blend-mode: overlay;
}

/* Layout primitives */
html, body, header, nav, main, article, footer, aside {
  /* ensure predictable layout behavior for structural elements */
}
.container, .grid, .card, .tag, ul, li, a, button, .btn, .cta, .image-frame {
  /* placeholders to keep specificity stable if extended elsewhere */
}
/* Glass panels (layered, with fallback) */
header, main, footer, aside {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  padding: 1rem;
  max-width: min(1100px, 90vw);
  margin: 0 auto;
}
@supports not (backdrop-filter: blur(12px)) {
  header, main, footer, aside { background: rgba(255, 255, 255, 0.12); }
}

/* Header specifics */
header { margin-top: 1rem; padding: 1.25rem 1.25rem 0.75rem; }
header h1 { font-size: clamp(1.8rem, 1.1rem + 3vw, 3rem); line-height: 1.15; margin: 0 0 .25rem; color: #eafffb; }
header .meta { color: var(--muted); font-size: 0.92rem; margin-top: .25rem; }
nav { margin-top: .5rem; }
nav a { color: var(--text); text-decoration: none; padding: .5rem 0; display: inline-block; border-bottom: 1px solid rgba(255,255,255,.25); }
nav a:hover { text-decoration: underline; }

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

/* Featured image frame (image-frame) */
.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 20px rgba(0, 255, 170, 0.25);
  background: #111;
  margin: 0 auto 1rem;
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* Content container mimic (.content) */
.content { padding: 0.5rem 0; color: #eefaf4; }

/* Typography within content */
h2 { font-size: clamp(1.25rem, 0.9rem + 1.8vw, 2rem); margin: 1.1rem 0 .5rem; color: #eafffb; }
p { margin: .75rem 0; color: #eaf7f0; }
ol, ul { padding-left: 1.25rem; margin: .75rem 0 1rem; }
li { margin: .5rem 0; }

/* Section-like panels for ads / promos */
.product-ad, .sponsored-page {
  margin: .75rem 0; padding: .75rem; text-align: center;
  border-radius: 12px;
  background: rgba(14, 21, 26, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Link and button styling (general accessibility) */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
a { cursor: pointer; }
a:hover, a:focus { text-decoration: underline; }

/* Buttons variants */
.btn { display: inline-block; padding: .75rem 1.25rem; border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(0, 0, 0, .15);
  color: #eaffff; font-weight: 600;
}
.btn--solid {
  background: rgba(16, 185, 129, .95);
  border-color: rgba(16, 185, 129, .95);
  color: white;
}
.btn--outline {
  background: transparent;
  border-color: rgba(46, 204, 113, .9);
  color: #eafff0;
}

/* Focus ring for accessibility */
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* Helpers */
.container { width: 100%; max-width: clamp(320px, 90vw, 1100px); margin-inline: auto; padding-inline: 1rem; }

/* Grid and cards for responsive layouts (utility) */
.grid { display: grid; gap: 1rem; }
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
.card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  padding: .75rem;
  box-shadow: var(--shadow);
}
.tag {
  display: inline-block;
  padding: .25rem .6rem;
  border-radius: 999px;
  font-size: .75rem;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.25);
  color: #eafff5;
}

/* Print */
@media print {
  body { background: white; color: black; }
  header, main, footer { background: none; border: none; }
}

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

/* Small screen tweaks */
@media (max-width: 600px) {
  header { padding: .75rem; }
  .image-frame { border-radius: 10px; }
}

/* Color-scheme tweak (light mode heuristic) */
@media (prefers-color-scheme: light) {
  :root { --text: #0b0f14; --muted: #52616b; }
  body { background: white; color: var(--text); }
  header, main, footer { background: rgba(255,255,255,.7); border-color: rgba(0,0,0,.08); }
}