:root {
  --bg: #0b0b1d;
  --bg-2: #2a0a3a;
  --text: #f5f3ff;
  --muted: #cdb8da;
  --accent: #7a0b2d;
  --accent-2: #5bd3ff;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-strong: rgba(255, 255, 255, 0.18);
  --surface: rgba(18, 8, 40, 0.28);
  --shadow: 0 8px 24px rgba(0,0,0,.25);
  --radius: 14px;
  --txt-contrast: #fff;
}

html, body {
  height: 100%;
}
*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial;
  color: var(--text);
  background: linear-gradient(135deg, rgba(15,0,40,0.95) 0%, rgba(40,0,60,0.95) 60%, rgba(20,0,20,0.95) 100%);
  min-height: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  /* ultraviolet watercolor-like glow hints */
  background: radial-gradient(circle at 15% 12%, rgba(138, 0, 255, 0.25), transparent 40%),
              radial-gradient(circle at 80% 40%, rgba(0, 235, 255, 0.18), transparent 40%);
  mix-blend-mode: screen;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  /* subtle scanline / noise effect */
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 4px 4px;
  opacity: 0.6;
  mix-blend-mode: overlay;
}

/* Layout skeleton to layer content above background */
header, nav, main, article, section, aside, footer {
  position: relative;
  z-index: 1;
}
header, main, footer {
  padding: 1rem;
  width: min(100%, 1100px);
  margin: 0 auto;
}
header {
  display: block;
  margin-top: 1.25rem;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid rgba(255,255,255,.28);
  padding: 1.25rem 1.25rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}
header h1 {
  font-size: clamp(1.6rem, 1.4rem + 2vw, 3.25rem);
  line-height: 1.15;
  margin: 0 0 .5rem;
  letter-spacing: .2px;
}
header .meta {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}
nav {
  margin-top: .5rem;
}
nav a {
  color: var(--text);
  text-decoration: none;
  padding: .4rem .75rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.15);
  transition: transform .15s ease, background-color .2s ease;
}
nav a:hover { background: rgba(0,0,0,.25); transform: translateY(-1px); }
nav a:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* Main content glass panel for readability */
main {
  margin: 1.25rem auto 0;
}
article {
  border-radius: var(--radius);
  background: rgba(18, 6, 28, 0.28);
  border: 1px solid rgba(255,255,255,.28);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
@supports not (backdrop-filter: blur(10px)) {
  article { background: rgba(18,6,28,.60); }
  header { background: rgba(14,6,20,.50); }
}
.featured-image { border-radius: 12px; overflow: hidden; margin: 0 0 1rem; border: 1px solid rgba(255,255,255,.25); }
.image-frame { aspect-ratio: 16 / 9; width: 100%; overflow: hidden; border-radius: 12px; border: 1px solid rgba(255,255,255,.28); box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

.content { padding: 0.25rem 0 0 0; }

h2, h3 { color: var(--text); margin: .75rem 0 .5rem; font-weight: 700; }
h2 { font-size: clamp(1.25rem, 1.6vw + 1rem, 2.2rem); letter-spacing: .2px; }
h3 { font-size: clamp(1.05rem, 1vw + .8rem, 1.4rem); }

/* Lists and text */
p { color: #efeaff; margin: .75rem 0; line-height: 1.6; }
ul { list-style: disc; padding-left: 1.25rem; margin: .5rem 0 1rem; }
li { margin: .25rem 0; color: #f6f2ff; }
blockquote {
  margin: .75rem 0;
  padding-left: .75rem;
  border-left: 3px solid var(--accent-2);
  color: #e8dfff;
  font-style: italic;
}
.note { color: var(--muted); font-size: .95rem; }

@media (min-width: 700px) {
  article { padding: 1.25rem 1.25rem; }
}
@media (min-width: 900px) {
  .grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

/* Utility elements */
.container {
  width: min(100%, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid { display: grid; gap: 1rem; }
.card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  padding: .75rem;
}
.tag {
  display: inline-block;
  padding: .15rem .5rem;
  border-radius: 999px;
  font-size: .75rem;
  background: rgba(122, 0, 40, .28);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.25);
}

/* Content wrapper for media and text balance in footer */
.product-ad {
  display: block;
  text-align: center;
  padding: .8rem;
  border-radius: 12px;
  background: rgba(122, 0, 40, 0.28);
  border: 1px solid rgba(255,255,255,.28);
  color: var(--txt-contrast);
  text-decoration: none;
}
.product-ad:hover { transform: translateY(-1px); background: rgba(122,0,40,.38); }
.product-ad:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  background: var(--accent);
  border: 0;
  border-radius: 8px;
  padding: .65rem 1rem;
  font-weight: 600;
  display: inline-block;
  cursor: pointer;
  transition: transform .15s ease, background-color .2s ease;
}
a:hover, button:hover, .btn:hover, .cta:hover {
  transform: translateY(-1px);
  background: #8a1f3a;
}
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}
.btn.outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,.6);
  color: var(--text);
}
.btn.ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,.3);
}
.CTA { /* extra small helper, rarely used but ready */ }

ul, li { margin: 0; padding: 0; }

/* Print-friendly tweaks */
@media print {
  body { background: white; color: #000; }
  header, main, footer { background: none; border: none; padding: 0; }
}
