:root {
  --bg: #1a000d;
  --bg-2: #2a0014;
  --text: #f8eaff;
  --muted: #c9a5b4;
  --accent: #ff2bd9;
  --accent-2: #d40088;
  --glass: rgba(255, 255, 255, 0.12);
  --glass-strong: rgba(255, 255, 255, 0.22);
  --card: rgba(255, 255, 255, 0.10);
  --card-border: rgba(255, 255, 255, 0.25);
  --shadow: 0 8px 28px rgba(0,0,0,.25);
}

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  /* Layered background: gradient + subtle scanlines + glow */
  background-image:
    linear-gradient(135deg, rgba(90,0,40,0.95) 0%, rgba(20,0,24,0.95) 60%, rgba(6,0,6,0.95) 100%),
    radial-gradient(circle at 50% 0%, rgba(255,0,180,0.15), transparent 40%),
    repeating-linear-gradient(to bottom, rgba(0,0,0,0.15) 0 2px, transparent 2px 4px);
  background-blend-mode: overlay, normal, normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

header, nav, main, article, aside, footer { display: block; }

header {
  padding-block: 1.75rem;
  padding-inline: 1rem;
  text-align: center;
  position: relative;
  z-index: 1;
}
header h1 {
  margin: 0 0 0.25rem;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  font-size: clamp(1.8rem, 3.2vw + 1rem, 3rem);
  line-height: 1.08;
  letter-spacing: .2px;
  color: var(--text);
  text-shadow: 0 2px 14px rgba(0,0,0,.45);
}
header .meta {
  margin: 0;
  font-size: clamp(0.9rem, 0.4vw + 0.9rem, 1.05rem);
  color: var(--muted);
}

main { padding: 1rem 0 2rem; }
article { width: min(72ch, 100%); margin-inline: auto; padding-inline: 0.5rem; display: grid; gap: 1rem; }

.featured-image { width: 100%; display: grid; place-items: center; padding: 0.25rem 0; }

.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: var(--shadow);
  background: rgba(0,0,0,0.15);
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

h2 { margin: 0.25rem 0 0.25rem; font-size: clamp(1.4rem, 1.2vw + 1rem, 2rem); color: var(--text); }

p { color: var(--text); line-height: 1.6; margin: 0 0 0.75rem; }
blockquote {
  margin: 0.5rem 0 0.75rem;
  padding: .5rem 1rem;
  border-left: 3px solid var(--accent);
  color: var(--text);
  background: rgba(255,255,255,0.08);
  border-radius: 6px;
}

ul { padding-left: 1.25rem; margin: .25rem 0 0.75rem; color: var(--text); }
li { margin: .25rem 0; }

.product-ad {
  display: block;
  width: min(760px, 100%);
  margin: 0.5rem auto;
  padding: .75rem;
  border-radius: 12px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
}
.product-ad a { color: #fff; text-decoration: none; display: block; padding: .25rem; }
.product-ad p { margin: 0; font-weight: 600; color: #fff; }

footer {
  padding: 1.25rem 1rem;
  display: grid;
  gap: .75rem;
  justify-items: center;
  border-top: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(to top, rgba(0,0,0,.25), rgba(0,0,0,.0));
}
footer p { margin: .25rem 0; color: var(--muted); font-size: .9rem; }

.sponsored-page a { color: var(--text); text-decoration: none; padding: .4rem 0; display: inline-block; }
.sponsored-page a:hover { text-decoration: underline; }

/* Glass panels (fallback + backdrop-filter) */
.glass {
  background: var(--glass);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  .glass { background: var(--glass-strong); }
}

/* Utility & layout */
.container { width: 100%; max-width: clamp(320px, 90vw, 1100px); margin-inline: auto; padding-inline: 1rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1rem;
  color: var(--text);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

.tag {
  display: inline-block;
  padding: .25rem .6rem;
  font-size: .75rem;
  border-radius: 999px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
}

/* Links & buttons */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  outline: none;
}
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
a:hover { text-decoration: underline; text-underline-offset: 2px; }

/* Button variants */
.btn {
  display: inline-block;
  padding: .65rem 1rem;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,.25);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover { background: var(--accent-2); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.cta {
  display: inline-block;
  padding: .65rem 1rem;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,.25);
  background: transparent;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s ease, color .2s ease;
}
.cta:hover { color: #fff; transform: translateY(-1px); }

/* Typography scale for body text with fluid sizing */
body, input, textarea, button { font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial; font-size: 16px; }
h1, h2, h3 { font-weight: 700; line-height: 1.15; letter-spacing: .2px; }

/* Print styles: basic readability */
@media print {
  body { background: #fff; color: #000; }
  header, main, footer { display: block; }
  .glass { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; border: 1px solid #ccc; }
}
