html, body, header, nav, main, article, footer, aside {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: var(--text);
}

:root {
  --bg: #0b0f14;           /* gunmetal base */
  --bg-2: #1a1f26;         /* deeper layer */
  --surface: rgba(20, 23, 30, 0.28);  /* frosted glass */
  --surface-strong: rgba(20, 23, 30, 0.42);
  --text: #e9e9f0;
  --muted: #a6a9b6;
  --border: rgba(255, 255, 255, 0.28);
  --accent: #ff00ff;         /* fuchsia */
  --accent-2: #b400ff;
  --shadow: 0 8px 26px rgba(0,0,0,.42);
  --radius: 12px;
  --focus: 2px solid var(--accent);
  --focus-offset: 3px;
}

html {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.4;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='4' height='4' fill='%230a0f14'/%3E%3C/svg%3E") no-repeat;
  min-height: 100%;
}

body {
  margin: 0;
  background: 
    linear-gradient(135deg, rgba(12,15,20,.88) 0, rgba(16,20,28,.88) 60%, rgba(12,15,20,.88) 100%),
    radial-gradient(circle at 20% 0%, rgba(255,0,170,.08), transparent 40px),
    radial-gradient(circle at 80% 100%, rgba(0,255,170,.05), transparent 40px),
    /* subtle scanlines */
    repeating-linear-gradient(180deg, rgba(255,0,255,.04) 0 1px, transparent 1px 2px);
  background-blend-mode: normal, overlay, overlay, overlay;
  color: var(--text);
  padding-bottom: 2rem;
  overflow-x: hidden;
}

/* Layered background: a gentle diagonal glow overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(1200px circle at 60% -10%, rgba(255,0,255,.08), transparent 40%),
              radial-gradient(900px circle at -10% 60%, rgba(0,255,200,.05), transparent 40%);
  mix-blend-mode: screen;
  opacity: 0.9;
  z-index: 0;
}

/* Page structure */
header, main, footer {
  width: min(1100px, 92vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

header {
  text-align: center;
  padding: 2rem 1rem 1.5rem;
  margin-top: 1.25rem;
  border-radius: 16px;
  background: rgba(15, 18, 26, 0.32);
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

header h1 {
  font-size: clamp(1.6rem, 1.8rem + 2vw, 3rem);
  line-height: 1.08;
  margin: 0 0 .5rem;
  letter-spacing: .2px;
}

header .meta {
  font-size: .8rem;
  color: var(--muted);
  margin-top: .25rem;
}

nav {
  margin-top: .75rem;
}

nav a {
  color: var(--text);
  text-decoration: none;
  padding: .35rem .75rem;
  border-radius: 6px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.15);
  transition: transform .2s ease;
  display: inline-block;
}
nav a:hover { transform: translateY(-1px); text-decoration: underline; }
nav a:focus-visible { outline: var(--focus); outline-offset: var(--focus-offset); }

/* Content container (glass panels) */
main {
  padding: 1.25rem 0 0;
  display: grid;
  place-items: start center;
}

article {
  width: 100%;
  max-width: clamp(520px, 92vw, 920px);
  padding: 1rem;
  margin: 0 auto;
  border-radius: 14px;
  background: rgba(14, 18, 26, 0.38);
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 12px 28px rgba(0,0,0,.42);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.featured-image, .image-frame {
  display: block;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
  margin: 1rem 0;
  background: #111;
}

.image-frame { aspect-ratio: 16 / 9; }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

article h2, article h3 {
  color: var(--text);
  margin: .75rem 0 .25rem;
  line-height: 1.25;
}

article h2 { font-size: clamp(1.4rem, 1.2rem + 2vw, 2.25rem); }

article h3 {
  font-size: clamp(1.1rem, 0.9rem + 1.6vw, 1.4rem);
  font-weight: 600;
  color: #f9f8ff;
}

article p {
  color: var(--text);
  font-size: clamp(0.95rem, 0.9rem + 0.4vw, 1.05rem);
  line-height: 1.6;
  margin: 0.6rem 0;
}

article ul {
  margin: .4rem 0 1rem 1.1rem;
  padding: 0;
  color: var(--muted);
  list-style: disc;
  line-height: 1.6;
}
article ul li { margin: .25rem 0; }

blockquote {
  margin: .8rem 0;
  padding: .6rem 1rem;
  border-left: 3px solid var(--accent);
  background: rgba(255,0,255,.08);
  border-radius: 6px;
  color: #fff;
}

@media (min-width: 860px) {
  article { padding: 1.25rem 1.75rem; }
}

.content { /* utility class if used elsewhere */ color: var(--text); }

/* Image patterns fallback alias */
.image-frame img, .featured-image img { image-rendering: auto; }

/* Lists and inline elements */
ul, li { margin: 0; padding: 0; }

/* Product ad / footer blocks as glass panels */
footer {
  margin-top: 1.25rem;
  padding: 1rem;
}

.product-ad, .sponsored-page {
  display: inline-block;
  min-width: 180px;
  margin: .25rem;
  padding: .5rem 0;
  width: calc(50% - 1rem);
  text-align: center;
  border-radius: 10px;
  background: rgba(14, 18, 26, 0.32);
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 6px 18px rgba(0,0,0,.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
footer p { text-align: center; color: var(--muted); }

footer a { color: var(--text); text-decoration: none; display: inline-block; padding: .25rem .5rem; border-radius: 6px; }
footer a:hover { text-decoration: underline; }

/* Buttons and links (solid and outline variants) */
.btn, .cta, a, button {
  font-family: inherit;
  font-weight: 600;
  letter-spacing: .2px;
  cursor: pointer;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,0,255,.14);
  color: #fff;
  padding: .6rem 1rem;
  text-decoration: none;
  transition: transform .15s ease, background .2s ease, color .2s ease;
  display: inline-block;
}
.btn:hover, .cta:hover, a:hover, button:hover { transform: translateY(-1px); text-decoration: underline; }
.btn:focus-visible, .cta:focus-visible, a:focus-visible, button:focus-visible {
  outline: var(--focus);
  outline-offset: var(--focus-offset);
}
.btn--outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,.45);
  color: var(--text);
}
.btn--solid {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none;
  color: white;
  box-shadow: 0 6px 16px rgba(255,0,255,.35);
}
.btn--solid:hover { filter: brightness(1.05); }
.btn--outline:hover { background: rgba(255,255,255,.05); }

/* Utility/grid helpers */
.container { width: 100%; margin: 0 auto; padding: 0 1rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}
.card {
  background: rgba(15,18,28,.32);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: var(--radius);
  padding: .75rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  transition: transform .2s ease;
}
.card:hover { transform: translateY(-2px); }

/* Tag pills */
.tag {
  display: inline-block;
  padding: .15rem .5rem;
  font-size: .75rem;
  border-radius: 999px;
  background: rgba(255,0,255,.15);
  border: 1px solid rgba(255,255,255,.28);
  color: #fff;
}

/* Print styles for readability */
@media print {
  body { background: white; color: black; }
  header, main, footer { background: transparent; box-shadow: none; border: none; }
  a, button, .btn, .cta { color: black; text-decoration: none; }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  nav a { transition: none; }
  .btn, .cta, a, button { transition: none !important; }
}
