/* Tokens & Base Theme */
:root{
  --bg: #0b0b14;
  --bg-2: #0a2a1f;
  --text: #eaf6ff;
  --muted: #b7d9d3;
  --accent: #ff95c9;
  --accent-2: #2bd4a6;
  --card: rgba(255,255,255,.08);
  --card-strong: rgba(255,255,255,.14);
  --radius: 14px;
  --shadow: 0 12px 28px rgba(0,0,0,.28);
  --focus: 2px solid rgba(43,212,166,.95);
  --glass-border: 1px solid rgba(255,255,255,.28);
}
*,*::before,*::after{ box-sizing: border-box; }

/* Base layout & background: gradient + subtle noise/scanline (pure CSS) */
html, body { height: 100%; }
html { line-height: 1.15; }
body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, "Helvetica Neue";
  font-size: clamp(14px, 0.9vw + 12px, 18px);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 20% -10%, rgba(255, 150, 210, .25), transparent 40%),
    linear-gradient(135deg, rgba(255, 105, 180, .25) 0%, rgba(0,0,0,0) 60%),
    repeating-linear-gradient(0deg, rgba(0,0,0,.04) 0 1px, transparent 1px 2px),
    repeating-linear-gradient(90deg, rgba(0,0,0,.04) 0 1px, transparent 1px 2px);
  background-blend-mode: overlay, overlay, normal, normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce){
  body{ background-attachment: scroll; }
}
a, button, .btn, .cta { cursor: pointer; }

/* Layout primitives */
.container {
  width: 100%;
  max-width: clamp(320px, 92vw, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: var(--card);
  border: var(--glass-border);
  border-radius: 12px;
  padding: .9rem;
  box-shadow: var(--shadow);
}
.tag {
  display: inline-block;
  padding: .15em .6em;
  border-radius: 999px;
  font-size: .75rem;
  color: #04140f;
  background: linear-gradient(135deg, rgba(43, 212, 166, .95), rgba(255, 149, 201, .75));
  border: 1px solid rgba(255,255,255,.6);
}

/* Header, Nav, Main, Article, Aside, Footer (glass-like panels) */
header, main, article, aside, footer {
  background: var(--card);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
}
@supports not (backdrop-filter: blur(12px)) {
  header, main, article, aside, footer { background: rgba(255,255,255,.18); }
}
header {
  padding: clamp(1rem, 4vw, 2.5rem);
  text-align: center;
  margin: 1rem auto;
}
header h1 {
  font-size: clamp(1.8rem, 2.5vw + 1rem, 3.6rem);
  line-height: 1.08;
  margin: 0 0 .5rem;
  letter-spacing: .2px;
  color: var(--text);
}
header .meta {
  font-size: clamp(.95rem, .4vw + .9rem, 1.05rem);
  color: var(--muted);
  margin-bottom: .25rem;
}
nav {
  margin-top: .5rem;
}
nav a {
  display: inline-block;
  padding: .5rem .75rem;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(0,0,0,.15);
  transition: transform .15s ease, background .2s ease;
}
nav a:hover, nav a:focus-visible {
  transform: translateY(-1px);
  background: rgba(0,0,0,.25);
  text-decoration: underline;
}
main { padding: 1rem; }
article { max-width: clamp(520px, 88vw, 900px); margin: 0 auto; padding: 1rem; color: var(--text); }

/* Featured image frame */
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
}
.featured-image { margin: .75rem 0; }

/* Typography & content */
.content {
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial;
  font-size: clamp(14px, 0.9vw + 12px, 18px);
  line-height: 1.65;
}
h2, h3 {
  line-height: 1.25;
  margin: 1rem 0 .5rem;
  color: #e9f7ff;
}
p { margin: 0 0 1rem; }
ol, ul { margin: 0 0 1rem 1.25rem; padding: 0; }
li { margin: .25rem 0; }
blockquote {
  margin: .75rem 0;
  padding: .75rem 1rem;
  border-left: 4px solid rgba(43,212,166,.8);
  background: rgba(0,0,0,.15);
  border-radius: 6px;
}
@media (min-width: 700px){
  article { padding: 1.25rem; }
}
@media (min-width: 1024px){
  article { padding: 1.5rem; }
}

/* Product ads & sponsors (glass panels) */
.product-ad, .sponsored-page {
  display: block;
  padding: .75rem;
  margin: .75rem 0;
  text-align: center;
}
.product-ad a, .sponsored-page a {
  color: #fff;
  text-decoration: none;
  display: inline-block;
  padding: .55rem .95rem;
  border-radius: 999px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.4);
}
.product-ad a { background: rgba(43,212,166,.25); border-color: rgba(43,212,166,.6); }
.product-ad a:hover { transform: translateY(-1px); }

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

/* Interactive controls (buttons) */
.btn, .cta {
  display: inline-block;
  padding: .75em 1.1em;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(255,255,255,.12);
  color: #fff;
  text-decoration: none;
  transition: transform .15s ease, background .2s ease;
}
.btn.primary, .cta.primary {
  background: linear-gradient(135deg, var(--accent-2) 0%, var(--accent) 100%);
  border: 1px solid rgba(0,0,0,.15);
}
.btn.secondary {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.4);
}
.btn:hover, .cta:hover { transform: translateY(-1px); }
.btn:focus-visible, .cta:focus-visible {
  outline: var(--focus);
  outline-offset: 2px;
}
a:focus-visible { text-decoration: underline; }

/* Image frame glow fallback for accessibility */
.image-frame { outline: 1px solid rgba(255,255,255,.25); }

/* Print styles */
@media print {
  body { color: #000; background: #fff; }
  a { text-decoration: underline; color: #000; }
  header, main, article, footer { box-shadow: none; border: none; background: #fff; }
}

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

/* Ensure selectors listed are styled */
html, body, header, nav, main, article, footer, aside { }
.image-frame, .image-frame img { }
.content { }
.product-ad { }
a, button, .btn, .cta { }
ul, li { }
.container, .grid, .card, .tag { }