/* Global reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
:root {
  --bg-a: #1b0a3a;
  --bg-b: #0f0a2a;
  --surface: rgba(255,255,255,.08);
  --surface-deep: rgba(255,255,255,.12);
  --text: #e8eaff;
  --muted: #cbd5e9;
  --primary: #7c5cff; /* violet */
  --indigo: #4f46e5;
  --glow: 0 0 8px rgba(124,92,255,.6);
}
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, "Segoe UI", Roboto;
  color: var(--text);
  background: radial-gradient(circle at 20% -10%, rgba(124,58,237,.25), transparent 20%),
              linear-gradient(135deg, #1b0a3a 0%, #0b0a46 40%, #0f0a25 100%);
  min-height: 100vh;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: #cbd5ff; text-decoration: none; }
a:hover { color: #eaffff; text-decoration: underline; }

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid #00ffd8;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Frosted glass header (hero) */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 1rem;
  text-align: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  background: rgba(10, 6, 40, 0.55);
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
header h1 {
  margin: .25rem 0;
  font-size: clamp(1.8rem, 4vw + 0.5rem, 3.6rem);
  line-height: 1.05;
  letter-spacing: .5px;
  background: linear-gradient(90deg, #d6d0ff, #a9d1ff, #e2a6ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 14px rgba(124,92,255,.6);
}
header .meta {
  font-size: .9rem;
  color: #d9d4ff;
  opacity: .95;
}

/* Layout content */
main {
  padding: 1rem;
}
article {
  max-width: 760px;
  margin: 2rem auto;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(15, 12, 40, 0.55);
  border: 1px solid rgba(150, 130, 255, 0.25);
  box-shadow: 0 12px 28px rgba(0,0,0,.5);
  color: #f4f0ff;
}
.featured-image {
  border-radius: 12px;
  overflow: hidden;
  margin: 1rem 0;
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.featured-image img {
  width: 100%; height: auto; display: block;
}
p {
  margin: 1rem 0;
  color: #e8e6ff;
}
p.content::first-letter {
  font-weight: 700;
  font-size: 1.6em;
  color: #fff;
}
footer {
  padding: 1.25rem;
  text-align: center;
  color: #cbd5e1;
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 2rem;
}
.product-ad {
  display: grid;
  gap: .6rem;
  padding: .75rem;
  margin: 0 auto 0;
  max-width: 760px;
  background: rgba(12, 12, 40, 0.55);
  border: 1px solid rgba(120, 90, 180, .35);
  border-radius: 12px;
}
.product-ad h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #e9e6ff;
}
.product-ad a {
  display: inline-block;
  padding: .6rem 1.05rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #6d5cff, #4f46e5);
  color: #fff;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,.25);
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-ad a:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
}
footer p {
  margin: .75rem 0 0;
  font-size: .85rem;
  color: #a5a5c9;
}

/* Responsive tweaks */
@media (min-width: 700px) {
  main { padding: 2rem; }
  article { padding: 1.25rem; }
}
@media (min-width: 980px) {
  body { background-attachment: scroll; }
}
