/* CSS: The Mind's Survival Protocol - cyberpunk, frosted-glass, mobile-first */

/* 1) Reset & base */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  padding: 0;
  color: #e9e1ff;
  background-color: #0a0b12;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  line-height: 1.6;
  background-image:
    linear-gradient(45deg, rgba(192,192,192,.15) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(192,192,192,.15) 25%, transparent 25%),
    radial-gradient(circle at 25px 25px, rgba(255,255,255,.15) 0 2px, transparent 2px),
    radial-gradient(circle at 75px 75px, rgba(255,255,255,.12) 0 2px, transparent 2px);
  background-size: 60px 60px, 60px 60px, 60px 60px, 60px 60px;
  background-position: 0 0, 0 0, 0 0, 0 0;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body { background-attachment: scroll; }
}

/* 2) Layout helper */
.wrapper { max-width: 980px; margin: 0 auto; padding: 0 1rem; }

/* 3) Frosted glass hero header (clear hero section) */
header {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem 1rem;
  margin: 2rem auto 0;
  border-radius: 14px;
  background: rgba(20, 0, 40, 0.55);
  border: 1px solid rgba(140, 90, 255, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 22px rgba(0,0,0,.25);
  width: min(1000px, calc(100% - 2rem));
}
header h1 {
  font-size: clamp(2rem, 4vw + 1rem, 3.5rem);
  margin: 0 0 .25rem;
  color: #f0e0ff;
  text-shadow: 0 0 12px rgba(127,0,255,.65);
}
header .meta {
  color: rgba(230, 223, 255, 0.8);
  font-size: 0.92rem;
  margin-top: .25rem;
}

/* 4) Main content (article) with frosted glass cards */
main { padding: 1rem 0 2rem; }
article {
  max-width: 860px;
  margin: 0 auto;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(20, 0, 60, 0.55);
  border: 1px solid rgba(150, 110, 255, 0.6);
  box-shadow: 0 8px 28px rgba(0,0,0,.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.featured-image { margin: .75rem 0; overflow: hidden; border-radius: 10px; }
.featured-image img { width: 100%; height: auto; display: block; border-radius: 8px; }

/* 5) Text tweaks */
p { color: #e9e3ff; }
p a { color: #cbd5ff; text-decoration: underline; }

/* 6) First-letter emphasis for p.content */
p.content::first-letter {
  font-weight: 800;
  font-size: 2em;
  color: #fff3ff;
  letter-spacing: .5px;
  margin-right: .05em;
}

/* 7) Footer with product ad (CTA-like area) */
footer {
  padding: 1rem 1rem 3rem;
  text-align: center;
  border-top: 1px solid rgba(140, 100, 240, 0.5);
  background: rgba(12, 0, 40, 0.55);
  margin-top: 2rem;
}
.product-ad {
  display: inline-block;
  padding: .55rem 1rem;
  border-radius: 999px;
  background: rgba(40, 0, 60, 0.65);
  border: 1px solid rgba(140, 100, 240, 0.6);
  margin-bottom: .75rem;
}
.product-ad h3 {
  margin: 0 0 .25rem;
  font-size: 1rem;
}
.product-ad a { color: #ffd9ff; text-decoration: none; }

/* 8) CTA button style (for future use) */
.btn {
  display: inline-block;
  padding: .75rem 1.15rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #8a5fff 0%, #512b93 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: .2px;
  box-shadow: 0 4px 14px rgba(115, 60, 200, .5);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(115,60,200,.6); }
.btn:focus-visible { outline: 2px solid #4cc9f0; outline-offset: 2px; }

/* 9) Focus accessibility for links/buttons */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #4cc9f0;
  outline-offset: 2px;
  border-radius: 6px;
}

/* 10) Responsive tweaks (mobile-first) */
@media (min-width: 700px) {
  article { padding: 1.25rem; }
}
@media (min-width: 900px) {
  header { padding: 2.5rem 1rem; }
  header h1 { font-size: clamp(2.5rem, 5vw + 1rem, 4rem); }
}