/* Minimal reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: #f7f4d8; background: #2a0052; }

/* Magenta circuit board background with subtle glow */
body {
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,230,0,.12) 0 40px, transparent 40px),
    radial-gradient(circle at 70% 0%, rgba(0,255,170,.08) 0 40px, transparent 40px),
    linear-gradient(135deg, #2a0052 0%, #6a0a6a 55%, #9f0a7e 100%);
  background-attachment: fixed;
  color: #f7f4d8;
}

/* Subtle circuit-overlay for frosted glass feel */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0,0,0,.08), rgba(0,0,0,.08)),
    repeating-linear-gradient(0deg, rgba(255,255,255,.08) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 1px, transparent 1px 24px);
  mix-blend-mode: overlay;
  z-index: 0;
  opacity: .5;
}

/* Layout containers */
header, main, footer { position: relative; z-index: 1; }
header { text-align: center; padding: 2rem 1rem 1rem; }
main { padding: 0 1rem 2rem; }
article {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 1.75rem;
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 8px 28px rgba(0,0,0,.25);
  color: #f9f7d9;
}
.featured-image { margin: .75rem 0; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,0,.28); }
.featured-image img { width: 100%; height: auto; display: block; }

/* Typography and hero */
header h1 {
  font-size: 2rem;
  line-height: 1.15;
  margin: 0 0 .35rem;
  color: #ffe36b;
  text-shadow: 0 0 14px rgba(255, 230, 110, .6);
}
.meta {
  color: rgba(255,255,255,.85);
  font-variant-numeric: tabular-nums;
  font-size: .93rem;
  letter-spacing: .2px;
}
h1, h2, h3, h4 { font-weight: 700; }

/* In-page links / CTAs (prominent in hacker-cyberpunk vibe) */
a.btn, .cta {
  display: inline-block;
  padding: .75rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  color: #1a0a00;
  background: #ffd700;
  border: 1px solid #e2c100;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
  transition: transform .15s ease, box-shadow .15s ease;
}
a.btn:hover, .cta:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.3); }
a.btn:focus-visible, .cta:focus-visible {
  outline: 3px solid #ffd700;
  outline-offset: 2px;
}

/* Paragraph flourish for .content first letter */
p { font-size: 1rem; color: #f7f6d9; margin: .75rem 0; }
p.content:first-letter { font-weight: 700; font-size: 2em; color: #ffe66a; }

/* Footer / product ad styling */
.product-ad { padding: 1rem; text-align: center; color: #fff6a6; }
.product-ad h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.product-ad a { text-decoration: none; }
.product-ad a p { display: inline-block; margin: 0; padding: .5rem 1rem; border-radius: 6px; background: var(--yellow); color: #1a0a00; font-weight: 700; }

/* Color tokens for accessibility */
:root {
  --yellow: #ffd700;
  --glass: rgba(255,255,255,.12);
  --glass-border: rgba(255,255,255,.22);
  --text: #f7f2d0;
  --text-dim: rgba(255,255,255,.85);
}

/* Responsive: mobile-first then expand gracefully */
@media (min-width: 600px) {
  header { padding: 3rem 1rem 1.5rem; }
  header h1 { font-size: 2.5rem; }
  article { padding: 1.5rem; }
}
@media (min-width: 900px) {
  main { padding: 2rem 2rem 3rem; }
  header { padding: 4rem 2rem 2rem; }
  header h1 { font-size: 3rem; }
  article { border-radius: 18px; padding: 2rem; }
  .featured-image { border-radius: 14px; }
}