/* Palette & Theme Tokens */
:root {
  --bg: #1b003a;
  --bg-2: #3a0a4a;
  --bg-3: #6d0b2f;
  --text: #eaf2ff;
  --muted: #c8b8d7;
  --accent: #e6002a;
  --accent-2: #ff2b61;
  --glass: rgba(18, 0, 40, 0.28);
  --glass-2: rgba(18, 0, 40, 0.18);
  --border: rgba(255, 255, 255, 0.28);
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  --radius: 14px;
}

/* Base & Layout */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { color-scheme: dark; }
body {
  margin: 0;
  min-height: 100dvh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
               Arial, "Noto Sans", sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-2) 40%, var(--bg-3) 100%);
  position: relative;
  overflow-x: hidden;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  /* subtle scanlines/noise overlay */
  background-image:
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px),
    radial-gradient( circle at 20% 0%, rgba(255,0,0,.08), transparent 40% ),
    radial-gradient( circle at 70% 15%, rgba(0,0,0,.08), transparent 40% );
  mix-blend-mode: overlay;
  opacity: .55;
}

/* Glass panels (fallback included) */
header, main, footer, aside {
  width: min(100%, 1100px);
  margin: 1rem auto;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  z-index: 1;
}

header { text-align: center; }
header h1 { margin: 0 0 .25rem; font-size: clamp(1.75rem, 4vw + 0.5rem, 3rem); font-weight: 700; letter-spacing: .2px; color: #f5f7ff; }

/* Navigation */
nav { display: flex; justify-content: center; gap: .75rem; padding: .25rem 0 0; }
nav a {
  color: var(--text);
  text-decoration: none;
  padding: .35rem .6rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.04);
}
nav a:hover, nav a:focus-visible { text-decoration: underline; outline: none; color: var(--accent-2); }

/* Main content */
main { display: block; }
.article { display: block; }

/* Image frame styling */
.image-frame {
  width: 100%;
  max-width: 720px;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
  background: #000;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: translateZ(0);
}
@media (max-width: 720px) {
  .image-frame { width: 100%; border-radius: 10px; }
}

/* Content utility (where applicable) */
.content { padding: 0.75rem 0 0; color: var(--muted); }

/* Product ad sections (footer content blocks) */
.product-ad, .sponsored-page {
  display: block;
  padding: .75rem;
  margin: .5rem 0;
  text-align: center;
  border-radius: 10px;
  background: rgba(18,0,40,.28);
  border: 1px solid rgba(255,255,255,.28);
}
.product-ad a, .sponsored-page a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}
.product-ad a:hover, .sponsored-page a:hover { text-decoration: underline; }

/* Footer copy */
footer p { margin: .5rem 0 0; color: var(--muted); }

/* Link & button styling (globally accessible) */
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: var(--accent-2); outline: none; }

/* Button variants (solid + outline) */
.btn, .cta {
  display: inline-block;
  padding: .65rem 1.1rem;
  border-radius: 8px;
  border: 1px solid transparent;
  background: var(--accent);
  color: white;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: transform .15s ease, background-color .2s ease;
  text-decoration: none;
}
.btn:hover, .cta:hover { background: #ff2540; transform: translateY(-1px); }
.btn:active, .cta:active { transform: translateY(0); }
.btn--outline {
  background: transparent;
  border-color: rgba(255,255,255,.6);
  color: var(--text);
}
.btn--outline:hover { background: rgba(255,255,255,.08); }

/* Focus visibility (accessible) */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Utilities */
.ul, ul { margin: 0; padding: 0; list-style: none; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card {
  background: rgba(18,0,40,.28);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 12px;
  padding: 1rem;
  color: var(--text);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.tag {
  display: inline-block;
  padding: .25rem .6rem;
  border-radius: 999px;
  font-size: .75rem;
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(255,0,0,.22);
  color: white;
}

/* Print-friendly */
@media print {
  body { background: white; color: #000; }
  header, main, footer, aside { background: transparent; border: none; box-shadow: none; }
  .image-frame { page-break-inside: avoid; }
  a { text-decoration: underline; }
}

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