:root {
  --bg: #000;
  --bg-2: #0a0a14;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-2: rgba(170, 0, 255, 0.15);
  --text: #e9e0ff;
  --muted: #b3a7c9;
  --accent: #7a5cff;
  --accent-2: #b37cff;
  --border: rgba(120, 0, 200, 0.4);
  --shadow: 0 6px 20px rgba(0,0,0,.45);
}
html, body, header, nav, main, article, footer, aside {
  display: block;
}
*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  line-height: 1.5;
  font-size: clamp(14px, 0.5vw + 12px, 18px);
  text-rendering: optimizeLegibility;
  background-color: #000;
  /* Layered background: checkerboard + gradient + subtle scanlines/noise */
  background-image:
    /* subtle noise/scanlines */
    repeating-linear-gradient(to bottom, rgba(255,0,255,.04) 0 1px, transparent 1px 2px),
    repeating-linear-gradient(to right, rgba(255,0,255,.04) 0 1px, transparent 1px 2px),
    /* black checkerboard base (two-layer duotone) */
    linear-gradient(45deg, rgba(0,0,0,.85) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(0,0,0,.85) 25%, transparent 25%),
    linear-gradient(#000 0, #000 100%);
  background-size: 40px 40px, 40px 40px, 40px 40px, 40px 40px, 100% 100%;
  background-position: 0 0, 0 0, 0 0, 0 0, 0 0;
  background-blend-mode: overlay, overlay, normal, normal, normal;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}
@supports (background-attachment: fixed) {
  /* optional performance-safe tweak for parallax-ish feel (no heavy lift) */
  background-attachment: fixed, fixed, scroll, scroll, scroll;
}

/* Light mode variant for legibility (opt-in by user agent) */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f3ff;
    --bg-2: #efe4ff;
    --surface: rgba(255, 255, 255, 0.92);
    --surface-2: rgba(120, 0, 200, 0.25);
    --text: #1a0f2b;
    --muted: #5b4a7a;
    --accent: #6a4dff;
    --accent-2: #8a6bff;
    --border: rgba(120, 0, 200, 0.35);
  }
  body {
    background-image:
      repeating-linear-gradient(to bottom, rgba(0,0,0,.04) 0 1px, transparent 1px 2px),
      repeating-linear-gradient(to right, rgba(0,0,0,.04) 0 1px, transparent 1px 2px),
      linear-gradient(#fff, #fff);
    background-blend-mode: overlay;
  }
}

/* Layout primitives */
.container {
  max-width: clamp(860px, 90vw, 1200px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
@supports not (backdrop-filter: blur(8px)) {
  .card { background: rgba(20,0,40,.8); }
}
.tag {
  display: inline-block;
  padding: .25em .6em;
  border-radius: 999px;
  font-size: .78rem;
  border: 1px solid rgba(124,0,255,.4);
  background: rgba(124,0,255,.18);
  color: #e9d9ff;
}
.content { max-width: 60ch; margin: 0 auto; }

/* Header / hero */
header {
  padding: 2rem 1rem;
  text-align: center;
}
header h1 {
  margin: 0 0 .25rem;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.04;
  letter-spacing: .2px;
}
header .meta {
  color: var(--muted);
  font-size: 0.92rem;
}
.image-frame,
.image-frame img {
  display: block;
}
.image-frame {
  width: 100%;
  max-width: 900px;
  margin: 1rem auto;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(124,0,255,.5);
  box-shadow: 0 6px 22px rgba(0,0,0,.45);
  background: #000;
}
.image-frame img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
}

/* Main content styling (glass panels for sections) */
section {
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(110,0,200,.4);
  background: rgba(16,6,28,.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
section h2 { font-size: clamp(1.25rem, 2.4vw, 1.75rem); margin: .25rem 0 .5rem; color: #f1e5ff; }
section p { margin: .5rem 0; color: #e6dbff; }
section ul { padding-left: 1.25rem; margin: .5rem 0; }
section li { margin: .25rem 0; }

/* Lists and emphasis tweaks */
blockquote {
  margin: .75rem 0;
  padding-inline: .5rem;
  padding-block: .25rem;
  border-left: 3px solid var(--accent);
  color: #e6d6ff;
  font-style: italic;
}
ul, li { color: var(--text); }

/* Footer / product ads */
footer {
  padding: 1.5rem 1rem;
  text-align: center;
}
.product-ad,
.sponsored-page { display: inline-block; margin: .25rem; }
.product-ad a, .sponsored-page a {
  display: inline-block;
  padding: .75rem 1rem;
  border-radius: 9px;
  border: 1px solid rgba(124,0,255,.5);
  background: rgba(124,0,255,.22);
  color: var(--text);
  text-decoration: none;
  transition: transform .15s ease, background .2s ease;
}
.product-ad a:hover, .sponsored-page a:hover { transform: translateY(-1px); background: rgba(124,0,255,.28); }
.product-ad a:focus-visible, .sponsored-page a:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}
footer p { color: var(--muted); font-size: .9rem; }

/* Interactive elements (buttons/links) */
a, button, .btn, .cta {
  color: inherit;
  text-decoration: none;
}
button, .btn, .cta {
  display: inline-block;
  padding: .75rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(124,0,255,.6);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease;
}
.btn:hover, .cta:hover { background: #6a4dff; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border: 1px solid rgba(124,0,255,.8);
  color: var(--text);
}
.btn:focus-visible, .cta:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}
a:hover { text-decoration: underline; }

/* Typography rhythm for headlines and body */
h1, h2, h3 { font-weight: 700; letter-spacing: .2px; }
h1 { color: #f9e6ff; }

/* Accessibility: prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
@media print {
  body { background: #fff; color: #000; }
  header, main, footer { padding: 0; }
  section { background: transparent; border: none; padding: 0; }
  a, button { text-decoration: none; color: #000; }
}