:root{
  --bg: #0a0a12;
  --bg-2: #171426;
  --text: #f7f3ff;
  --muted: #b49bd1;
  --accent: #ff2fa6;
  --accent-2: #e2b07f;
  --glass: rgba(255,255,255,0.08);
  --glass-1: rgba(255,255,255,0.22);
  --glass-border: rgba(255,255,255,0.28);
  --shadow: 0 8px 24px rgba(0,0,0,0.4);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial; }
body {
  margin: 0;
  color: var(--text);
  line-height: 1.5;
  min-height: 100%;
  background: #0a0a0f;
  background-image:
    linear-gradient(135deg, rgba(255,0,140,0.15), rgba(0,0,0,0)),
    linear-gradient(to bottom, rgba(20,0,40,0.92), rgba(0,0,0,0.92)),
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.04) 0 1px, transparent 1px 2px);
  background-size: auto, cover, auto;
  background-blend-mode: overlay, overlay, normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Respect prefers-reduced-motion */
}
@media (prefers-reduced-motion: reduce) {
  html, body { scroll-behavior: auto; }
}
.container, .grid, .card { box-sizing: border-box; }

/* Global helpers */
a, button, .btn, .cta { -webkit-tap-highlight-color: transparent; }
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; color: #ffd6ea; }
a:focus-visible { outline: 0; box-shadow: 0 0 0 3px rgba(255, 140, 200, 0.85); outline-offset: 2px; }

button, .btn, .cta {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  color: inherit;
}
.btn {
  display: inline-block;
  padding: 0.75rem 1.15rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.6);
  background: linear-gradient(135deg, rgba(255,0,150,0.95), rgba(255,170,120,0.92));
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,.35); }
.btn:active { transform: translateY(0); }
.btn.outline {
  background: rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.6);
  color: #fff;
}
.cta { display:inline-block; }

/* Layout primitives */
.header, header { padding: 1rem; text-align: center; }
header h1 { margin: 0.25rem 0; font-size: clamp(1.4rem, 1rem + 2.2vw, 2.6rem); letter-spacing: .4px; color: var(--text); }
header .meta { color: var(--muted); font-size: clamp(0.8rem, 0.4vw + 0.8rem, 1rem); }

nav { margin-top: .5rem; }
nav a { display:inline-flex; align-items:center; gap:.5rem; padding:.5rem 1rem; border-radius:999px; border:1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: var(--text); text-decoration:none; }
nav a:hover, nav a:focus-visible { text-decoration: underline; }

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

/* Featured image frame */
.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 10px 26px rgba(0,0,0,.55);
  background: #000;
  margin: 0.5rem 0 1rem;
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Article typography/content area */
article { display: block; }
.content { padding: 0.5rem 0; }
h2 { font-size: clamp(1.2rem, 0.8rem + 2vw, 2rem); margin: .75rem 0 .5rem; color: var(--text); }
p { margin: .5rem 0; color: #eee6ff; }
blockquote {
  margin: .75rem 0;
  padding: .5rem 1rem;
  border-left: 3px solid var(--accent);
  color: #f8eaff;
  background: rgba(255,255,255,0.04);
  border-radius: 6px;
}
ul { padding-left: 1.25rem; margin: .5rem 0; }
li { margin: .25rem 0; }

/* Glass panel (fallback if backdrop-filter isn't supported) */
.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
@supports not (backdrop-filter: blur(10px)) {
  .card { background: rgba(255,255,255,.16); }
}

/* Utility components used in the page */
.tag {
  display:inline-block;
  padding:.15rem .5rem;
  font-size:.75rem;
  border-radius:999px;
  background: rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.25);
  color: #fff;
}
.container { width: 100%; max-width: clamp(320px, 92vw, 1100px); margin-inline: auto; padding-inline: 1rem; }

/* Grid and cards helpers (responsive) */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }

/* Product ad / footer sections */
footer { padding: 1rem; display: grid; gap: .75rem; align-items: center; justify-items: center; text-align: center; }
footer .product-ad, footer .sponsored-page { width: 100%; display: grid; place-items: center; }
footer p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* Print and accessibility tweaks */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; }
}
@media (min-width: 640px) {
  footer { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}