/* Base tokens */
:root {
  --bg: #0b0b12;
  --bg-2: #14121a;
  --text: #e9e0e6;
  --muted: #c6bccd;
  --accent: #e0003a;
  --accent-2: #8b2be6;
  --panel: rgba(16,16,32,0.28);
  --border: rgba(255,255,255,0.25);
  --radius: 14px;
  --focus: 0 0 0 3px rgba(140, 0, 180, 0.6);
  --shadow: 0 10px 28px rgba(0,0,0,0.55);
  --noise: rgba(255,255,255,0.04);
  --duration: 0.2s;
}

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { color-scheme: dark; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial;
  color: var(--text);
  background: radial-gradient(circle at 20% -10%, rgba(220,0,60,.25), transparent 40%),
              radial-gradient(circle at 90% 10%, rgba(120,0,180,.25), transparent 40%),
              linear-gradient(#0a0a14, #0a0a14 60%, #0a0a14);
  background-attachment: fixed;
  min-height: 100vh;
}

/* Layered noise/scanline overlay (pure CSS) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.0) 60%, rgba(0,0,0,0.12) 60% 61%, rgba(0,0,0,0.0) 61% 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-size: 100% 2px;
  opacity: 0.6;
  mix-blend-mode: overlay;
}

/* Layout helpers */
.container { width: min(1100px, 92vw); margin-inline: auto; padding-block: 1rem; }

/* Glass panels (backsdrop) */
.card {
  background: rgba(16,14,28,0.28);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  transition: transform var(--duration) ease, background var(--duration) ease;
}
@supports not (backdrop-filter: blur(12px)) {
  .card { background: rgba(16,14,28,0.75); }
}

/* Header (hero) */
header {
  text-align: center;
  padding: clamp(1rem, 4vw, 2.25rem) 1rem;
  position: relative;
  z-index: 1;
}
header h1 {
  margin: .25rem 0 .25rem;
  font-size: clamp(2rem, 4vw + 1rem, 4rem);
  line-height: 1.04;
  letter-spacing: .5px;
  color: #fff;
  text-shadow: 0 0 8px rgba(180,0,70,.6);
}
header .meta {
  color: var(--muted);
  font-size: clamp(0.9rem, 0.6vw + 0.8rem, 1.05rem);
  margin-top: .25rem;
}

/* Main content */
main { display: block; padding: 0 1rem 2rem; }
main article {
  max-width: clamp(640px, 78vw, 820px);
  margin: 0 auto;
  padding: 1rem;
}
.image-frame {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 6px 24px rgba(0,0,0,.5);
  background: #111;
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Text content */
.content { padding: 0 0 1rem; }
h2 {
  font-size: clamp(1.4rem, 2.5vw + 1rem, 2.2rem);
  margin: .75rem 0 .5rem;
  color: #fff;
}
p { font-size: clamp(1rem, 0.8vw + 0.9rem, 1.125rem); line-height: 1.6; color: #e9e0e6; margin: .6rem 0; }

/* Lists */
ul { padding-left: 1.25rem; margin: .5rem 0; }
li { margin: .25rem 0; }

/* Footer (ads / links) */
footer { padding: 1.25rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .75rem; align-items: start; }

/* Product ad blocks */
.product-ad a {
  text-decoration: none;
  display: inline-block;
  padding: .75rem 1rem;
  border-radius: 999px;
  background: rgba(139,0,179,.25);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  transition: transform .2s ease, background .2s;
}
.product-ad a:hover { transform: translateY(-2px); background: rgba(139,0,179,.40); }
.product-ad a:focus-visible { outline: none; box-shadow: var(--focus); }

/* Link & button styles */
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: none; box-shadow: var(--focus); outline-offset: 2px; }

/* Buttons (solid + outline) */
button, .btn, .cta {
  font: inherit;
  cursor: pointer;
  border: 0;
  padding: 0;
  border-radius: 999px;
}
.btn {
  display: inline-block;
  padding: .75rem 1.25rem;
  background: var(--accent-2);
  color: white;
  border: 1px solid rgba(255,255,255,.25);
  transition: transform var(--duration) ease, background var(--duration) ease;
}
.btn:hover { transform: translateY(-1px); background: #9a5aff; }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: none; box-shadow: var(--focus); outline-offset: 2px; }

/* Outline variant for CTA-like elements */
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(139,0,179,.6);
}
.btn--outline:hover { background: rgba(255,255,255,.04); }

/* Minor utilities */
.content .tag {
  display: inline-block;
  padding: .25em .55em;
  border-radius: 999px;
  background: rgba(139,0,179,.25);
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
  font-size: .8rem;
}

/* Grid utility (responsive) */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .75rem;
}

/* Card utility (inline sections) */
.card { padding: .75rem; }

/* Aside placeholder (present for completeness) */
aside { display: block; }

/* Dark mode adjustments */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f3f8;
    --bg-2: #ffffff;
    --text: #0a0a0a;
    --muted: #555;
    --accent: #c4002f;
    --accent-2: #6a00d6;
    --panel: rgba(255,255,255,0.75);
    --border: rgba(0,0,0,0.08);
  }
  body {
    background: radial-gradient(circle at 20% 0%, rgba(240,0,80,.08), transparent 40%),
                radial-gradient(circle at 70% 20%, rgba(0,0,0,.05), transparent 40%),
                linear-gradient(#f7f7fb, #f0f0f7);
    color: var(--text);
  }
  body::before {
    opacity: 0.5;
    background:
      linear-gradient(to bottom, rgba(0,0,0,.04) 60%, rgba(0,0,0,0) 60%),
      repeating-linear-gradient(to bottom, rgba(0,0,0,.03) 0 1px, transparent 1px 2px);
  }
  header { color: var(--text); }
  .card { background: rgba(255,255,255,.65); border: 1px solid rgba(0,0,0,.08); }
  a { color: #7b1fa2; }
  .btn { background: #9b2bd9; }
}

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

/* Print */
@media print {
  body { background: #fff; -webkit-print-color-adjust: exact; color: #000; }
  header, main, footer { display: block; }
  .image-frame { page-break-inside: avoid; }
}