:root {
  --bg: #0a0a14;
  --bg-2: #0b0b1a;
  --text: #e9e6ff;
  --muted: #b5aed9;
  --accent: #b48cff;
  --accent-2: #7c3aed;
  --glass: rgba(255, 255, 255, 0.10);
  --glass-strong: rgba(255, 255, 255, 0.18);
  --border: rgba(255, 255, 255, 0.25);
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 6px 16px rgba(0, 0, 0, 0.25);
  --radius: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

html, body {
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial;
  line-height: 1.5;
  font-size: clamp(14px, 1.2vw, 16px);
  background: 
    linear-gradient(135deg, rgba(60,0,90,0.65), rgba(10,0,40,0.75) 60%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.04) 0 1px, transparent 1px 2px),
    radial-gradient(circle at 20% 0%, rgba(128,0,255,0.25), transparent 40%);
  background-blend-mode: overlay, overlay, normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

header, nav, main, article, aside, section, footer {
  display: block;
}

header {
  padding: 1.25rem 1rem;
  text-align: center;
  position: relative;
}

header h1 {
  margin: 0.25rem 0 0.5rem;
  font-size: clamp(1.75rem, 1.2rem + 2.5vw, 3rem);
  line-height: 1.12;
  letter-spacing: .2px;
}

header .meta {
  color: var(--muted);
  font-size: 0.9rem;
}

nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.25rem 0 0.5rem;
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.25);
}
nav a:hover { background: rgba(255,255,255,.08); text-decoration: underline; text-underline-offset: 3px; }

main {
  padding: 1rem;
}

.container {
  max-width: clamp(860px, 90vw, 1200px);
  margin: 0 auto;
  padding: 0 1rem;
}

.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: var(--shadow-soft);
  background: rgba(0,0,0,.15);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
}
.featured-image { margin: 1rem 0 1.25rem; }

h2 {
  font-size: clamp(1.25rem, 0.8rem + 2vw, 2rem);
  margin: 0.75rem 0 0.25rem;
  color: var(--text);
}

h3 {
  font-size: 1.05rem;
  margin: 0.5rem 0 0.25rem;
  color: var(--text);
}

p { margin: 0.5rem 0 1rem; color: #e9e6ff; }

ol, ul { margin: 0.5rem 0 1rem 1.25rem; padding: 0; }
li { margin: 0.25rem 0; }

.content { color: var(--text); }

.product-ad {
  display: block;
  padding: 0;
  margin: 0.25rem;
}

.sponsored-page {
  display: block;
  padding: 0;
  margin: 0.25rem;
}

/* Glass panels and cards */
.card, .product-ad, .sponsored-page, aside {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem;
}

@supports not (backdrop-filter: blur(12px)) {
  .card, .product-ad, .sponsored-page, aside {
    background: rgba(255,255,255,0.14);
  }
}

.section {
  margin: 1rem 0;
}

.grid {
  display: grid;
  gap: 1rem;
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.15em 0.5em;
  border-radius: 999px;
  background: rgba(180, 140, 255, 0.25);
  border: 1px solid rgba(180, 140, 255, 0.55);
  color: var(--text);
  line-height: 1;
}

/* Buttons and CTAs */
.btn, .cta, a.btn {
  display: inline-block;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.28);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(124,58,237,0.95), rgba(186, 85, 255, 0.95));
  transition: transform .15s ease, background .2s ease;
}
.btn:hover, .cta:hover, a.btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, rgba(140,72,255,0.95), rgba(210, 120, 255, 0.95));
}
.btn:focus-visible, .cta:focus-visible, a.btn:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}
.btn--outline {
  background: transparent;
  border: 1px solid rgba(180,140,255,0.9);
  color: var(--text);
}
.btn--outline:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text);
}
.cta {
  padding: .8rem 1.1rem;
  border-radius: 9px;
  background: rgba(124,58,237,0.9);
  border: 1px solid rgba(180,140,255,0.9);
}
a.btn { text-decoration: none; }

/* Links and typography accessibility */
a, button, .cta {
  color: var(--text);
}
a:focus-visible, button:focus-visible, .cta:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}
a:hover, button:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Layout utilities */
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
@media (min-width: 900px) {
  main { padding: 1.5rem 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Typography helpers */
.header p, .meta { color: var(--muted); }

/* Print styles for readability */
@media print {
  html, body { background: #fff !important; color: #000; }
  a { color: #000; text-decoration: underline; }
}
